From c89553d04adfe36f7315c0f97d4b375c1d28ce06 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 8 Jan 2024 21:43:05 +0000 Subject: [PATCH 1/2] fix(deps): Update the Java code generator (gapic-generator-java) to 2.31.0 PiperOrigin-RevId: 596645164 Source-Link: https://github.com/googleapis/googleapis/commit/4a0e62ecde2a6459bea8722a33173cfce1e9fb50 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10ed6a77676c37e60799098d48d0afb16008613 Copy-Tag: eyJwIjoiamF2YS13ZWJzZWN1cml0eXNjYW5uZXIvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS13b3JrZmxvdy1leGVjdXRpb25zLy5Pd2xCb3QueWFtbCIsImgiOiJhMTBlZDZhNzc2NzZjMzdlNjA3OTkwOThkNDhkMGFmYjE2MDA4NjEzIn0= Copy-Tag: eyJwIjoiamF2YS13b3JrZmxvd3MvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImExMGVkNmE3NzY3NmMzN2U2MDc5OTA5OGQ0OGQwYWZiMTYwMDg2MTMifQ== --- .../v1/WebSecurityScannerGrpc.java | 1844 --- .../v1alpha/WebSecurityScannerGrpc.java | 1865 --- .../v1beta/WebSecurityScannerGrpc.java | 1859 --- .../v1/CrawledUrlProto.java | 69 - .../v1/FindingAddonProto.java | 182 - .../websecurityscanner/v1/FindingProto.java | 126 - .../v1/FindingTypeStatsProto.java | 69 - .../v1/ScanConfigErrorProto.java | 106 - .../v1/ScanConfigProto.java | 220 - .../v1/ScanRunErrorTraceProto.java | 83 - .../v1/ScanRunLogProto.java | 92 - .../websecurityscanner/v1/ScanRunProto.java | 107 - .../v1/ScanRunWarningTraceProto.java | 75 - .../v1/WebSecurityScannerProto.java | 408 - .../v1alpha/CrawledUrlProto.java | 67 - .../CreateScanConfigRequestOrBuilder.java | 97 - .../DeleteScanConfigRequestOrBuilder.java | 56 - .../v1alpha/FindingAddonProto.java | 139 - .../v1alpha/FindingProto.java | 121 - .../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 | 441 - .../v1beta/CrawledUrlProto.java | 70 - .../CreateScanConfigRequestOrBuilder.java | 97 - .../DeleteScanConfigRequestOrBuilder.java | 56 - .../v1beta/FindingAddonProto.java | 156 - .../v1beta/FindingProto.java | 117 - .../v1beta/FindingTypeStatsProto.java | 70 - .../v1beta/GetFindingRequestOrBuilder.java | 58 - .../v1beta/GetScanConfigRequestOrBuilder.java | 56 - .../v1beta/GetScanRunRequestOrBuilder.java | 58 - .../ListFindingTypeStatsRequestOrBuilder.java | 58 - .../v1beta/ScanConfigErrorProto.java | 107 - .../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 | 443 - .../executions/v1/ExecutionsGrpc.java | 755 - .../executions/v1beta/ExecutionsGrpc.java | 759 - .../v1/CancelExecutionRequestOrBuilder.java | 58 - .../v1/CreateExecutionRequestOrBuilder.java | 99 - .../executions/v1/ExecutionsProto.java | 374 - .../CancelExecutionRequestOrBuilder.java | 58 - .../CreateExecutionRequestOrBuilder.java | 99 - .../executions/v1beta/ExecutionsProto.java | 238 - .../v1/DeleteWorkflowRequestOrBuilder.java | 56 - .../cloud/workflows/v1/WorkflowsProto.java | 320 - .../DeleteWorkflowRequestOrBuilder.java | 56 - .../v1beta/GetWorkflowRequestOrBuilder.java | 56 - .../workflows/v1beta/WorkflowsProto.java | 271 - .../workstations/v1/WorkstationsGrpc.java | 2684 ---- .../workstations/v1beta/WorkstationsGrpc.java | 2700 ---- ...GetWorkstationClusterRequestOrBuilder.java | 54 - .../GetWorkstationConfigRequestOrBuilder.java | 54 - .../v1/GetWorkstationRequestOrBuilder.java | 54 - .../workstations/v1/WorkstationsProto.java | 1135 -- ...GetWorkstationClusterRequestOrBuilder.java | 54 - .../GetWorkstationConfigRequestOrBuilder.java | 54 - .../GetWorkstationRequestOrBuilder.java | 54 - .../v1beta/WorkstationsProto.java | 1227 -- .../v1/WebSecurityScannerClient.java | 206 +- .../v1/WebSecurityScannerSettings.java | 1 + .../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 + .../reflect-config.json | 0 .../v1/MockWebSecurityScanner.java | 0 .../v1/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1/WebSecurityScannerClientTest.java | 0 .../v1/WebSecurityScannerGrpc.java | 1371 ++ .../websecurityscanner/v1/CrawledUrl.java | 463 +- .../v1/CrawledUrlOrBuilder.java | 45 +- .../v1/CrawledUrlProto.java | 56 + .../v1/CreateScanConfigRequest.java | 437 +- .../v1/CreateScanConfigRequestOrBuilder.java | 35 +- .../v1/DeleteScanConfigRequest.java | 342 +- .../v1/DeleteScanConfigRequestOrBuilder.java | 27 +- .../cloud/websecurityscanner/v1/Finding.java | 1938 +-- .../v1/FindingAddonProto.java | 160 + .../v1/FindingOrBuilder.java | 202 +- .../websecurityscanner/v1/FindingProto.java | 94 + .../v1/FindingTypeStats.java | 353 +- .../v1/FindingTypeStatsOrBuilder.java | 30 +- .../v1/FindingTypeStatsProto.java | 56 + .../cloud/websecurityscanner/v1/Form.java | 420 +- .../websecurityscanner/v1/FormOrBuilder.java | 45 +- .../v1/GetFindingRequest.java | 322 +- .../v1/GetFindingRequestOrBuilder.java | 27 +- .../v1/GetScanConfigRequest.java | 322 +- .../v1/GetScanConfigRequestOrBuilder.java | 27 +- .../v1/GetScanRunRequest.java | 322 +- .../v1/GetScanRunRequestOrBuilder.java | 27 +- .../v1/ListCrawledUrlsRequest.java | 435 +- .../v1/ListCrawledUrlsRequestOrBuilder.java | 39 +- .../v1/ListCrawledUrlsResponse.java | 488 +- .../v1/ListCrawledUrlsResponseOrBuilder.java | 45 +- .../v1/ListFindingTypeStatsRequest.java | 357 +- .../ListFindingTypeStatsRequestOrBuilder.java | 27 +- .../v1/ListFindingTypeStatsResponse.java | 535 +- ...ListFindingTypeStatsResponseOrBuilder.java | 48 +- .../v1/ListFindingsRequest.java | 499 +- .../v1/ListFindingsRequestOrBuilder.java | 48 +- .../v1/ListFindingsResponse.java | 483 +- .../v1/ListFindingsResponseOrBuilder.java | 45 +- .../v1/ListScanConfigsRequest.java | 435 +- .../v1/ListScanConfigsRequestOrBuilder.java | 39 +- .../v1/ListScanConfigsResponse.java | 488 +- .../v1/ListScanConfigsResponseOrBuilder.java | 45 +- .../v1/ListScanRunsRequest.java | 425 +- .../v1/ListScanRunsRequestOrBuilder.java | 39 +- .../v1/ListScanRunsResponse.java | 483 +- .../v1/ListScanRunsResponseOrBuilder.java | 45 +- .../v1/OutdatedLibrary.java | 502 +- .../v1/OutdatedLibraryOrBuilder.java | 54 +- .../websecurityscanner/v1/ScanConfig.java | 5164 +++---- .../v1/ScanConfigError.java | 773 +- .../v1/ScanConfigErrorOrBuilder.java | 33 +- .../v1/ScanConfigErrorProto.java | 93 + .../v1/ScanConfigOrBuilder.java | 132 +- .../v1/ScanConfigProto.java | 175 + .../cloud/websecurityscanner/v1/ScanRun.java | 1244 +- .../v1/ScanRunErrorTrace.java | 556 +- .../v1/ScanRunErrorTraceOrBuilder.java | 35 +- .../v1/ScanRunErrorTraceProto.java | 68 + .../websecurityscanner/v1/ScanRunLog.java | 716 +- .../v1/ScanRunLogOrBuilder.java | 57 +- .../v1/ScanRunLogProto.java | 70 + .../v1/ScanRunOrBuilder.java | 105 +- .../websecurityscanner/v1/ScanRunProto.java | 82 + .../v1/ScanRunWarningTrace.java | 405 +- .../v1/ScanRunWarningTraceOrBuilder.java | 24 +- .../v1/ScanRunWarningTraceProto.java | 62 + .../v1/StartScanRunRequest.java | 322 +- .../v1/StartScanRunRequestOrBuilder.java | 27 +- .../v1/StopScanRunRequest.java | 322 +- .../v1/StopScanRunRequestOrBuilder.java | 27 +- .../v1/UpdateScanConfigRequest.java | 457 +- .../v1/UpdateScanConfigRequestOrBuilder.java | 34 +- .../v1/ViolatingResource.java | 394 +- .../v1/ViolatingResourceOrBuilder.java | 36 +- .../v1/VulnerableHeaders.java | 1203 +- .../v1/VulnerableHeadersOrBuilder.java | 71 +- .../v1/VulnerableParameters.java | 358 +- .../v1/VulnerableParametersOrBuilder.java | 36 +- .../v1/WebSecurityScannerProto.java | 376 + .../cloud/websecurityscanner/v1/Xss.java | 713 +- .../websecurityscanner/v1/XssOrBuilder.java | 60 +- .../cloud/websecurityscanner/v1/Xxe.java | 433 +- .../websecurityscanner/v1/XxeOrBuilder.java | 33 +- .../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 .../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 | 270 +- .../v1alpha/WebSecurityScannerSettings.java | 1 + .../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 + .../reflect-config.json | 0 .../v1alpha/MockWebSecurityScanner.java | 0 .../v1alpha/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1alpha/WebSecurityScannerClientTest.java | 0 .../v1alpha/WebSecurityScannerGrpc.java | 1371 ++ .../v1alpha/CrawledUrl.java | 466 +- .../v1alpha/CrawledUrlOrBuilder.java | 45 +- .../v1alpha/CrawledUrlProto.java | 54 + .../v1alpha/CreateScanConfigRequest.java | 531 +- .../CreateScanConfigRequestOrBuilder.java | 58 + .../v1alpha/DeleteScanConfigRequest.java | 385 +- .../DeleteScanConfigRequestOrBuilder.java | 31 + .../websecurityscanner/v1alpha/Finding.java | 1779 +-- .../v1alpha/FindingAddonProto.java | 119 + .../v1alpha/FindingName.java | 0 .../v1alpha/FindingOrBuilder.java | 184 +- .../v1alpha/FindingProto.java | 92 + .../v1alpha/FindingTypeStats.java | 360 +- .../v1alpha/FindingTypeStatsOrBuilder.java | 27 +- .../v1alpha/FindingTypeStatsProto.java | 59 + .../v1alpha/GetFindingRequest.java | 360 +- .../v1alpha/GetFindingRequestOrBuilder.java | 33 + .../v1alpha/GetScanConfigRequest.java | 373 +- .../GetScanConfigRequestOrBuilder.java | 31 + .../v1alpha/GetScanRunRequest.java | 360 +- .../v1alpha/GetScanRunRequestOrBuilder.java | 33 + .../v1alpha/ListCrawledUrlsRequest.java | 488 +- .../ListCrawledUrlsRequestOrBuilder.java | 47 +- .../v1alpha/ListCrawledUrlsResponse.java | 512 +- .../ListCrawledUrlsResponseOrBuilder.java | 42 +- .../v1alpha/ListFindingTypeStatsRequest.java | 395 +- .../ListFindingTypeStatsRequestOrBuilder.java | 33 + .../v1alpha/ListFindingTypeStatsResponse.java | 583 +- ...ListFindingTypeStatsResponseOrBuilder.java | 53 + .../v1alpha/ListFindingsRequest.java | 550 +- .../v1alpha/ListFindingsRequestOrBuilder.java | 56 +- .../v1alpha/ListFindingsResponse.java | 490 +- .../ListFindingsResponseOrBuilder.java | 45 +- .../v1alpha/ListScanConfigsRequest.java | 488 +- .../ListScanConfigsRequestOrBuilder.java | 47 +- .../v1alpha/ListScanConfigsResponse.java | 512 +- .../ListScanConfigsResponseOrBuilder.java | 42 +- .../v1alpha/ListScanRunsRequest.java | 476 +- .../v1alpha/ListScanRunsRequestOrBuilder.java | 47 +- .../v1alpha/ListScanRunsResponse.java | 490 +- .../ListScanRunsResponseOrBuilder.java | 45 +- .../v1alpha/OutdatedLibrary.java | 502 +- .../v1alpha/OutdatedLibraryOrBuilder.java | 54 +- .../v1alpha/ProjectName.java | 0 .../v1alpha/ScanConfig.java | 3888 ++--- .../v1alpha/ScanConfigName.java | 0 .../v1alpha/ScanConfigOrBuilder.java | 161 +- .../v1alpha/ScanConfigProto.java | 147 + .../websecurityscanner/v1alpha/ScanRun.java | 933 +- .../v1alpha/ScanRunName.java | 0 .../v1alpha/ScanRunOrBuilder.java | 73 +- .../v1alpha/ScanRunProto.java | 80 + .../v1alpha/StartScanRunRequest.java | 373 +- .../v1alpha/StartScanRunRequestOrBuilder.java | 31 + .../v1alpha/StopScanRunRequest.java | 370 +- .../v1alpha/StopScanRunRequestOrBuilder.java | 33 + .../v1alpha/UpdateScanConfigRequest.java | 559 +- .../UpdateScanConfigRequestOrBuilder.java | 55 +- .../v1alpha/ViolatingResource.java | 404 +- .../v1alpha/ViolatingResourceOrBuilder.java | 36 +- .../v1alpha/VulnerableHeaders.java | 1263 +- .../v1alpha/VulnerableHeadersOrBuilder.java | 87 +- .../v1alpha/VulnerableParameters.java | 381 +- .../VulnerableParametersOrBuilder.java | 36 +- .../v1alpha/WebSecurityScannerProto.java | 409 + .../cloud/websecurityscanner/v1alpha/Xss.java | 423 +- .../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 | 270 +- .../v1beta/WebSecurityScannerSettings.java | 1 + .../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 + .../reflect-config.json | 0 .../v1beta/MockWebSecurityScanner.java | 0 .../v1beta/MockWebSecurityScannerImpl.java | 0 .../WebSecurityScannerClientHttpJsonTest.java | 0 .../v1beta/WebSecurityScannerClientTest.java | 0 .../v1beta/WebSecurityScannerGrpc.java | 1371 ++ .../websecurityscanner/v1beta/CrawledUrl.java | 466 +- .../v1beta/CrawledUrlOrBuilder.java | 45 +- .../v1beta/CrawledUrlProto.java | 57 + .../v1beta/CreateScanConfigRequest.java | 528 +- .../CreateScanConfigRequestOrBuilder.java | 58 + .../v1beta/DeleteScanConfigRequest.java | 385 +- .../DeleteScanConfigRequestOrBuilder.java | 31 + .../websecurityscanner/v1beta/Finding.java | 1720 +-- .../v1beta/FindingAddonProto.java | 135 + .../v1beta/FindingName.java | 0 .../v1beta/FindingOrBuilder.java | 174 +- .../v1beta/FindingProto.java | 87 + .../v1beta/FindingTypeStats.java | 353 +- .../v1beta/FindingTypeStatsOrBuilder.java | 30 +- .../v1beta/FindingTypeStatsProto.java | 57 + .../cloud/websecurityscanner/v1beta/Form.java | 423 +- .../v1beta/FormOrBuilder.java | 45 +- .../v1beta/GetFindingRequest.java | 360 +- .../v1beta/GetFindingRequestOrBuilder.java | 33 + .../v1beta/GetScanConfigRequest.java | 373 +- .../v1beta/GetScanConfigRequestOrBuilder.java | 31 + .../v1beta/GetScanRunRequest.java | 360 +- .../v1beta/GetScanRunRequestOrBuilder.java | 33 + .../v1beta/ListCrawledUrlsRequest.java | 484 +- .../ListCrawledUrlsRequestOrBuilder.java | 47 +- .../v1beta/ListCrawledUrlsResponse.java | 512 +- .../ListCrawledUrlsResponseOrBuilder.java | 45 +- .../v1beta/ListFindingTypeStatsRequest.java | 388 +- .../ListFindingTypeStatsRequestOrBuilder.java | 33 + .../v1beta/ListFindingTypeStatsResponse.java | 575 +- ...ListFindingTypeStatsResponseOrBuilder.java | 47 +- .../v1beta/ListFindingsRequest.java | 547 +- .../v1beta/ListFindingsRequestOrBuilder.java | 56 +- .../v1beta/ListFindingsResponse.java | 490 +- .../v1beta/ListFindingsResponseOrBuilder.java | 45 +- .../v1beta/ListScanConfigsRequest.java | 484 +- .../ListScanConfigsRequestOrBuilder.java | 47 +- .../v1beta/ListScanConfigsResponse.java | 512 +- .../ListScanConfigsResponseOrBuilder.java | 45 +- .../v1beta/ListScanRunsRequest.java | 473 +- .../v1beta/ListScanRunsRequestOrBuilder.java | 47 +- .../v1beta/ListScanRunsResponse.java | 490 +- .../v1beta/ListScanRunsResponseOrBuilder.java | 45 +- .../v1beta/OutdatedLibrary.java | 502 +- .../v1beta/OutdatedLibraryOrBuilder.java | 54 +- .../v1beta/ProjectName.java | 0 .../websecurityscanner/v1beta/ScanConfig.java | 4180 ++---- .../v1beta/ScanConfigError.java | 773 +- .../v1beta/ScanConfigErrorOrBuilder.java | 33 +- .../v1beta/ScanConfigErrorProto.java | 94 + .../v1beta/ScanConfigName.java | 0 .../v1beta/ScanConfigOrBuilder.java | 184 +- .../v1beta/ScanConfigProto.java | 160 + .../websecurityscanner/v1beta/ScanRun.java | 1324 +- .../v1beta/ScanRunErrorTrace.java | 570 +- .../v1beta/ScanRunErrorTraceOrBuilder.java | 35 +- .../v1beta/ScanRunErrorTraceProto.java | 69 + .../v1beta/ScanRunName.java | 0 .../v1beta/ScanRunOrBuilder.java | 110 +- .../v1beta/ScanRunProto.java | 94 + .../v1beta/ScanRunWarningTrace.java | 421 +- .../v1beta/ScanRunWarningTraceOrBuilder.java | 24 +- .../v1beta/ScanRunWarningTraceProto.java | 62 + .../v1beta/StartScanRunRequest.java | 370 +- .../v1beta/StartScanRunRequestOrBuilder.java | 31 + .../v1beta/StopScanRunRequest.java | 360 +- .../v1beta/StopScanRunRequestOrBuilder.java | 33 + .../v1beta/UpdateScanConfigRequest.java | 556 +- .../UpdateScanConfigRequestOrBuilder.java | 55 +- .../v1beta/ViolatingResource.java | 404 +- .../v1beta/ViolatingResourceOrBuilder.java | 36 +- .../v1beta/VulnerableHeaders.java | 1257 +- .../v1beta/VulnerableHeadersOrBuilder.java | 87 +- .../v1beta/VulnerableParameters.java | 381 +- .../v1beta/VulnerableParametersOrBuilder.java | 36 +- .../v1beta/WebSecurityScannerProto.java | 411 + .../cloud/websecurityscanner/v1beta/Xss.java | 420 +- .../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 .../executions/v1/ExecutionsClient.java | 97 +- .../executions/v1/ExecutionsSettings.java | 1 + .../executions/v1/gapic_metadata.json | 0 .../workflows/executions/v1/package-info.java | 0 .../executions/v1/stub/ExecutionsStub.java | 0 .../v1/stub/ExecutionsStubSettings.java | 6 + .../stub/GrpcExecutionsCallableFactory.java | 0 .../v1/stub/GrpcExecutionsStub.java | 1 + .../HttpJsonExecutionsCallableFactory.java | 0 .../v1/stub/HttpJsonExecutionsStub.java | 0 .../reflect-config.json | 0 .../v1/ExecutionsClientHttpJsonTest.java | 0 .../executions/v1/ExecutionsClientTest.java | 0 .../executions/v1/MockExecutions.java | 0 .../executions/v1/MockExecutionsImpl.java | 0 .../executions/v1/ExecutionsGrpc.java | 599 + .../executions/v1/CancelExecutionRequest.java | 373 +- .../v1/CancelExecutionRequestOrBuilder.java | 33 + .../executions/v1/CreateExecutionRequest.java | 516 +- .../v1/CreateExecutionRequestOrBuilder.java | 60 + .../workflows/executions/v1/Execution.java | 5582 +++---- .../executions/v1/ExecutionName.java | 0 .../executions/v1/ExecutionOrBuilder.java | 215 +- .../executions/v1/ExecutionView.java | 86 +- .../executions/v1/ExecutionsProto.java | 318 + .../executions/v1/GetExecutionRequest.java | 454 +- .../v1/GetExecutionRequestOrBuilder.java | 49 +- .../executions/v1/ListExecutionsRequest.java | 711 +- .../v1/ListExecutionsRequestOrBuilder.java | 79 +- .../executions/v1/ListExecutionsResponse.java | 491 +- .../v1/ListExecutionsResponseOrBuilder.java | 45 +- .../workflows/executions/v1/WorkflowName.java | 0 .../workflows/executions/v1/executions.proto | 0 .../cancelexecution/AsyncCancelExecution.java | 0 .../cancelexecution/SyncCancelExecution.java | 0 .../SyncCancelExecutionExecutionname.java | 0 .../SyncCancelExecutionString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createexecution/AsyncCreateExecution.java | 0 .../createexecution/SyncCreateExecution.java | 0 .../SyncCreateExecutionStringExecution.java | 0 ...cCreateExecutionWorkflownameExecution.java | 0 .../getexecution/AsyncGetExecution.java | 0 .../getexecution/SyncGetExecution.java | 0 .../SyncGetExecutionExecutionname.java | 0 .../getexecution/SyncGetExecutionString.java | 0 .../listexecutions/AsyncListExecutions.java | 0 .../AsyncListExecutionsPaged.java | 0 .../listexecutions/SyncListExecutions.java | 0 .../SyncListExecutionsString.java | 0 .../SyncListExecutionsWorkflowname.java | 0 .../createexecution/SyncCreateExecution.java | 0 .../createexecution/SyncCreateExecution.java | 0 .../executions/v1beta/ExecutionsClient.java | 97 +- .../executions/v1beta/ExecutionsSettings.java | 1 + .../executions/v1beta/gapic_metadata.json | 0 .../executions/v1beta/package-info.java | 0 .../v1beta/stub/ExecutionsStub.java | 0 .../v1beta/stub/ExecutionsStubSettings.java | 6 + .../stub/GrpcExecutionsCallableFactory.java | 0 .../v1beta/stub/GrpcExecutionsStub.java | 1 + .../HttpJsonExecutionsCallableFactory.java | 0 .../v1beta/stub/HttpJsonExecutionsStub.java | 0 .../reflect-config.json | 0 .../v1beta/ExecutionsClientHttpJsonTest.java | 0 .../v1beta/ExecutionsClientTest.java | 0 .../executions/v1beta/MockExecutions.java | 0 .../executions/v1beta/MockExecutionsImpl.java | 0 .../executions/v1beta/ExecutionsGrpc.java | 599 + .../v1beta/CancelExecutionRequest.java | 385 +- .../CancelExecutionRequestOrBuilder.java | 33 + .../v1beta/CreateExecutionRequest.java | 528 +- .../CreateExecutionRequestOrBuilder.java | 60 + .../executions/v1beta/Execution.java | 1520 +- .../executions/v1beta/ExecutionName.java | 0 .../executions/v1beta/ExecutionOrBuilder.java | 122 +- .../executions/v1beta/ExecutionView.java | 86 +- .../executions/v1beta/ExecutionsProto.java | 208 + .../v1beta/GetExecutionRequest.java | 467 +- .../v1beta/GetExecutionRequestOrBuilder.java | 49 +- .../v1beta/ListExecutionsRequest.java | 582 +- .../ListExecutionsRequestOrBuilder.java | 61 +- .../v1beta/ListExecutionsResponse.java | 512 +- .../ListExecutionsResponseOrBuilder.java | 45 +- .../executions/v1beta/WorkflowName.java | 0 .../executions/v1beta/executions.proto | 0 .../cancelexecution/AsyncCancelExecution.java | 0 .../cancelexecution/SyncCancelExecution.java | 0 .../SyncCancelExecutionExecutionname.java | 0 .../SyncCancelExecutionString.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createexecution/AsyncCreateExecution.java | 0 .../createexecution/SyncCreateExecution.java | 0 .../SyncCreateExecutionStringExecution.java | 0 ...cCreateExecutionWorkflownameExecution.java | 0 .../getexecution/AsyncGetExecution.java | 0 .../getexecution/SyncGetExecution.java | 0 .../SyncGetExecutionExecutionname.java | 0 .../getexecution/SyncGetExecutionString.java | 0 .../listexecutions/AsyncListExecutions.java | 0 .../AsyncListExecutionsPaged.java | 0 .../listexecutions/SyncListExecutions.java | 0 .../SyncListExecutionsString.java | 0 .../SyncListExecutionsWorkflowname.java | 0 .../createexecution/SyncCreateExecution.java | 0 .../createexecution/SyncCreateExecution.java | 0 .../cloud/workflows/v1/WorkflowsClient.java | 147 +- .../cloud/workflows/v1/WorkflowsSettings.java | 1 + .../cloud/workflows/v1/gapic_metadata.json | 0 .../cloud/workflows/v1/package-info.java | 0 .../v1/stub/GrpcWorkflowsCallableFactory.java | 0 .../workflows/v1/stub/GrpcWorkflowsStub.java | 1 + .../HttpJsonWorkflowsCallableFactory.java | 0 .../v1/stub/HttpJsonWorkflowsStub.java | 1 + .../workflows/v1/stub/WorkflowsStub.java | 0 .../v1/stub/WorkflowsStubSettings.java | 6 + .../reflect-config.json | 0 .../cloud/workflows/v1/MockLocations.java | 0 .../cloud/workflows/v1/MockLocationsImpl.java | 0 .../cloud/workflows/v1/MockWorkflows.java | 0 .../cloud/workflows/v1/MockWorkflowsImpl.java | 0 .../v1/WorkflowsClientHttpJsonTest.java | 0 .../workflows/v1/WorkflowsClientTest.java | 0 .../cloud/workflows/v1/WorkflowsGrpc.java | 577 +- .../workflows/v1/CreateWorkflowRequest.java | 564 +- .../v1/CreateWorkflowRequestOrBuilder.java | 64 +- .../workflows/v1/DeleteWorkflowRequest.java | 347 +- .../v1/DeleteWorkflowRequestOrBuilder.java | 31 + .../workflows/v1/GetWorkflowRequest.java | 419 +- .../v1/GetWorkflowRequestOrBuilder.java | 44 +- .../workflows/v1/ListWorkflowsRequest.java | 596 +- .../v1/ListWorkflowsRequestOrBuilder.java | 65 +- .../workflows/v1/ListWorkflowsResponse.java | 588 +- .../v1/ListWorkflowsResponseOrBuilder.java | 63 +- .../cloud/workflows/v1/LocationName.java | 0 .../cloud/workflows/v1/OperationMetadata.java | 633 +- .../v1/OperationMetadataOrBuilder.java | 61 +- .../workflows/v1/UpdateWorkflowRequest.java | 484 +- .../v1/UpdateWorkflowRequestOrBuilder.java | 46 +- .../google/cloud/workflows/v1/Workflow.java | 2570 ++-- .../cloud/workflows/v1/WorkflowName.java | 0 .../cloud/workflows/v1/WorkflowOrBuilder.java | 260 +- .../cloud/workflows/v1/WorkflowsProto.java | 281 + .../google/cloud/workflows/v1/workflows.proto | 0 .../getworkflow/SyncGetWorkflow.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createworkflow/AsyncCreateWorkflow.java | 0 .../AsyncCreateWorkflowLRO.java | 0 .../createworkflow/SyncCreateWorkflow.java | 0 ...ateWorkflowLocationnameWorkflowString.java | 0 ...yncCreateWorkflowStringWorkflowString.java | 0 .../deleteworkflow/AsyncDeleteWorkflow.java | 0 .../AsyncDeleteWorkflowLRO.java | 0 .../deleteworkflow/SyncDeleteWorkflow.java | 0 .../SyncDeleteWorkflowString.java | 0 .../SyncDeleteWorkflowWorkflowname.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../getworkflow/AsyncGetWorkflow.java | 0 .../getworkflow/SyncGetWorkflow.java | 0 .../getworkflow/SyncGetWorkflowString.java | 0 .../SyncGetWorkflowWorkflowname.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../listworkflows/AsyncListWorkflows.java | 0 .../AsyncListWorkflowsPaged.java | 0 .../listworkflows/SyncListWorkflows.java | 0 .../SyncListWorkflowsLocationname.java | 0 .../SyncListWorkflowsString.java | 0 .../updateworkflow/AsyncUpdateWorkflow.java | 0 .../AsyncUpdateWorkflowLRO.java | 0 .../updateworkflow/SyncUpdateWorkflow.java | 0 .../SyncUpdateWorkflowWorkflowFieldmask.java | 0 .../getworkflow/SyncGetWorkflow.java | 0 .../workflows/v1beta/WorkflowsClient.java | 118 +- .../workflows/v1beta/WorkflowsSettings.java | 1 + .../workflows/v1beta/gapic_metadata.json | 0 .../cloud/workflows/v1beta/package-info.java | 0 .../stub/GrpcWorkflowsCallableFactory.java | 0 .../v1beta/stub/GrpcWorkflowsStub.java | 1 + .../HttpJsonWorkflowsCallableFactory.java | 0 .../v1beta/stub/HttpJsonWorkflowsStub.java | 1 + .../workflows/v1beta/stub/WorkflowsStub.java | 0 .../v1beta/stub/WorkflowsStubSettings.java | 6 + .../reflect-config.json | 0 .../cloud/workflows/v1beta/MockWorkflows.java | 0 .../workflows/v1beta/MockWorkflowsImpl.java | 0 .../v1beta/WorkflowsClientHttpJsonTest.java | 0 .../workflows/v1beta/WorkflowsClientTest.java | 0 .../cloud/workflows/v1beta/WorkflowsGrpc.java | 582 +- .../v1beta/CreateWorkflowRequest.java | 567 +- .../CreateWorkflowRequestOrBuilder.java | 64 +- .../v1beta/DeleteWorkflowRequest.java | 350 +- .../DeleteWorkflowRequestOrBuilder.java | 31 + .../workflows/v1beta/GetWorkflowRequest.java | 347 +- .../v1beta/GetWorkflowRequestOrBuilder.java | 31 + .../v1beta/ListWorkflowsRequest.java | 599 +- .../v1beta/ListWorkflowsRequestOrBuilder.java | 65 +- .../v1beta/ListWorkflowsResponse.java | 591 +- .../ListWorkflowsResponseOrBuilder.java | 63 +- .../cloud/workflows/v1beta/LocationName.java | 0 .../workflows/v1beta/OperationMetadata.java | 637 +- .../v1beta/OperationMetadataOrBuilder.java | 61 +- .../v1beta/UpdateWorkflowRequest.java | 487 +- .../UpdateWorkflowRequestOrBuilder.java | 46 +- .../cloud/workflows/v1beta/Workflow.java | 1463 +- .../cloud/workflows/v1beta/WorkflowName.java | 0 .../workflows/v1beta/WorkflowOrBuilder.java | 164 +- .../workflows/v1beta/WorkflowsProto.java | 238 + .../cloud/workflows/v1beta/workflows.proto | 0 .../getworkflow/SyncGetWorkflow.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../createworkflow/AsyncCreateWorkflow.java | 0 .../AsyncCreateWorkflowLRO.java | 0 .../createworkflow/SyncCreateWorkflow.java | 0 ...ateWorkflowLocationnameWorkflowString.java | 0 ...yncCreateWorkflowStringWorkflowString.java | 0 .../deleteworkflow/AsyncDeleteWorkflow.java | 0 .../AsyncDeleteWorkflowLRO.java | 0 .../deleteworkflow/SyncDeleteWorkflow.java | 0 .../SyncDeleteWorkflowString.java | 0 .../SyncDeleteWorkflowWorkflowname.java | 0 .../getworkflow/AsyncGetWorkflow.java | 0 .../getworkflow/SyncGetWorkflow.java | 0 .../getworkflow/SyncGetWorkflowString.java | 0 .../SyncGetWorkflowWorkflowname.java | 0 .../listworkflows/AsyncListWorkflows.java | 0 .../AsyncListWorkflowsPaged.java | 0 .../listworkflows/SyncListWorkflows.java | 0 .../SyncListWorkflowsLocationname.java | 0 .../SyncListWorkflowsString.java | 0 .../updateworkflow/AsyncUpdateWorkflow.java | 0 .../AsyncUpdateWorkflowLRO.java | 0 .../updateworkflow/SyncUpdateWorkflow.java | 0 .../SyncUpdateWorkflowWorkflowFieldmask.java | 0 .../getworkflow/SyncGetWorkflow.java | 0 .../workstations/v1/WorkstationsClient.java | 457 +- .../workstations/v1/WorkstationsSettings.java | 1 + .../cloud/workstations/v1/gapic_metadata.json | 0 .../cloud/workstations/v1/package-info.java | 0 .../stub/GrpcWorkstationsCallableFactory.java | 0 .../v1/stub/GrpcWorkstationsStub.java | 1 + .../HttpJsonWorkstationsCallableFactory.java | 0 .../v1/stub/HttpJsonWorkstationsStub.java | 1 + .../v1/stub/WorkstationsStub.java | 0 .../v1/stub/WorkstationsStubSettings.java | 6 + .../reflect-config.json | 0 .../cloud/workstations/v1/MockIAMPolicy.java | 0 .../workstations/v1/MockIAMPolicyImpl.java | 0 .../cloud/workstations/v1/MockLocations.java | 0 .../workstations/v1/MockLocationsImpl.java | 0 .../workstations/v1/MockWorkstations.java | 0 .../workstations/v1/MockWorkstationsImpl.java | 0 .../v1/WorkstationsClientHttpJsonTest.java | 0 .../v1/WorkstationsClientTest.java | 0 .../workstations/v1/WorkstationsGrpc.java | 1969 +++ .../v1/CreateWorkstationClusterRequest.java | 644 +- ...ateWorkstationClusterRequestOrBuilder.java | 67 +- .../v1/CreateWorkstationConfigRequest.java | 641 +- ...eateWorkstationConfigRequestOrBuilder.java | 67 +- .../v1/CreateWorkstationRequest.java | 599 +- .../v1/CreateWorkstationRequestOrBuilder.java | 67 +- .../v1/DeleteWorkstationClusterRequest.java | 516 +- ...eteWorkstationClusterRequestOrBuilder.java | 50 +- .../v1/DeleteWorkstationConfigRequest.java | 516 +- ...leteWorkstationConfigRequestOrBuilder.java | 50 +- .../v1/DeleteWorkstationRequest.java | 456 +- .../v1/DeleteWorkstationRequestOrBuilder.java | 47 +- .../v1/GenerateAccessTokenRequest.java | 588 +- .../GenerateAccessTokenRequestOrBuilder.java | 51 +- .../v1/GenerateAccessTokenResponse.java | 421 +- .../GenerateAccessTokenResponseOrBuilder.java | 35 +- .../v1/GetWorkstationClusterRequest.java | 360 +- ...GetWorkstationClusterRequestOrBuilder.java | 29 + .../v1/GetWorkstationConfigRequest.java | 360 +- .../GetWorkstationConfigRequestOrBuilder.java | 29 + .../v1/GetWorkstationRequest.java | 350 +- .../v1/GetWorkstationRequestOrBuilder.java | 29 + .../ListUsableWorkstationConfigsRequest.java | 492 +- ...bleWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationConfigsResponse.java | 678 +- ...leWorkstationConfigsResponseOrBuilder.java | 60 +- .../v1/ListUsableWorkstationsRequest.java | 473 +- ...istUsableWorkstationsRequestOrBuilder.java | 47 +- .../v1/ListUsableWorkstationsResponse.java | 614 +- ...stUsableWorkstationsResponseOrBuilder.java | 63 +- .../v1/ListWorkstationClustersRequest.java | 479 +- ...stWorkstationClustersRequestOrBuilder.java | 47 +- .../v1/ListWorkstationClustersResponse.java | 697 +- ...tWorkstationClustersResponseOrBuilder.java | 75 +- .../v1/ListWorkstationConfigsRequest.java | 473 +- ...istWorkstationConfigsRequestOrBuilder.java | 47 +- .../v1/ListWorkstationConfigsResponse.java | 665 +- ...stWorkstationConfigsResponseOrBuilder.java | 60 +- .../v1/ListWorkstationsRequest.java | 453 +- .../v1/ListWorkstationsRequestOrBuilder.java | 47 +- .../v1/ListWorkstationsResponse.java | 588 +- .../v1/ListWorkstationsResponseOrBuilder.java | 63 +- .../cloud/workstations/v1/LocationName.java | 0 .../workstations/v1/OperationMetadata.java | 824 +- .../v1/OperationMetadataOrBuilder.java | 91 +- .../v1/StartWorkstationRequest.java | 456 +- .../v1/StartWorkstationRequestOrBuilder.java | 47 +- .../v1/StopWorkstationRequest.java | 456 +- .../v1/StopWorkstationRequestOrBuilder.java | 47 +- .../v1/UpdateWorkstationClusterRequest.java | 634 +- ...ateWorkstationClusterRequestOrBuilder.java | 61 +- .../v1/UpdateWorkstationConfigRequest.java | 631 +- ...dateWorkstationConfigRequestOrBuilder.java | 61 +- .../v1/UpdateWorkstationRequest.java | 589 +- .../v1/UpdateWorkstationRequestOrBuilder.java | 61 +- .../cloud/workstations/v1/Workstation.java | 1842 +-- .../workstations/v1/WorkstationCluster.java | 2866 ++-- .../v1/WorkstationClusterName.java | 0 .../v1/WorkstationClusterOrBuilder.java | 273 +- .../workstations/v1/WorkstationConfig.java | 9512 +++++------- .../v1/WorkstationConfigName.java | 0 .../v1/WorkstationConfigOrBuilder.java | 432 +- .../workstations/v1/WorkstationName.java | 0 .../workstations/v1/WorkstationOrBuilder.java | 223 +- .../workstations/v1/WorkstationsProto.java | 983 ++ .../cloud/workstations/v1/workstations.proto | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateWorkstation.java | 0 .../AsyncCreateWorkstationLRO.java | 0 .../SyncCreateWorkstation.java | 0 ...ateWorkstationStringWorkstationString.java | 0 ...orkstationconfignameWorkstationString.java | 0 .../AsyncCreateWorkstationCluster.java | 0 .../AsyncCreateWorkstationClusterLRO.java | 0 .../SyncCreateWorkstationCluster.java | 0 ...rLocationnameWorkstationclusterString.java | 0 ...ClusterStringWorkstationclusterString.java | 0 .../AsyncCreateWorkstationConfig.java | 0 .../AsyncCreateWorkstationConfigLRO.java | 0 .../SyncCreateWorkstationConfig.java | 0 ...onConfigStringWorkstationconfigString.java | 0 ...ionclusternameWorkstationconfigString.java | 0 .../AsyncDeleteWorkstation.java | 0 .../AsyncDeleteWorkstationLRO.java | 0 .../SyncDeleteWorkstation.java | 0 .../SyncDeleteWorkstationString.java | 0 .../SyncDeleteWorkstationWorkstationname.java | 0 .../AsyncDeleteWorkstationCluster.java | 0 .../AsyncDeleteWorkstationClusterLRO.java | 0 .../SyncDeleteWorkstationCluster.java | 0 .../SyncDeleteWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncDeleteWorkstationConfig.java | 0 .../AsyncDeleteWorkstationConfigLRO.java | 0 .../SyncDeleteWorkstationConfig.java | 0 .../SyncDeleteWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncGenerateAccessToken.java | 0 .../SyncGenerateAccessToken.java | 0 .../SyncGenerateAccessTokenString.java | 0 ...yncGenerateAccessTokenWorkstationname.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getworkstation/AsyncGetWorkstation.java | 0 .../getworkstation/SyncGetWorkstation.java | 0 .../SyncGetWorkstationString.java | 0 .../SyncGetWorkstationWorkstationname.java | 0 .../AsyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncListUsableWorkstationConfigs.java | 0 ...syncListUsableWorkstationConfigsPaged.java | 0 .../SyncListUsableWorkstationConfigs.java | 0 ...yncListUsableWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListUsableWorkstations.java | 0 .../AsyncListUsableWorkstationsPaged.java | 0 .../SyncListUsableWorkstations.java | 0 .../SyncListUsableWorkstationsString.java | 0 ...ableWorkstationsWorkstationconfigname.java | 0 .../AsyncListWorkstationClusters.java | 0 .../AsyncListWorkstationClustersPaged.java | 0 .../SyncListWorkstationClusters.java | 0 ...ncListWorkstationClustersLocationname.java | 0 .../SyncListWorkstationClustersString.java | 0 .../AsyncListWorkstationConfigs.java | 0 .../AsyncListWorkstationConfigsPaged.java | 0 .../SyncListWorkstationConfigs.java | 0 .../SyncListWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListWorkstations.java | 0 .../AsyncListWorkstationsPaged.java | 0 .../SyncListWorkstations.java | 0 .../SyncListWorkstationsString.java | 0 ...ListWorkstationsWorkstationconfigname.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncStartWorkstation.java | 0 .../AsyncStartWorkstationLRO.java | 0 .../SyncStartWorkstation.java | 0 .../SyncStartWorkstationString.java | 0 .../SyncStartWorkstationWorkstationname.java | 0 .../stopworkstation/AsyncStopWorkstation.java | 0 .../AsyncStopWorkstationLRO.java | 0 .../stopworkstation/SyncStopWorkstation.java | 0 .../SyncStopWorkstationString.java | 0 .../SyncStopWorkstationWorkstationname.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../AsyncUpdateWorkstation.java | 0 .../AsyncUpdateWorkstationLRO.java | 0 .../SyncUpdateWorkstation.java | 0 ...UpdateWorkstationWorkstationFieldmask.java | 0 .../AsyncUpdateWorkstationCluster.java | 0 .../AsyncUpdateWorkstationClusterLRO.java | 0 .../SyncUpdateWorkstationCluster.java | 0 ...ionClusterWorkstationclusterFieldmask.java | 0 .../AsyncUpdateWorkstationConfig.java | 0 .../AsyncUpdateWorkstationConfigLRO.java | 0 .../SyncUpdateWorkstationConfig.java | 0 ...ationConfigWorkstationconfigFieldmask.java | 0 .../SyncGetWorkstationCluster.java | 0 .../v1beta/WorkstationsClient.java | 457 +- .../v1beta/WorkstationsSettings.java | 1 + .../workstations/v1beta/gapic_metadata.json | 0 .../workstations/v1beta/package-info.java | 0 .../stub/GrpcWorkstationsCallableFactory.java | 0 .../v1beta/stub/GrpcWorkstationsStub.java | 1 + .../HttpJsonWorkstationsCallableFactory.java | 0 .../v1beta/stub/HttpJsonWorkstationsStub.java | 1 + .../v1beta/stub/WorkstationsStub.java | 0 .../v1beta/stub/WorkstationsStubSettings.java | 6 + .../reflect-config.json | 0 .../workstations/v1beta/MockIAMPolicy.java | 0 .../v1beta/MockIAMPolicyImpl.java | 0 .../workstations/v1beta/MockLocations.java | 0 .../v1beta/MockLocationsImpl.java | 0 .../workstations/v1beta/MockWorkstations.java | 0 .../v1beta/MockWorkstationsImpl.java | 0 .../WorkstationsClientHttpJsonTest.java | 0 .../v1beta/WorkstationsClientTest.java | 0 .../workstations/v1beta/WorkstationsGrpc.java | 1969 +++ .../CreateWorkstationClusterRequest.java | 656 +- ...ateWorkstationClusterRequestOrBuilder.java | 67 +- .../CreateWorkstationConfigRequest.java | 656 +- ...eateWorkstationConfigRequestOrBuilder.java | 67 +- .../v1beta/CreateWorkstationRequest.java | 610 +- .../CreateWorkstationRequestOrBuilder.java | 67 +- .../DeleteWorkstationClusterRequest.java | 528 +- ...eteWorkstationClusterRequestOrBuilder.java | 50 +- .../DeleteWorkstationConfigRequest.java | 528 +- ...leteWorkstationConfigRequestOrBuilder.java | 50 +- .../v1beta/DeleteWorkstationRequest.java | 466 +- .../DeleteWorkstationRequestOrBuilder.java | 47 +- .../v1beta/GenerateAccessTokenRequest.java | 611 +- .../GenerateAccessTokenRequestOrBuilder.java | 54 +- .../v1beta/GenerateAccessTokenResponse.java | 434 +- .../GenerateAccessTokenResponseOrBuilder.java | 35 +- .../v1beta/GetWorkstationClusterRequest.java | 381 +- ...GetWorkstationClusterRequestOrBuilder.java | 29 + .../v1beta/GetWorkstationConfigRequest.java | 373 +- .../GetWorkstationConfigRequestOrBuilder.java | 29 + .../v1beta/GetWorkstationRequest.java | 350 +- .../GetWorkstationRequestOrBuilder.java | 29 + .../ListUsableWorkstationConfigsRequest.java | 505 +- ...bleWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationConfigsResponse.java | 733 +- ...leWorkstationConfigsResponseOrBuilder.java | 74 +- .../v1beta/ListUsableWorkstationsRequest.java | 488 +- ...istUsableWorkstationsRequestOrBuilder.java | 47 +- .../ListUsableWorkstationsResponse.java | 613 +- ...stUsableWorkstationsResponseOrBuilder.java | 63 +- .../ListWorkstationClustersRequest.java | 491 +- ...stWorkstationClustersRequestOrBuilder.java | 47 +- .../ListWorkstationClustersResponse.java | 725 +- ...tWorkstationClustersResponseOrBuilder.java | 74 +- .../v1beta/ListWorkstationConfigsRequest.java | 488 +- ...istWorkstationConfigsRequestOrBuilder.java | 47 +- .../ListWorkstationConfigsResponse.java | 715 +- ...stWorkstationConfigsResponseOrBuilder.java | 74 +- .../v1beta/ListWorkstationsRequest.java | 463 +- .../ListWorkstationsRequestOrBuilder.java | 47 +- .../v1beta/ListWorkstationsResponse.java | 585 +- .../ListWorkstationsResponseOrBuilder.java | 63 +- .../workstations/v1beta/LocationName.java | 0 .../v1beta/OperationMetadata.java | 827 +- .../v1beta/OperationMetadataOrBuilder.java | 91 +- .../v1beta/StartWorkstationRequest.java | 466 +- .../StartWorkstationRequestOrBuilder.java | 47 +- .../v1beta/StopWorkstationRequest.java | 456 +- .../StopWorkstationRequestOrBuilder.java | 47 +- .../UpdateWorkstationClusterRequest.java | 646 +- ...ateWorkstationClusterRequestOrBuilder.java | 61 +- .../UpdateWorkstationConfigRequest.java | 646 +- ...dateWorkstationConfigRequestOrBuilder.java | 61 +- .../v1beta/UpdateWorkstationRequest.java | 600 +- .../UpdateWorkstationRequestOrBuilder.java | 61 +- .../workstations/v1beta/Workstation.java | 2076 +-- .../v1beta/WorkstationCluster.java | 2877 ++-- .../v1beta/WorkstationClusterName.java | 0 .../v1beta/WorkstationClusterOrBuilder.java | 273 +- .../v1beta/WorkstationConfig.java | 12288 ++++++---------- .../v1beta/WorkstationConfigName.java | 0 .../v1beta/WorkstationConfigOrBuilder.java | 482 +- .../workstations/v1beta/WorkstationName.java | 0 .../v1beta/WorkstationOrBuilder.java | 253 +- .../v1beta/WorkstationsProto.java | 1054 ++ .../workstations/v1beta/workstations.proto | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateWorkstation.java | 0 .../AsyncCreateWorkstationLRO.java | 0 .../SyncCreateWorkstation.java | 0 ...ateWorkstationStringWorkstationString.java | 0 ...orkstationconfignameWorkstationString.java | 0 .../AsyncCreateWorkstationCluster.java | 0 .../AsyncCreateWorkstationClusterLRO.java | 0 .../SyncCreateWorkstationCluster.java | 0 ...rLocationnameWorkstationclusterString.java | 0 ...ClusterStringWorkstationclusterString.java | 0 .../AsyncCreateWorkstationConfig.java | 0 .../AsyncCreateWorkstationConfigLRO.java | 0 .../SyncCreateWorkstationConfig.java | 0 ...onConfigStringWorkstationconfigString.java | 0 ...ionclusternameWorkstationconfigString.java | 0 .../AsyncDeleteWorkstation.java | 0 .../AsyncDeleteWorkstationLRO.java | 0 .../SyncDeleteWorkstation.java | 0 .../SyncDeleteWorkstationString.java | 0 .../SyncDeleteWorkstationWorkstationname.java | 0 .../AsyncDeleteWorkstationCluster.java | 0 .../AsyncDeleteWorkstationClusterLRO.java | 0 .../SyncDeleteWorkstationCluster.java | 0 .../SyncDeleteWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncDeleteWorkstationConfig.java | 0 .../AsyncDeleteWorkstationConfigLRO.java | 0 .../SyncDeleteWorkstationConfig.java | 0 .../SyncDeleteWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncGenerateAccessToken.java | 0 .../SyncGenerateAccessToken.java | 0 .../SyncGenerateAccessTokenString.java | 0 ...yncGenerateAccessTokenWorkstationname.java | 0 .../getiampolicy/AsyncGetIamPolicy.java | 0 .../getiampolicy/SyncGetIamPolicy.java | 0 .../getworkstation/AsyncGetWorkstation.java | 0 .../getworkstation/SyncGetWorkstation.java | 0 .../SyncGetWorkstationString.java | 0 .../SyncGetWorkstationWorkstationname.java | 0 .../AsyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationCluster.java | 0 .../SyncGetWorkstationClusterString.java | 0 ...kstationClusterWorkstationclustername.java | 0 .../AsyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfig.java | 0 .../SyncGetWorkstationConfigString.java | 0 ...orkstationConfigWorkstationconfigname.java | 0 .../AsyncListUsableWorkstationConfigs.java | 0 ...syncListUsableWorkstationConfigsPaged.java | 0 .../SyncListUsableWorkstationConfigs.java | 0 ...yncListUsableWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListUsableWorkstations.java | 0 .../AsyncListUsableWorkstationsPaged.java | 0 .../SyncListUsableWorkstations.java | 0 .../SyncListUsableWorkstationsString.java | 0 ...ableWorkstationsWorkstationconfigname.java | 0 .../AsyncListWorkstationClusters.java | 0 .../AsyncListWorkstationClustersPaged.java | 0 .../SyncListWorkstationClusters.java | 0 ...ncListWorkstationClustersLocationname.java | 0 .../SyncListWorkstationClustersString.java | 0 .../AsyncListWorkstationConfigs.java | 0 .../AsyncListWorkstationConfigsPaged.java | 0 .../SyncListWorkstationConfigs.java | 0 .../SyncListWorkstationConfigsString.java | 0 ...kstationConfigsWorkstationclustername.java | 0 .../AsyncListWorkstations.java | 0 .../AsyncListWorkstationsPaged.java | 0 .../SyncListWorkstations.java | 0 .../SyncListWorkstationsString.java | 0 ...ListWorkstationsWorkstationconfigname.java | 0 .../setiampolicy/AsyncSetIamPolicy.java | 0 .../setiampolicy/SyncSetIamPolicy.java | 0 .../AsyncStartWorkstation.java | 0 .../AsyncStartWorkstationLRO.java | 0 .../SyncStartWorkstation.java | 0 .../SyncStartWorkstationString.java | 0 .../SyncStartWorkstationWorkstationname.java | 0 .../stopworkstation/AsyncStopWorkstation.java | 0 .../AsyncStopWorkstationLRO.java | 0 .../stopworkstation/SyncStopWorkstation.java | 0 .../SyncStopWorkstationString.java | 0 .../SyncStopWorkstationWorkstationname.java | 0 .../AsyncTestIamPermissions.java | 0 .../SyncTestIamPermissions.java | 0 .../AsyncUpdateWorkstation.java | 0 .../AsyncUpdateWorkstationLRO.java | 0 .../SyncUpdateWorkstation.java | 0 ...UpdateWorkstationWorkstationFieldmask.java | 0 .../AsyncUpdateWorkstationCluster.java | 0 .../AsyncUpdateWorkstationClusterLRO.java | 0 .../SyncUpdateWorkstationCluster.java | 0 ...ionClusterWorkstationclusterFieldmask.java | 0 .../AsyncUpdateWorkstationConfig.java | 0 .../AsyncUpdateWorkstationConfigLRO.java | 0 .../SyncUpdateWorkstationConfig.java | 0 ...ationConfigWorkstationconfigFieldmask.java | 0 .../SyncGetWorkstationCluster.java | 0 1151 files changed, 76640 insertions(+), 124205 deletions(-) delete mode 100644 java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java delete mode 100644 java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java delete mode 100644 java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java delete mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java delete mode 100644 java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java delete mode 100644 java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java delete mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java delete mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java delete mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java delete mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java delete mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java delete mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java delete mode 100644 java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java delete mode 100644 java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java delete mode 100644 java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java delete mode 100644 java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java delete mode 100644 java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java delete mode 100644 java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java delete mode 100644 java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java delete mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java (87%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java (100%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java (62%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java (54%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java (72%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java (55%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java (56%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java (54%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java (55%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java (63%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java (56%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java (59%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java (72%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java (73%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java (74%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java (68%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java (82%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java (74%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java (72%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java (77%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java (75%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java (85%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java (55%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java (54%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java (55%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java (78%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java (55%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java (60%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java (59%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java (72%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java (72%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java (88%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java (100%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java (62%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java (59%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java (59%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java (72%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java (80%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java (61%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java (63%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java (61%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java (63%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java (62%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java (59%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java (58%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java (61%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java (66%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java (61%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java (66%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java (78%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java (73%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java (83%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java (61%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java (62%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java (55%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java (51%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java (66%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java (60%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1alpha}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java (88%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java (99%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java (100%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java (61%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java (59%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java (60%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java (71%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java (84%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java (54%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java (63%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java (61%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java (63%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java (66%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java (62%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java (60%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java (59%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java (60%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java (68%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java (61%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java (61%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java (69%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java (66%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java (74%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java (68%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java (77%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java (71%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java (77%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java (84%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java (66%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java (55%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java (61%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java (63%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java (67%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java (55%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java (64%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java (51%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java (60%) create mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java (70%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java (65%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%) rename {java-websecurityscanner => owl-bot-staging/java-websecurityscanner/v1beta}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java (89%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java (99%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java (99%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java (99%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java (100%) create mode 100644 owl-bot-staging/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java (61%) create mode 100644 owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java (60%) create mode 100644 owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java (68%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java (75%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java (67%) create mode 100644 owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequest.java (62%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java (50%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java (71%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java (74%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java (71%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java (70%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java (89%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java (99%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java (99%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java (99%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java (100%) create mode 100644 owl-bot-staging/java-workflow-executions/v1beta/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java (60%) create mode 100644 owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java (59%) create mode 100644 owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java (70%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java (71%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java (67%) create mode 100644 owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequest.java (61%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java (50%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java (65%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java (64%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java (70%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java (70%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java (100%) rename {java-workflow-executions => owl-bot-staging/java-workflow-executions/v1beta}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java (89%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java (50%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java (65%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java (60%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java (62%) create mode 100644 owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java (68%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java (61%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java (71%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java (70%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java (72%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java (71%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java (71%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java (73%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java (64%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java (58%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java (69%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java (76%) create mode 100644 owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java rename {java-workflows => owl-bot-staging/java-workflows/v1}/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetEndpoint.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflowLRO.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/AsyncGetLocation.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/SyncGetLocation.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/AsyncGetWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowWorkflowname.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocations.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocationsPaged.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/SyncListLocations.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflows.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflowsPaged.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflows.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsLocationname.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1}/samples/snippets/generated/com/google/cloud/workflows/v1/workflowssettings/getworkflow/SyncGetWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java (89%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java (99%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java (50%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java (65%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java (60%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java (62%) create mode 100644 owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java (63%) create mode 100644 owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java (71%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java (70%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java (72%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java (71%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java (70%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java (73%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java (63%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java (58%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java (69%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java (78%) create mode 100644 owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/proto-google-cloud-workflows-v1beta/src/main/proto/google/cloud/workflows/v1beta/workflows.proto (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetEndpoint.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/AsyncCreateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/AsyncCreateWorkflowLRO.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/SyncCreateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/AsyncDeleteWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/SyncDeleteWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/SyncDeleteWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/AsyncGetWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/SyncGetWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/SyncGetWorkflowString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/SyncGetWorkflowWorkflowname.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/AsyncListWorkflows.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/AsyncListWorkflowsPaged.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/SyncListWorkflows.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/SyncListWorkflowsLocationname.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/SyncListWorkflowsString.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/AsyncUpdateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/SyncUpdateWorkflow.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java (100%) rename {java-workflows => owl-bot-staging/java-workflows/v1beta}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflowssettings/getworkflow/SyncGetWorkflow.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java (88%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java (100%) create mode 100644 owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java (61%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java (61%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java (53%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java (57%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java (70%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java (73%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java (60%) create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java (60%) create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java (61%) create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java (73%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java (64%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java (70%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java (71%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java (64%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java (73%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java (73%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java (70%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java (74%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java (57%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java (57%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java (74%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java (75%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java (75%) create mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java rename {java-workstations => owl-bot-staging/java-workstations/v1}/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1}/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java (88%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java (99%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java (100%) create mode 100644 owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java (61%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java (61%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java (53%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java (57%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java (70%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java (59%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java (60%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java (63%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java (71%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java (72%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java (67%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java (67%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java (69%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java (54%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java (73%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java (74%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java (70%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java (74%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java (66%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java (57%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java (67%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java (57%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java (62%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java (63%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java (65%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java (68%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java (74%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java (67%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java (73%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java (75%) create mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java (100%) rename {java-workstations => owl-bot-staging/java-workstations/v1beta}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%) diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java deleted file mode 100644 index 2039e6ad9e97..000000000000 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1844 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 java.lang.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 interface AsyncService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default void deleteScanConfig( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void startScanRun( - com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listCrawledUrls( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCrawledUrlsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a Finding.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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); - } - } - - /** - * Base class for the server implementation of the service WebSecurityScanner. - * - *
-   * 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, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return WebSecurityScannerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. - * - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty>(service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>(service, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( - service, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( - service, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - - 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 java.lang.String methodName; - - WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java deleted file mode 100644 index a1c3863a95b5..000000000000 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1865 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 java.lang.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 interface AsyncService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default void deleteScanConfig( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void startScanRun( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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); - } - } - - /** - * Base class for the server implementation of the service WebSecurityScanner. - * - *
-   * 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, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return WebSecurityScannerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. - * - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty>(service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( - service, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( - service, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - - 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 java.lang.String methodName; - - WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java deleted file mode 100644 index 95d2e71ddfcf..000000000000 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1859 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 java.lang.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 interface AsyncService { - - /** - * - * - *
-     * Creates a new ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default void deleteScanConfig( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteScanConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void startScanRun( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartScanRunMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a ScanRun.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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); - } - } - - /** - * Base class for the server implementation of the service WebSecurityScanner. - * - *
-   * 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, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return WebSecurityScannerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. - * - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. - * - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty>(service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( - service, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( - service, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - - 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 java.lang.String methodName; - - WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java deleted file mode 100644 index 2a3c4dbfe401..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\205\002\n&com" - + ".google.cloud.websecurityscanner.v1B\017Cra" - + "wledUrlProtoP\001ZVcloud.google.com/go/webs" - + "ecurityscanner/apiv1/websecurityscannerp" - + "b;websecurityscannerpb\252\002\"Google.Cloud.We" - + "bSecurityScanner.V1\312\002\"Google\\Cloud\\WebSe" - + "curityScanner\\V1\352\002%Google::Cloud::WebSec" - + "urityScanner::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java deleted file mode 100644 index d8faf4672ab8..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Xxe_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\017\"\251" - + "\001\n\003Xxe\022\025\n\rpayload_value\030\001 \001(\t\022J\n\020payload" - + "_location\030\002 \001(\01620.google.cloud.websecuri" - + "tyscanner.v1.Xxe.Location\"?\n\010Location\022\030\n" - + "\024LOCATION_UNSPECIFIED\020\000\022\031\n\025COMPLETE_REQU" - + "EST_BODY\020\001B\207\002\n&com.google.cloud.websecur" - + "ityscanner.v1B\021FindingAddonProtoP\001ZVclou" - + "d.google.com/go/websecurityscanner/apiv1" - + "/websecurityscannerpb;websecurityscanner" - + "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" - + "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" - + "oogle::Cloud::WebSecurityScanner::V1b\006pr" - + "oto3" - }; - 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", - }); - internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor, - new java.lang.String[] { - "PayloadValue", "PayloadLocation", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java deleted file mode 100644 index ed4dbd6ad588..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\"\356\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" - + "type\030\002 \001(\t\022L\n\010severity\030\021 \001(\01624.google.cl" - + "oud.websecurityscanner.v1.Finding.Severi" - + "tyB\004\342A\001\003\022\023\n\013http_method\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\020reproduction_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\0226\n\004form\030\020 \001(\0132(.google.cloud.w" - + "ebsecurityscanner.v1.Form\022M\n\020outdated_li" - + "brary\030\013 \001(\01323.google.cloud.websecuritysc" - + "anner.v1.OutdatedLibrary\022Q\n\022violating_re" - + "source\030\014 \001(\01325.google.cloud.websecuritys" - + "canner.v1.ViolatingResource\022Q\n\022vulnerabl" - + "e_headers\030\017 \001(\01325.google.cloud.websecuri" - + "tyscanner.v1.VulnerableHeaders\022W\n\025vulner" - + "able_parameters\030\r \001(\01328.google.cloud.web" - + "securityscanner.v1.VulnerableParameters\022" - + "4\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritys" - + "canner.v1.Xss\022:\n\003xxe\030\022 \001(\0132\'.google.clou" - + "d.websecurityscanner.v1.XxeB\004\342A\001\003\"Q\n\010Sev" - + "erity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITI" - + "CAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\204\001\352" - + "A\200\001\n)websecurityscanner.googleapis.com/F" - + "inding\022Sprojects/{project}/scanConfigs/{" - + "scan_config}/scanRuns/{scan_run}/finding" - + "s/{finding}B\202\002\n&com.google.cloud.websecu" - + "rityscanner.v1B\014FindingProtoP\001ZVcloud.go" - + "ogle.com/go/websecurityscanner/apiv1/web" - + "securityscannerpb;websecurityscannerpb\252\002" - + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" - + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" - + "e::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.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", - "Xxe", - }); - 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java deleted file mode 100644 index 3e0ca17081b5..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\213\002\n&com.google.cloud.websecurityscann" - + "er.v1B\025FindingTypeStatsProtoP\001ZVcloud.go" - + "ogle.com/go/websecurityscanner/apiv1/web" - + "securityscannerpb;websecurityscannerpb\252\002" - + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" - + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" - + "e::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java deleted file mode 100644 index a2bfc0d7e822..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\212\002\n&com.google.cloud.websec" - + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" - + "Vcloud.google.com/go/websecurityscanner/" - + "apiv1/websecurityscannerpb;websecuritysc" - + "annerpb\252\002\"Google.Cloud.WebSecurityScanne" - + "r.V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V" - + "1\352\002%Google::Cloud::WebSecurityScanner::V" - + "1b\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java deleted file mode 100644 index afa75420ffb2..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\"\305\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" - + "\022!\n\031ignore_http_status_errors\030\017 \001(\010\032\330\005\n\016" - + "Authentication\022i\n\016google_account\030\001 \001(\0132K" - + ".google.cloud.websecurityscanner.v1.Scan" - + "Config.Authentication.GoogleAccountB\002\030\001H" - + "\000\022e\n\016custom_account\030\002 \001(\0132K.google.cloud" - + ".websecurityscanner.v1.ScanConfig.Authen" - + "tication.CustomAccountH\000\022e\n\016iap_credenti" - + "al\030\004 \001(\0132K.google.cloud.websecurityscann" - + "er.v1.ScanConfig.Authentication.IapCrede" - + "ntialH\000\0327\n\rGoogleAccount\022\020\n\010username\030\001 \001" - + "(\t\022\020\n\010password\030\002 \001(\t:\002\030\001\032F\n\rCustomAccoun" - + "t\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n" - + "\tlogin_url\030\003 \001(\t\032\371\001\n\rIapCredential\022\216\001\n\035i" - + "ap_test_service_account_info\030\001 \001(\0132e.goo" - + "gle.cloud.websecurityscanner.v1.ScanConf" - + "ig.Authentication.IapCredential.IapTestS" - + "erviceAccountInfoH\000\032D\n\031IapTestServiceAcc" - + "ountInfo\022\'\n\031target_audience_client_id\030\001 " - + "\001(\tB\004\342A\001\002B\021\n\017iap_credentialsB\020\n\016authenti" - + "cation\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022\036\n\026interva" - + "l_duration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026US" - + "ER_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\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000" - + "\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurit" - + "yCommandCenter\0221\n-EXPORT_TO_SECURITY_COM" - + "MAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014" - + "\n\010DISABLED\020\002B\205\002\n&com.google.cloud.websec" - + "urityscanner.v1B\017ScanConfigProtoP\001ZVclou" - + "d.google.com/go/websecurityscanner/apiv1" - + "/websecurityscannerpb;websecurityscanner" - + "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" - + "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" - + "oogle::Cloud::WebSecurityScanner::V1b\006pr" - + "oto3" - }; - 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", - "IgnoreHttpStatusErrors", - }); - 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java deleted file mode 100644 index ac502e0dd0fc..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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" - + "\214\002\n&com.google.cloud.websecurityscanner." - + "v1B\026ScanRunErrorTraceProtoP\001ZVcloud.goog" - + "le.com/go/websecurityscanner/apiv1/webse" - + "curityscannerpb;websecurityscannerpb\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.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java deleted file mode 100644 index cead5c71145e..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\205\002\n&com.google.cloud.websecurit" - + "yscanner.v1B\017ScanRunLogProtoP\001ZVcloud.go" - + "ogle.com/go/websecurityscanner/apiv1/web" - + "securityscannerpb;websecurityscannerpb\252\002" - + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" - + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" - + "e::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java deleted file mode 100644 index 3c58248ef391..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\202\002\n&com.google.cloud.websecu" - + "rityscanner.v1B\014ScanRunProtoP\001ZVcloud.go" - + "ogle.com/go/websecurityscanner/apiv1/web" - + "securityscannerpb;websecurityscannerpb\252\002" - + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" - + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" - + "e::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java deleted file mode 100644 index 671db304bb8a..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\"\225\002\n\023ScanRunWarning" - + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" - + "curityscanner.v1.ScanRunWarningTrace.Cod" - + "e\"\261\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\004\022*\n&NO_STARTING_URL_FOU" - + "ND_FOR_MANAGED_SCAN\020\005B\216\002\n&com.google.clo" - + "ud.websecurityscanner.v1B\030ScanRunWarning" - + "TraceProtoP\001ZVcloud.google.com/go/websec" - + "urityscanner/apiv1/websecurityscannerpb;" - + "websecurityscannerpb\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_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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java deleted file mode 100644 index b4e1a034c376..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java +++ /dev/null @@ -1,408 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\032\027google/api/client.proto\0324goog" - + "le/cloud/websecurityscanner/v1/crawled_u" - + "rl.proto\0320google/cloud/websecurityscanne" - + "r/v1/finding.proto\032;google/cloud/websecu" - + "rityscanner/v1/finding_type_stats.proto\032" - + "4google/cloud/websecurityscanner/v1/scan" - + "_config.proto\0321google/cloud/websecuritys" - + "canner/v1/scan_run.proto\032\033google/protobu" - + "f/empty.proto\032 google/protobuf/field_mas" - + "k.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index d96679824d8c..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java deleted file mode 100644 index 7af71f6f8860..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\237\001\n+com.goo" - + "gle.cloud.websecurityscanner.v1alphaB\021Fi" - + "ndingAddonProtoP\001Z[cloud.google.com/go/w" - + "ebsecurityscanner/apiv1alpha/websecurity" - + "scannerpb;websecurityscannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java deleted file mode 100644 index 14e39988b3d6..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\232\001\n" - + "+com.google.cloud.websecurityscanner.v1a" - + "lphaB\014FindingProtoP\001Z[cloud.google.com/g" - + "o/websecurityscanner/apiv1alpha/websecur" - + "ityscannerpb;websecurityscannerpbb\006proto" - + "3" - }; - 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java deleted file mode 100644 index eaf57c402b4d..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\243\001\n+com.google.cloud.websecuri" - + "tyscanner.v1alphaB\025FindingTypeStatsProto" - + "P\001Z[cloud.google.com/go/websecurityscann" - + "er/apiv1alpha/websecurityscannerpb;webse" - + "curityscannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java deleted file mode 100644 index 774d3d7d050b..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 99eb3d66330f..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java deleted file mode 100644 index 39b270f720d4..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index b4c4836c9a48..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java deleted file mode 100644 index 985942743636..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java deleted file mode 100644 index 1c6e9b06d4d4..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\"\265\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032" - + "\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 " - + "\001(\005\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Z\n\016auth" - + "entication\030\005 \001(\0132B.google.cloud.websecur" - + "ityscanner.v1alpha.ScanConfig.Authentica" - + "tion\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud." - + "websecurityscanner.v1alpha.ScanConfig.Us" - + "erAgent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010s" - + "chedule\030\010 \001(\0132<.google.cloud.websecurity" - + "scanner.v1alpha.ScanConfig.Schedule\022\\\n\020t" - + "arget_platforms\030\t \003(\0162B.google.cloud.web" - + "securityscanner.v1alpha.ScanConfig.Targe" - + "tPlatform\022D\n\nlatest_run\030\013 \001(\01320.google.c" - + "loud.websecurityscanner.v1alpha.ScanRun\032" - + "\227\003\n\016Authentication\022j\n\016google_account\030\001 \001" - + "(\0132P.google.cloud.websecurityscanner.v1a" - + "lpha.ScanConfig.Authentication.GoogleAcc" - + "ountH\000\022j\n\016custom_account\030\002 \001(\0132P.google." - + "cloud.websecurityscanner.v1alpha.ScanCon" - + "fig.Authentication.CustomAccountH\000\032@\n\rGo" - + "ogleAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010p" - + "assword\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n" - + "\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB" - + "\005\342A\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authe" - + "ntication\032c\n\010Schedule\0221\n\rschedule_time\030\001" - + " \001(\0132\032.google.protobuf.Timestamp\022$\n\026inte" - + "rval_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAg" - + "ent\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROM" - + "E_LINUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_" - + "IPHONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLA" - + "TFORM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007C" - + "OMPUTE\020\002:_\352A\\\n,websecurityscanner.google" - + "apis.com/ScanConfig\022,projects/{project}/" - + "scanConfigs/{scan_config}B\235\001\n+com.google" - + ".cloud.websecurityscanner.v1alphaB\017ScanC" - + "onfigProtoP\001Z[cloud.google.com/go/websec" - + "urityscanner/apiv1alpha/websecurityscann" - + "erpb;websecurityscannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java deleted file mode 100644 index b12bbb1d3e83..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\232\001\n+com.google.cloud.websecurity" - + "scanner.v1alphaB\014ScanRunProtoP\001Z[cloud.g" - + "oogle.com/go/websecurityscanner/apiv1alp" - + "ha/websecurityscannerpb;websecurityscann" - + "erpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java deleted file mode 100644 index 7e0abd0d6ece..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java deleted file mode 100644 index 5a1968bc28bb..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java deleted file mode 100644 index a9665e5cf041..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java +++ /dev/null @@ -1,441 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\"\257\001\n\027CreateScanCon" - + "figRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+clo" - + "udresourcemanager.googleapis.com/Project" - + "\022N\n\013scan_config\030\002 \001(\01323.google.cloud.web" - + "securityscanner.v1alpha.ScanConfigB\004\342A\001\002" - + "\"^\n\027DeleteScanConfigRequest\022C\n\004name\030\001 \001(" - + "\tB5\342A\001\002\372A.\n,websecurityscanner.googleapi" - + "s.com/ScanConfig\"[\n\024GetScanConfigRequest" - + "\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscan" - + "ner.googleapis.com/ScanConfig\"\205\001\n\026ListSc" - + "anConfigsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" - + "\003 \001(\005\"\240\001\n\027UpdateScanConfigRequest\022N\n\013sca" - + "n_config\030\002 \001(\01323.google.cloud.websecurit" - + "yscanner.v1alpha.ScanConfigB\004\342A\001\002\0225\n\013upd" - + "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" - + "skB\004\342A\001\002\"}\n\027ListScanConfigsResponse\022I\n\014s" - + "can_configs\030\001 \003(\01323.google.cloud.websecu" - + "rityscanner.v1alpha.ScanConfig\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"Z\n\023StartScanRunRequest\022C" - + "\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanne" - + "r.googleapis.com/ScanConfig\"U\n\021GetScanRu" - + "nRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecu" - + "rityscanner.googleapis.com/ScanRun\"\203\001\n\023L" - + "istScanRunsRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\002" - + "\372A.\n,websecurityscanner.googleapis.com/S" - + "canConfig\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_si" - + "ze\030\003 \001(\005\"t\n\024ListScanRunsResponse\022C\n\tscan" - + "_runs\030\001 \003(\01320.google.cloud.websecuritysc" - + "anner.v1alpha.ScanRun\022\027\n\017next_page_token" - + "\030\002 \001(\t\"V\n\022StopScanRunRequest\022@\n\004name\030\001 \001" - + "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" - + "is.com/ScanRun\"\203\001\n\026ListCrawledUrlsReques" - + "t\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)websecuritys" - + "canner.googleapis.com/ScanRun\022\022\n\npage_to" - + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"}\n\027ListCraw" - + "ledUrlsResponse\022I\n\014crawled_urls\030\001 \003(\01323." - + "google.cloud.websecurityscanner.v1alpha." - + "CrawledUrl\022\027\n\017next_page_token\030\002 \001(\t\"U\n\021G" - + "etFindingRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n" - + ")websecurityscanner.googleapis.com/Findi" - + "ng\"\226\001\n\023ListFindingsRequest\022B\n\006parent\030\001 \001" - + "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" - + "is.com/ScanRun\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\n" - + "page_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024L" - + "istFindingsResponse\022B\n\010findings\030\001 \003(\01320." - + "google.cloud.websecurityscanner.v1alpha." - + "Finding\022\027\n\017next_page_token\030\002 \001(\t\"a\n\033List" - + "FindingTypeStatsRequest\022B\n\006parent\030\001 \001(\tB" - + "2\342A\001\002\372A+\n)websecurityscanner.googleapis." - + "com/ScanRun\"u\n\034ListFindingTypeStatsRespo" - + "nse\022U\n\022finding_type_stats\030\001 \003(\01329.google" - + ".cloud.websecurityscanner.v1alpha.Findin" - + "gTypeStats2\264\026\n\022WebSecurityScanner\022\335\001\n\020Cr" - + "eateScanConfig\022@.google.cloud.websecurit" - + "yscanner.v1alpha.CreateScanConfigRequest" - + "\0323.google.cloud.websecurityscanner.v1alp" - + "ha.ScanConfig\"R\332A\022parent,scan_config\202\323\344\223" - + "\0027\"(/v1alpha/{parent=projects/*}/scanCon" - + "figs:\013scan_config\022\245\001\n\020DeleteScanConfig\022@" - + ".google.cloud.websecurityscanner.v1alpha" - + ".DeleteScanConfigRequest\032\026.google.protob" - + "uf.Empty\"7\332A\004name\202\323\344\223\002**(/v1alpha/{name=" - + "projects/*/scanConfigs/*}\022\274\001\n\rGetScanCon" - + "fig\022=.google.cloud.websecurityscanner.v1" - + "alpha.GetScanConfigRequest\0323.google.clou" - + "d.websecurityscanner.v1alpha.ScanConfig\"" - + "7\332A\004name\202\323\344\223\002*\022(/v1alpha/{name=projects/" - + "*/scanConfigs/*}\022\317\001\n\017ListScanConfigs\022?.g" - + "oogle.cloud.websecurityscanner.v1alpha.L" - + "istScanConfigsRequest\032@.google.cloud.web" - + "securityscanner.v1alpha.ListScanConfigsR" - + "esponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/{pare" - + "nt=projects/*}/scanConfigs\022\356\001\n\020UpdateSca" - + "nConfig\022@.google.cloud.websecurityscanne" - + "r.v1alpha.UpdateScanConfigRequest\0323.goog" - + "le.cloud.websecurityscanner.v1alpha.Scan" - + "Config\"c\332A\027scan_config,update_mask\202\323\344\223\002C" - + "24/v1alpha/{scan_config.name=projects/*/" - + "scanConfigs/*}:\013scan_config\022\300\001\n\014StartSca" - + "nRun\022<.google.cloud.websecurityscanner.v" - + "1alpha.StartScanRunRequest\0320.google.clou" - + "d.websecurityscanner.v1alpha.ScanRun\"@\332A" - + "\004name\202\323\344\223\0023\"./v1alpha/{name=projects/*/s" - + "canConfigs/*}:start:\001*\022\276\001\n\nGetScanRun\022:." - + "google.cloud.websecurityscanner.v1alpha." - + "GetScanRunRequest\0320.google.cloud.websecu" - + "rityscanner.v1alpha.ScanRun\"B\332A\004name\202\323\344\223" - + "\0025\0223/v1alpha/{name=projects/*/scanConfig" - + "s/*/scanRuns/*}\022\321\001\n\014ListScanRuns\022<.googl" - + "e.cloud.websecurityscanner.v1alpha.ListS" - + "canRunsRequest\032=.google.cloud.websecurit" - + "yscanner.v1alpha.ListScanRunsResponse\"D\332" - + "A\006parent\202\323\344\223\0025\0223/v1alpha/{parent=project" - + "s/*/scanConfigs/*}/scanRuns\022\310\001\n\013StopScan" - + "Run\022;.google.cloud.websecurityscanner.v1" - + "alpha.StopScanRunRequest\0320.google.cloud." - + "websecurityscanner.v1alpha.ScanRun\"J\332A\004n" - + "ame\202\323\344\223\002=\"8/v1alpha/{name=projects/*/sca" - + "nConfigs/*/scanRuns/*}:stop:\001*\022\350\001\n\017ListC" - + "rawledUrls\022?.google.cloud.websecuritysca" - + "nner.v1alpha.ListCrawledUrlsRequest\032@.go" - + "ogle.cloud.websecurityscanner.v1alpha.Li" - + "stCrawledUrlsResponse\"R\332A\006parent\202\323\344\223\002C\022A" - + "/v1alpha/{parent=projects/*/scanConfigs/" - + "*/scanRuns/*}/crawledUrls\022\311\001\n\nGetFinding" - + "\022:.google.cloud.websecurityscanner.v1alp" - + "ha.GetFindingRequest\0320.google.cloud.webs" - + "ecurityscanner.v1alpha.Finding\"M\332A\004name\202" - + "\323\344\223\002@\022>/v1alpha/{name=projects/*/scanCon" - + "figs/*/scanRuns/*/findings/*}\022\343\001\n\014ListFi" - + "ndings\022<.google.cloud.websecurityscanner" - + ".v1alpha.ListFindingsRequest\032=.google.cl" - + "oud.websecurityscanner.v1alpha.ListFindi" - + "ngsResponse\"V\332A\rparent,filter\202\323\344\223\002@\022>/v1" - + "alpha/{parent=projects/*/scanConfigs/*/s" - + "canRuns/*}/findings\022\374\001\n\024ListFindingTypeS" - + "tats\022D.google.cloud.websecurityscanner.v" - + "1alpha.ListFindingTypeStatsRequest\032E.goo" - + "gle.cloud.websecurityscanner.v1alpha.Lis" - + "tFindingTypeStatsResponse\"W\332A\006parent\202\323\344\223" - + "\002H\022F/v1alpha/{parent=projects/*/scanConf" - + "igs/*/scanRuns/*}/findingTypeStats\032U\312A!w" - + "ebsecurityscanner.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB\245\001\n+com.google.cloud.websecurityscanne" - + "r.v1alphaB\027WebSecurityScannerProtoP\001Z[cl" - + "oud.google.com/go/websecurityscanner/api" - + "v1alpha/websecurityscannerpb;websecurity" - + "scannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java deleted file mode 100644 index 13e63606f53f..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\231\002\n*com.google.cloud.websecurityscanner" - + ".v1betaB\017CrawledUrlProtoP\001ZZcloud.google" - + ".com/go/websecurityscanner/apiv1beta/web" - + "securityscannerpb;websecurityscannerpb\252\002" - + "&Google.Cloud.WebSecurityScanner.V1Beta\312" - + "\002&Google\\Cloud\\WebSecurityScanner\\V1beta" - + "\352\002)Google::Cloud::WebSecurityScanner::V1" - + "betab\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java deleted file mode 100644 index 030a5e91cab3..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 83b1fbf1bab2..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java deleted file mode 100644 index 5ec9116e471d..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\233\002\n*com.goo" - + "gle.cloud.websecurityscanner.v1betaB\021Fin" - + "dingAddonProtoP\001ZZcloud.google.com/go/we" - + "bsecurityscanner/apiv1beta/websecuritysc" - + "annerpb;websecurityscannerpb\252\002&Google.Cl" - + "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" - + "loud\\WebSecurityScanner\\V1beta\352\002)Google:" - + ":Cloud::WebSecurityScanner::V1betab\006prot" - + "o3" - }; - 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java deleted file mode 100644 index 6d3fba83873b..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\226\002\n*co" - + "m.google.cloud.websecurityscanner.v1beta" - + "B\014FindingProtoP\001ZZcloud.google.com/go/we" - + "bsecurityscanner/apiv1beta/websecuritysc" - + "annerpb;websecurityscannerpb\252\002&Google.Cl" - + "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" - + "loud\\WebSecurityScanner\\V1beta\352\002)Google:" - + ":Cloud::WebSecurityScanner::V1betab\006prot" - + "o3" - }; - 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java deleted file mode 100644 index b403797f9cc3..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\237\002\n*com.google.cloud.websecur" - + "ityscanner.v1betaB\025FindingTypeStatsProto" - + "P\001ZZcloud.google.com/go/websecurityscann" - + "er/apiv1beta/websecurityscannerpb;websec" - + "urityscannerpb\252\002&Google.Cloud.WebSecurit" - + "yScanner.V1Beta\312\002&Google\\Cloud\\WebSecuri" - + "tyScanner\\V1beta\352\002)Google::Cloud::WebSec" - + "urityScanner::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java deleted file mode 100644 index 2d30faad19fc..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 520049fa6bd6..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java deleted file mode 100644 index 0fa63259e3ba..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index 3a4ee57ad30b..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java deleted file mode 100644 index 278135864b32..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\236\002\n*com.google." - + "cloud.websecurityscanner.v1betaB\024ScanCon" - + "figErrorProtoP\001ZZcloud.google.com/go/web" - + "securityscanner/apiv1beta/websecuritysca" - + "nnerpb;websecurityscannerpb\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[] {}); - 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java deleted file mode 100644 index 3acb5437981b..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\"\252\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014d" - + "isplay_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 \001(\005" - + "\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Y\n\016authent" - + "ication\030\005 \001(\0132A.google.cloud.websecurity" - + "scanner.v1beta.ScanConfig.Authentication" - + "\022P\n\nuser_agent\030\006 \001(\0162<.google.cloud.webs" - + "ecurityscanner.v1beta.ScanConfig.UserAge" - + "nt\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedu" - + "le\030\010 \001(\0132;.google.cloud.websecurityscann" - + "er.v1beta.ScanConfig.Schedule\022[\n\020target_" - + "platforms\030\t \003(\0162A.google.cloud.websecuri" - + "tyscanner.v1beta.ScanConfig.TargetPlatfo" - + "rm\022{\n!export_to_security_command_center\030" - + "\n \001(\0162P.google.cloud.websecurityscanner." - + "v1beta.ScanConfig.ExportToSecurityComman" - + "dCenter\022C\n\nlatest_run\030\013 \001(\0132/.google.clo" - + "ud.websecurityscanner.v1beta.ScanRun\022P\n\n" - + "risk_level\030\014 \001(\0162<.google.cloud.websecur" - + "ityscanner.v1beta.ScanConfig.RiskLevel\032\225" - + "\003\n\016Authentication\022i\n\016google_account\030\001 \001(" - + "\0132O.google.cloud.websecurityscanner.v1be" - + "ta.ScanConfig.Authentication.GoogleAccou" - + "ntH\000\022i\n\016custom_account\030\002 \001(\0132O.google.cl" - + "oud.websecurityscanner.v1beta.ScanConfig" - + ".Authentication.CustomAccountH\000\032@\n\rGoogl" - + "eAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010pass" - + "word\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n\010us" - + "ername\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB\005\342A" - + "\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authenti" - + "cation\032c\n\010Schedule\0221\n\rschedule_time\030\001 \001(" - + "\0132\032.google.protobuf.Timestamp\022$\n\026interva" - + "l_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAgent" - + "\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_L" - + "INUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPH" - + "ONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFO" - + "RM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMP" - + "UTE\020\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECI" - + "FIED\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToS" - + "ecurityCommandCenter\0221\n-EXPORT_TO_SECURI" - + "TY_COMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABL" - + "ED\020\001\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscan" - + "ner.googleapis.com/ScanConfig\022,projects/" - + "{project}/scanConfigs/{scan_config}B\231\002\n*" - + "com.google.cloud.websecurityscanner.v1be" - + "taB\017ScanConfigProtoP\001ZZcloud.google.com/" - + "go/websecurityscanner/apiv1beta/websecur" - + "ityscannerpb;websecurityscannerpb\252\002&Goog" - + "le.Cloud.WebSecurityScanner.V1Beta\312\002&Goo" - + "gle\\Cloud\\WebSecurityScanner\\V1beta\352\002)Go" - + "ogle::Cloud::WebSecurityScanner::V1betab" - + "\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.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java deleted file mode 100644 index 512a9b342499..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\240\002\n*com.google.cloud" - + ".websecurityscanner.v1betaB\026ScanRunError" - + "TraceProtoP\001ZZcloud.google.com/go/websec" - + "urityscanner/apiv1beta/websecurityscanne" - + "rpb;websecurityscannerpb\252\002&Google.Cloud." - + "WebSecurityScanner.V1Beta\312\002&Google\\Cloud" - + "\\WebSecurityScanner\\V1beta\352\002)Google::Clo" - + "ud::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java deleted file mode 100644 index 8f41f259efc1..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\226\002\n*com.google." - + "cloud.websecurityscanner.v1betaB\014ScanRun" - + "ProtoP\001ZZcloud.google.com/go/websecurity" - + "scanner/apiv1beta/websecurityscannerpb;w" - + "ebsecurityscannerpb\252\002&Google.Cloud.WebSe" - + "curityScanner.V1Beta\312\002&Google\\Cloud\\WebS" - + "ecurityScanner\\V1beta\352\002)Google::Cloud::W" - + "ebSecurityScanner::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java deleted file mode 100644 index b1040f101993..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\242\002\n*com.go" - + "ogle.cloud.websecurityscanner.v1betaB\030Sc" - + "anRunWarningTraceProtoP\001ZZcloud.google.c" - + "om/go/websecurityscanner/apiv1beta/webse" - + "curityscannerpb;websecurityscannerpb\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_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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java deleted file mode 100644 index 071cfa8bd406..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java deleted file mode 100644 index 205034072c71..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java deleted file mode 100644 index be0ee6845823..000000000000 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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\"\256\001\n\027CreateScanConfigRequ" - + "est\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresou" - + "rcemanager.googleapis.com/Project\022M\n\013sca" - + "n_config\030\002 \001(\01322.google.cloud.websecurit" - + "yscanner.v1beta.ScanConfigB\004\342A\001\002\"^\n\027Dele" - + "teScanConfigRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372" - + "A.\n,websecurityscanner.googleapis.com/Sc" - + "anConfig\"[\n\024GetScanConfigRequest\022C\n\004name" - + "\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanner.goog" - + "leapis.com/ScanConfig\"\205\001\n\026ListScanConfig" - + "sRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloud" - + "resourcemanager.googleapis.com/Project\022\022" - + "\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\237\001" - + "\n\027UpdateScanConfigRequest\022M\n\013scan_config" - + "\030\002 \001(\01322.google.cloud.websecurityscanner" - + ".v1beta.ScanConfigB\004\342A\001\002\0225\n\013update_mask\030" - + "\003 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"" - + "|\n\027ListScanConfigsResponse\022H\n\014scan_confi" - + "gs\030\001 \003(\01322.google.cloud.websecurityscann" - + "er.v1beta.ScanConfig\022\027\n\017next_page_token\030" - + "\002 \001(\t\"Z\n\023StartScanRunRequest\022C\n\004name\030\001 \001" - + "(\tB5\342A\001\002\372A.\n,websecurityscanner.googleap" - + "is.com/ScanConfig\"U\n\021GetScanRunRequest\022@" - + "\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanne" - + "r.googleapis.com/ScanRun\"\203\001\n\023ListScanRun" - + "sRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\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\"s" - + "\n\024ListScanRunsResponse\022B\n\tscan_runs\030\001 \003(" - + "\0132/.google.cloud.websecurityscanner.v1be" - + "ta.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"V\n\022S" - + "topScanRunRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+" - + "\n)websecurityscanner.googleapis.com/Scan" - + "Run\"\203\001\n\026ListCrawledUrlsRequest\022B\n\006parent" - + "\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanner.goog" - + "leapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\"|\n\027ListCrawledUrlsResp" - + "onse\022H\n\014crawled_urls\030\001 \003(\01322.google.clou" - + "d.websecurityscanner.v1beta.CrawledUrl\022\027" - + "\n\017next_page_token\030\002 \001(\t\"U\n\021GetFindingReq" - + "uest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurity" - + "scanner.googleapis.com/Finding\"\226\001\n\023ListF" - + "indingsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n" - + ")websecurityscanner.googleapis.com/ScanR" - + "un\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\npage_token\030\003" - + " \001(\t\022\021\n\tpage_size\030\004 \001(\005\"r\n\024ListFindingsR" - + "esponse\022A\n\010findings\030\001 \003(\0132/.google.cloud" - + ".websecurityscanner.v1beta.Finding\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"a\n\033ListFindingTypeSt" - + "atsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)web" - + "securityscanner.googleapis.com/ScanRun\"t" - + "\n\034ListFindingTypeStatsResponse\022T\n\022findin" - + "g_type_stats\030\001 \003(\01328.google.cloud.websec" - + "urityscanner.v1beta.FindingTypeStats2\216\026\n" - + "\022WebSecurityScanner\022\332\001\n\020CreateScanConfig" - + "\022?.google.cloud.websecurityscanner.v1bet" - + "a.CreateScanConfigRequest\0322.google.cloud" - + ".websecurityscanner.v1beta.ScanConfig\"Q\332" - + "A\022parent,scan_config\202\323\344\223\0026\"\'/v1beta/{par" - + "ent=projects/*}/scanConfigs:\013scan_config" - + "\022\243\001\n\020DeleteScanConfig\022?.google.cloud.web" - + "securityscanner.v1beta.DeleteScanConfigR" - + "equest\032\026.google.protobuf.Empty\"6\332A\004name\202" - + "\323\344\223\002)*\'/v1beta/{name=projects/*/scanConf" - + "igs/*}\022\271\001\n\rGetScanConfig\022<.google.cloud." - + "websecurityscanner.v1beta.GetScanConfigR" - + "equest\0322.google.cloud.websecurityscanner" - + ".v1beta.ScanConfig\"6\332A\004name\202\323\344\223\002)\022\'/v1be" - + "ta/{name=projects/*/scanConfigs/*}\022\314\001\n\017L" - + "istScanConfigs\022>.google.cloud.websecurit" - + "yscanner.v1beta.ListScanConfigsRequest\032?" - + ".google.cloud.websecurityscanner.v1beta." - + "ListScanConfigsResponse\"8\332A\006parent\202\323\344\223\002)" - + "\022\'/v1beta/{parent=projects/*}/scanConfig" - + "s\022\353\001\n\020UpdateScanConfig\022?.google.cloud.we" - + "bsecurityscanner.v1beta.UpdateScanConfig" - + "Request\0322.google.cloud.websecurityscanne" - + "r.v1beta.ScanConfig\"b\332A\027scan_config,upda" - + "te_mask\202\323\344\223\002B23/v1beta/{scan_config.name" - + "=projects/*/scanConfigs/*}:\013scan_config\022" - + "\275\001\n\014StartScanRun\022;.google.cloud.websecur" - + "ityscanner.v1beta.StartScanRunRequest\032/." - + "google.cloud.websecurityscanner.v1beta.S" - + "canRun\"?\332A\004name\202\323\344\223\0022\"-/v1beta/{name=pro" - + "jects/*/scanConfigs/*}:start:\001*\022\273\001\n\nGetS" - + "canRun\0229.google.cloud.websecurityscanner" - + ".v1beta.GetScanRunRequest\032/.google.cloud" - + ".websecurityscanner.v1beta.ScanRun\"A\332A\004n" - + "ame\202\323\344\223\0024\0222/v1beta/{name=projects/*/scan" - + "Configs/*/scanRuns/*}\022\316\001\n\014ListScanRuns\022;" - + ".google.cloud.websecurityscanner.v1beta." - + "ListScanRunsRequest\032<.google.cloud.webse" - + "curityscanner.v1beta.ListScanRunsRespons" - + "e\"C\332A\006parent\202\323\344\223\0024\0222/v1beta/{parent=proj" - + "ects/*/scanConfigs/*}/scanRuns\022\305\001\n\013StopS" - + "canRun\022:.google.cloud.websecurityscanner" - + ".v1beta.StopScanRunRequest\032/.google.clou" - + "d.websecurityscanner.v1beta.ScanRun\"I\332A\004" - + "name\202\323\344\223\002<\"7/v1beta/{name=projects/*/sca" - + "nConfigs/*/scanRuns/*}:stop:\001*\022\345\001\n\017ListC" - + "rawledUrls\022>.google.cloud.websecuritysca" - + "nner.v1beta.ListCrawledUrlsRequest\032?.goo" - + "gle.cloud.websecurityscanner.v1beta.List" - + "CrawledUrlsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v" - + "1beta/{parent=projects/*/scanConfigs/*/s" - + "canRuns/*}/crawledUrls\022\306\001\n\nGetFinding\0229." - + "google.cloud.websecurityscanner.v1beta.G" - + "etFindingRequest\032/.google.cloud.websecur" - + "ityscanner.v1beta.Finding\"L\332A\004name\202\323\344\223\002?" - + "\022=/v1beta/{name=projects/*/scanConfigs/*" - + "/scanRuns/*/findings/*}\022\340\001\n\014ListFindings" - + "\022;.google.cloud.websecurityscanner.v1bet" - + "a.ListFindingsRequest\032<.google.cloud.web" - + "securityscanner.v1beta.ListFindingsRespo" - + "nse\"U\332A\rparent,filter\202\323\344\223\002?\022=/v1beta/{pa" - + "rent=projects/*/scanConfigs/*/scanRuns/*" - + "}/findings\022\371\001\n\024ListFindingTypeStats\022C.go" - + "ogle.cloud.websecurityscanner.v1beta.Lis" - + "tFindingTypeStatsRequest\032D.google.cloud." - + "websecurityscanner.v1beta.ListFindingTyp" - + "eStatsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1beta" - + "/{parent=projects/*/scanConfigs/*/scanRu" - + "ns/*}/findingTypeStats\032U\312A!websecuritysc" - + "anner.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\241\002\n*com.go" - + "ogle.cloud.websecurityscanner.v1betaB\027We" - + "bSecurityScannerProtoP\001ZZcloud.google.co" - + "m/go/websecurityscanner/apiv1beta/websec" - + "urityscannerpb;websecurityscannerpb\252\002&Go" - + "ogle.Cloud.WebSecurityScanner.V1Beta\312\002&G" - + "oogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)" - + "Google::Cloud::WebSecurityScanner::V1bet" - + "ab\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/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java deleted file mode 100644 index 5c8ef538a307..000000000000 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java +++ /dev/null @@ -1,755 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.workflows.executions.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Executions is used to start and manage running instances of
- * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/executions/v1/executions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ExecutionsGrpc { - - private ExecutionsGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.workflows.executions.v1.Executions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1.ListExecutionsResponse> - getListExecutionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExecutions", - requestType = com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, - responseType = com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1.ListExecutionsResponse> - getListExecutionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1.ListExecutionsResponse> - getListExecutionsMethod; - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - ExecutionsGrpc.getListExecutionsMethod = - getListExecutionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.ListExecutionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.ListExecutionsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) - .build(); - } - } - } - return getListExecutionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getCreateExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateExecution", - requestType = com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getCreateExecutionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getCreateExecutionMethod; - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - ExecutionsGrpc.getCreateExecutionMethod = - getCreateExecutionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.CreateExecutionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.Execution - .getDefaultInstance())) - .setSchemaDescriptor( - new ExecutionsMethodDescriptorSupplier("CreateExecution")) - .build(); - } - } - } - return getCreateExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.GetExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getGetExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExecution", - requestType = com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.GetExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getGetExecutionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.GetExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getGetExecutionMethod; - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - ExecutionsGrpc.getGetExecutionMethod = - getGetExecutionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.GetExecutionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.Execution - .getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) - .build(); - } - } - } - return getGetExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getCancelExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelExecution", - requestType = com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getCancelExecutionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution> - getCancelExecutionMethod; - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - ExecutionsGrpc.getCancelExecutionMethod = - getCancelExecutionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.CancelExecutionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.Execution - .getDefaultInstance())) - .setSchemaDescriptor( - new ExecutionsMethodDescriptorSupplier("CancelExecution")) - .build(); - } - } - } - return getCancelExecutionMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ExecutionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - }; - return ExecutionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ExecutionsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - }; - return ExecutionsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ExecutionsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - }; - return ExecutionsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - default void listExecutions( - com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListExecutionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - default void createExecution( - com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateExecutionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - default void getExecution( - com.google.cloud.workflows.executions.v1.GetExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetExecutionMethod(), responseObserver); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - default void cancelExecution( - com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelExecutionMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public abstract static class ExecutionsImplBase implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ExecutionsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsStub extends io.grpc.stub.AbstractAsyncStub { - private ExecutionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public void listExecutions( - com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public void createExecution( - com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - public void getExecution( - com.google.cloud.workflows.executions.v1.GetExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - public void cancelExecution( - com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ExecutionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.cloud.workflows.executions.v1.ListExecutionsResponse listExecutions( - com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExecutionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.cloud.workflows.executions.v1.Execution createExecution( - com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateExecutionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1.Execution getExecution( - com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExecutionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1.Execution cancelExecution( - com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelExecutionMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ExecutionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1.ListExecutionsResponse> - listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1.Execution> - createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1.Execution> - getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1.Execution> - cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EXECUTIONS = 0; - private static final int METHODID_CREATE_EXECUTION = 1; - private static final int METHODID_GET_EXECUTION = 2; - private static final int METHODID_CANCEL_EXECUTION = 3; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_LIST_EXECUTIONS: - serviceImpl.listExecutions( - (com.google.cloud.workflows.executions.v1.ListExecutionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workflows.executions.v1.ListExecutionsResponse>) - responseObserver); - break; - case METHODID_CREATE_EXECUTION: - serviceImpl.createExecution( - (com.google.cloud.workflows.executions.v1.CreateExecutionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_EXECUTION: - serviceImpl.getExecution( - (com.google.cloud.workflows.executions.v1.GetExecutionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CANCEL_EXECUTION: - serviceImpl.cancelExecution( - (com.google.cloud.workflows.executions.v1.CancelExecutionRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListExecutionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1.ListExecutionsResponse>( - service, METHODID_LIST_EXECUTIONS))) - .addMethod( - getCreateExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution>( - service, METHODID_CREATE_EXECUTION))) - .addMethod( - getGetExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.GetExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution>( - service, METHODID_GET_EXECUTION))) - .addMethod( - getCancelExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution>( - service, METHODID_CANCEL_EXECUTION))) - .build(); - } - - private abstract static class ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ExecutionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Executions"); - } - } - - private static final class ExecutionsFileDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier { - ExecutionsFileDescriptorSupplier() {} - } - - private static final class ExecutionsMethodDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) - .addMethod(getListExecutionsMethod()) - .addMethod(getCreateExecutionMethod()) - .addMethod(getGetExecutionMethod()) - .addMethod(getCancelExecutionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java deleted file mode 100644 index 10cbbfc48335..000000000000 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java +++ /dev/null @@ -1,759 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.workflows.executions.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Executions is used to start and manage running instances of
- * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/executions/v1beta/executions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ExecutionsGrpc { - - private ExecutionsGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.workflows.executions.v1beta.Executions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> - getListExecutionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExecutions", - requestType = com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> - getListExecutionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> - getListExecutionsMethod; - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - ExecutionsGrpc.getListExecutionsMethod = - getListExecutionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) - .build(); - } - } - } - return getListExecutionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getCreateExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateExecution", - requestType = com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getCreateExecutionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getCreateExecutionMethod; - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - ExecutionsGrpc.getCreateExecutionMethod = - getCreateExecutionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.Execution - .getDefaultInstance())) - .setSchemaDescriptor( - new ExecutionsMethodDescriptorSupplier("CreateExecution")) - .build(); - } - } - } - return getCreateExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getGetExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExecution", - requestType = com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getGetExecutionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getGetExecutionMethod; - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - ExecutionsGrpc.getGetExecutionMethod = - getGetExecutionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.Execution - .getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) - .build(); - } - } - } - return getGetExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getCancelExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelExecution", - requestType = com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getCancelExecutionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution> - getCancelExecutionMethod; - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - ExecutionsGrpc.getCancelExecutionMethod = - getCancelExecutionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.Execution - .getDefaultInstance())) - .setSchemaDescriptor( - new ExecutionsMethodDescriptorSupplier("CancelExecution")) - .build(); - } - } - } - return getCancelExecutionMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static ExecutionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - }; - return ExecutionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ExecutionsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - }; - return ExecutionsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ExecutionsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - }; - return ExecutionsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - default void listExecutions( - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListExecutionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - default void createExecution( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateExecutionMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - default void getExecution( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetExecutionMethod(), responseObserver); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - default void cancelExecution( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelExecutionMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public abstract static class ExecutionsImplBase implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return ExecutionsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsStub extends io.grpc.stub.AbstractAsyncStub { - private ExecutionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public void listExecutions( - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public void createExecution( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - public void getExecution( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - public void cancelExecution( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ExecutionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse listExecutions( - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExecutionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.Execution createExecution( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateExecutionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.Execution getExecution( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExecutionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.Execution cancelExecution( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelExecutionMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. - * - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ExecutionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> - listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1beta.Execution> - createExecution( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1beta.Execution> - getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.executions.v1beta.Execution> - cancelExecution( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EXECUTIONS = 0; - private static final int METHODID_CREATE_EXECUTION = 1; - private static final int METHODID_GET_EXECUTION = 2; - private static final int METHODID_CANCEL_EXECUTION = 3; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_LIST_EXECUTIONS: - serviceImpl.listExecutions( - (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse>) - responseObserver); - break; - case METHODID_CREATE_EXECUTION: - serviceImpl.createExecution( - (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_EXECUTION: - serviceImpl.getExecution( - (com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CANCEL_EXECUTION: - serviceImpl.cancelExecution( - (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListExecutionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse>( - service, METHODID_LIST_EXECUTIONS))) - .addMethod( - getCreateExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution>( - service, METHODID_CREATE_EXECUTION))) - .addMethod( - getGetExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution>( - service, METHODID_GET_EXECUTION))) - .addMethod( - getCancelExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution>( - service, METHODID_CANCEL_EXECUTION))) - .build(); - } - - private abstract static class ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ExecutionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Executions"); - } - } - - private static final class ExecutionsFileDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier { - ExecutionsFileDescriptorSupplier() {} - } - - private static final class ExecutionsMethodDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) - .addMethod(getListExecutionsMethod()) - .addMethod(getCreateExecutionMethod()) - .addMethod(getGetExecutionMethod()) - .addMethod(getCancelExecutionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java deleted file mode 100644 index d0b57be0ece8..000000000000 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1/executions.proto - -package com.google.cloud.workflows.executions.v1; - -public interface CancelExecutionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CancelExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the execution to be cancelled.
-   * Format:
-   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the execution to be cancelled.
-   * Format:
-   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
-   * 
- * - * - * 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/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java deleted file mode 100644 index 2a4255718aa4..000000000000 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1/executions.proto - -package com.google.cloud.workflows.executions.v1; - -public interface CreateExecutionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CreateExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Execution to be created.
-   * 
- * - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the execution field is set. - */ - boolean hasExecution(); - /** - * - * - *
-   * Required. Execution to be created.
-   * 
- * - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The execution. - */ - com.google.cloud.workflows.executions.v1.Execution getExecution(); - /** - * - * - *
-   * Required. Execution to be created.
-   * 
- * - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder(); -} diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java deleted file mode 100644 index f2de3267e0fa..000000000000 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1/executions.proto - -package com.google.cloud.workflows.executions.v1; - -public final class ExecutionsProto { - private ExecutionsProto() {} - - 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_workflows_executions_v1_Execution_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_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/workflows/executions/v1/e" - + "xecutions.proto\022$google.cloud.workflows." - + "executions.v1\032\034google/api/annotations.pr" - + "oto\032\027google/api/client.proto\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\032\036google/protobuf/duration.proto" - + "\032\037google/protobuf/timestamp.proto\"\307\016\n\tEx" - + "ecution\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0224\n\nstart_tim" - + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" - + "\003\0222\n\010end_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestampB\004\342A\001\003\0221\n\010duration\030\014 \001(\0132\031.google" - + ".protobuf.DurationB\004\342A\001\003\022J\n\005state\030\004 \001(\0162" - + "5.google.cloud.workflows.executions.v1.E" - + "xecution.StateB\004\342A\001\003\022\020\n\010argument\030\005 \001(\t\022\024" - + "\n\006result\030\006 \001(\tB\004\342A\001\003\022J\n\005error\030\007 \001(\01325.go" - + "ogle.cloud.workflows.executions.v1.Execu" - + "tion.ErrorB\004\342A\001\003\022\"\n\024workflow_revision_id" - + "\030\010 \001(\tB\004\342A\001\003\022T\n\016call_log_level\030\t \001(\0162<.g" - + "oogle.cloud.workflows.executions.v1.Exec" - + "ution.CallLogLevel\022L\n\006status\030\n \001(\01326.goo" - + "gle.cloud.workflows.executions.v1.Execut" - + "ion.StatusB\004\342A\001\003\022K\n\006labels\030\013 \003(\0132;.googl" - + "e.cloud.workflows.executions.v1.Executio" - + "n.LabelsEntry\022U\n\013state_error\030\r \001(\0132:.goo" - + "gle.cloud.workflows.executions.v1.Execut" - + "ion.StateErrorB\004\342A\001\003\032\312\001\n\021StackTraceEleme" - + "nt\022\014\n\004step\030\001 \001(\t\022\017\n\007routine\030\002 \001(\t\022\\\n\010pos" - + "ition\030\003 \001(\0132J.google.cloud.workflows.exe" - + "cutions.v1.Execution.StackTraceElement.P" - + "osition\0328\n\010Position\022\014\n\004line\030\001 \001(\003\022\016\n\006col" - + "umn\030\002 \001(\003\022\016\n\006length\030\003 \001(\003\032a\n\nStackTrace\022" - + "S\n\010elements\030\001 \003(\0132A.google.cloud.workflo" - + "ws.executions.v1.Execution.StackTraceEle" - + "ment\032z\n\005Error\022\017\n\007payload\030\001 \001(\t\022\017\n\007contex" - + "t\030\002 \001(\t\022O\n\013stack_trace\030\003 \001(\0132:.google.cl" - + "oud.workflows.executions.v1.Execution.St" - + "ackTrace\032\203\001\n\006Status\022R\n\rcurrent_steps\030\001 \003" - + "(\0132;.google.cloud.workflows.executions.v" - + "1.Execution.Status.Step\032%\n\004Step\022\017\n\007routi" - + "ne\030\001 \001(\t\022\014\n\004step\030\002 \001(\t\032\231\001\n\nStateError\022\017\n" - + "\007details\030\001 \001(\t\022M\n\004type\030\002 \001(\0162?.google.cl" - + "oud.workflows.executions.v1.Execution.St" - + "ateError.Type\"+\n\004Type\022\024\n\020TYPE_UNSPECIFIE" - + "D\020\000\022\r\n\tKMS_ERROR\020\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCCEED" - + "ED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004\022\017\n\013UNAVA" - + "ILABLE\020\005\022\n\n\006QUEUED\020\006\"d\n\014CallLogLevel\022\036\n\032" - + "CALL_LOG_LEVEL_UNSPECIFIED\020\000\022\021\n\rLOG_ALL_" - + "CALLS\020\001\022\023\n\017LOG_ERRORS_ONLY\020\002\022\014\n\010LOG_NONE" - + "\020\003:\206\001\352A\202\001\n+workflowexecutions.googleapis" - + ".com/Execution\022Sprojects/{project}/locat" - + "ions/{location}/workflows/{workflow}/exe" - + "cutions/{execution}\"\361\001\n\025ListExecutionsRe" - + "quest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflow" - + "s.googleapis.com/Workflow\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022G\n\004view\030\004 \001(\01623" - + ".google.cloud.workflows.executions.v1.Ex" - + "ecutionViewB\004\342A\001\001\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022" - + "\026\n\010order_by\030\006 \001(\tB\004\342A\001\001\"v\n\026ListExecution" - + "sResponse\022C\n\nexecutions\030\001 \003(\0132/.google.c" - + "loud.workflows.executions.v1.Execution\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\236\001\n\026CreateExecut" - + "ionRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!wor" - + "kflows.googleapis.com/Workflow\022H\n\texecut" - + "ion\030\002 \001(\0132/.google.cloud.workflows.execu" - + "tions.v1.ExecutionB\004\342A\001\002\"\242\001\n\023GetExecutio" - + "nRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflo" - + "wexecutions.googleapis.com/Execution\022G\n\004" - + "view\030\002 \001(\01623.google.cloud.workflows.exec" - + "utions.v1.ExecutionViewB\004\342A\001\001\"\\\n\026CancelE" - + "xecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+" - + "workflowexecutions.googleapis.com/Execut" - + "ion*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW_U" - + "NSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\303\007\n\nEx" - + "ecutions\022\330\001\n\016ListExecutions\022;.google.clo" - + "ud.workflows.executions.v1.ListExecution" - + "sRequest\032<.google.cloud.workflows.execut" - + "ions.v1.ListExecutionsResponse\"K\332A\006paren" - + "t\202\323\344\223\002<\022:/v1/{parent=projects/*/location" - + "s/*/workflows/*}/executions\022\342\001\n\017CreateEx" - + "ecution\022<.google.cloud.workflows.executi" - + "ons.v1.CreateExecutionRequest\032/.google.c" - + "loud.workflows.executions.v1.Execution\"`" - + "\332A\020parent,execution\202\323\344\223\002G\":/v1/{parent=p" - + "rojects/*/locations/*/workflows/*}/execu" - + "tions:\texecution\022\305\001\n\014GetExecution\0229.goog" - + "le.cloud.workflows.executions.v1.GetExec" - + "utionRequest\032/.google.cloud.workflows.ex" - + "ecutions.v1.Execution\"I\332A\004name\202\323\344\223\002<\022:/v" - + "1/{name=projects/*/locations/*/workflows" - + "/*/executions/*}\022\325\001\n\017CancelExecution\022<.g" - + "oogle.cloud.workflows.executions.v1.Canc" - + "elExecutionRequest\032/.google.cloud.workfl" - + "ows.executions.v1.Execution\"S\332A\004name\202\323\344\223" - + "\002F\"A/v1/{name=projects/*/locations/*/wor" - + "kflows/*/executions/*}:cancel:\001*\032U\312A!wor" - + "kflowexecutions.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\353\001\n(com.google.cloud.workflows.execution" - + "s.v1B\017ExecutionsProtoP\001ZHcloud.google.co" - + "m/go/workflows/executions/apiv1/executio" - + "nspb;executionspb\352Aa\n!workflows.googleap" - + "is.com/Workflow\022 - * Required. Name of the execution to be cancelled. - * Format: - * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution} - * - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the execution to be cancelled.
-   * Format:
-   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
-   * 
- * - * - * 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/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java deleted file mode 100644 index 3350e14c2109..000000000000 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1beta/executions.proto - -package com.google.cloud.workflows.executions.v1beta; - -public interface CreateExecutionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Execution to be created.
-   * 
- * - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the execution field is set. - */ - boolean hasExecution(); - /** - * - * - *
-   * Required. Execution to be created.
-   * 
- * - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The execution. - */ - com.google.cloud.workflows.executions.v1beta.Execution getExecution(); - /** - * - * - *
-   * Required. Execution to be created.
-   * 
- * - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder(); -} diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java deleted file mode 100644 index 3450d699fc2d..000000000000 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1beta/executions.proto - -package com.google.cloud.workflows.executions.v1beta; - -public final class ExecutionsProto { - private ExecutionsProto() {} - - 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_workflows_executions_v1beta_Execution_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_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/workflows/executions/v1be" - + "ta/executions.proto\022(google.cloud.workfl" - + "ows.executions.v1beta\032\034google/api/annota" - + "tions.proto\032\027google/api/client.proto\032\037go" - + "ogle/api/field_behavior.proto\032\031google/ap" - + "i/resource.proto\032\037google/protobuf/timest" - + "amp.proto\"\377\004\n\tExecution\022\022\n\004name\030\001 \001(\tB\004\342" - + "A\001\003\0224\n\nstart_time\030\002 \001(\0132\032.google.protobu" - + "f.TimestampB\004\342A\001\003\0222\n\010end_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\004\342A\001\003\022N\n\005state\030\004" - + " \001(\01629.google.cloud.workflows.executions" - + ".v1beta.Execution.StateB\004\342A\001\003\022\020\n\010argumen" - + "t\030\005 \001(\t\022\024\n\006result\030\006 \001(\tB\004\342A\001\003\022N\n\005error\030\007" - + " \001(\01329.google.cloud.workflows.executions" - + ".v1beta.Execution.ErrorB\004\342A\001\003\022\"\n\024workflo" - + "w_revision_id\030\010 \001(\tB\004\342A\001\003\032)\n\005Error\022\017\n\007pa" - + "yload\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\"T\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCC" - + "EEDED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004:\206\001\352A\202" - + "\001\n+workflowexecutions.googleapis.com/Exe" - + "cution\022Sprojects/{project}/locations/{lo" - + "cation}/workflows/{workflow}/executions/" - + "{execution}\"\307\001\n\025ListExecutionsRequest\022:\n" - + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows.google" - + "apis.com/Workflow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022K\n\004view\030\004 \001(\01627.google." - + "cloud.workflows.executions.v1beta.Execut" - + "ionViewB\004\342A\001\001\"z\n\026ListExecutionsResponse\022" - + "G\n\nexecutions\030\001 \003(\01323.google.cloud.workf" - + "lows.executions.v1beta.Execution\022\027\n\017next" - + "_page_token\030\002 \001(\t\"\242\001\n\026CreateExecutionReq" - + "uest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows" - + ".googleapis.com/Workflow\022L\n\texecution\030\002 " - + "\001(\01323.google.cloud.workflows.executions." - + "v1beta.ExecutionB\004\342A\001\002\"\246\001\n\023GetExecutionR" - + "equest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflowe" - + "xecutions.googleapis.com/Execution\022K\n\004vi" - + "ew\030\002 \001(\01627.google.cloud.workflows.execut" - + "ions.v1beta.ExecutionViewB\004\342A\001\001\"\\\n\026Cance" - + "lExecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-" - + "\n+workflowexecutions.googleapis.com/Exec" - + "ution*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW" - + "_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\363\007\n\n" - + "Executions\022\344\001\n\016ListExecutions\022?.google.c" - + "loud.workflows.executions.v1beta.ListExe" - + "cutionsRequest\032@.google.cloud.workflows." - + "executions.v1beta.ListExecutionsResponse" - + "\"O\332A\006parent\202\323\344\223\002@\022>/v1beta/{parent=proje" - + "cts/*/locations/*/workflows/*}/execution" - + "s\022\356\001\n\017CreateExecution\022@.google.cloud.wor" - + "kflows.executions.v1beta.CreateExecution" - + "Request\0323.google.cloud.workflows.executi" - + "ons.v1beta.Execution\"d\332A\020parent,executio" - + "n\202\323\344\223\002K\">/v1beta/{parent=projects/*/loca" - + "tions/*/workflows/*}/executions:\texecuti" - + "on\022\321\001\n\014GetExecution\022=.google.cloud.workf" - + "lows.executions.v1beta.GetExecutionReque" - + "st\0323.google.cloud.workflows.executions.v" - + "1beta.Execution\"M\332A\004name\202\323\344\223\002@\022>/v1beta/" - + "{name=projects/*/locations/*/workflows/*" - + "/executions/*}\022\341\001\n\017CancelExecution\022@.goo" - + "gle.cloud.workflows.executions.v1beta.Ca" - + "ncelExecutionRequest\0323.google.cloud.work" - + "flows.executions.v1beta.Execution\"W\332A\004na" - + "me\202\323\344\223\002J\"E/v1beta/{name=projects/*/locat" - + "ions/*/workflows/*/executions/*}:cancel:" - + "\001*\032U\312A!workflowexecutions.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud" - + "-platformB\363\001\n,com.google.cloud.workflows" - + ".executions.v1betaB\017ExecutionsProtoP\001ZLc" - + "loud.google.com/go/workflows/executions/" - + "apiv1beta/executionspb;executionspb\352Aa\n!" - + "workflows.googleapis.com/Workflow\022 - * Required. Name of the workflow to be deleted. - * Format: projects/{project}/locations/{location}/workflows/{workflow} - * - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the workflow to be deleted.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * - * 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/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java deleted file mode 100644 index 1586fa132a98..000000000000 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java +++ /dev/null @@ -1,320 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1/workflows.proto - -package com.google.cloud.workflows.v1; - -public final class WorkflowsProto { - private WorkflowsProto() {} - - 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_workflows_v1_Workflow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_OperationMetadata_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/workflows/v1/workflows.pr" - + "oto\022\031google.cloud.workflows.v1\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032#google/longru" - + "nning/operations.proto\032\033google/protobuf/" - + "empty.proto\032 google/protobuf/field_mask." - + "proto\032\037google/protobuf/timestamp.proto\"\351" - + "\t\n\010Workflow\022\014\n\004name\030\001 \001(\t\022\023\n\013description" - + "\030\002 \001(\t\022>\n\005state\030\003 \001(\0162).google.cloud.wor" - + "kflows.v1.Workflow.StateB\004\342A\001\003\022\031\n\013revisi" - + "on_id\030\004 \001(\tB\004\342A\001\003\0225\n\013create_time\030\005 \001(\0132\032" - + ".google.protobuf.TimestampB\004\342A\001\003\0225\n\013upda" - + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\022>\n\024revision_create_time\030\007 \001(\0132\032." - + "google.protobuf.TimestampB\004\342A\001\003\022?\n\006label" - + "s\030\010 \003(\0132/.google.cloud.workflows.v1.Work" - + "flow.LabelsEntry\022\027\n\017service_account\030\t \001(" - + "\t\022\031\n\017source_contents\030\n \001(\tH\000\022C\n\017crypto_k" - + "ey_name\030\013 \001(\tB*\342A\001\001\372A#\n!cloudkms.googlea" - + "pis.com/CryptoKey\022I\n\013state_error\030\014 \001(\0132." - + ".google.cloud.workflows.v1.Workflow.Stat" - + "eErrorB\004\342A\001\003\022N\n\016call_log_level\030\r \001(\01620.g" - + "oogle.cloud.workflows.v1.Workflow.CallLo" - + "gLevelB\004\342A\001\001\022Q\n\ruser_env_vars\030\016 \003(\01324.go" - + "ogle.cloud.workflows.v1.Workflow.UserEnv" - + "VarsEntryB\004\342A\001\001\032\215\001\n\nStateError\022\017\n\007detail" - + "s\030\001 \001(\t\022A\n\004type\030\002 \001(\01623.google.cloud.wor" - + "kflows.v1.Workflow.StateError.Type\"+\n\004Ty" - + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tKMS_ERROR\020\001\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\0322\n\020UserEnvVarsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\";\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\017\n\013UNAVAILABLE\020\002\"" - + "d\n\014CallLogLevel\022\036\n\032CALL_LOG_LEVEL_UNSPEC" - + "IFIED\020\000\022\021\n\rLOG_ALL_CALLS\020\001\022\023\n\017LOG_ERRORS" - + "_ONLY\020\002\022\014\n\010LOG_NONE\020\003:d\352Aa\n!workflows.go" - + "ogleapis.com/Workflow\022\332A\006parent\202\323\344\223\002/\022" - + "-/v1/{parent=projects/*/locations/*}/wor" - + "kflows\022\237\001\n\013GetWorkflow\022-.google.cloud.wo" - + "rkflows.v1.GetWorkflowRequest\032#.google.c" - + "loud.workflows.v1.Workflow\"<\332A\004name\202\323\344\223\002" - + "/\022-/v1/{name=projects/*/locations/*/work" - + "flows/*}\022\340\001\n\016CreateWorkflow\0220.google.clo" - + "ud.workflows.v1.CreateWorkflowRequest\032\035." - + "google.longrunning.Operation\"}\312A\035\n\010Workf" - + "low\022\021OperationMetadata\332A\033parent,workflow" - + ",workflow_id\202\323\344\223\0029\"-/v1/{parent=projects" - + "/*/locations/*}/workflows:\010workflow\022\314\001\n\016" - + "DeleteWorkflow\0220.google.cloud.workflows." - + "v1.DeleteWorkflowRequest\032\035.google.longru" - + "nning.Operation\"i\312A*\n\025google.protobuf.Em" - + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1" - + "/{name=projects/*/locations/*/workflows/" - + "*}\022\342\001\n\016UpdateWorkflow\0220.google.cloud.wor" - + "kflows.v1.UpdateWorkflowRequest\032\035.google" - + ".longrunning.Operation\"\177\312A\035\n\010Workflow\022\021O" - + "perationMetadata\332A\024workflow,update_mask\202" - + "\323\344\223\002B26/v1/{workflow.name=projects/*/loc" - + "ations/*/workflows/*}:\010workflow\032L\312A\030work" - + "flows.googleapis.com\322A.https://www.googl" - + "eapis.com/auth/cloud-platformB\347\001\n\035com.go" - + "ogle.cloud.workflows.v1B\016WorkflowsProtoP" - + "\001Z;cloud.google.com/go/workflows/apiv1/w" - + "orkflowspb;workflowspb\352Av\n!cloudkms.goog" - + "leapis.com/CryptoKey\022Qprojects/{project}" - + "/locations/{location}/keyRings/{keyRing}" - + "/cryptoKeys/{cryptoKey}b\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_workflows_v1_Workflow_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "RevisionId", - "CreateTime", - "UpdateTime", - "RevisionCreateTime", - "Labels", - "ServiceAccount", - "SourceContents", - "CryptoKeyName", - "StateError", - "CallLogLevel", - "UserEnvVars", - "SourceCode", - }); - internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor = - internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor, - new java.lang.String[] { - "Details", "Type", - }); - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor = - internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor = - internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor, - new java.lang.String[] { - "Workflows", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor, - new java.lang.String[] { - "Name", "RevisionId", - }); - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor, - new java.lang.String[] { - "Parent", "Workflow", "WorkflowId", - }); - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor, - new java.lang.String[] { - "Workflow", "UpdateMask", - }); - internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", "EndTime", "Target", "Verb", "ApiVersion", - }); - 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.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java deleted file mode 100644 index 67d6b72b0a86..000000000000 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1beta/workflows.proto - -package com.google.cloud.workflows.v1beta; - -public interface DeleteWorkflowRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.DeleteWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the workflow to be deleted.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the workflow to be deleted.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * - * 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/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java deleted file mode 100644 index e983f7ffdd53..000000000000 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1beta/workflows.proto - -package com.google.cloud.workflows.v1beta; - -public interface GetWorkflowRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.GetWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the workflow which information should be retrieved.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the workflow which information should be retrieved.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * - * 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/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java deleted file mode 100644 index 45359e998b36..000000000000 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1beta/workflows.proto - -package com.google.cloud.workflows.v1beta; - -public final class WorkflowsProto { - private WorkflowsProto() {} - - 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_workflows_v1beta_Workflow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_OperationMetadata_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/workflows/v1beta/workflow" - + "s.proto\022\035google.cloud.workflows.v1beta\032\034" - + "google/api/annotations.proto\032\027google/api" - + "/client.proto\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032#googl" - + "e/longrunning/operations.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\"\203\005\n\010Workflow\022\014\n\004name\030\001" - + " \001(\t\022\023\n\013description\030\002 \001(\t\022B\n\005state\030\003 \001(\016" - + "2-.google.cloud.workflows.v1beta.Workflo" - + "w.StateB\004\342A\001\003\022\031\n\013revision_id\030\004 \001(\tB\004\342A\001\003" - + "\0225\n\013create_time\030\005 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\004\342A\001\003\022>\n\024revisi" - + "on_create_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\022C\n\006labels\030\010 \003(\01323.google." - + "cloud.workflows.v1beta.Workflow.LabelsEn" - + "try\022\027\n\017service_account\030\t \001(\t\022\031\n\017source_c" - + "ontents\030\n \001(\tH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"*\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001:d\352Aa\n!workflo" - + "ws.googleapis.com/Workflow\022 - * Service for interacting with Cloud Workstations. - * - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1/workstations.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkstationsGrpc { - - private WorkstationsGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.workstations.v1.Workstations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1.WorkstationCluster> - getGetWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", - requestType = com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, - responseType = com.google.cloud.workstations.v1.WorkstationCluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1.WorkstationCluster> - getGetWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1.WorkstationCluster> - getGetWorkstationClusterMethod; - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getGetWorkstationClusterMethod = - getGetWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.WorkstationCluster - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) - .build(); - } - } - } - return getGetWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse> - getListWorkstationClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", - requestType = com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse> - getListWorkstationClustersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse> - getListWorkstationClustersMethod; - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) - == null) { - WorkstationsGrpc.getListWorkstationClustersMethod = - getListWorkstationClustersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) - .build(); - } - } - } - return getListWorkstationClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", - requestType = com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod; - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getCreateWorkstationClusterMethod = - getCreateWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) - .build(); - } - } - } - return getCreateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod; - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getUpdateWorkstationClusterMethod = - getUpdateWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) - .build(); - } - } - } - return getUpdateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod; - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getDeleteWorkstationClusterMethod = - getDeleteWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) - .build(); - } - } - } - return getDeleteWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1.WorkstationConfig> - getGetWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", - requestType = com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, - responseType = com.google.cloud.workstations.v1.WorkstationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1.WorkstationConfig> - getGetWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1.WorkstationConfig> - getGetWorkstationConfigMethod; - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getGetWorkstationConfigMethod = - getGetWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.WorkstationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) - .build(); - } - } - } - return getGetWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", - requestType = com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod; - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) - == null) { - WorkstationsGrpc.getListWorkstationConfigsMethod = - getListWorkstationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) - .build(); - } - } - } - return getListWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", - requestType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod; - if ((getListUsableWorkstationConfigsMethod = - WorkstationsGrpc.getListUsableWorkstationConfigsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationConfigsMethod = - WorkstationsGrpc.getListUsableWorkstationConfigsMethod) - == null) { - WorkstationsGrpc.getListUsableWorkstationConfigsMethod = - getListUsableWorkstationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) - .build(); - } - } - } - return getListUsableWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", - requestType = com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod; - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getCreateWorkstationConfigMethod = - getCreateWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) - .build(); - } - } - } - return getCreateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod; - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getUpdateWorkstationConfigMethod = - getUpdateWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) - .build(); - } - } - } - return getUpdateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod; - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getDeleteWorkstationConfigMethod = - getDeleteWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) - .build(); - } - } - } - return getDeleteWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationRequest, - com.google.cloud.workstations.v1.Workstation> - getGetWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", - requestType = com.google.cloud.workstations.v1.GetWorkstationRequest.class, - responseType = com.google.cloud.workstations.v1.Workstation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationRequest, - com.google.cloud.workstations.v1.Workstation> - getGetWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GetWorkstationRequest, - com.google.cloud.workstations.v1.Workstation> - getGetWorkstationMethod; - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - WorkstationsGrpc.getGetWorkstationMethod = - getGetWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.Workstation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstation")) - .build(); - } - } - } - return getGetWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationsRequest, - com.google.cloud.workstations.v1.ListWorkstationsResponse> - getListWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", - requestType = com.google.cloud.workstations.v1.ListWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationsRequest, - com.google.cloud.workstations.v1.ListWorkstationsResponse> - getListWorkstationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListWorkstationsRequest, - com.google.cloud.workstations.v1.ListWorkstationsResponse> - getListWorkstationsMethod; - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - WorkstationsGrpc.getListWorkstationsMethod = - getListWorkstationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstations")) - .build(); - } - } - } - return getListWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", - requestType = com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod; - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) - == null) { - WorkstationsGrpc.getListUsableWorkstationsMethod = - getListUsableWorkstationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) - .build(); - } - } - } - return getListUsableWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", - requestType = com.google.cloud.workstations.v1.CreateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod; - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - WorkstationsGrpc.getCreateWorkstationMethod = - getCreateWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) - .build(); - } - } - } - return getCreateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod; - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationMethod = - getUpdateWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) - .build(); - } - } - } - return getUpdateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod; - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationMethod = - getDeleteWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) - .build(); - } - } - } - return getDeleteWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", - requestType = com.google.cloud.workstations.v1.StartWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod; - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - WorkstationsGrpc.getStartWorkstationMethod = - getStartWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.StartWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("StartWorkstation")) - .build(); - } - } - } - return getStartWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.StopWorkstationRequest, com.google.longrunning.Operation> - getStopWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", - requestType = com.google.cloud.workstations.v1.StopWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.StopWorkstationRequest, com.google.longrunning.Operation> - getStopWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.StopWorkstationRequest, - com.google.longrunning.Operation> - getStopWorkstationMethod; - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - WorkstationsGrpc.getStopWorkstationMethod = - getStopWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.StopWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("StopWorkstation")) - .build(); - } - } - } - return getStopWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", - requestType = com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, - responseType = com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod; - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) - == null) { - WorkstationsGrpc.getGenerateAccessTokenMethod = - getGenerateAccessTokenMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) - .build(); - } - } - } - return getGenerateAccessTokenMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WorkstationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - }; - return WorkstationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkstationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - }; - return WorkstationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WorkstationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - }; - return WorkstationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - default void getWorkstationCluster( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - default void listWorkstationClusters( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListWorkstationClustersResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - default void createWorkstationCluster( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - default void updateWorkstationCluster( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - default void deleteWorkstationCluster( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - default void getWorkstationConfig( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - default void listWorkstationConfigs( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - default void listUsableWorkstationConfigs( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableWorkstationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - default void createWorkstationConfig( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - default void updateWorkstationConfig( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - default void deleteWorkstationConfig( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - default void getWorkstation( - com.google.cloud.workstations.v1.GetWorkstationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - default void listWorkstations( - com.google.cloud.workstations.v1.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - default void listUsableWorkstations( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableWorkstationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - default void createWorkstation( - com.google.cloud.workstations.v1.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - default void updateWorkstation( - com.google.cloud.workstations.v1.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - default void deleteWorkstation( - com.google.cloud.workstations.v1.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - default void startWorkstation( - com.google.cloud.workstations.v1.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - default void stopWorkstation( - com.google.cloud.workstations.v1.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - default void generateAccessToken( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateAccessTokenMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public abstract static class WorkstationsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return WorkstationsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkstationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public void getWorkstationCluster( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public void listWorkstationClusters( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListWorkstationClustersResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public void createWorkstationCluster( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public void updateWorkstationCluster( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public void deleteWorkstationCluster( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public void getWorkstationConfig( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public void listWorkstationConfigs( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public void listUsableWorkstationConfigs( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public void createWorkstationConfig( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public void updateWorkstationConfig( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public void deleteWorkstationConfig( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public void getWorkstation( - com.google.cloud.workstations.v1.GetWorkstationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public void listWorkstations( - com.google.cloud.workstations.v1.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public void listUsableWorkstations( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public void createWorkstation( - com.google.cloud.workstations.v1.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public void updateWorkstation( - com.google.cloud.workstations.v1.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public void deleteWorkstation( - com.google.cloud.workstations.v1.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public void startWorkstation( - com.google.cloud.workstations.v1.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public void stopWorkstation( - com.google.cloud.workstations.v1.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public void generateAccessToken( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkstationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationCluster( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationCluster( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationCluster( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - listUsableWorkstationConfigs( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationConfig( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationConfig( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationConfig( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.cloud.workstations.v1.Workstation getWorkstation( - com.google.cloud.workstations.v1.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations( - com.google.cloud.workstations.v1.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.longrunning.Operation createWorkstation( - com.google.cloud.workstations.v1.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstation( - com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstation( - com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.longrunning.Operation startWorkstation( - com.google.cloud.workstations.v1.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.longrunning.Operation stopWorkstation( - com.google.cloud.workstations.v1.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkstationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.WorkstationCluster> - getWorkstationCluster( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.ListWorkstationClustersResponse> - listWorkstationClusters( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstationCluster( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstationCluster( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstationCluster( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.WorkstationConfig> - getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> - listWorkstationConfigs( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> - listUsableWorkstationConfigs( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstationConfig( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstationConfig( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstationConfig( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.Workstation> - getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.ListWorkstationsResponse> - listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> - listUsableWorkstations( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1.GenerateAccessTokenResponse> - generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; - private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; - private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; - private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; - private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; - private static final int METHODID_GET_WORKSTATION_CONFIG = 5; - private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; - private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; - private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; - private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; - private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; - private static final int METHODID_GET_WORKSTATION = 11; - private static final int METHODID_LIST_WORKSTATIONS = 12; - private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; - private static final int METHODID_CREATE_WORKSTATION = 14; - private static final int METHODID_UPDATE_WORKSTATION = 15; - private static final int METHODID_DELETE_WORKSTATION = 16; - private static final int METHODID_START_WORKSTATION = 17; - private static final int METHODID_STOP_WORKSTATION = 18; - private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: - serviceImpl.getWorkstationCluster( - (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATION_CLUSTERS: - serviceImpl.listWorkstationClusters( - (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListWorkstationClustersResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CLUSTER: - serviceImpl.createWorkstationCluster( - (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CLUSTER: - serviceImpl.updateWorkstationCluster( - (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CLUSTER: - serviceImpl.deleteWorkstationCluster( - (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION_CONFIG: - serviceImpl.getWorkstationConfig( - (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATION_CONFIGS: - serviceImpl.listWorkstationConfigs( - (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>) - responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: - serviceImpl.listUsableWorkstationConfigs( - (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CONFIG: - serviceImpl.createWorkstationConfig( - (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CONFIG: - serviceImpl.updateWorkstationConfig( - (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CONFIG: - serviceImpl.deleteWorkstationConfig( - (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION: - serviceImpl.getWorkstation( - (com.google.cloud.workstations.v1.GetWorkstationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATIONS: - serviceImpl.listWorkstations( - (com.google.cloud.workstations.v1.ListWorkstationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListWorkstationsResponse>) - responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATIONS: - serviceImpl.listUsableWorkstations( - (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION: - serviceImpl.createWorkstation( - (com.google.cloud.workstations.v1.CreateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION: - serviceImpl.updateWorkstation( - (com.google.cloud.workstations.v1.UpdateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION: - serviceImpl.deleteWorkstation( - (com.google.cloud.workstations.v1.DeleteWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_WORKSTATION: - serviceImpl.startWorkstation( - (com.google.cloud.workstations.v1.StartWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_WORKSTATION: - serviceImpl.stopWorkstation( - (com.google.cloud.workstations.v1.StopWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_ACCESS_TOKEN: - serviceImpl.generateAccessToken( - (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1.GenerateAccessTokenResponse>) - 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1.WorkstationCluster>( - service, METHODID_GET_WORKSTATION_CLUSTER))) - .addMethod( - getListWorkstationClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse>( - service, METHODID_LIST_WORKSTATION_CLUSTERS))) - .addMethod( - getCreateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CLUSTER))) - .addMethod( - getUpdateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CLUSTER))) - .addMethod( - getDeleteWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CLUSTER))) - .addMethod( - getGetWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1.WorkstationConfig>( - service, METHODID_GET_WORKSTATION_CONFIG))) - .addMethod( - getListWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>( - service, METHODID_LIST_WORKSTATION_CONFIGS))) - .addMethod( - getListUsableWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>( - service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) - .addMethod( - getCreateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG))) - .addMethod( - getUpdateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG))) - .addMethod( - getDeleteWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG))) - .addMethod( - getGetWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationRequest, - com.google.cloud.workstations.v1.Workstation>( - service, METHODID_GET_WORKSTATION))) - .addMethod( - getListWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationsRequest, - com.google.cloud.workstations.v1.ListWorkstationsResponse>( - service, METHODID_LIST_WORKSTATIONS))) - .addMethod( - getListUsableWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>( - service, METHODID_LIST_USABLE_WORKSTATIONS))) - .addMethod( - getCreateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION))) - .addMethod( - getUpdateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION))) - .addMethod( - getDeleteWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION))) - .addMethod( - getStartWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.StartWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION))) - .addMethod( - getStopWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.StopWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION))) - .addMethod( - getGenerateAccessTokenMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse>( - service, METHODID_GENERATE_ACCESS_TOKEN))) - .build(); - } - - private abstract static class WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkstationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Workstations"); - } - } - - private static final class WorkstationsFileDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier { - WorkstationsFileDescriptorSupplier() {} - } - - private static final class WorkstationsMethodDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) - .addMethod(getGetWorkstationClusterMethod()) - .addMethod(getListWorkstationClustersMethod()) - .addMethod(getCreateWorkstationClusterMethod()) - .addMethod(getUpdateWorkstationClusterMethod()) - .addMethod(getDeleteWorkstationClusterMethod()) - .addMethod(getGetWorkstationConfigMethod()) - .addMethod(getListWorkstationConfigsMethod()) - .addMethod(getListUsableWorkstationConfigsMethod()) - .addMethod(getCreateWorkstationConfigMethod()) - .addMethod(getUpdateWorkstationConfigMethod()) - .addMethod(getDeleteWorkstationConfigMethod()) - .addMethod(getGetWorkstationMethod()) - .addMethod(getListWorkstationsMethod()) - .addMethod(getListUsableWorkstationsMethod()) - .addMethod(getCreateWorkstationMethod()) - .addMethod(getUpdateWorkstationMethod()) - .addMethod(getDeleteWorkstationMethod()) - .addMethod(getStartWorkstationMethod()) - .addMethod(getStopWorkstationMethod()) - .addMethod(getGenerateAccessTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java deleted file mode 100644 index 39395b3fdfa0..000000000000 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java +++ /dev/null @@ -1,2700 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.workstations.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for interacting with Cloud Workstations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1beta/workstations.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkstationsGrpc { - - private WorkstationsGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.workstations.v1beta.Workstations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster> - getGetWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster> - getGetWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster> - getGetWorkstationClusterMethod; - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getGetWorkstationClusterMethod = - getGetWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationCluster - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) - .build(); - } - } - } - return getGetWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - getListWorkstationClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - getListWorkstationClustersMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - getListWorkstationClustersMethod; - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) - == null) { - WorkstationsGrpc.getListWorkstationClustersMethod = - getListWorkstationClustersMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) - .build(); - } - } - } - return getListWorkstationClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation> - getCreateWorkstationClusterMethod; - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getCreateWorkstationClusterMethod = - getCreateWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) - .build(); - } - } - } - return getCreateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation> - getUpdateWorkstationClusterMethod; - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getUpdateWorkstationClusterMethod = - getUpdateWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) - .build(); - } - } - } - return getUpdateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation> - getDeleteWorkstationClusterMethod; - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) - == null) { - WorkstationsGrpc.getDeleteWorkstationClusterMethod = - getDeleteWorkstationClusterMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) - .build(); - } - } - } - return getDeleteWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig> - getGetWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig> - getGetWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig> - getGetWorkstationConfigMethod; - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getGetWorkstationConfigMethod = - getGetWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) - .build(); - } - } - } - return getGetWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - getListWorkstationConfigsMethod; - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) - == null) { - WorkstationsGrpc.getListWorkstationConfigsMethod = - getListWorkstationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) - .build(); - } - } - } - return getListWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - responseType = - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - getListUsableWorkstationConfigsMethod; - if ((getListUsableWorkstationConfigsMethod = - WorkstationsGrpc.getListUsableWorkstationConfigsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationConfigsMethod = - WorkstationsGrpc.getListUsableWorkstationConfigsMethod) - == null) { - WorkstationsGrpc.getListUsableWorkstationConfigsMethod = - getListUsableWorkstationConfigsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta - .ListUsableWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta - .ListUsableWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) - .build(); - } - } - } - return getListUsableWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation> - getCreateWorkstationConfigMethod; - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getCreateWorkstationConfigMethod = - getCreateWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) - .build(); - } - } - } - return getCreateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation> - getUpdateWorkstationConfigMethod; - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getUpdateWorkstationConfigMethod = - getUpdateWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) - .build(); - } - } - } - return getUpdateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation> - getDeleteWorkstationConfigMethod; - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) - == null) { - WorkstationsGrpc.getDeleteWorkstationConfigMethod = - getDeleteWorkstationConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) - .build(); - } - } - } - return getDeleteWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation> - getGetWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - responseType = com.google.cloud.workstations.v1beta.Workstation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation> - getGetWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation> - getGetWorkstationMethod; - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - WorkstationsGrpc.getGetWorkstationMethod = - getGetWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.Workstation - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GetWorkstation")) - .build(); - } - } - } - return getGetWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - getListWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - getListWorkstationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - getListWorkstationsMethod; - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - WorkstationsGrpc.getListWorkstationsMethod = - getListWorkstationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListWorkstations")) - .build(); - } - } - } - return getListWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - getListUsableWorkstationsMethod; - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) - == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) - == null) { - WorkstationsGrpc.getListUsableWorkstationsMethod = - getListUsableWorkstationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) - .build(); - } - } - } - return getListUsableWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation> - getCreateWorkstationMethod; - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - WorkstationsGrpc.getCreateWorkstationMethod = - getCreateWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) - .build(); - } - } - } - return getCreateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation> - getUpdateWorkstationMethod; - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationMethod = - getUpdateWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) - .build(); - } - } - } - return getUpdateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation> - getDeleteWorkstationMethod; - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationMethod = - getDeleteWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) - .build(); - } - } - } - return getDeleteWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", - requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation> - getStartWorkstationMethod; - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - WorkstationsGrpc.getStartWorkstationMethod = - getStartWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StartWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("StartWorkstation")) - .build(); - } - } - } - return getStartWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation> - getStopWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", - requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation> - getStopWorkstationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation> - getStopWorkstationMethod; - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - WorkstationsGrpc.getStopWorkstationMethod = - getStopWorkstationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StopWorkstationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("StopWorkstation")) - .build(); - } - } - } - return getStopWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", - requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - getGenerateAccessTokenMethod; - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) - == null) { - WorkstationsGrpc.getGenerateAccessTokenMethod = - getGenerateAccessTokenMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) - .build(); - } - } - } - return getGenerateAccessTokenMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static WorkstationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - }; - return WorkstationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkstationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - }; - return WorkstationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static WorkstationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - }; - return WorkstationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - default void getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - default void listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationClustersMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - default void createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - default void updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - default void deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationClusterMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - default void getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - default void listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - default void listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableWorkstationConfigsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - default void createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - default void updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - default void deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - default void getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - default void listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkstationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - default void listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUsableWorkstationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - default void createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - default void updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - default void deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - default void startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - default void stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopWorkstationMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - default void generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateAccessTokenMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public abstract static class WorkstationsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return WorkstationsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkstationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public void getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public void listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public void createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public void updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public void deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public void getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public void listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public void listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public void createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public void updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public void deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public void getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public void listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public void listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public void createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public void updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public void deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public void startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public void stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public void generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkstationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.Workstation getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.longrunning.Operation createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.longrunning.Operation startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.longrunning.Operation stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopWorkstationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. - * - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkstationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.WorkstationCluster> - getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> - listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.WorkstationConfig> - getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> - listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> - listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.Workstation> - getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListWorkstationsResponse> - listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> - listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> - generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; - private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; - private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; - private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; - private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; - private static final int METHODID_GET_WORKSTATION_CONFIG = 5; - private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; - private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; - private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; - private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; - private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; - private static final int METHODID_GET_WORKSTATION = 11; - private static final int METHODID_LIST_WORKSTATIONS = 12; - private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; - private static final int METHODID_CREATE_WORKSTATION = 14; - private static final int METHODID_UPDATE_WORKSTATION = 15; - private static final int METHODID_DELETE_WORKSTATION = 16; - private static final int METHODID_START_WORKSTATION = 17; - private static final int METHODID_STOP_WORKSTATION = 18; - private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: - serviceImpl.getWorkstationCluster( - (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATION_CLUSTERS: - serviceImpl.listWorkstationClusters( - (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CLUSTER: - serviceImpl.createWorkstationCluster( - (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CLUSTER: - serviceImpl.updateWorkstationCluster( - (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CLUSTER: - serviceImpl.deleteWorkstationCluster( - (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION_CONFIG: - serviceImpl.getWorkstationConfig( - (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATION_CONFIGS: - serviceImpl.listWorkstationConfigs( - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>) - responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: - serviceImpl.listUsableWorkstationConfigs( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CONFIG: - serviceImpl.createWorkstationConfig( - (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CONFIG: - serviceImpl.updateWorkstationConfig( - (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CONFIG: - serviceImpl.deleteWorkstationConfig( - (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION: - serviceImpl.getWorkstation( - (com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_WORKSTATIONS: - serviceImpl.listWorkstations( - (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListWorkstationsResponse>) - responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATIONS: - serviceImpl.listUsableWorkstations( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>) - responseObserver); - break; - case METHODID_CREATE_WORKSTATION: - serviceImpl.createWorkstation( - (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION: - serviceImpl.updateWorkstation( - (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION: - serviceImpl.deleteWorkstation( - (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_WORKSTATION: - serviceImpl.startWorkstation( - (com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_WORKSTATION: - serviceImpl.stopWorkstation( - (com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_ACCESS_TOKEN: - serviceImpl.generateAccessToken( - (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>) - 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster>( - service, METHODID_GET_WORKSTATION_CLUSTER))) - .addMethod( - getListWorkstationClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( - service, METHODID_LIST_WORKSTATION_CLUSTERS))) - .addMethod( - getCreateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CLUSTER))) - .addMethod( - getUpdateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CLUSTER))) - .addMethod( - getDeleteWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CLUSTER))) - .addMethod( - getGetWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig>( - service, METHODID_GET_WORKSTATION_CONFIG))) - .addMethod( - getListWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( - service, METHODID_LIST_WORKSTATION_CONFIGS))) - .addMethod( - getListUsableWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( - service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) - .addMethod( - getCreateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG))) - .addMethod( - getUpdateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG))) - .addMethod( - getDeleteWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG))) - .addMethod( - getGetWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation>( - service, METHODID_GET_WORKSTATION))) - .addMethod( - getListWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( - service, METHODID_LIST_WORKSTATIONS))) - .addMethod( - getListUsableWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( - service, METHODID_LIST_USABLE_WORKSTATIONS))) - .addMethod( - getCreateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION))) - .addMethod( - getUpdateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION))) - .addMethod( - getDeleteWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION))) - .addMethod( - getStartWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION))) - .addMethod( - getStopWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION))) - .addMethod( - getGenerateAccessTokenMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( - service, METHODID_GENERATE_ACCESS_TOKEN))) - .build(); - } - - private abstract static class WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkstationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Workstations"); - } - } - - private static final class WorkstationsFileDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier { - WorkstationsFileDescriptorSupplier() {} - } - - private static final class WorkstationsMethodDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) - .addMethod(getGetWorkstationClusterMethod()) - .addMethod(getListWorkstationClustersMethod()) - .addMethod(getCreateWorkstationClusterMethod()) - .addMethod(getUpdateWorkstationClusterMethod()) - .addMethod(getDeleteWorkstationClusterMethod()) - .addMethod(getGetWorkstationConfigMethod()) - .addMethod(getListWorkstationConfigsMethod()) - .addMethod(getListUsableWorkstationConfigsMethod()) - .addMethod(getCreateWorkstationConfigMethod()) - .addMethod(getUpdateWorkstationConfigMethod()) - .addMethod(getDeleteWorkstationConfigMethod()) - .addMethod(getGetWorkstationMethod()) - .addMethod(getListWorkstationsMethod()) - .addMethod(getListUsableWorkstationsMethod()) - .addMethod(getCreateWorkstationMethod()) - .addMethod(getUpdateWorkstationMethod()) - .addMethod(getDeleteWorkstationMethod()) - .addMethod(getStartWorkstationMethod()) - .addMethod(getStopWorkstationMethod()) - .addMethod(getGenerateAccessTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java deleted file mode 100644 index a3513ae072d0..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java deleted file mode 100644 index f64b89cccdd0..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java deleted file mode 100644 index cd247916dc8b..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java deleted file mode 100644 index 5a409e39f15f..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java +++ /dev/null @@ -1,1135 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public final class WorkstationsProto { - private WorkstationsProto() {} - - 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_workstations_v1_WorkstationCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_OperationMetadata_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/workstations/v1/workstati" - + "ons.proto\022\034google.cloud.workstations.v1\032" - + "\034google/api/annotations.proto\032\027google/ap" - + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\032#goog" - + "le/longrunning/operations.proto\032\036google/" - + "protobuf/duration.proto\032 google/protobuf" - + "/field_mask.proto\032\037google/protobuf/times" - + "tamp.proto\032\027google/rpc/status.proto\"\232\t\n\022" - + "WorkstationCluster\022\014\n\004name\030\001 \001(\t\022\032\n\014disp" - + "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022" - + "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022\\\n\013annotation" - + "s\030\005 \003(\0132A.google.cloud.workstations.v1.W" - + "orkstationCluster.AnnotationsEntryB\004\342A\001\001" - + "\022R\n\006labels\030\017 \003(\0132<.google.cloud.workstat" - + "ions.v1.WorkstationCluster.LabelsEntryB\004" - + "\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google.proto" - + "buf.TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\013" - + "2\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013de" - + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022\025\n\007network" - + "\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwork\030\013 \001(\tB\004\342A\001\005\022\036" - + "\n\020control_plane_ip\030\020 \001(\tB\004\342A\001\003\022k\n\026privat" - + "e_cluster_config\030\014 \001(\0132E.google.cloud.wo" - + "rkstations.v1.WorkstationCluster.Private" - + "ClusterConfigB\004\342A\001\001\022\026\n\010degraded\030\r \001(\010B\004\342" - + "A\001\003\022,\n\nconditions\030\016 \003(\0132\022.google.rpc.Sta" - + "tusB\004\342A\001\003\032\243\001\n\024PrivateClusterConfig\022%\n\027en" - + "able_private_endpoint\030\001 \001(\010B\004\342A\001\005\022\036\n\020clu" - + "ster_hostname\030\002 \001(\tB\004\342A\001\003\022$\n\026service_att" - + "achment_uri\030\003 \001(\tB\004\342A\001\003\022\036\n\020allowed_proje" - + "cts\030\004 \003(\tB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\263\001\352A\257" - + "\001\n.workstations.googleapis.com/Workstati" - + "onCluster\022Qprojects/{project}/locations/" - + "{location}/workstationClusters/{workstat" - + "ion_cluster}*\023workstationClusters2\022works" - + "tationClusterR\001\001\"\342\031\n\021WorkstationConfig\022\014" - + "\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001" - + "\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010" - + "B\004\342A\001\003\022[\n\013annotations\030\005 \003(\0132@.google.clo" - + "ud.workstations.v1.WorkstationConfig.Ann" - + "otationsEntryB\004\342A\001\001\022Q\n\006labels\030\022 \003(\0132;.go" - + "ogle.cloud.workstations.v1.WorkstationCo" - + "nfig.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 " - + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" - + "\013update_time\030\007 \001(\0132\032.google.protobuf.Tim" - + "estampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.goog" - + "le.protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(" - + "\tB\004\342A\001\001\0225\n\014idle_timeout\030\n \001(\0132\031.google.p" - + "rotobuf.DurationB\004\342A\001\001\0228\n\017running_timeou" - + "t\030\013 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" - + "\022H\n\004host\030\014 \001(\01324.google.cloud.workstatio" - + "ns.v1.WorkstationConfig.HostB\004\342A\001\001\022i\n\026pe" - + "rsistent_directories\030\r \003(\0132C.google.clou" - + "d.workstations.v1.WorkstationConfig.Pers" - + "istentDirectoryB\004\342A\001\001\022R\n\tcontainer\030\016 \001(\013" - + "29.google.cloud.workstations.v1.Workstat" - + "ionConfig.ContainerB\004\342A\001\001\022c\n\016encryption_" - + "key\030\021 \001(\0132E.google.cloud.workstations.v1" - + ".WorkstationConfig.CustomerEncryptionKey" - + "B\004\342A\001\005\022^\n\020readiness_checks\030\023 \003(\0132>.googl" - + "e.cloud.workstations.v1.WorkstationConfi" - + "g.ReadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030" - + "\027 \003(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\n" - + "conditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A" - + "\001\003\032\204\007\n\004Host\022X\n\014gce_instance\030\001 \001(\0132@.goog" - + "le.cloud.workstations.v1.WorkstationConf" - + "ig.Host.GceInstanceH\000\032\227\006\n\013GceInstance\022\032\n" - + "\014machine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_acc" - + "ount\030\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scop" - + "es\030\003 \003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpo" - + "ol_size\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030" - + "\014 \001(\005B\004\342A\001\003\022)\n\033disable_public_ip_address" - + "es\030\006 \001(\010B\004\342A\001\001\022*\n\034enable_nested_virtuali" - + "zation\030\007 \001(\010B\004\342A\001\001\022\202\001\n\030shielded_instance" - + "_config\030\010 \001(\0132Z.google.cloud.workstation" - + "s.v1.WorkstationConfig.Host.GceInstance." - + "GceShieldedInstanceConfigB\004\342A\001\001\022\212\001\n\034conf" - + "idential_instance_config\030\n \001(\0132^.google." - + "cloud.workstations.v1.WorkstationConfig." - + "Host.GceInstance.GceConfidentialInstance" - + "ConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001(\005B" - + "\004\342A\001\001\032\203\001\n\031GceShieldedInstanceConfig\022 \n\022e" - + "nable_secure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_" - + "vtpm\030\002 \001(\010B\004\342A\001\001\022)\n\033enable_integrity_mon" - + "itoring\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialIn" - + "stanceConfig\022)\n\033enable_confidential_comp" - + "ute\030\001 \001(\010B\004\342A\001\001B\010\n\006config\032\213\004\n\023Persistent" - + "Directory\022o\n\006gce_pd\030\002 \001(\0132].google.cloud" - + ".workstations.v1.WorkstationConfig.Persi" - + "stentDirectory.GceRegionalPersistentDisk" - + "H\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001\001\032\326\002\n\031GceRegi" - + "onalPersistentDisk\022\025\n\007size_gb\030\001 \001(\005B\004\342A\001" - + "\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n\tdisk_type\030\003 " - + "\001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\005 \001(\tB\004\342A\001\001" - + "\022\211\001\n\016reclaim_policy\030\004 \001(\0162k.google.cloud" - + ".workstations.v1.WorkstationConfig.Persi" - + "stentDirectory.GceRegionalPersistentDisk" - + ".ReclaimPolicyB\004\342A\001\001\"G\n\rReclaimPolicy\022\036\n" - + "\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006DELETE\020" - + "\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\204\002\n\tCont" - + "ainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command\030\002 " - + "\003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022U\n\003env\030\004 \003" - + "(\0132B.google.cloud.workstations.v1.Workst" - + "ationConfig.Container.EnvEntryB\004\342A\001\001\022\031\n\013" - + "working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as_user\030\006" - + " \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\032U\n\025CustomerEncryptionKey\022" - + "\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key_servic" - + "e_account\030\002 \001(\tB\004\342A\001\005\0328\n\016ReadinessCheck\022" - + "\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005B\004\342A\001\001\032" - + "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workstations." - + "googleapis.com/WorkstationConfig\022yprojec" - + "ts/{project}/locations/{location}/workst" - + "ationClusters/{workstation_cluster}/work" - + "stationConfigs/{workstation_config}*\022wor" - + "kstationConfigs2\021workstationConfigR\001\001\"\210\010" - + "\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014display_n" - + "ame\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013re" - + "conciling\030\004 \001(\010B\004\342A\001\003\022U\n\013annotations\030\005 \003" - + "(\0132:.google.cloud.workstations.v1.Workst" - + "ation.AnnotationsEntryB\004\342A\001\001\022K\n\006labels\030\r" - + " \003(\01325.google.cloud.workstations.v1.Work" - + "station.LabelsEntryB\004\342A\001\001\0225\n\013create_time" - + "\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" - + "\0225\n\013update_time\030\007 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\0224\n\nstart_time\030\016 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\004\342A\001\003\0225\n\013delete_" - + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\004" - + "\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022D\n\005state\030\n \001(\0162" - + "/.google.cloud.workstations.v1.Workstati" - + "on.StateB\004\342A\001\003\022\022\n\004host\030\013 \001(\tB\004\342A\001\003\0322\n\020An" - + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\022\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNI" - + "NG\020\002\022\022\n\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPE" - + "D\020\004:\342\001\352A\336\001\n\'workstations.googleapis.com/" - + "Workstation\022\224\001projects/{project}/locatio" - + "ns/{location}/workstationClusters/{works" - + "tation_cluster}/workstationConfigs/{work" - + "station_config}/workstations/{workstatio" - + "n}*\014workstations2\013workstationR\001\001\"e\n\034GetW" - + "orkstationClusterRequest\022E\n\004name\030\001 \001(\tB7" - + "\342A\001\002\372A0\n.workstations.googleapis.com/Wor" - + "kstationCluster\"\234\001\n\036ListWorkstationClust" - + "ersRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.wor" - + "kstations.googleapis.com/WorkstationClus" - + "ter\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" - + "en\030\003 \001(\tB\004\342A\001\001\"\237\001\n\037ListWorkstationCluste" - + "rsResponse\022N\n\024workstation_clusters\030\001 \003(\013" - + "20.google.cloud.workstations.v1.Workstat" - + "ionCluster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" - + "nreachable\030\003 \003(\t\"\202\002\n\037CreateWorkstationCl" - + "usterRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.w" - + "orkstations.googleapis.com/WorkstationCl" - + "uster\022$\n\026workstation_cluster_id\030\002 \001(\tB\004\342" - + "A\001\002\022S\n\023workstation_cluster\030\003 \001(\01320.googl" - + "e.cloud.workstations.v1.WorkstationClust" - + "erB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001\001\"\347\001" - + "\n\037UpdateWorkstationClusterRequest\022S\n\023wor" - + "kstation_cluster\030\001 \001(\01320.google.cloud.wo" - + "rkstations.v1.WorkstationClusterB\004\342A\001\002\0225" - + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A" - + "\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037Dele" - + "teWorkstationClusterRequest\022E\n\004name\030\001 \001(" - + "\tB7\342A\001\002\372A0\n.workstations.googleapis.com/" - + "WorkstationCluster\022\033\n\rvalidate_only\030\002 \001(" - + "\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001" - + "(\010B\004\342A\001\001\"c\n\033GetWorkstationConfigRequest\022" - + "D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goo" - + "gleapis.com/WorkstationConfig\"\233\001\n\035ListWo" - + "rkstationConfigsRequest\022G\n\006parent\030\001 \001(\tB" - + "7\342A\001\002\372A0\n.workstations.googleapis.com/Wo" - + "rkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" - + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\234\001\n\036ListWork" - + "stationConfigsResponse\022L\n\023workstation_co" - + "nfigs\030\001 \003(\0132/.google.cloud.workstations." - + "v1.WorkstationConfig\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsabl" - + "eWorkstationConfigsRequest\022G\n\006parent\030\001 \001" - + "(\tB7\342A\001\002\372A0\n.workstations.googleapis.com" - + "/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004" - + "\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\242\001\n$ListU" - + "sableWorkstationConfigsResponse\022L\n\023works" - + "tation_configs\030\001 \003(\0132/.google.cloud.work" - + "stations.v1.WorkstationConfig\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\376\001\n\036" - + "CreateWorkstationConfigRequest\022G\n\006parent" - + "\030\001 \001(\tB7\342A\001\002\372A0\n.workstations.googleapis" - + ".com/WorkstationCluster\022#\n\025workstation_c" - + "onfig_id\030\002 \001(\tB\004\342A\001\002\022Q\n\022workstation_conf" - + "ig\030\003 \001(\0132/.google.cloud.workstations.v1." - + "WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_only" - + "\030\004 \001(\010B\004\342A\001\001\"\344\001\n\036UpdateWorkstationConfig" - + "Request\022Q\n\022workstation_config\030\001 \001(\0132/.go" - + "ogle.cloud.workstations.v1.WorkstationCo" - + "nfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_on" - + "ly\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342" - + "A\001\001\"\254\001\n\036DeleteWorkstationConfigRequest\022D" - + "\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog" - + "leapis.com/WorkstationConfig\022\033\n\rvalidate" - + "_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n" - + "\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstationRequ" - + "est\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstations" - + ".googleapis.com/Workstation\"\224\001\n\027ListWork" - + "stationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" - + "\n-workstations.googleapis.com/Workstatio" - + "nConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" - + "_token\030\003 \001(\tB\004\342A\001\001\"\225\001\n\030ListWorkstationsR" - + "esponse\022?\n\014workstations\030\001 \003(\0132).google.c" - + "loud.workstations.v1.Workstation\022\035\n\017next" - + "_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unreachable\030\003" - + " \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorkstationsReq" - + "uest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstati" - + "ons.googleapis.com/WorkstationConfig\022\027\n\t" - + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" - + "\tB\004\342A\001\001\"\217\001\n\036ListUsableWorkstationsRespon" - + "se\022?\n\014workstations\030\001 \003(\0132).google.cloud." - + "workstations.v1.Workstation\022\027\n\017next_page" - + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\343\001\n\030Cr" - + "eateWorkstationRequest\022F\n\006parent\030\001 \001(\tB6" - + "\342A\001\002\372A/\n-workstations.googleapis.com/Wor" - + "kstationConfig\022\034\n\016workstation_id\030\002 \001(\tB\004" - + "\342A\001\002\022D\n\013workstation\030\003 \001(\0132).google.cloud" - + ".workstations.v1.WorkstationB\004\342A\001\002\022\033\n\rva" - + "lidate_only\030\004 \001(\010B\004\342A\001\001\"\321\001\n\030UpdateWorkst" - + "ationRequest\022D\n\013workstation\030\001 \001(\0132).goog" - + "le.cloud.workstations.v1.WorkstationB\004\342A" - + "\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" - + "f.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010" - + "B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030" - + "DeleteWorkstationRequest\022>\n\004name\030\001 \001(\tB0" - + "\342A\001\002\372A)\n\'workstations.googleapis.com/Wor" - + "kstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n" - + "\004etag\030\003 \001(\tB\004\342A\001\001\"\212\001\n\027StartWorkstationRe" - + "quest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstatio" - + "ns.googleapis.com/Workstation\022\033\n\rvalidat" - + "e_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211" - + "\001\n\026StopWorkstationRequest\022>\n\004name\030\001 \001(\tB" - + "0\342A\001\002\372A)\n\'workstations.googleapis.com/Wo" - + "rkstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022" - + "\n\004etag\030\003 \001(\tB\004\342A\001\001\"\316\001\n\032GenerateAccessTok" - + "enRequest\0221\n\013expire_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampH\000\022(\n\003ttl\030\003 \001(\0132\031.goog" - + "le.protobuf.DurationH\000\022E\n\013workstation\030\001 " - + "\001(\tB0\342A\001\002\372A)\n\'workstations.googleapis.co" - + "m/WorkstationB\014\n\nexpiration\"d\n\033GenerateA" - + "ccessTokenResponse\022\024\n\014access_token\030\001 \001(\t" - + "\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf." - + "Timestamp\"\207\002\n\021OperationMetadata\0225\n\013creat" - + "e_time\030\001 \001(\0132\032.google.protobuf.Timestamp" - + "B\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003" - + "\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016status_message\030\005" - + " \001(\tB\004\342A\001\003\022$\n\026requested_cancellation\030\006 \001" - + "(\010B\004\342A\001\003\022\031\n\013api_version\030\007 \001(\tB\004\342A\001\0032\233*\n\014" - + "Workstations\022\315\001\n\025GetWorkstationCluster\022:" - + ".google.cloud.workstations.v1.GetWorksta" - + "tionClusterRequest\0320.google.cloud.workst" - + "ations.v1.WorkstationCluster\"F\332A\004name\202\323\344" - + "\223\0029\0227/v1/{name=projects/*/locations/*/wo" - + "rkstationClusters/*}\022\340\001\n\027ListWorkstation" - + "Clusters\022<.google.cloud.workstations.v1." - + "ListWorkstationClustersRequest\032=.google." - + "cloud.workstations.v1.ListWorkstationClu" - + "stersResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{par" - + "ent=projects/*/locations/*}/workstationC" - + "lusters\022\255\002\n\030CreateWorkstationCluster\022=.g" - + "oogle.cloud.workstations.v1.CreateWorkst" - + "ationClusterRequest\032\035.google.longrunning" - + ".Operation\"\262\001\312A\'\n\022WorkstationCluster\022\021Op" - + "erationMetadata\332A1parent,workstation_clu" - + "ster,workstation_cluster_id\202\323\344\223\002N\"7/v1/{" - + "parent=projects/*/locations/*}/workstati" - + "onClusters:\023workstation_cluster\022\257\002\n\030Upda" - + "teWorkstationCluster\022=.google.cloud.work" - + "stations.v1.UpdateWorkstationClusterRequ" - + "est\032\035.google.longrunning.Operation\"\264\001\312A\'" - + "\n\022WorkstationCluster\022\021OperationMetadata\332" - + "A\037workstation_cluster,update_mask\202\323\344\223\002b2" - + "K/v1/{workstation_cluster.name=projects/" - + "*/locations/*/workstationClusters/*}:\023wo" - + "rkstation_cluster\022\352\001\n\030DeleteWorkstationC" - + "luster\022=.google.cloud.workstations.v1.De" - + "leteWorkstationClusterRequest\032\035.google.l" - + "ongrunning.Operation\"p\312A\'\n\022WorkstationCl" - + "uster\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7/" - + "v1/{name=projects/*/locations/*/workstat" - + "ionClusters/*}\022\337\001\n\024GetWorkstationConfig\022" - + "9.google.cloud.workstations.v1.GetWorkst" - + "ationConfigRequest\032/.google.cloud.workst" - + "ations.v1.WorkstationConfig\"[\332A\004name\202\323\344\223" - + "\002N\022L/v1/{name=projects/*/locations/*/wor" - + "kstationClusters/*/workstationConfigs/*}" - + "\022\362\001\n\026ListWorkstationConfigs\022;.google.clo" - + "ud.workstations.v1.ListWorkstationConfig" - + "sRequest\032<.google.cloud.workstations.v1." - + "ListWorkstationConfigsResponse\"]\332A\006paren" - + "t\202\323\344\223\002N\022L/v1/{parent=projects/*/location" - + "s/*/workstationClusters/*}/workstationCo" - + "nfigs\022\217\002\n\034ListUsableWorkstationConfigs\022A" - + ".google.cloud.workstations.v1.ListUsable" - + "WorkstationConfigsRequest\032B.google.cloud" - + ".workstations.v1.ListUsableWorkstationCo" - + "nfigsResponse\"h\332A\006parent\202\323\344\223\002Y\022W/v1/{par" - + "ent=projects/*/locations/*/workstationCl" - + "usters/*}/workstationConfigs:listUsable\022" - + "\274\002\n\027CreateWorkstationConfig\022<.google.clo" - + "ud.workstations.v1.CreateWorkstationConf" - + "igRequest\032\035.google.longrunning.Operation" - + "\"\303\001\312A&\n\021WorkstationConfig\022\021OperationMeta" - + "data\332A/parent,workstation_config,worksta" - + "tion_config_id\202\323\344\223\002b\"L/v1/{parent=projec" - + "ts/*/locations/*/workstationClusters/*}/" - + "workstationConfigs:\022workstation_config\022\276" - + "\002\n\027UpdateWorkstationConfig\022<.google.clou" - + "d.workstations.v1.UpdateWorkstationConfi" - + "gRequest\032\035.google.longrunning.Operation\"" - + "\305\001\312A&\n\021WorkstationConfig\022\021OperationMetad" - + "ata\332A\036workstation_config,update_mask\202\323\344\223" - + "\002u2_/v1/{workstation_config.name=project" - + "s/*/locations/*/workstationClusters/*/wo" - + "rkstationConfigs/*}:\022workstation_config\022" - + "\375\001\n\027DeleteWorkstationConfig\022<.google.clo" - + "ud.workstations.v1.DeleteWorkstationConf" - + "igRequest\032\035.google.longrunning.Operation" - + "\"\204\001\312A&\n\021WorkstationConfig\022\021OperationMeta" - + "data\332A\004name\202\323\344\223\002N*L/v1/{name=projects/*/" - + "locations/*/workstationClusters/*/workst" - + "ationConfigs/*}\022\334\001\n\016GetWorkstation\0223.goo" - + "gle.cloud.workstations.v1.GetWorkstation" - + "Request\032).google.cloud.workstations.v1.W" - + "orkstation\"j\332A\004name\202\323\344\223\002]\022[/v1/{name=pro" - + "jects/*/locations/*/workstationClusters/" - + "*/workstationConfigs/*/workstations/*}\022\357" - + "\001\n\020ListWorkstations\0225.google.cloud.works" - + "tations.v1.ListWorkstationsRequest\0326.goo" - + "gle.cloud.workstations.v1.ListWorkstatio" - + "nsResponse\"l\332A\006parent\202\323\344\223\002]\022[/v1/{parent" - + "=projects/*/locations/*/workstationClust" - + "ers/*/workstationConfigs/*}/workstations" - + "\022\214\002\n\026ListUsableWorkstations\022;.google.clo" - + "ud.workstations.v1.ListUsableWorkstation" - + "sRequest\032<.google.cloud.workstations.v1." - + "ListUsableWorkstationsResponse\"w\332A\006paren" - + "t\202\323\344\223\002h\022f/v1/{parent=projects/*/location" - + "s/*/workstationClusters/*/workstationCon" - + "figs/*}/workstations:listUsable\022\244\002\n\021Crea" - + "teWorkstation\0226.google.cloud.workstation" - + "s.v1.CreateWorkstationRequest\032\035.google.l" - + "ongrunning.Operation\"\267\001\312A \n\013Workstation\022" - + "\021OperationMetadata\332A!parent,workstation," - + "workstation_id\202\323\344\223\002j\"[/v1/{parent=projec" - + "ts/*/locations/*/workstationClusters/*/w" - + "orkstationConfigs/*}/workstations:\013works" - + "tation\022\246\002\n\021UpdateWorkstation\0226.google.cl" - + "oud.workstations.v1.UpdateWorkstationReq" - + "uest\032\035.google.longrunning.Operation\"\271\001\312A" - + " \n\013Workstation\022\021OperationMetadata\332A\027work" - + "station,update_mask\202\323\344\223\002v2g/v1/{workstat" - + "ion.name=projects/*/locations/*/workstat" - + "ionClusters/*/workstationConfigs/*/works" - + "tations/*}:\013workstation\022\372\001\n\021DeleteWorkst" - + "ation\0226.google.cloud.workstations.v1.Del" - + "eteWorkstationRequest\032\035.google.longrunni" - + "ng.Operation\"\215\001\312A \n\013Workstation\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002]*[/v1/{name=proje" - + "cts/*/locations/*/workstationClusters/*/" - + "workstationConfigs/*/workstations/*}\022\201\002\n" - + "\020StartWorkstation\0225.google.cloud.worksta" - + "tions.v1.StartWorkstationRequest\032\035.googl" - + "e.longrunning.Operation\"\226\001\312A \n\013Workstati" - + "on\022\021OperationMetadata\332A\004name\202\323\344\223\002f\"a/v1/" - + "{name=projects/*/locations/*/workstation" - + "Clusters/*/workstationConfigs/*/workstat" - + "ions/*}:start:\001*\022\376\001\n\017StopWorkstation\0224.g" - + "oogle.cloud.workstations.v1.StopWorkstat" - + "ionRequest\032\035.google.longrunning.Operatio" - + "n\"\225\001\312A \n\013Workstation\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\002e\"`/v1/{name=projects/*/locat" - + "ions/*/workstationClusters/*/workstation" - + "Configs/*/workstations/*}:stop:\001*\022\234\002\n\023Ge" - + "nerateAccessToken\0228.google.cloud.worksta" - + "tions.v1.GenerateAccessTokenRequest\0329.go" - + "ogle.cloud.workstations.v1.GenerateAcces" - + "sTokenResponse\"\217\001\332A\013workstation\202\323\344\223\002{\"v/" - + "v1/{workstation=projects/*/locations/*/w" - + "orkstationClusters/*/workstationConfigs/" - + "*/workstations/*}:generateAccessToken:\001*" - + "\032O\312A\033workstations.googleapis.com\322A.https" - + "://www.googleapis.com/auth/cloud-platfor" - + "mB}\n com.google.cloud.workstations.v1B\021W" - + "orkstationsProtoP\001ZDcloud.google.com/go/", - "workstations/apiv1/workstationspb;workst" + "ationspbb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Etag", - "Network", - "Subnetwork", - "ControlPlaneIp", - "PrivateClusterConfig", - "Degraded", - "Conditions", - }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor, - new java.lang.String[] { - "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", - }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Etag", - "IdleTimeout", - "RunningTimeout", - "Host", - "PersistentDirectories", - "Container", - "EncryptionKey", - "ReadinessChecks", - "ReplicaZones", - "Degraded", - "Conditions", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor, - new java.lang.String[] { - "GceInstance", "Config", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor, - new java.lang.String[] { - "MachineType", - "ServiceAccount", - "ServiceAccountScopes", - "Tags", - "PoolSize", - "PooledInstances", - "DisablePublicIpAddresses", - "EnableNestedVirtualization", - "ShieldedInstanceConfig", - "ConfidentialInstanceConfig", - "BootDiskSizeGb", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, - new java.lang.String[] { - "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, - new java.lang.String[] { - "EnableConfidentialCompute", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor, - new java.lang.String[] { - "GcePd", "MountPath", "DirectoryType", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, - new java.lang.String[] { - "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor, - new java.lang.String[] { - "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor, - new java.lang.String[] { - "KmsKey", "KmsKeyServiceAccount", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor, - new java.lang.String[] { - "Path", "Port", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1_Workstation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "StartTime", - "DeleteTime", - "Etag", - "State", - "Host", - }); - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor, - new java.lang.String[] { - "WorkstationClusters", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", "Force", - }); - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor, - new java.lang.String[] { - "WorkstationConfigs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor, - new java.lang.String[] { - "WorkstationConfigs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", "Force", - }); - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor, - new java.lang.String[] { - "Workstations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor, - new java.lang.String[] { - "Workstations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationId", "Workstation", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor, - new java.lang.String[] { - "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor, - new java.lang.String[] { - "ExpireTime", "Ttl", "Workstation", "Expiration", - }); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor, - new java.lang.String[] { - "AccessToken", "ExpireTime", - }); - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java deleted file mode 100644 index 750b11651c6d..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationClusterRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java deleted file mode 100644 index 6f33d8bb6df5..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java deleted file mode 100644 index ac1d074a2e85..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the requested resource.
-   * 
- * - * - * 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/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java deleted file mode 100644 index 5fcab32ba512..000000000000 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java +++ /dev/null @@ -1,1227 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public final class WorkstationsProto { - private WorkstationsProto() {} - - 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_workstations_v1beta_WorkstationCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/workstations/v1beta/works" - + "tations.proto\022 google.cloud.workstations" - + ".v1beta\032\034google/api/annotations.proto\032\027g" - + "oogle/api/client.proto\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\032#google/longrunning/operations.proto\032" - + "\036google/protobuf/duration.proto\032 google/" - + "protobuf/field_mask.proto\032\037google/protob" - + "uf/timestamp.proto\032\027google/rpc/status.pr" - + "oto\"\246\t\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t" - + "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(" - + "\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022`\n\013an" - + "notations\030\005 \003(\0132E.google.cloud.workstati" - + "ons.v1beta.WorkstationCluster.Annotation" - + "sEntryB\004\342A\001\001\022V\n\006labels\030\017 \003(\0132@.google.cl" - + "oud.workstations.v1beta.WorkstationClust" - + "er.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 \001(" - + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013u" - + "pdate_time\030\007 \001(\0132\032.google.protobuf.Times" - + "tampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google" - + ".protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB" - + "\004\342A\001\001\022\025\n\007network\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwo" - + "rk\030\013 \001(\tB\004\342A\001\005\022\036\n\020control_plane_ip\030\020 \001(\t" - + "B\004\342A\001\003\022o\n\026private_cluster_config\030\014 \001(\0132I" - + ".google.cloud.workstations.v1beta.Workst" - + "ationCluster.PrivateClusterConfigB\004\342A\001\001\022" - + "\026\n\010degraded\030\r \001(\010B\004\342A\001\003\022,\n\nconditions\030\016 " - + "\003(\0132\022.google.rpc.StatusB\004\342A\001\003\032\243\001\n\024Privat" - + "eClusterConfig\022%\n\027enable_private_endpoin" - + "t\030\001 \001(\010B\004\342A\001\005\022\036\n\020cluster_hostname\030\002 \001(\tB" - + "\004\342A\001\003\022$\n\026service_attachment_uri\030\003 \001(\tB\004\342" - + "A\001\003\022\036\n\020allowed_projects\030\004 \003(\tB\004\342A\001\001\0322\n\020A" - + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001:\263\001\352A\257\001\n.workstations.goog" - + "leapis.com/WorkstationCluster\022Qprojects/" - + "{project}/locations/{location}/workstati" - + "onClusters/{workstation_cluster}*\023workst" - + "ationClusters2\022workstationClusterR\001\001\"\375\036\n" - + "\021WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014disp" - + "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022" - + "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022_\n\013annotation" - + "s\030\005 \003(\0132D.google.cloud.workstations.v1be" - + "ta.WorkstationConfig.AnnotationsEntryB\004\342" - + "A\001\001\022U\n\006labels\030\022 \003(\0132?.google.cloud.works" - + "tations.v1beta.WorkstationConfig.LabelsE" - + "ntryB\004\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google" - + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" - + "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" - + "\0225\n\013delete_time\030\010 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\0225\n\014i" - + "dle_timeout\030\n \001(\0132\031.google.protobuf.Dura" - + "tionB\004\342A\001\001\0228\n\017running_timeout\030\013 \001(\0132\031.go" - + "ogle.protobuf.DurationB\004\342A\001\001\022L\n\004host\030\014 \001" - + "(\01328.google.cloud.workstations.v1beta.Wo" - + "rkstationConfig.HostB\004\342A\001\001\022m\n\026persistent" - + "_directories\030\r \003(\0132G.google.cloud.workst" - + "ations.v1beta.WorkstationConfig.Persiste" - + "ntDirectoryB\004\342A\001\001\022k\n\025ephemeral_directori" - + "es\030\026 \003(\0132F.google.cloud.workstations.v1b" - + "eta.WorkstationConfig.EphemeralDirectory" - + "B\004\342A\001\001\022V\n\tcontainer\030\016 \001(\0132=.google.cloud" - + ".workstations.v1beta.WorkstationConfig.C" - + "ontainerB\004\342A\001\001\022g\n\016encryption_key\030\021 \001(\0132I" - + ".google.cloud.workstations.v1beta.Workst" - + "ationConfig.CustomerEncryptionKeyB\004\342A\001\005\022" - + "b\n\020readiness_checks\030\023 \003(\0132B.google.cloud" - + ".workstations.v1beta.WorkstationConfig.R" - + "eadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030\027 \003" - + "(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\ncon" - + "ditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A\001\003\022" - + " \n\022enable_audit_agent\030\024 \001(\010B\004\342A\001\001\032\266\010\n\004Ho" - + "st\022\\\n\014gce_instance\030\001 \001(\0132D.google.cloud." - + "workstations.v1beta.WorkstationConfig.Ho" - + "st.GceInstanceH\000\032\305\007\n\013GceInstance\022\032\n\014mach" - + "ine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_account\030" - + "\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scopes\030\003 " - + "\003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpool_si" - + "ze\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030\014 \001(\005" - + "B\004\342A\001\003\022)\n\033disable_public_ip_addresses\030\006 " - + "\001(\010B\004\342A\001\001\022*\n\034enable_nested_virtualizatio" - + "n\030\007 \001(\010B\004\342A\001\001\022\206\001\n\030shielded_instance_conf" - + "ig\030\010 \001(\0132^.google.cloud.workstations.v1b" - + "eta.WorkstationConfig.Host.GceInstance.G" - + "ceShieldedInstanceConfigB\004\342A\001\001\022\216\001\n\034confi" - + "dential_instance_config\030\n \001(\0132b.google.c" - + "loud.workstations.v1beta.WorkstationConf" - + "ig.Host.GceInstance.GceConfidentialInsta" - + "nceConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001" - + "(\005B\004\342A\001\001\022l\n\014accelerators\030\013 \003(\0132P.google." - + "cloud.workstations.v1beta.WorkstationCon" - + "fig.Host.GceInstance.AcceleratorB\004\342A\001\001\032\203" - + "\001\n\031GceShieldedInstanceConfig\022 \n\022enable_s" - + "ecure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_vtpm\030\002 " - + "\001(\010B\004\342A\001\001\022)\n\033enable_integrity_monitoring" - + "\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialInstanceC" - + "onfig\022)\n\033enable_confidential_compute\030\001 \001" - + "(\010B\004\342A\001\001\0326\n\013Accelerator\022\022\n\004type\030\001 \001(\tB\004\342" - + "A\001\001\022\023\n\005count\030\002 \001(\005B\004\342A\001\001B\010\n\006config\032\223\004\n\023P" - + "ersistentDirectory\022s\n\006gce_pd\030\002 \001(\0132a.goo" - + "gle.cloud.workstations.v1beta.Workstatio" - + "nConfig.PersistentDirectory.GceRegionalP" - + "ersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001" - + "\001\032\332\002\n\031GceRegionalPersistentDisk\022\025\n\007size_" - + "gb\030\001 \001(\005B\004\342A\001\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n" - + "\tdisk_type\030\003 \001(\tB\004\342A\001\001\022\035\n\017source_snapsho" - + "t\030\005 \001(\tB\004\342A\001\001\022\215\001\n\016reclaim_policy\030\004 \001(\0162o" - + ".google.cloud.workstations.v1beta.Workst" - + "ationConfig.PersistentDirectory.GceRegio" - + "nalPersistentDisk.ReclaimPolicyB\004\342A\001\001\"G\n" - + "\rReclaimPolicy\022\036\n\032RECLAIM_POLICY_UNSPECI" - + "FIED\020\000\022\n\n\006DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016direct" - + "ory_type\032\257\002\n\022EphemeralDirectory\022j\n\006gce_p" - + "d\030\003 \001(\0132X.google.cloud.workstations.v1be" - + "ta.WorkstationConfig.EphemeralDirectory." - + "GcePersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB" - + "\004\342A\001\002\032\200\001\n\021GcePersistentDisk\022\027\n\tdisk_type" - + "\030\001 \001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\002 \001(\tB\004\342" - + "A\001\001\022\032\n\014source_image\030\003 \001(\tB\004\342A\001\001\022\027\n\tread_" - + "only\030\004 \001(\010B\004\342A\001\001B\020\n\016directory_type\032\210\002\n\tC" - + "ontainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command" - + "\030\002 \003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022Y\n\003env\030" - + "\004 \003(\0132F.google.cloud.workstations.v1beta" - + ".WorkstationConfig.Container.EnvEntryB\004\342" - + "A\001\001\022\031\n\013working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as" - + "_user\030\006 \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032U\n\025CustomerEncrypt" - + "ionKey\022\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key" - + "_service_account\030\002 \001(\tB\004\342A\001\005\0328\n\016Readines" - + "sCheck\022\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005" - + "B\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workst" - + "ations.googleapis.com/WorkstationConfig\022" - + "yprojects/{project}/locations/{location}" - + "/workstationClusters/{workstation_cluste" - + "r}/workstationConfigs/{workstation_confi" - + "g}*\022workstationConfigs2\021workstationConfi" - + "gR\001\001\"\213\t\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014di" - + "splay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001" - + "\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022Y\n\013annotati" - + "ons\030\005 \003(\0132>.google.cloud.workstations.v1" - + "beta.Workstation.AnnotationsEntryB\004\342A\001\001\022" - + "O\n\006labels\030\r \003(\01329.google.cloud.workstati" - + "ons.v1beta.Workstation.LabelsEntryB\004\342A\001\001" - + "\0225\n\013create_time\030\006 \001(\0132\032.google.protobuf." - + "TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\004\342A\001\003\0224\n\nstart_" - + "time\030\016 \001(\0132\032.google.protobuf.TimestampB\004" - + "\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google.proto" - + "buf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022" - + "H\n\005state\030\n \001(\01623.google.cloud.workstatio" - + "ns.v1beta.Workstation.StateB\004\342A\001\003\022\022\n\004hos" - + "t\030\013 \001(\tB\004\342A\001\003\022I\n\003env\030\014 \003(\01326.google.clou" - + "d.workstations.v1beta.Workstation.EnvEnt" - + "ryB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(" - + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032*\n\010EnvEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"l\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\022\n\016STATE_STARTIN" - + "G\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n\016STATE_STOPPING" - + "\020\003\022\021\n\rSTATE_STOPPED\020\004:\342\001\352A\336\001\n\'workstatio" - + "ns.googleapis.com/Workstation\022\224\001projects" - + "/{project}/locations/{location}/workstat" - + "ionClusters/{workstation_cluster}/workst" - + "ationConfigs/{workstation_config}/workst" - + "ations/{workstation}*\014workstations2\013work" - + "stationR\001\001\"e\n\034GetWorkstationClusterReque" - + "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.workstations." - + "googleapis.com/WorkstationCluster\"\234\001\n\036Li" - + "stWorkstationClustersRequest\022G\n\006parent\030\001" - + " \001(\tB7\342A\001\002\372A0\022.workstations.googleapis.c" - + "om/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005" - + "B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\243\001\n\037Lis" - + "tWorkstationClustersResponse\022R\n\024workstat" - + "ion_clusters\030\001 \003(\01324.google.cloud.workst" - + "ations.v1beta.WorkstationCluster\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206" - + "\002\n\037CreateWorkstationClusterRequest\022G\n\006pa" - + "rent\030\001 \001(\tB7\342A\001\002\372A0\022.workstations.google" - + "apis.com/WorkstationCluster\022$\n\026workstati" - + "on_cluster_id\030\002 \001(\tB\004\342A\001\002\022W\n\023workstation" - + "_cluster\030\003 \001(\01324.google.cloud.workstatio" - + "ns.v1beta.WorkstationClusterB\004\342A\001\002\022\033\n\rva" - + "lidate_only\030\004 \001(\010B\004\342A\001\001\"\353\001\n\037UpdateWorkst" - + "ationClusterRequest\022W\n\023workstation_clust" - + "er\030\001 \001(\01324.google.cloud.workstations.v1b" - + "eta.WorkstationClusterB\004\342A\001\002\0225\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342" - + "A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallo" - + "w_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037DeleteWorkstat" - + "ionClusterRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0" - + "\n.workstations.googleapis.com/Workstatio" - + "nCluster\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n" - + "\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"c" - + "\n\033GetWorkstationConfigRequest\022D\n\004name\030\001 " - + "\001(\tB6\342A\001\002\372A/\n-workstations.googleapis.co" - + "m/WorkstationConfig\"\233\001\n\035ListWorkstationC" - + "onfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n." - + "workstations.googleapis.com/WorkstationC" - + "luster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" - + "token\030\003 \001(\tB\004\342A\001\001\"\240\001\n\036ListWorkstationCon" - + "figsResponse\022P\n\023workstation_configs\030\001 \003(" - + "\01323.google.cloud.workstations.v1beta.Wor" - + "kstationConfig\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsableWorks" - + "tationConfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A" - + "\001\002\372A0\n.workstations.googleapis.com/Works" - + "tationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030" - + "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\246\001\n$ListUsableW" - + "orkstationConfigsResponse\022P\n\023workstation" - + "_configs\030\001 \003(\01323.google.cloud.workstatio" - + "ns.v1beta.WorkstationConfig\022\027\n\017next_page" - + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\002\n\036Cr" - + "eateWorkstationConfigRequest\022G\n\006parent\030\001" - + " \001(\tB7\342A\001\002\372A0\n.workstations.googleapis.c" - + "om/WorkstationCluster\022#\n\025workstation_con" - + "fig_id\030\002 \001(\tB\004\342A\001\002\022U\n\022workstation_config" - + "\030\003 \001(\01323.google.cloud.workstations.v1bet" - + "a.WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_on" - + "ly\030\004 \001(\010B\004\342A\001\001\"\350\001\n\036UpdateWorkstationConf" - + "igRequest\022U\n\022workstation_config\030\001 \001(\01323." - + "google.cloud.workstations.v1beta.Worksta" - + "tionConfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalid" - + "ate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 " - + "\001(\010B\004\342A\001\001\"\254\001\n\036DeleteWorkstationConfigReq" - + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstation" - + "s.googleapis.com/WorkstationConfig\022\033\n\rva" - + "lidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342" - + "A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstati" - + "onRequest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workst" - + "ations.googleapis.com/Workstation\"\224\001\n\027Li" - + "stWorkstationsRequest\022F\n\006parent\030\001 \001(\tB6\342" - + "A\001\002\372A/\n-workstations.googleapis.com/Work" - + "stationConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030" - + "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\231\001\n\030ListWorksta" - + "tionsResponse\022C\n\014workstations\030\001 \003(\0132-.go" - + "ogle.cloud.workstations.v1beta.Workstati" - + "on\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unr" - + "eachable\030\003 \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorks" - + "tationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n" - + "-workstations.googleapis.com/Workstation" - + "Config\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" - + "token\030\003 \001(\tB\004\342A\001\001\"\223\001\n\036ListUsableWorkstat" - + "ionsResponse\022C\n\014workstations\030\001 \003(\0132-.goo" - + "gle.cloud.workstations.v1beta.Workstatio" - + "n\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" - + "e\030\003 \003(\t\"\347\001\n\030CreateWorkstationRequest\022F\n\006" - + "parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog" - + "leapis.com/WorkstationConfig\022\034\n\016workstat" - + "ion_id\030\002 \001(\tB\004\342A\001\002\022H\n\013workstation\030\003 \001(\0132" - + "-.google.cloud.workstations.v1beta.Works" - + "tationB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001" - + "\001\"\325\001\n\030UpdateWorkstationRequest\022H\n\013workst" - + "ation\030\001 \001(\0132-.google.cloud.workstations." - + "v1beta.WorkstationB\004\342A\001\002\0225\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022" - + "\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_mi" - + "ssing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030DeleteWorkstationR" - + "equest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstati" - + "ons.googleapis.com/Workstation\022\033\n\rvalida" - + "te_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"" - + "\212\001\n\027StartWorkstationRequest\022>\n\004name\030\001 \001(" - + "\tB0\342A\001\002\372A)\n\'workstations.googleapis.com/" - + "Workstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001" - + "\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211\001\n\026StopWorkstation" - + "Request\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstat" - + "ions.googleapis.com/Workstation\022\033\n\rvalid" - + "ate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001" - + "\"\316\001\n\032GenerateAccessTokenRequest\0221\n\013expir" - + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" - + "H\000\022(\n\003ttl\030\003 \001(\0132\031.google.protobuf.Durati" - + "onH\000\022E\n\013workstation\030\001 \001(\tB0\342A\001\002\372A)\n\'work" - + "stations.googleapis.com/WorkstationB\014\n\ne" - + "xpiration\"d\n\033GenerateAccessTokenResponse" - + "\022\024\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 " - + "\001(\0132\032.google.protobuf.Timestamp\"\207\002\n\021Oper" - + "ationMetadata\0225\n\013create_time\030\001 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time" - + "\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" - + "\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A" - + "\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n\026requ" - + "ested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_ve" - + "rsion\030\007 \001(\tB\004\342A\001\0032\337+\n\014Workstations\022\331\001\n\025G" - + "etWorkstationCluster\022>.google.cloud.work" - + "stations.v1beta.GetWorkstationClusterReq" - + "uest\0324.google.cloud.workstations.v1beta." - + "WorkstationCluster\"J\332A\004name\202\323\344\223\002=\022;/v1be" - + "ta/{name=projects/*/locations/*/workstat" - + "ionClusters/*}\022\354\001\n\027ListWorkstationCluste" - + "rs\022@.google.cloud.workstations.v1beta.Li" - + "stWorkstationClustersRequest\032A.google.cl" - + "oud.workstations.v1beta.ListWorkstationC" - + "lustersResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1bet" - + "a/{parent=projects/*/locations/*}/workst" - + "ationClusters\022\265\002\n\030CreateWorkstationClust" - + "er\022A.google.cloud.workstations.v1beta.Cr" - + "eateWorkstationClusterRequest\032\035.google.l" - + "ongrunning.Operation\"\266\001\312A\'\n\022WorkstationC" - + "luster\022\021OperationMetadata\332A1parent,works" - + "tation_cluster,workstation_cluster_id\202\323\344" - + "\223\002R\";/v1beta/{parent=projects/*/location" - + "s/*}/workstationClusters:\023workstation_cl" - + "uster\022\267\002\n\030UpdateWorkstationCluster\022A.goo" - + "gle.cloud.workstations.v1beta.UpdateWork" - + "stationClusterRequest\032\035.google.longrunni" - + "ng.Operation\"\270\001\312A\'\n\022WorkstationCluster\022\021" - + "OperationMetadata\332A\037workstation_cluster," - + "update_mask\202\323\344\223\002f2O/v1beta/{workstation_" - + "cluster.name=projects/*/locations/*/work" - + "stationClusters/*}:\023workstation_cluster\022" - + "\362\001\n\030DeleteWorkstationCluster\022A.google.cl" - + "oud.workstations.v1beta.DeleteWorkstatio" - + "nClusterRequest\032\035.google.longrunning.Ope" - + "ration\"t\312A\'\n\022WorkstationCluster\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002=*;/v1beta/{name=p" - + "rojects/*/locations/*/workstationCluster" - + "s/*}\022\353\001\n\024GetWorkstationConfig\022=.google.c" - + "loud.workstations.v1beta.GetWorkstationC" - + "onfigRequest\0323.google.cloud.workstations" - + ".v1beta.WorkstationConfig\"_\332A\004name\202\323\344\223\002R" - + "\022P/v1beta/{name=projects/*/locations/*/w" - + "orkstationClusters/*/workstationConfigs/" - + "*}\022\376\001\n\026ListWorkstationConfigs\022?.google.c" - + "loud.workstations.v1beta.ListWorkstation" - + "ConfigsRequest\032@.google.cloud.workstatio" - + "ns.v1beta.ListWorkstationConfigsResponse" - + "\"a\332A\006parent\202\323\344\223\002R\022P/v1beta/{parent=proje" - + "cts/*/locations/*/workstationClusters/*}" - + "/workstationConfigs\022\233\002\n\034ListUsableWorkst" - + "ationConfigs\022E.google.cloud.workstations" - + ".v1beta.ListUsableWorkstationConfigsRequ" - + "est\032F.google.cloud.workstations.v1beta.L" - + "istUsableWorkstationConfigsResponse\"l\332A\006" - + "parent\202\323\344\223\002]\022[/v1beta/{parent=projects/*" - + "/locations/*/workstationClusters/*}/work" - + "stationConfigs:listUsable\022\304\002\n\027CreateWork" - + "stationConfig\022@.google.cloud.workstation" - + "s.v1beta.CreateWorkstationConfigRequest\032" - + "\035.google.longrunning.Operation\"\307\001\312A&\n\021Wo" - + "rkstationConfig\022\021OperationMetadata\332A/par" - + "ent,workstation_config,workstation_confi" - + "g_id\202\323\344\223\002f\"P/v1beta/{parent=projects/*/l" - + "ocations/*/workstationClusters/*}/workst" - + "ationConfigs:\022workstation_config\022\306\002\n\027Upd" - + "ateWorkstationConfig\022@.google.cloud.work" - + "stations.v1beta.UpdateWorkstationConfigR" - + "equest\032\035.google.longrunning.Operation\"\311\001" - + "\312A&\n\021WorkstationConfig\022\021OperationMetadat" - + "a\332A\036workstation_config,update_mask\202\323\344\223\002y" - + "2c/v1beta/{workstation_config.name=proje" - + "cts/*/locations/*/workstationClusters/*/" - + "workstationConfigs/*}:\022workstation_confi" - + "g\022\205\002\n\027DeleteWorkstationConfig\022@.google.c" - + "loud.workstations.v1beta.DeleteWorkstati" - + "onConfigRequest\032\035.google.longrunning.Ope" - + "ration\"\210\001\312A&\n\021WorkstationConfig\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002R*P/v1beta/{name=p" - + "rojects/*/locations/*/workstationCluster" - + "s/*/workstationConfigs/*}\022\350\001\n\016GetWorksta" - + "tion\0227.google.cloud.workstations.v1beta." - + "GetWorkstationRequest\032-.google.cloud.wor" - + "kstations.v1beta.Workstation\"n\332A\004name\202\323\344" - + "\223\002a\022_/v1beta/{name=projects/*/locations/" - + "*/workstationClusters/*/workstationConfi" - + "gs/*/workstations/*}\022\373\001\n\020ListWorkstation" - + "s\0229.google.cloud.workstations.v1beta.Lis" - + "tWorkstationsRequest\032:.google.cloud.work" - + "stations.v1beta.ListWorkstationsResponse" - + "\"p\332A\006parent\202\323\344\223\002a\022_/v1beta/{parent=proje" - + "cts/*/locations/*/workstationClusters/*/" - + "workstationConfigs/*}/workstations\022\230\002\n\026L" - + "istUsableWorkstations\022?.google.cloud.wor" - + "kstations.v1beta.ListUsableWorkstationsR" - + "equest\032@.google.cloud.workstations.v1bet" - + "a.ListUsableWorkstationsResponse\"{\332A\006par" - + "ent\202\323\344\223\002l\022j/v1beta/{parent=projects/*/lo" - + "cations/*/workstationClusters/*/workstat" - + "ionConfigs/*}/workstations:listUsable\022\254\002" - + "\n\021CreateWorkstation\022:.google.cloud.works" - + "tations.v1beta.CreateWorkstationRequest\032" - + "\035.google.longrunning.Operation\"\273\001\312A \n\013Wo" - + "rkstation\022\021OperationMetadata\332A!parent,wo" - + "rkstation,workstation_id\202\323\344\223\002n\"_/v1beta/" - + "{parent=projects/*/locations/*/workstati" - + "onClusters/*/workstationConfigs/*}/works" - + "tations:\013workstation\022\256\002\n\021UpdateWorkstati" - + "on\022:.google.cloud.workstations.v1beta.Up" - + "dateWorkstationRequest\032\035.google.longrunn" - + "ing.Operation\"\275\001\312A \n\013Workstation\022\021Operat" - + "ionMetadata\332A\027workstation,update_mask\202\323\344" - + "\223\002z2k/v1beta/{workstation.name=projects/" - + "*/locations/*/workstationClusters/*/work" - + "stationConfigs/*/workstations/*}:\013workst" - + "ation\022\202\002\n\021DeleteWorkstation\022:.google.clo" - + "ud.workstations.v1beta.DeleteWorkstation" - + "Request\032\035.google.longrunning.Operation\"\221" - + "\001\312A \n\013Workstation\022\021OperationMetadata\332A\004n" - + "ame\202\323\344\223\002a*_/v1beta/{name=projects/*/loca", - "tions/*/workstationClusters/*/workstatio" - + "nConfigs/*/workstations/*}\022\211\002\n\020StartWork" - + "station\0229.google.cloud.workstations.v1be" - + "ta.StartWorkstationRequest\032\035.google.long" - + "running.Operation\"\232\001\312A \n\013Workstation\022\021Op" - + "erationMetadata\332A\004name\202\323\344\223\002j\"e/v1beta/{n" - + "ame=projects/*/locations/*/workstationCl" - + "usters/*/workstationConfigs/*/workstatio" - + "ns/*}:start:\001*\022\206\002\n\017StopWorkstation\0228.goo" - + "gle.cloud.workstations.v1beta.StopWorkst" - + "ationRequest\032\035.google.longrunning.Operat" - + "ion\"\231\001\312A \n\013Workstation\022\021OperationMetadat" - + "a\332A\004name\202\323\344\223\002i\"d/v1beta/{name=projects/*" - + "/locations/*/workstationClusters/*/works" - + "tationConfigs/*/workstations/*}:stop:\001*\022" - + "\250\002\n\023GenerateAccessToken\022<.google.cloud.w" - + "orkstations.v1beta.GenerateAccessTokenRe" - + "quest\032=.google.cloud.workstations.v1beta" - + ".GenerateAccessTokenResponse\"\223\001\332A\013workst" - + "ation\202\323\344\223\002\177\"z/v1beta/{workstation=projec" - + "ts/*/locations/*/workstationClusters/*/w" - + "orkstationConfigs/*/workstations/*}:gene" - + "rateAccessToken:\001*\032O\312A\033workstations.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\205\001\n$com.google.cloud" - + ".workstations.v1betaB\021WorkstationsProtoP" - + "\001ZHcloud.google.com/go/workstations/apiv" - + "1beta/workstationspb;workstationspbb\006pro" - + "to3" - }; - 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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Etag", - "Network", - "Subnetwork", - "ControlPlaneIp", - "PrivateClusterConfig", - "Degraded", - "Conditions", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor, - new java.lang.String[] { - "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "DeleteTime", - "Etag", - "IdleTimeout", - "RunningTimeout", - "Host", - "PersistentDirectories", - "EphemeralDirectories", - "Container", - "EncryptionKey", - "ReadinessChecks", - "ReplicaZones", - "Degraded", - "Conditions", - "EnableAuditAgent", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor, - new java.lang.String[] { - "GceInstance", "Config", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor, - new java.lang.String[] { - "MachineType", - "ServiceAccount", - "ServiceAccountScopes", - "Tags", - "PoolSize", - "PooledInstances", - "DisablePublicIpAddresses", - "EnableNestedVirtualization", - "ShieldedInstanceConfig", - "ConfidentialInstanceConfig", - "BootDiskSizeGb", - "Accelerators", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, - new java.lang.String[] { - "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, - new java.lang.String[] { - "EnableConfidentialCompute", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor, - new java.lang.String[] { - "Type", "Count", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor, - new java.lang.String[] { - "GcePd", "MountPath", "DirectoryType", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, - new java.lang.String[] { - "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor, - new java.lang.String[] { - "GcePd", "MountPath", "DirectoryType", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor, - new java.lang.String[] { - "DiskType", "SourceSnapshot", "SourceImage", "ReadOnly", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(3); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor, - new java.lang.String[] { - "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(4); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor, - new java.lang.String[] { - "KmsKey", "KmsKeyServiceAccount", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(5); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor, - new java.lang.String[] { - "Path", "Port", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(6); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor - .getNestedTypes() - .get(7); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Uid", - "Reconciling", - "Annotations", - "Labels", - "CreateTime", - "UpdateTime", - "StartTime", - "DeleteTime", - "Etag", - "State", - "Host", - "Env", - }); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor, - new java.lang.String[] { - "WorkstationClusters", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", "Force", - }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor, - new java.lang.String[] { - "WorkstationConfigs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor, - new java.lang.String[] { - "WorkstationConfigs", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", "Force", - }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor, - new java.lang.String[] { - "Workstations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor, - new java.lang.String[] { - "Workstations", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor, - new java.lang.String[] { - "Parent", "WorkstationId", "Workstation", "ValidateOnly", - }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor, - new java.lang.String[] { - "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", - }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor, - new java.lang.String[] { - "Name", "ValidateOnly", "Etag", - }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor, - new java.lang.String[] { - "ExpireTime", "Ttl", "Workstation", "Expiration", - }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor, - new java.lang.String[] { - "AccessToken", "ExpireTime", - }); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - }); - 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.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java similarity index 87% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java index 3546a7b5c6b9..2f11ebaa0585 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java +++ b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java @@ -62,19 +62,199 @@ * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
CreateScanConfig

Creates a new ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createScanConfig(CreateScanConfigRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createScanConfigCallable() + *
+ *
DeleteScanConfig

Deletes an existing ScanConfig and its child resources.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteScanConfig(DeleteScanConfigRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteScanConfigCallable() + *
+ *
GetScanConfig

Gets a ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getScanConfig(GetScanConfigRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getScanConfigCallable() + *
+ *
ListScanConfigs

Lists ScanConfigs under a given project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listScanConfigs(ListScanConfigsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listScanConfigsPagedCallable() + *
  • listScanConfigsCallable() + *
+ *
UpdateScanConfig

Updates a ScanConfig. This method support partial update of a ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateScanConfig(UpdateScanConfigRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateScanConfigCallable() + *
+ *
StartScanRun

Start a ScanRun according to the given ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • startScanRun(StartScanRunRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • startScanRunCallable() + *
+ *
GetScanRun

Gets a ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getScanRun(GetScanRunRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getScanRunCallable() + *
+ *
ListScanRuns

Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listScanRuns(ListScanRunsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listScanRunsPagedCallable() + *
  • listScanRunsCallable() + *
+ *
StopScanRun

Stops a ScanRun. The stopped ScanRun is returned.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • stopScanRun(StopScanRunRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • stopScanRunCallable() + *
+ *
ListCrawledUrls

List CrawledUrls under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listCrawledUrls(ListCrawledUrlsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listCrawledUrlsPagedCallable() + *
  • listCrawledUrlsCallable() + *
+ *
GetFinding

Gets a Finding.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getFinding(GetFindingRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getFindingCallable() + *
+ *
ListFindings

List Findings under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFindings(ListFindingsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listFindingsPagedCallable() + *
  • listFindingsCallable() + *
+ *
ListFindingTypeStats

List all FindingTypeStats under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFindingTypeStats(ListFindingTypeStatsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listFindingTypeStatsCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java index 21481975d16c..8f75d53fdf74 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java +++ b/owl-bot-staging/java-websecurityscanner/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; diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java index 32f2bfc139d4..6d73b5dad531 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java index 6b2743206532..7684b92849b1 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java +++ b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java @@ -452,6 +452,12 @@ public WebSecurityScannerStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "websecurityscanner"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java rename to owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java new file mode 100644 index 000000000000..6c967d8ed696 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java @@ -0,0 +1,1371 @@ +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 java.lang.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 interface AsyncService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service WebSecurityScanner. + *
+   * 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, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WebSecurityScannerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( + service, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( + service, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + + 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 java.lang.String methodName; + + WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java index e93604423f06..04c11f84adee 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,39 +29,34 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -88,30 +65,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 { @@ -120,18 +97,14 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } public static final int URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -140,29 +113,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 { @@ -171,18 +144,14 @@ public com.google.protobuf.ByteString getUrlBytes() { } public static final int BODY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -191,29 +160,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 { @@ -222,7 +191,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +202,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_); } @@ -270,17 +239,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,103 +275,98 @@ 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
@@ -409,32 +375,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -446,9 +413,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
@@ -467,11 +434,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.CrawledUrl result = new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -493,39 +457,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.CrawledUrl res
     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;
@@ -533,8 +496,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_;
         bitField0_ |= 0x00000001;
@@ -576,31 +538,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                httpMethod_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                url_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                body_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              httpMethod_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              url_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              body_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -610,26 +568,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -638,22 +593,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 { @@ -661,37 +615,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } httpMethod_ = value; bitField0_ |= 0x00000001; 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() { @@ -701,22 +648,18 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000001; @@ -726,20 +669,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; @@ -748,21 +689,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 { @@ -770,35 +710,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { @@ -808,21 +741,17 @@ public Builder clearUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; @@ -832,20 +761,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; @@ -854,21 +781,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 { @@ -876,35 +802,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBody( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000004; 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() { @@ -914,30 +833,26 @@ public Builder clearBody() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000004; 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); } @@ -947,12 +862,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(); } @@ -961,27 +876,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -996,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java similarity index 62% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java index 10698623cc5e..1ded75efae49 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java new file mode 100644 index 000000000000..08e4edd2a0b5 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\205\002\n&com" + + ".google.cloud.websecurityscanner.v1B\017Cra" + + "wledUrlProtoP\001ZVcloud.google.com/go/webs" + + "ecurityscanner/apiv1/websecurityscannerp" + + "b;websecurityscannerpb\252\002\"Google.Cloud.We" + + "bSecurityScanner.V1\312\002\"Google\\Cloud\\WebSe" + + "curityScanner\\V1\352\002%Google::Cloud::WebSec" + + "urityScanner::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java index 0025d203654a..1c85dea9d96f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -84,30 +61,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 { @@ -118,14 +95,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 @@ -133,25 +107,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.
    * 
@@ -160,13 +127,10 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigOrBuilder() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +142,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_); } @@ -198,7 +163,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,18 +174,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -244,136 +211,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -388,14 +350,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(); } @@ -410,23 +371,21 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null + ? scanConfig_ + : scanConfigBuilder_.build(); } } @@ -434,39 +393,38 @@ private void buildPartial0( 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; @@ -474,9 +432,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_; bitField0_ |= 0x00000001; @@ -511,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getScanConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -539,26 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -567,22 +519,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 { @@ -590,37 +541,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -630,22 +574,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -655,47 +595,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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.
      * 
@@ -716,8 +643,6 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -736,8 +661,6 @@ public Builder setScanConfig( return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -746,10 +669,9 @@ public Builder setScanConfig( */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig value) { if (scanConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && scanConfig_ != null - && scanConfig_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + scanConfig_ != null && + scanConfig_ != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -762,8 +684,6 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -781,8 +701,6 @@ public Builder clearScanConfig() { return this; } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -795,8 +713,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBu return getScanConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ScanConfig to be created.
      * 
@@ -807,14 +723,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.
      * 
@@ -822,24 +735,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); } @@ -849,43 +759,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -897,8 +805,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java index b632a4aec652..ea34e72e0893 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java index 6e4df03038d8..7296f4a846ba 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -84,30 +61,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 { @@ -116,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +104,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_); } @@ -152,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,136 +157,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -319,14 +291,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(); } @@ -341,17 +312,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -362,39 +329,38 @@ private void buildPartial0( 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; @@ -402,9 +368,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_; bitField0_ |= 0x00000001; @@ -436,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,26 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -486,22 +445,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 { @@ -509,37 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -549,31 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -583,43 +530,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -631,8 +576,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java similarity index 54% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java index e429ff5c3951..ddf4170352e3 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java similarity index 72% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java index d55d837677fc..3ad16e7808e5 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,38 +36,34 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
-  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.
      * 
@@ -94,8 +72,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ SEVERITY_UNSPECIFIED(0), /** - * - * *
      * Critical severity.
      * 
@@ -104,8 +80,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ CRITICAL(1), /** - * - * *
      * High severity.
      * 
@@ -114,8 +88,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ HIGH(2), /** - * - * *
      * Medium severity.
      * 
@@ -124,8 +96,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ MEDIUM(3), /** - * - * *
      * Low severity.
      * 
@@ -137,8 +107,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * No severity specified. The default value.
      * 
@@ -147,8 +115,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Critical severity.
      * 
@@ -157,8 +123,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CRITICAL_VALUE = 1; /** - * - * *
      * High severity.
      * 
@@ -167,8 +131,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HIGH_VALUE = 2; /** - * - * *
      * Medium severity.
      * 
@@ -177,8 +139,6 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MEDIUM_VALUE = 3; /** - * - * *
      * Low severity.
      * 
@@ -187,6 +147,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( @@ -211,53 +172,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; @@ -275,12 +234,9 @@ private Severity(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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}'.
@@ -288,7 +244,6 @@ private Severity(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -297,15 +252,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}'.
@@ -313,15 +267,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 { @@ -330,12 +285,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FINDING_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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:
@@ -343,7 +295,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string finding_type = 2; - * * @return The findingType. */ @java.lang.Override @@ -352,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; } } /** - * - * *
    * Output only. The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -368,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 { @@ -387,58 +338,39 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int SEVERITY_FIELD_NUMBER = 17; 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]; * @return The severity. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { - com.google.cloud.websecurityscanner.v1.Finding.Severity result = - com.google.cloud.websecurityscanner.v1.Finding.Severity.forNumber(severity_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { + com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.forNumber(severity_); + return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -447,30 +379,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 { @@ -479,19 +411,15 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } public static final int FUZZED_URL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -500,30 +428,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 { @@ -532,18 +460,14 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } public static final int BODY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") 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 @@ -552,29 +476,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 { @@ -583,18 +507,14 @@ public com.google.protobuf.ByteString getBodyBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -603,29 +523,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 { @@ -634,19 +554,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") 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 @@ -655,30 +571,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 { @@ -687,19 +603,15 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } public static final int FRAME_URL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") 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 @@ -708,30 +620,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 { @@ -740,18 +652,14 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } public static final int FINAL_URL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") 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 @@ -760,29 +668,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 { @@ -791,19 +699,15 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } public static final int TRACKING_ID_FIELD_NUMBER = 10; - @SuppressWarnings("serial") 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 @@ -812,30 +716,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 { @@ -846,15 +750,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 @@ -862,15 +763,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 @@ -878,8 +776,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.
@@ -895,14 +791,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 @@ -910,25 +803,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.
    * 
@@ -936,25 +822,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() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } 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 @@ -962,26 +842,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.
@@ -990,24 +863,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() {
-    return violatingResource_ == null
-        ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()
-        : violatingResource_;
+  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
+    return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_;
   }
 
   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 @@ -1015,25 +882,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.
    * 
@@ -1041,26 +901,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() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } 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 @@ -1068,54 +921,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() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } 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 @@ -1123,14 +961,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 @@ -1138,8 +973,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.
    * 
@@ -1154,16 +987,11 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { public static final int XXE_FIELD_NUMBER = 18; private com.google.cloud.websecurityscanner.v1.Xxe xxe_; /** - * - * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the xxe field is set. */ @java.lang.Override @@ -1171,16 +999,11 @@ public boolean hasXxe() { return xxe_ != null; } /** - * - * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The xxe. */ @java.lang.Override @@ -1188,15 +1011,11 @@ public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; } /** - * - * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { @@ -1204,7 +1023,6 @@ public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1216,7 +1034,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_); } @@ -1265,9 +1084,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_); } if (xxe_ != null) { @@ -1313,31 +1130,36 @@ 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_); } if (xxe_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getXxe()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, getXxe()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1347,52 +1169,68 @@ 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 (hasXxe() != other.hasXxe()) return false; if (hasXxe()) { - if (!getXxe().equals(other.getXxe())) return false; + if (!getXxe() + .equals(other.getXxe())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1460,104 +1298,99 @@ 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.
@@ -1565,32 +1398,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1645,9 +1479,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
@@ -1666,11 +1500,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.Finding result = new com.google.cloud.websecurityscanner.v1.Finding(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1711,35 +1542,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Finding result
         result.trackingId_ = trackingId_;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.form_ = formBuilder_ == null ? form_ : formBuilder_.build();
+        result.form_ = formBuilder_ == null
+            ? form_
+            : formBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.outdatedLibrary_ =
-            outdatedLibraryBuilder_ == null ? outdatedLibrary_ : outdatedLibraryBuilder_.build();
+        result.outdatedLibrary_ = outdatedLibraryBuilder_ == null
+            ? outdatedLibrary_
+            : outdatedLibraryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.violatingResource_ =
-            violatingResourceBuilder_ == null
-                ? violatingResource_
-                : violatingResourceBuilder_.build();
+        result.violatingResource_ = violatingResourceBuilder_ == null
+            ? violatingResource_
+            : violatingResourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.vulnerableHeaders_ =
-            vulnerableHeadersBuilder_ == null
-                ? vulnerableHeaders_
-                : vulnerableHeadersBuilder_.build();
+        result.vulnerableHeaders_ = vulnerableHeadersBuilder_ == null
+            ? vulnerableHeaders_
+            : vulnerableHeadersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.vulnerableParameters_ =
-            vulnerableParametersBuilder_ == null
-                ? vulnerableParameters_
-                : vulnerableParametersBuilder_.build();
+        result.vulnerableParameters_ = vulnerableParametersBuilder_ == null
+            ? vulnerableParameters_
+            : vulnerableParametersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.xss_ = xssBuilder_ == null ? xss_ : xssBuilder_.build();
+        result.xss_ = xssBuilder_ == null
+            ? xss_
+            : xssBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
-        result.xxe_ = xxeBuilder_ == null ? xxe_ : xxeBuilder_.build();
+        result.xxe_ = xxeBuilder_ == null
+            ? xxe_
+            : xxeBuilder_.build();
       }
     }
 
@@ -1747,39 +1582,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Finding result
     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;
@@ -1888,124 +1722,116 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                findingType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                httpMethod_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 26
-            case 34:
-              {
-                fuzzedUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 34
-            case 42:
-              {
-                body_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 42
-            case 50:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                reproductionUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                frameUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                finalUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                trackingId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(
-                    getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(
-                    getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 114
-            case 122:
-              {
-                input.readMessage(
-                    getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 122
-            case 130:
-              {
-                input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 130
-            case 136:
-              {
-                severity_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 136
-            case 146:
-              {
-                input.readMessage(getXxeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00020000;
-                break;
-              } // case 146
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              findingType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              httpMethod_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 26
+            case 34: {
+              fuzzedUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 34
+            case 42: {
+              body_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 42
+            case 50: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              reproductionUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              frameUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              finalUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              trackingId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getOutdatedLibraryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getViolatingResourceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getVulnerableParametersFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getXssFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 114
+            case 122: {
+              input.readMessage(
+                  getVulnerableHeadersFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 122
+            case 130: {
+              input.readMessage(
+                  getFormFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 130
+            case 136: {
+              severity_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 136
+            case 146: {
+              input.readMessage(
+                  getXxeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00020000;
+              break;
+            } // case 146
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2015,13 +1841,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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}'.
@@ -2029,13 +1852,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; @@ -2044,8 +1867,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}'.
@@ -2053,14 +1874,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 { @@ -2068,8 +1890,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}'.
@@ -2077,22 +1897,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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}'.
@@ -2100,7 +1916,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2110,8 +1925,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2119,14 +1932,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2136,8 +1947,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:
@@ -2145,13 +1954,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; @@ -2160,8 +1969,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:
@@ -2169,14 +1976,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 { @@ -2184,8 +1992,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:
@@ -2193,22 +1999,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } findingType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2216,7 +2018,6 @@ public Builder setFindingType(java.lang.String value) {
      * 
* * string finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -2226,8 +2027,6 @@ public Builder clearFindingType() { return this; } /** - * - * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2235,14 +2034,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000002; @@ -2252,33 +2049,22 @@ 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. */ @@ -2289,37 +2075,24 @@ public Builder setSeverityValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.Finding.Severity result = - com.google.cloud.websecurityscanner.v1.Finding.Severity.forNumber(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.forNumber(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. */ @@ -2333,16 +2106,11 @@ public Builder setSeverity(com.google.cloud.websecurityscanner.v1.Finding.Severi 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() { @@ -2354,21 +2122,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; @@ -2377,22 +2143,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 { @@ -2400,37 +2165,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } httpMethod_ = value; bitField0_ |= 0x00000008; 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() { @@ -2440,22 +2198,18 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000008; @@ -2465,21 +2219,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; @@ -2488,22 +2240,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 { @@ -2511,37 +2262,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFuzzedUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fuzzedUrl_ = value; bitField0_ |= 0x00000010; 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() { @@ -2551,22 +2295,18 @@ public Builder clearFuzzedUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fuzzedUrl_ = value; bitField0_ |= 0x00000010; @@ -2576,20 +2316,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; @@ -2598,21 +2336,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 { @@ -2620,35 +2357,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBody( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000020; 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() { @@ -2658,21 +2388,17 @@ public Builder clearBody() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000020; @@ -2682,20 +2408,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; @@ -2704,21 +2428,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 { @@ -2726,35 +2449,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2764,21 +2480,17 @@ public Builder clearDescription() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000040; @@ -2788,21 +2500,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; @@ -2811,22 +2521,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 { @@ -2834,37 +2543,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReproductionUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reproductionUrl_ = value; bitField0_ |= 0x00000080; 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() { @@ -2874,22 +2576,18 @@ public Builder clearReproductionUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reproductionUrl_ = value; bitField0_ |= 0x00000080; @@ -2899,21 +2597,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; @@ -2922,22 +2618,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 { @@ -2945,37 +2640,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFrameUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } frameUrl_ = value; bitField0_ |= 0x00000100; 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() { @@ -2985,22 +2673,18 @@ public Builder clearFrameUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); frameUrl_ = value; bitField0_ |= 0x00000100; @@ -3010,20 +2694,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; @@ -3032,21 +2714,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 { @@ -3054,35 +2735,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFinalUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } finalUrl_ = value; bitField0_ |= 0x00000200; 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() { @@ -3092,21 +2766,17 @@ public Builder clearFinalUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); finalUrl_ = value; bitField0_ |= 0x00000200; @@ -3116,21 +2786,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; @@ -3139,22 +2807,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 { @@ -3162,37 +2829,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTrackingId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } trackingId_ = value; bitField0_ |= 0x00000400; 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() { @@ -3202,22 +2862,18 @@ public Builder clearTrackingId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); trackingId_ = value; bitField0_ |= 0x00000400; @@ -3227,49 +2883,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 ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * 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.
@@ -3291,8 +2934,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.
@@ -3300,7 +2941,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();
       } else {
@@ -3311,8 +2953,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.
@@ -3322,9 +2962,9 @@ public Builder setForm(com.google.cloud.websecurityscanner.v1.Form.Builder build
      */
     public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       if (formBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0)
-            && form_ != null
-            && form_ != com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0) &&
+          form_ != null &&
+          form_ != com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance()) {
           getFormBuilder().mergeFrom(value);
         } else {
           form_ = value;
@@ -3337,8 +2977,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.
@@ -3357,8 +2995,6 @@ public Builder clearForm() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3372,8 +3008,6 @@ public com.google.cloud.websecurityscanner.v1.Form.Builder getFormBuilder() {
       return getFormFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3385,14 +3019,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.
@@ -3401,17 +3032,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_;
@@ -3419,55 +3047,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 ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * 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(); @@ -3481,8 +3095,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3501,21 +3113,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 (((bitField0_ & 0x00001000) != 0) - && outdatedLibrary_ != null - && outdatedLibrary_ - != com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + outdatedLibrary_ != null && + outdatedLibrary_ != com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) { getOutdatedLibraryBuilder().mergeFrom(value); } else { outdatedLibrary_ = value; @@ -3528,8 +3136,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3547,42 +3153,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() { bitField0_ |= 0x00001000; 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.
      * 
@@ -3590,17 +3187,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_; @@ -3608,49 +3202,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 ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * 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.
@@ -3658,8 +3239,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();
@@ -3673,8 +3253,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.
@@ -3694,8 +3272,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.
@@ -3703,13 +3279,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 (((bitField0_ & 0x00002000) != 0)
-            && violatingResource_ != null
-            && violatingResource_
-                != com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()) {
+        if (((bitField0_ & 0x00002000) != 0) &&
+          violatingResource_ != null &&
+          violatingResource_ != com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()) {
           getViolatingResourceBuilder().mergeFrom(value);
         } else {
           violatingResource_ = value;
@@ -3722,8 +3296,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.
@@ -3742,8 +3314,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.
@@ -3751,15 +3321,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() {
       bitField0_ |= 0x00002000;
       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.
@@ -3767,19 +3334,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.
@@ -3788,17 +3351,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_;
@@ -3806,55 +3366,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 ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * 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(); @@ -3868,8 +3414,6 @@ public Builder setVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3888,21 +3432,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 (((bitField0_ & 0x00004000) != 0) - && vulnerableHeaders_ != null - && vulnerableHeaders_ - != com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + vulnerableHeaders_ != null && + vulnerableHeaders_ != com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) { getVulnerableHeadersBuilder().mergeFrom(value); } else { vulnerableHeaders_ = value; @@ -3915,8 +3455,6 @@ public Builder mergeVulnerableHeaders( return this; } /** - * - * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3934,42 +3472,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() { bitField0_ |= 0x00004000; 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.
      * 
@@ -3977,17 +3506,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_; @@ -3995,61 +3521,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 ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * 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(); @@ -4063,15 +3572,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) { @@ -4085,24 +3591,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 (((bitField0_ & 0x00008000) != 0) - && vulnerableParameters_ != null - && vulnerableParameters_ - != com.google.cloud.websecurityscanner.v1.VulnerableParameters - .getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) && + vulnerableParameters_ != null && + vulnerableParameters_ != com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) { getVulnerableParametersBuilder().mergeFrom(value); } else { vulnerableParameters_ = value; @@ -4115,15 +3615,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() { bitField0_ = (bitField0_ & ~0x00008000); @@ -4136,66 +3633,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() { bitField0_ |= 0x00008000; 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_; @@ -4203,47 +3685,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 ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * 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.
      * 
@@ -4264,15 +3733,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(); } else { @@ -4283,8 +3751,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.
      * 
@@ -4293,9 +3759,9 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1.Xss.Builder builder */ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { if (xssBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && xss_ != null - && xss_ != com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + xss_ != null && + xss_ != com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance()) { getXssBuilder().mergeFrom(value); } else { xss_ = value; @@ -4308,8 +3774,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.
      * 
@@ -4327,8 +3791,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4341,8 +3803,6 @@ public com.google.cloud.websecurityscanner.v1.Xss.Builder getXssBuilder() { return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -4353,14 +3813,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.
      * 
@@ -4368,17 +3825,14 @@ 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_; @@ -4386,58 +3840,39 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { private com.google.cloud.websecurityscanner.v1.Xxe xxe_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xxe, - com.google.cloud.websecurityscanner.v1.Xxe.Builder, - com.google.cloud.websecurityscanner.v1.XxeOrBuilder> - xxeBuilder_; + com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder> xxeBuilder_; /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the xxe field is set. */ public boolean hasXxe() { return ((bitField0_ & 0x00020000) != 0); } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The xxe. */ public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { if (xxeBuilder_ == null) { - return xxe_ == null - ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() - : xxe_; + return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; } else { return xxeBuilder_.getMessage(); } } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { if (xxeBuilder_ == null) { @@ -4453,17 +3888,14 @@ public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe.Builder builderForValue) { + public Builder setXxe( + com.google.cloud.websecurityscanner.v1.Xxe.Builder builderForValue) { if (xxeBuilder_ == null) { xxe_ = builderForValue.build(); } else { @@ -4474,21 +3906,17 @@ public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe.Builder builder return this; } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { if (xxeBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) - && xxe_ != null - && xxe_ != com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) && + xxe_ != null && + xxe_ != com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance()) { getXxeBuilder().mergeFrom(value); } else { xxe_ = value; @@ -4501,15 +3929,11 @@ public Builder mergeXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearXxe() { bitField0_ = (bitField0_ & ~0x00020000); @@ -4522,15 +3946,11 @@ public Builder clearXxe() { return this; } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.websecurityscanner.v1.Xxe.Builder getXxeBuilder() { bitField0_ |= 0x00020000; @@ -4538,55 +3958,43 @@ public com.google.cloud.websecurityscanner.v1.Xxe.Builder getXxeBuilder() { return getXxeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { if (xxeBuilder_ != null) { return xxeBuilder_.getMessageOrBuilder(); } else { - return xxe_ == null - ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() - : xxe_; + return xxe_ == null ? + com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; } } /** - * - * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xxe, - com.google.cloud.websecurityscanner.v1.Xxe.Builder, - com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder> getXxeFieldBuilder() { if (xxeBuilder_ == null) { - xxeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xxe, - com.google.cloud.websecurityscanner.v1.Xxe.Builder, - com.google.cloud.websecurityscanner.v1.XxeOrBuilder>( - getXxe(), getParentForChildren(), isClean()); + xxeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder>( + getXxe(), + getParentForChildren(), + isClean()); xxe_ = null; } return xxeBuilder_; } - @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); } @@ -4596,12 +4004,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(); } @@ -4610,27 +4018,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4645,4 +4053,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java new file mode 100644 index 000000000000..601f9721494c --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java @@ -0,0 +1,160 @@ +// 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xxe_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\017\"\251" + + "\001\n\003Xxe\022\025\n\rpayload_value\030\001 \001(\t\022J\n\020payload" + + "_location\030\002 \001(\01620.google.cloud.websecuri" + + "tyscanner.v1.Xxe.Location\"?\n\010Location\022\030\n" + + "\024LOCATION_UNSPECIFIED\020\000\022\031\n\025COMPLETE_REQU" + + "EST_BODY\020\001B\207\002\n&com.google.cloud.websecur" + + "ityscanner.v1B\021FindingAddonProtoP\001ZVclou" + + "d.google.com/go/websecurityscanner/apiv1" + + "/websecurityscannerpb;websecurityscanner" + + "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" + + "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" + + "oogle::Cloud::WebSecurityScanner::V1b\006pr" + + "oto3" + }; + 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", }); + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor, + new java.lang.String[] { "PayloadValue", "PayloadLocation", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java similarity index 82% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java index 73438feb8fe2..49d6e61296b5 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.
    * 
@@ -544,43 +416,29 @@ public interface FindingOrBuilder com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder(); /** - * - * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the xxe field is set. */ boolean hasXxe(); /** - * - * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The xxe. */ com.google.cloud.websecurityscanner.v1.Xxe getXxe(); /** - * - * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder(); } diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java new file mode 100644 index 000000000000..0621a1ce6000 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java @@ -0,0 +1,94 @@ +// 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\"\356\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + + "type\030\002 \001(\t\022L\n\010severity\030\021 \001(\01624.google.cl" + + "oud.websecurityscanner.v1.Finding.Severi" + + "tyB\004\342A\001\003\022\023\n\013http_method\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\020reproduction_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\0226\n\004form\030\020 \001(\0132(.google.cloud.w" + + "ebsecurityscanner.v1.Form\022M\n\020outdated_li" + + "brary\030\013 \001(\01323.google.cloud.websecuritysc" + + "anner.v1.OutdatedLibrary\022Q\n\022violating_re" + + "source\030\014 \001(\01325.google.cloud.websecuritys" + + "canner.v1.ViolatingResource\022Q\n\022vulnerabl" + + "e_headers\030\017 \001(\01325.google.cloud.websecuri" + + "tyscanner.v1.VulnerableHeaders\022W\n\025vulner" + + "able_parameters\030\r \001(\01328.google.cloud.web" + + "securityscanner.v1.VulnerableParameters\022" + + "4\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritys" + + "canner.v1.Xss\022:\n\003xxe\030\022 \001(\0132\'.google.clou" + + "d.websecurityscanner.v1.XxeB\004\342A\001\003\"Q\n\010Sev" + + "erity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITI" + + "CAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\204\001\352" + + "A\200\001\n)websecurityscanner.googleapis.com/F" + + "inding\022Sprojects/{project}/scanConfigs/{" + + "scan_config}/scanRuns/{scan_run}/finding" + + "s/{finding}B\202\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\014FindingProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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.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", "Xxe", }); + 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java index 71fd4df4328f..986eb1c1b718 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,54 +11,48 @@
  *
  * 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();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -84,29 +61,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 { @@ -117,14 +94,11 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_ = 0; /** - * - * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -133,7 +107,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,7 +118,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_); } @@ -165,7 +139,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,16 +150,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -206,104 +182,98 @@ 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.
@@ -311,32 +281,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -347,9 +318,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
@@ -368,11 +339,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -391,39 +359,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.FindingTypeSta
     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;
@@ -431,8 +398,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_;
         bitField0_ |= 0x00000001;
@@ -467,25 +433,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                findingType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                findingCount_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              findingType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              findingCount_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -495,25 +458,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -522,21 +482,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 { @@ -544,35 +503,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } findingType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -582,21 +534,17 @@ public Builder clearFindingType() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000001; @@ -604,16 +552,13 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { 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 @@ -621,14 +566,11 @@ 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. */ @@ -640,14 +582,11 @@ public Builder setFindingCount(int value) { 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() { @@ -656,9 +595,9 @@ public Builder clearFindingCount() { 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); } @@ -668,12 +607,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(); } @@ -682,27 +621,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -717,4 +656,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java index fa98a7b8c87e..23a22c0513bb 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java @@ -1,62 +1,38 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java new file mode 100644 index 000000000000..e1c40642deb0 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\213\002\n&com.google.cloud.websecurityscann" + + "er.v1B\025FindingTypeStatsProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java index e2e47f432d92..42587ac83db7 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java @@ -1,81 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.emptyList(); + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Form(); } - 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; - @SuppressWarnings("serial") 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 @@ -84,29 +62,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 { @@ -115,47 +93,38 @@ public com.google.protobuf.ByteString getActionUriBytes() { } public static final int FIELDS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * ! 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. */ @@ -163,23 +132,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; @@ -191,7 +157,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_); } @@ -226,16 +193,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,149 +226,146 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; actionUri_ = ""; - fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -419,11 +384,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.Form result = new com.google.cloud.websecurityscanner.v1.Form(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -443,39 +405,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Form result) { 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; @@ -525,26 +486,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - actionUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFieldsIsMutable(); - fields_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + actionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,25 +512,22 @@ public Builder mergeFrom( } // finally 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; @@ -581,21 +536,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 { @@ -603,35 +557,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } actionUri_ = value; bitField0_ |= 0x00000001; 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() { @@ -641,21 +588,17 @@ public Builder clearActionUri() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); actionUri_ = value; bitField0_ |= 0x00000001; @@ -665,7 +608,6 @@ public Builder setActionUriBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureFieldsIsMutable() { if (!fields_.isModifiable()) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); @@ -673,43 +615,35 @@ private void ensureFieldsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * ! 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() { fields_.makeImmutable(); 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. */ @@ -717,37 +651,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); bitField0_ |= 0x00000002; @@ -755,21 +683,17 @@ public Builder setFields(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); bitField0_ |= 0x00000002; @@ -777,58 +701,50 @@ public Builder addFields(java.lang.String value) { 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return This builder for chaining. */ public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); @@ -836,9 +752,9 @@ public Builder addFieldsBytes(com.google.protobuf.ByteString 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); } @@ -848,12 +764,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(); } @@ -862,27 +778,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -897,4 +813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java index 493692b6f39d..07e70a5bff0d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java index 452964625f61..794d5a0a8db8 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,15 +62,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
@@ -101,15 +77,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 { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,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_); } @@ -154,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +293,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 @@ -342,11 +314,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +331,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.GetFindingRequ 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; @@ -402,8 +370,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_; bitField0_ |= 0x00000001; @@ -435,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,13 +422,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -471,13 +433,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; @@ -486,8 +448,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -495,14 +455,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 { @@ -510,8 +471,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -519,22 +478,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -542,7 +497,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -552,8 +506,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -561,23 +513,21 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -587,12 +537,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(); } @@ -601,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java similarity index 56% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java index bcdbae2e0c71..0b92e26a907c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java index 6fd3ec9551c2..884533b2a878 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -84,30 +61,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 { @@ -116,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +104,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_); } @@ -152,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,136 +157,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -319,9 +291,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 @@ -340,11 +312,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,39 +329,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.GetScanConfigR 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; @@ -400,8 +368,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_; bitField0_ |= 0x00000001; @@ -433,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,26 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -483,22 +445,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 { @@ -506,37 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -546,31 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -580,12 +530,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(); } @@ -594,27 +544,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -629,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java similarity index 54% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java index 971030526994..eb1926cd724e 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java index e98d8a9b5e0a..faeaf9325788 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,15 +62,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
@@ -101,15 +77,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 { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,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_); } @@ -154,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +293,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 @@ -342,11 +314,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +331,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.GetScanRunRequ 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; @@ -402,8 +370,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_; bitField0_ |= 0x00000001; @@ -435,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,13 +422,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -471,13 +433,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; @@ -486,8 +448,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -495,14 +455,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 { @@ -510,8 +471,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -519,22 +478,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -542,7 +497,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -552,8 +506,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -561,23 +513,21 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -587,12 +537,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(); } @@ -601,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java index 876db93a0207..46d95644eec8 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java index 0196e80716fa..a3da304f32e0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -77,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -86,15 +63,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
@@ -102,15 +78,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 { @@ -119,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -132,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -141,15 +114,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.
@@ -157,15 +129,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 { @@ -176,8 +149,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -185,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -194,7 +164,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +175,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_); } @@ -232,7 +202,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -242,17 +213,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,136 +249,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -417,14 +385,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(); } @@ -439,17 +406,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -466,39 +429,38 @@ private void buildPartial0( 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; @@ -506,9 +468,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_; bitField0_ |= 0x00000001; @@ -548,31 +508,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,13 +538,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -596,13 +549,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; @@ -611,8 +564,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -620,14 +571,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 { @@ -635,8 +587,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -644,22 +594,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -667,7 +613,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -677,8 +622,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -686,14 +629,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,8 +644,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.
@@ -712,13 +651,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; @@ -727,8 +666,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.
@@ -736,14 +673,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 { @@ -751,8 +689,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.
@@ -760,22 +696,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -783,7 +715,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -793,8 +724,6 @@ public Builder clearPageToken() { 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.
@@ -802,14 +731,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -817,10 +744,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -828,7 +753,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -836,8 +760,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
@@ -845,7 +767,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -857,8 +778,6 @@ public Builder setPageSize(int value) { 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
@@ -866,7 +785,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -875,9 +793,9 @@ public Builder clearPageSize() { 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); } @@ -887,13 +805,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(); } @@ -902,27 +819,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -937,4 +854,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java index bb51cc4072cd..f7e82ce1fb50 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java index 8a7778b14a05..f20572f37604 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getCraw return crawledUrls_; } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -157,30 +123,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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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)); } @@ -218,7 +184,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_); @@ -231,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +373,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(); } @@ -432,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,39 +424,38 @@ private void buildPartial0( 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; @@ -507,9 +463,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()) { @@ -528,10 +482,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_); } @@ -568,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.CrawledUrl m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), - extensionRegistry); - if (crawledUrlsBuilder_ == null) { - ensureCrawledUrlsIsMutable(); - crawledUrls_.add(m); - } else { - crawledUrlsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,30 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +583,6 @@ public java.util.List getCraw } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -658,8 +597,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -674,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -697,8 +632,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -717,8 +650,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -739,8 +670,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1.CrawledUrl return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -762,8 +691,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -782,8 +709,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -802,8 +727,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -814,7 +737,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); @@ -822,8 +746,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -841,8 +763,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -860,8 +780,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -873,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -884,22 +800,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 { @@ -907,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -916,12 +827,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.
      * 
@@ -930,36 +839,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_; @@ -967,21 +870,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; @@ -990,22 +891,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 { @@ -1013,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1053,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1087,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java index ffbbc54afebf..f89e91b7178a 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java similarity index 63% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java index 63b2f85f2fb4..e6e620eca647 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -85,15 +62,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
@@ -101,15 +77,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 { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,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_); } @@ -154,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,138 +159,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,16 +293,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 @@ -346,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -367,51 +331,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -443,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -465,13 +422,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -479,13 +433,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; @@ -494,8 +448,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -503,14 +455,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 { @@ -518,8 +471,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -527,22 +478,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -550,7 +497,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -560,8 +506,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -569,23 +513,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; 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); } @@ -595,43 +537,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,8 +583,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java similarity index 56% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java index 616aba4d37f8..d00ea56d0c1e 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java index 860eeeb84ea2..46cc4a2f7af2 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java @@ -1,147 +1,110 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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; @@ -153,7 +116,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)); } @@ -167,7 +131,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,15 +142,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,138 +172,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -354,16 +312,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 @@ -377,18 +333,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -400,8 +352,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { int from_bitField0_ = bitField0_; } @@ -409,51 +360,46 @@ private void buildPartial0( 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()) { @@ -472,10 +418,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_); } @@ -507,27 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.FindingTypeStats m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), - extensionRegistry); - if (findingTypeStatsBuilder_ == null) { - ensureFindingTypeStatsIsMutable(); - findingTypeStats_.add(m); - } else { - findingTypeStatsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -537,39 +480,28 @@ public Builder mergeFrom( } // finally 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 { @@ -577,14 +509,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) { @@ -594,14 +523,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) { @@ -611,14 +537,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) { @@ -635,18 +558,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()); @@ -657,17 +576,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(); @@ -681,14 +596,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) { @@ -705,14 +617,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) { @@ -726,18 +635,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()); @@ -748,21 +653,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); @@ -770,14 +672,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) { @@ -790,14 +689,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) { @@ -810,50 +706,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 { @@ -861,62 +746,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(), @@ -925,9 +793,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); } @@ -937,43 +805,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -985,8 +851,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java similarity index 59% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java index 2ffc7466d2bf..7a7d5d416af3 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java @@ -1,82 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java similarity index 72% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java index fc3a426cd78c..bdbd3389c9e0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +27,28 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -78,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -87,15 +64,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
@@ -103,15 +79,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 { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -134,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2; - * * @return The filter. */ @java.lang.Override @@ -143,15 +116,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>.
@@ -160,15 +132,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 { @@ -177,12 +150,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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.
@@ -190,7 +160,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -199,15 +168,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.
@@ -215,15 +183,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 { @@ -234,8 +203,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -243,7 +210,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -252,7 +218,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +229,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_); } @@ -296,7 +262,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,18 +273,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -343,136 +313,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -485,9 +450,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 @@ -506,11 +471,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -535,39 +497,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingsRe 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; @@ -575,8 +536,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_; bitField0_ |= 0x00000001; @@ -621,37 +581,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,13 +616,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -675,13 +627,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; @@ -690,8 +642,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -699,14 +649,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 { @@ -714,8 +665,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -723,22 +672,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -746,7 +691,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -756,8 +700,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -765,14 +707,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -782,8 +722,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>.
@@ -792,13 +730,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; @@ -807,8 +745,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -817,14 +753,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 { @@ -832,8 +769,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -842,22 +777,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -866,7 +797,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -876,8 +806,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -886,14 +814,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -903,8 +829,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.
@@ -912,13 +836,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; @@ -927,8 +851,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.
@@ -936,14 +858,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 { @@ -951,8 +874,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.
@@ -960,22 +881,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; 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.
@@ -983,7 +900,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -993,8 +909,6 @@ public Builder clearPageToken() { 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.
@@ -1002,14 +916,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1017,10 +929,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -1028,7 +938,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1036,8 +945,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
@@ -1045,7 +952,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1057,8 +963,6 @@ public Builder setPageSize(int value) { 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
@@ -1066,7 +970,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1075,9 +978,9 @@ public Builder clearPageSize() { 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); } @@ -1087,12 +990,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(); } @@ -1101,27 +1004,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,4 +1039,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java similarity index 73% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java index e67d1c331821..7e5d643be178 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java index c7d54a72d9cf..bf3f68dc4832 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getFinding return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -130,24 +100,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -156,30 +123,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 { @@ -188,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,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)); } @@ -217,7 +184,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_); @@ -230,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +373,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 @@ -430,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1.ListFindingsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListFindingsResponse result) { if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -464,39 +424,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingsRe 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; @@ -504,8 +463,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()) { @@ -524,10 +482,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_); } @@ -564,32 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.Finding m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry); - if (findingsBuilder_ == null) { - ensureFindingsIsMutable(); - findings_.add(m); - } else { - findingsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.Finding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,29 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -636,8 +583,6 @@ public java.util.List getFinding } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -652,8 +597,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -668,15 +611,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(); @@ -690,8 +632,6 @@ public Builder setFindings(int index, com.google.cloud.websecurityscanner.v1.Fin return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -710,8 +650,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -732,15 +670,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(); @@ -754,8 +691,6 @@ public Builder addFindings(int index, com.google.cloud.websecurityscanner.v1.Fin return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -774,8 +709,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -794,8 +727,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -806,7 +737,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); @@ -814,8 +746,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -833,8 +763,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -852,44 +780,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 { @@ -897,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -906,48 +827,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_; @@ -955,21 +870,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; @@ -978,22 +891,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 { @@ -1001,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1041,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1075,12 +976,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(); } @@ -1089,27 +990,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java index b6a9976dd897..c01bc8a11633 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java index af7499bd584d..0ba6419f04a0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,39 +26,34 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -85,30 +62,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 { @@ -117,12 +94,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -130,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -139,15 +112,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.
@@ -155,15 +127,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 { @@ -174,8 +147,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -183,7 +154,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -192,7 +162,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +173,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_); } @@ -230,7 +200,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -240,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,136 +247,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,14 +383,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(); } @@ -437,17 +404,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -464,39 +427,38 @@ private void buildPartial0( 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; @@ -504,9 +466,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_; bitField0_ |= 0x00000001; @@ -546,31 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,26 +536,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -608,22 +561,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 { @@ -631,37 +583,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -671,22 +616,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -696,8 +637,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.
@@ -705,13 +644,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; @@ -720,8 +659,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.
@@ -729,14 +666,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 { @@ -744,8 +682,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.
@@ -753,22 +689,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -776,7 +708,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -786,8 +717,6 @@ public Builder clearPageToken() { 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.
@@ -795,14 +724,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -810,10 +737,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -821,7 +746,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -829,8 +753,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
@@ -838,7 +760,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -850,8 +771,6 @@ public Builder setPageSize(int value) { 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
@@ -859,7 +778,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -868,9 +786,9 @@ public Builder clearPageSize() { 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); } @@ -880,13 +798,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(); } @@ -895,27 +812,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java index b69d9574693b..8f4b750315e0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java index 197333e604ca..4fe6bae6c6f0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getScan return scanConfigs_; } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -157,30 +123,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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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)); } @@ -218,7 +184,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_); @@ -231,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +373,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(); } @@ -432,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,39 +424,38 @@ private void buildPartial0( 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; @@ -507,9 +463,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()) { @@ -528,10 +482,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_); } @@ -568,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanConfig m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry); - if (scanConfigsBuilder_ == null) { - ensureScanConfigsIsMutable(); - scanConfigs_.add(m); - } else { - scanConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,30 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +583,6 @@ public java.util.List getScan } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -658,8 +597,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -674,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -697,8 +632,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -717,8 +650,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -739,8 +670,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -762,8 +691,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -782,8 +709,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -802,8 +727,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -814,7 +737,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); @@ -822,8 +746,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -841,8 +763,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -860,8 +780,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -873,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -884,22 +800,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 { @@ -907,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -916,12 +827,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.
      * 
@@ -930,36 +839,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_; @@ -967,21 +870,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; @@ -990,22 +891,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 { @@ -1013,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1053,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1087,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java index 5a46ada7b384..8292317f010a 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java index 7bc5a3307b53..304a26e45897 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,39 +26,34 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -85,30 +62,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 { @@ -117,12 +94,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -130,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -139,15 +112,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.
@@ -155,15 +127,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 { @@ -174,8 +147,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -183,7 +154,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -192,7 +162,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +173,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_); } @@ -230,7 +200,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -240,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,136 +247,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +383,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 @@ -436,11 +404,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -462,39 +427,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanRunsRe 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; @@ -502,8 +466,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_; bitField0_ |= 0x00000001; @@ -543,31 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -577,26 +536,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -605,22 +561,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 { @@ -628,37 +583,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -668,22 +616,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -693,8 +637,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.
@@ -702,13 +644,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; @@ -717,8 +659,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.
@@ -726,14 +666,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 { @@ -741,8 +682,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.
@@ -750,22 +689,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -773,7 +708,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -783,8 +717,6 @@ public Builder clearPageToken() { 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.
@@ -792,14 +724,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -807,10 +737,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -818,7 +746,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -826,8 +753,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
@@ -835,7 +760,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -847,8 +771,6 @@ public Builder setPageSize(int value) { 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
@@ -856,7 +778,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -865,9 +786,9 @@ public Builder clearPageSize() { 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); } @@ -877,12 +798,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(); } @@ -891,27 +812,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +847,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java index 353caa0973cb..a460a3f62eaf 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java index 8820f5c87ed4..21685cd3cc57 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getScanRun return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -130,24 +100,21 @@ 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; - @SuppressWarnings("serial") 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 @@ -156,30 +123,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 { @@ -188,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +166,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)); } @@ -217,7 +184,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_); @@ -230,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +373,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 @@ -430,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result) { if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -464,39 +424,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanRunsRe 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; @@ -504,8 +463,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()) { @@ -524,10 +482,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_); } @@ -564,32 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.ScanRun m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry); - if (scanRunsBuilder_ == null) { - ensureScanRunsIsMutable(); - scanRuns_.add(m); - } else { - scanRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanRun.parser(), + extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,29 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -636,8 +583,6 @@ public java.util.List getScanRun } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -652,8 +597,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -668,15 +611,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(); @@ -690,8 +632,6 @@ public Builder setScanRuns(int index, com.google.cloud.websecurityscanner.v1.Sca return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -710,8 +650,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -732,15 +670,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(); @@ -754,8 +691,6 @@ public Builder addScanRuns(int index, com.google.cloud.websecurityscanner.v1.Sca return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -774,8 +709,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -794,8 +727,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -806,7 +737,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); @@ -814,8 +746,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -833,8 +763,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -852,44 +780,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 { @@ -897,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -906,48 +827,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_; @@ -955,21 +870,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; @@ -978,22 +891,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 { @@ -1001,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1041,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1075,12 +976,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(); } @@ -1089,27 +990,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java index 32f0c089864d..d453492c98fe 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java index 5eedbb3dba3d..49ee994e2da0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java @@ -1,82 +1,60 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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_ = ""; - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object libraryName_ = ""; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -85,29 +63,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 { @@ -116,18 +94,14 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } public static final int VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -136,29 +110,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 { @@ -167,47 +141,38 @@ public com.google.protobuf.ByteString getVersionBytes() { } public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -215,23 +180,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; @@ -243,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(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -284,17 +247,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,150 +285,146 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; libraryName_ = ""; version_ = ""; - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -482,11 +443,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -509,39 +467,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.OutdatedLibrar 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; @@ -549,8 +506,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_; bitField0_ |= 0x00000001; @@ -597,32 +553,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - libraryName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLearnMoreUrlsIsMutable(); - learnMoreUrls_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + libraryName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -632,25 +584,22 @@ public Builder mergeFrom( } // finally 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; @@ -659,21 +608,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 { @@ -681,35 +629,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLibraryName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } libraryName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { @@ -719,21 +660,17 @@ public Builder clearLibraryName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); libraryName_ = value; bitField0_ |= 0x00000001; @@ -743,20 +680,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; @@ -765,21 +700,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 { @@ -787,35 +721,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { @@ -825,21 +752,17 @@ public Builder clearVersion() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000002; @@ -849,7 +772,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLearnMoreUrlsIsMutable() { if (!learnMoreUrls_.isModifiable()) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); @@ -857,43 +779,35 @@ private void ensureLearnMoreUrlsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * 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() { learnMoreUrls_.makeImmutable(); 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. */ @@ -901,37 +815,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLearnMoreUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); bitField0_ |= 0x00000004; @@ -939,21 +847,17 @@ public Builder setLearnMoreUrls(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLearnMoreUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); bitField0_ |= 0x00000004; @@ -961,58 +865,50 @@ public Builder addLearnMoreUrls(java.lang.String value) { 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_); bitField0_ |= 0x00000004; 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() { - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); @@ -1020,9 +916,9 @@ public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString 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); } @@ -1032,12 +928,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(); } @@ -1046,27 +942,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,4 +977,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java index eb23f6b06583..cd49366c8fbf 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java index d389df1efcc2..0eadbd5075ff 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java @@ -1,86 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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_ = ""; - startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); userAgent_ = 0; - blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); exportToSecurityCommandCenter_ = 0; riskLevel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanConfig(); } - 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.
      * 
@@ -89,8 +69,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -99,8 +77,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -109,8 +85,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -122,8 +96,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -132,8 +104,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.
      * 
@@ -142,8 +112,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -152,8 +120,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -162,6 +128,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( @@ -186,53 +153,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; @@ -250,8 +214,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
@@ -260,10 +222,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.
      * 
@@ -272,8 +233,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ RISK_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -282,8 +241,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ NORMAL(1), /** - * - * *
      * Lower impact scanning
      * 
@@ -295,8 +252,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Use default, which is NORMAL.
      * 
@@ -305,8 +260,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -315,8 +268,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NORMAL_VALUE = 1; /** - * - * *
      * Lower impact scanning
      * 
@@ -325,6 +276,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( @@ -349,51 +301,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; @@ -411,20 +361,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.
      * 
@@ -433,8 +379,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.
      * 
@@ -443,8 +387,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ ENABLED(1), /** - * - * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -456,8 +398,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco ; /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -466,8 +406,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.
      * 
@@ -476,8 +414,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.
      * 
@@ -486,6 +422,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( @@ -510,14 +447,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; } } @@ -525,31 +458,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(); @@ -557,7 +488,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; @@ -574,271 +506,198 @@ 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 [deprecated = true]; - * - * - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is - * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ - @java.lang.Deprecated - boolean hasGoogleAccount(); + @java.lang.Deprecated boolean hasGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * - * - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is - * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ - @java.lang.Deprecated - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount(); + @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder(); + @java.lang.Deprecated 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(); - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + 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(); } - 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); } - @java.lang.Deprecated - public interface GoogleAccountOrBuilder - extends + @java.lang.Deprecated 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} */ - @java.lang.Deprecated - public static final class GoogleAccount extends com.google.protobuf.GeneratedMessageV3 - implements + @java.lang.Deprecated 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_ = ""; @@ -846,40 +705,33 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -888,29 +740,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 { @@ -919,19 +771,15 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -940,30 +788,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 { @@ -972,7 +820,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -984,7 +831,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_); } @@ -1014,18 +862,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1046,104 +893,90 @@ 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 @@ -1153,45 +986,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1202,23 +1029,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); } @@ -1226,20 +1049,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -1253,56 +1070,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -1339,25 +1146,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1367,25 +1171,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -1394,21 +1195,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 { @@ -1416,35 +1216,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1454,21 +1247,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -1478,21 +1267,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; @@ -1501,22 +1288,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 { @@ -1524,37 +1310,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -1564,29 +1343,24 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1599,46 +1373,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1650,114 +1419,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_ = ""; @@ -1766,40 +1515,33 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; - * * @return The username. */ @java.lang.Override @@ -1808,29 +1550,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 { @@ -1839,19 +1581,15 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -1860,30 +1598,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 { @@ -1892,18 +1630,14 @@ public com.google.protobuf.ByteString getPasswordBytes() { } public static final int LOGIN_URL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object loginUrl_ = ""; /** - * - * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; - * * @return The loginUrl. */ @java.lang.Override @@ -1912,29 +1646,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 { @@ -1943,7 +1677,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1955,7 +1688,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_); } @@ -1991,19 +1725,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2026,104 +1760,90 @@ 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 @@ -2133,45 +1853,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2183,23 +1897,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); } @@ -2207,20 +1917,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -2237,56 +1941,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -2328,31 +2022,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - loginUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + loginUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2362,25 +2052,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -2389,21 +2076,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 { @@ -2411,35 +2097,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -2449,21 +2128,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -2473,21 +2148,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; @@ -2496,22 +2169,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 { @@ -2519,37 +2191,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -2559,22 +2224,18 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; @@ -2584,20 +2245,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; @@ -2606,21 +2265,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 { @@ -2628,35 +2286,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLoginUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; - * * @return This builder for chaining. */ public Builder clearLoginUrl() { @@ -2666,28 +2317,23 @@ public Builder clearLoginUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2700,46 +2346,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2751,213 +2392,164 @@ 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(); - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapCredentialsCase - getIapCredentialsCase(); + 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(); } - 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -2966,31 +2558,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 { @@ -2999,7 +2590,6 @@ public com.google.protobuf.ByteString getTargetAudienceClientIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3012,7 +2602,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_); } @@ -3026,9 +2616,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3038,22 +2626,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; - - if (!getTargetAudienceClientId().equals(other.getTargetAudienceClientId())) return false; + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3072,119 +2653,90 @@ 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 @@ -3194,47 +2746,40 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3244,26 +2789,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); } @@ -3271,25 +2809,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential - .IapTestServiceAccountInfo - result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.targetAudienceClientId_ = targetAudienceClientId_; @@ -3300,60 +2827,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -3385,19 +2898,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - targetAudienceClientId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + targetAudienceClientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3407,27 +2918,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -3436,23 +2943,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 { @@ -3460,39 +2965,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetAudienceClientId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetAudienceClientId_ = value; bitField0_ |= 0x00000001; 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() { @@ -3502,30 +2998,24 @@ public Builder clearTargetAudienceClientId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetAudienceClientIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetAudienceClientId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3538,48 +3028,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3591,26 +3074,21 @@ 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; - @SuppressWarnings("serial") 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; } @@ -3626,37 +3104,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 @@ -3664,58 +3135,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; @@ -3727,13 +3178,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_); } getUnknownFields().writeTo(output); } @@ -3745,12 +3193,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3760,21 +3204,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: @@ -3803,104 +3244,90 @@ 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 @@ -3910,45 +3337,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3962,23 +3383,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); } @@ -3986,29 +3403,23 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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 (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { + private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { result.iapCredentialsCase_ = iapCredentialsCase_; result.iapCredentials_ = this.iapCredentials_; - if (iapCredentialsCase_ == 1 && iapTestServiceAccountInfoBuilder_ != null) { + if (iapCredentialsCase_ == 1 && + iapTestServiceAccountInfoBuilder_ != null) { result.iapCredentials_ = iapTestServiceAccountInfoBuilder_.build(); } } @@ -4017,66 +3428,54 @@ private void buildPartialOneofs( 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.getUnknownFields()); onChanged(); @@ -4104,20 +3503,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getIapTestServiceAccountInfoFieldBuilder().getBuilder(), extensionRegistry); - iapCredentialsCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getIapTestServiceAccountInfoFieldBuilder().getBuilder(), + extensionRegistry); + iapCredentialsCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4127,12 +3525,12 @@ public Builder mergeFrom( } // finally 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() { @@ -4145,25 +3543,14 @@ public Builder clearIapCredentials() { private int bitField0_; 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 @@ -4171,55 +3558,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(); @@ -4233,21 +3602,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(); @@ -4258,34 +3621,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; } @@ -4301,16 +3649,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) { @@ -4329,87 +3673,53 @@ 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; @@ -4418,7 +3728,6 @@ public Builder clearIapTestServiceAccountInfo() { onChanged(); return iapTestServiceAccountInfoBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4431,46 +3740,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4482,28 +3786,23 @@ 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; - @SuppressWarnings("serial") 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 { - @java.lang.Deprecated - GOOGLE_ACCOUNT(1), + @java.lang.Deprecated GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), IAP_CREDENTIAL(4), AUTHENTICATION_NOT_SET(0); private final int value; - private AuthenticationCase(int value) { this.value = value; } @@ -4519,110 +3818,78 @@ 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 [deprecated = true]; - * - * - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is - * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasGoogleAccount() { + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
      * Authentication using a Google account.
      * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * - * - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is - * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + @java.lang.Deprecated 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 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + @java.lang.Deprecated 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 @@ -4630,62 +3897,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 @@ -4693,52 +3940,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; @@ -4750,24 +3981,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_); } getUnknownFields().writeTo(output); } @@ -4779,25 +4002,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4807,24 +4021,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: @@ -4862,95 +4078,89 @@ 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); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + 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.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 @@ -4960,42 +4170,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5015,16 +4222,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 @@ -5038,32 +4243,30 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { + private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { result.authenticationCase_ = authenticationCase_; result.authentication_ = this.authentication_; - if (authenticationCase_ == 1 && googleAccountBuilder_ != null) { + if (authenticationCase_ == 1 && + googleAccountBuilder_ != null) { result.authentication_ = googleAccountBuilder_.build(); } - if (authenticationCase_ == 2 && customAccountBuilder_ != null) { + if (authenticationCase_ == 2 && + customAccountBuilder_ != null) { result.authentication_ = customAccountBuilder_.build(); } - if (authenticationCase_ == 4 && iapCredentialBuilder_ != null) { + if (authenticationCase_ == 4 && + iapCredentialBuilder_ != null) { result.authentication_ = iapCredentialBuilder_.build(); } } @@ -5072,73 +4275,62 @@ private void buildPartialOneofs( 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.getUnknownFields()); onChanged(); @@ -5166,31 +4358,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); - authenticationCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); - authenticationCase_ = 2; - break; - } // case 18 - case 34: - { - input.readMessage(getIapCredentialFieldBuilder().getBuilder(), extensionRegistry); - authenticationCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGoogleAccountFieldBuilder().getBuilder(), + extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCustomAccountFieldBuilder().getBuilder(), + extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + case 34: { + input.readMessage( + getIapCredentialFieldBuilder().getBuilder(), + extensionRegistry); + authenticationCase_ = 4; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5200,12 +4394,12 @@ public Builder mergeFrom( } // finally 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() { @@ -5218,80 +4412,53 @@ public Builder clearAuthentication() { private int bitField0_; 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 [deprecated = true]; - * - * - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is - * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasGoogleAccount() { + @java.lang.Deprecated public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * - * - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is - * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. + * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount - getGoogleAccount() { + @java.lang.Deprecated 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 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + @java.lang.Deprecated public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5305,20 +4472,14 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder - builderForValue) { + @java.lang.Deprecated public Builder setGoogleAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -5329,32 +4490,18 @@ public Builder setGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + @java.lang.Deprecated 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; } @@ -5370,18 +4517,13 @@ public Builder mergeGoogleAccount( return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearGoogleAccount() { + @java.lang.Deprecated public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { authenticationCase_ = 0; @@ -5398,80 +4540,50 @@ public Builder clearGoogleAccount() { return this; } /** - * - * *
        * Authentication using a Google account.
        * 
* - * - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder - getGoogleAccountBuilder() { + @java.lang.Deprecated 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 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder - getGoogleAccountOrBuilder() { + @java.lang.Deprecated 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 [deprecated = true]; - * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; */ 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(); + 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_, + 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; @@ -5482,23 +4594,13 @@ public Builder clearGoogleAccount() { } 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 @@ -5506,49 +4608,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(); @@ -5562,19 +4650,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(); @@ -5585,31 +4668,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; } @@ -5625,15 +4695,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) { @@ -5652,78 +4718,50 @@ 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(); + 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_, + 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; @@ -5734,23 +4772,13 @@ public Builder clearCustomAccount() { } 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 @@ -5758,49 +4786,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(); @@ -5814,19 +4828,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(); @@ -5837,31 +4846,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; } @@ -5877,15 +4873,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) { @@ -5904,78 +4896,50 @@ 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(); + 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_, + 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; @@ -5984,7 +4948,6 @@ public Builder clearIapCredential() { onChanged(); return iapCredentialBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5997,44 +4960,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6046,20 +5006,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
@@ -6068,13 +5025,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
@@ -6083,13 +5037,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
@@ -6102,65 +5053,57 @@ 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(); } - 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
@@ -6169,7 +5112,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 @@ -6177,8 +5119,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
@@ -6187,18 +5127,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
@@ -6210,22 +5145,17 @@ public com.google.protobuf.Timestamp getScheduleTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
-      return scheduleTime_ == null
-          ? com.google.protobuf.Timestamp.getDefaultInstance()
-          : scheduleTime_;
+      return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
     }
 
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_ = 0;
     /**
-     *
-     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; - * * @return The intervalDurationDays. */ @java.lang.Override @@ -6234,7 +5164,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6246,7 +5175,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()); } @@ -6263,10 +5193,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6276,19 +5208,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6312,94 +5245,89 @@ 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 @@ -6409,41 +5337,39 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6458,14 +5384,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(); } @@ -6480,21 +5405,18 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scheduleTime_ = - scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); + result.scheduleTime_ = scheduleTimeBuilder_ == null + ? scheduleTime_ + : scheduleTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.intervalDurationDays_ = intervalDurationDays_; @@ -6505,41 +5427,38 @@ private void buildPartial0( 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; @@ -6547,9 +5466,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()); } @@ -6582,25 +5499,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - intervalDurationDays_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getScheduleTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + intervalDurationDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6610,18 +5526,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -6630,15 +5540,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * 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
@@ -6647,21 +5554,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
@@ -6685,8 +5587,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
@@ -6696,7 +5596,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();
         } else {
@@ -6707,8 +5608,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
@@ -6720,9 +5619,9 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
        */
       public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && scheduleTime_ != null
-              && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            scheduleTime_ != null &&
+            scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getScheduleTimeBuilder().mergeFrom(value);
           } else {
             scheduleTime_ = value;
@@ -6735,8 +5634,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
@@ -6757,8 +5654,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
@@ -6774,8 +5669,6 @@ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
         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
@@ -6789,14 +5682,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
@@ -6807,32 +5697,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 @@ -6840,14 +5724,11 @@ 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. */ @@ -6859,14 +5740,11 @@ public Builder setIntervalDurationDays(int value) { return this; } /** - * - * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; - * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { @@ -6875,7 +5753,6 @@ public Builder clearIntervalDurationDays() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6888,13 +5765,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(); } @@ -6903,28 +5779,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6939,15 +5814,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; - @SuppressWarnings("serial") 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
@@ -6955,7 +5828,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInst
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -6964,15 +5836,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
@@ -6980,15 +5851,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 { @@ -6997,18 +5869,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -7017,29 +5885,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 { @@ -7050,8 +5918,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_ = 0; /** - * - * *
    * 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
@@ -7060,7 +5926,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -7069,47 +5934,38 @@ public int getMaxQps() { } public static final int STARTING_URLS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -7117,33 +5973,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 @@ -7151,26 +6002,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.
@@ -7179,95 +6023,72 @@ 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() {
-    return authentication_ == null
-        ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance()
-        : authentication_;
+  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() {
+    return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_;
   }
 
   public static final int USER_AGENT_FIELD_NUMBER = 6;
   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; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.forNumber(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.forNumber(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -7275,33 +6096,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 @@ -7309,25 +6125,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.
    * 
@@ -7335,108 +6144,73 @@ 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() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; } public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; 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; * @return The exportToSecurityCommandCenter. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber(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_ = 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; - * * @return The riskLevel. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.forNumber(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.forNumber(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_ = false; /** - * - * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; - * * @return The managedScan. */ @java.lang.Override @@ -7447,15 +6221,12 @@ public boolean getManagedScan() { public static final int STATIC_IP_SCAN_FIELD_NUMBER = 14; private boolean staticIpScan_ = false; /** - * - * *
    * 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 @@ -7466,14 +6237,11 @@ public boolean getStaticIpScan() { public static final int IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER = 15; private boolean ignoreHttpStatusErrors_ = false; /** - * - * *
    * Whether to keep scanning even if most requests return HTTP error codes.
    * 
* * bool ignore_http_status_errors = 15; - * * @return The ignoreHttpStatusErrors. */ @java.lang.Override @@ -7482,7 +6250,6 @@ public boolean getIgnoreHttpStatusErrors() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7494,7 +6261,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_); } @@ -7510,9 +6278,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++) { @@ -7521,15 +6287,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) { @@ -7557,7 +6318,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; @@ -7568,12 +6330,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; @@ -7584,28 +6346,28 @@ 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_); } if (ignoreHttpStatusErrors_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, ignoreHttpStatusErrors_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, ignoreHttpStatusErrors_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7615,33 +6377,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.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 (getIgnoreHttpStatusErrors() != other.getIgnoreHttpStatusErrors()) return false; + if (getManagedScan() + != other.getManagedScan()) return false; + if (getStaticIpScan() + != other.getStaticIpScan()) return false; + if (getIgnoreHttpStatusErrors() + != other.getIgnoreHttpStatusErrors()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7682,146 +6453,145 @@ 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 = (37 * hash) + IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreHttpStatusErrors()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIgnoreHttpStatusErrors()); hash = (29 * hash) + getUnknownFields().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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -7829,14 +6599,16 @@ public Builder clear() { name_ = ""; displayName_ = ""; maxQps_ = 0; - startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); authentication_ = null; if (authenticationBuilder_ != null) { authenticationBuilder_.dispose(); authenticationBuilder_ = null; } userAgent_ = 0; - blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); schedule_ = null; if (scheduleBuilder_ != null) { scheduleBuilder_.dispose(); @@ -7851,9 +6623,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 @@ -7872,11 +6644,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.ScanConfig result = new com.google.cloud.websecurityscanner.v1.ScanConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -7897,8 +6666,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig res result.startingUrls_ = startingUrls_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.authentication_ = - authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); + result.authentication_ = authenticationBuilder_ == null + ? authentication_ + : authenticationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.userAgent_ = userAgent_; @@ -7908,7 +6678,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig res result.blacklistPatterns_ = blacklistPatterns_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.schedule_ = scheduleBuilder_ == null ? schedule_ : scheduleBuilder_.build(); + result.schedule_ = scheduleBuilder_ == null + ? schedule_ + : scheduleBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.exportToSecurityCommandCenter_ = exportToSecurityCommandCenter_; @@ -7931,39 +6703,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig res 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; @@ -7971,8 +6742,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_; bitField0_ |= 0x00000001; @@ -8056,93 +6826,83 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - maxQps_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStartingUrlsIsMutable(); - startingUrls_.add(s); - break; - } // case 34 - case 42: - { - input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - userAgent_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureBlacklistPatternsIsMutable(); - blacklistPatterns_.add(s); - break; - } // case 58 - case 66: - { - input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 80: - { - exportToSecurityCommandCenter_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 80 - case 96: - { - riskLevel_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 96 - case 104: - { - managedScan_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 104 - case 112: - { - staticIpScan_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 112 - case 120: - { - ignoreHttpStatusErrors_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 120 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + maxQps_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStartingUrlsIsMutable(); + startingUrls_.add(s); + break; + } // case 34 + case 42: { + input.readMessage( + getAuthenticationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + userAgent_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlacklistPatternsIsMutable(); + blacklistPatterns_.add(s); + break; + } // case 58 + case 66: { + input.readMessage( + getScheduleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 80: { + exportToSecurityCommandCenter_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 96: { + riskLevel_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 96 + case 104: { + managedScan_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 104 + case 112: { + staticIpScan_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 112 + case 120: { + ignoreHttpStatusErrors_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 120 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8152,13 +6912,10 @@ public Builder mergeFrom( } // finally 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
@@ -8166,13 +6923,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; @@ -8181,8 +6938,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
@@ -8190,14 +6945,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 { @@ -8205,8 +6961,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
@@ -8214,22 +6968,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8237,7 +6987,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -8247,8 +6996,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -8256,14 +7003,12 @@ 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(); - } + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -8273,20 +7018,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; @@ -8295,21 +7038,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 { @@ -8317,35 +7059,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -8355,21 +7090,17 @@ public Builder clearDisplayName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -8377,10 +7108,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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
@@ -8389,7 +7118,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -8397,8 +7125,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
@@ -8407,7 +7133,6 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ @@ -8419,8 +7144,6 @@ public Builder setMaxQps(int value) { 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
@@ -8429,7 +7152,6 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { @@ -8441,7 +7163,6 @@ public Builder clearMaxQps() { private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStartingUrlsIsMutable() { if (!startingUrls_.isModifiable()) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); @@ -8449,43 +7170,35 @@ private void ensureStartingUrlsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
      * 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() { startingUrls_.makeImmutable(); 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. */ @@ -8493,37 +7206,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStartingUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); bitField0_ |= 0x00000008; @@ -8531,21 +7238,17 @@ public Builder setStartingUrls(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartingUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartingUrlsIsMutable(); startingUrls_.add(value); bitField0_ |= 0x00000008; @@ -8553,58 +7256,50 @@ public Builder addStartingUrls(java.lang.String value) { 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_); bitField0_ |= 0x00000008; 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() { - startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + startingUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); @@ -8615,61 +7310,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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(); @@ -8683,15 +7361,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) { @@ -8705,24 +7380,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 (((bitField0_ & 0x00000010) != 0) - && authentication_ != null - && authentication_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + authentication_ != null && + authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance()) { getAuthenticationBuilder().mergeFrom(value); } else { authentication_ = value; @@ -8735,15 +7404,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -8756,66 +7422,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() { bitField0_ |= 0x00000010; 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_; @@ -8823,29 +7474,22 @@ 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. */ @@ -8856,33 +7500,24 @@ public Builder setUserAgentValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.forNumber(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.forNumber(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. */ @@ -8896,14 +7531,11 @@ public Builder setUserAgent(com.google.cloud.websecurityscanner.v1.ScanConfig.Us 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() { @@ -8915,7 +7547,6 @@ public Builder clearUserAgent() { private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureBlacklistPatternsIsMutable() { if (!blacklistPatterns_.isModifiable()) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); @@ -8923,46 +7554,38 @@ private void ensureBlacklistPatternsIsMutable() { bitField0_ |= 0x00000040; } /** - * - * *
      * 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() { blacklistPatterns_.makeImmutable(); 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. */ @@ -8970,39 +7593,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); } /** - * - * *
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBlacklistPatterns( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); bitField0_ |= 0x00000040; @@ -9010,22 +7627,18 @@ public Builder setBlacklistPatterns(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addBlacklistPatterns( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); bitField0_ |= 0x00000040; @@ -9033,61 +7646,53 @@ public Builder addBlacklistPatterns(java.lang.String value) { 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_); bitField0_ |= 0x00000040; 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() { - blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; + blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; 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 bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); @@ -9098,47 +7703,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 ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * 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.
      * 
@@ -9159,8 +7751,6 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.Sch return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9179,8 +7769,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9189,11 +7777,9 @@ public Builder setSchedule( */ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && schedule_ != null - && schedule_ - != com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + schedule_ != null && + schedule_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) { getScheduleBuilder().mergeFrom(value); } else { schedule_ = value; @@ -9206,8 +7792,6 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9225,8 +7809,6 @@ public Builder clearSchedule() { return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -9239,27 +7821,21 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getSch 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.
      * 
@@ -9267,17 +7843,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_; @@ -9285,35 +7858,24 @@ 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. */ @@ -9324,47 +7886,30 @@ public Builder setExportToSecurityCommandCenterValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber( - exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber(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(); } @@ -9374,17 +7919,12 @@ public Builder setExportToSecurityCommandCenter( 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() { @@ -9396,29 +7936,22 @@ 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. */ @@ -9429,33 +7962,24 @@ public Builder setRiskLevelValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.forNumber(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.forNumber(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. */ @@ -9469,14 +7993,11 @@ public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1.ScanConfig.Ri 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() { @@ -9486,17 +8007,14 @@ public Builder clearRiskLevel() { 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 @@ -9504,15 +8022,12 @@ 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. */ @@ -9524,15 +8039,12 @@ public Builder setManagedScan(boolean value) { 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() { @@ -9542,17 +8054,14 @@ public Builder clearManagedScan() { 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 @@ -9560,15 +8069,12 @@ 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. */ @@ -9580,15 +8086,12 @@ public Builder setStaticIpScan(boolean value) { 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() { @@ -9598,16 +8101,13 @@ public Builder clearStaticIpScan() { return this; } - private boolean ignoreHttpStatusErrors_; + private boolean ignoreHttpStatusErrors_ ; /** - * - * *
      * Whether to keep scanning even if most requests return HTTP error codes.
      * 
* * bool ignore_http_status_errors = 15; - * * @return The ignoreHttpStatusErrors. */ @java.lang.Override @@ -9615,14 +8115,11 @@ public boolean getIgnoreHttpStatusErrors() { return ignoreHttpStatusErrors_; } /** - * - * *
      * Whether to keep scanning even if most requests return HTTP error codes.
      * 
* * bool ignore_http_status_errors = 15; - * * @param value The ignoreHttpStatusErrors to set. * @return This builder for chaining. */ @@ -9634,14 +8131,11 @@ public Builder setIgnoreHttpStatusErrors(boolean value) { return this; } /** - * - * *
      * Whether to keep scanning even if most requests return HTTP error codes.
      * 
* * bool ignore_http_status_errors = 15; - * * @return This builder for chaining. */ public Builder clearIgnoreHttpStatusErrors() { @@ -9650,9 +8144,9 @@ public Builder clearIgnoreHttpStatusErrors() { 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); } @@ -9662,12 +8156,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(); } @@ -9676,27 +8170,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9711,4 +8205,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java similarity index 74% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java index c305661e899b..a2aae1d8335f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,28 +29,25 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
-  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.
@@ -77,10 +56,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.
      * 
@@ -89,8 +67,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.
@@ -100,8 +76,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.
@@ -111,8 +85,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.
@@ -122,8 +94,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.
@@ -133,8 +103,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -143,8 +111,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.
      * 
@@ -153,8 +119,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.
@@ -164,8 +128,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.
@@ -175,8 +137,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.
      * 
@@ -185,8 +145,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).
      * 
@@ -195,8 +153,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.
      * 
@@ -205,8 +161,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.
@@ -216,8 +170,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.
      * 
@@ -226,8 +178,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.
@@ -237,8 +187,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.
      * 
@@ -247,8 +195,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DUPLICATE_SCAN_NAME(16, 16), /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -257,8 +203,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.
      * 
@@ -267,8 +211,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.
      * 
@@ -277,8 +219,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.
@@ -288,8 +228,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -298,8 +236,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
@@ -310,8 +246,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     MALFORMED_FILTER(22, 22),
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -320,8 +254,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED_RESOURCE_NAME(23, 23), /** - * - * *
      * The current project is not in an active state.
      * 
@@ -330,8 +262,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ PROJECT_INACTIVE(24, 24), /** - * - * *
      * A required field is not set.
      * 
@@ -340,8 +270,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.
@@ -351,8 +279,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -361,8 +287,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.
      * 
@@ -371,8 +295,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.
      * 
@@ -381,8 +303,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).
      * 
@@ -391,8 +311,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.
      * 
@@ -401,8 +319,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.
@@ -412,8 +328,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.
      * 
@@ -422,8 +336,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.
@@ -433,8 +345,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.
@@ -444,8 +354,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -454,8 +362,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TOO_MANY_SCANS(36, 37), /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -464,8 +370,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.
      * 
@@ -474,8 +378,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -484,8 +386,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.
@@ -495,8 +395,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.
      * 
@@ -508,8 +406,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * There is no error.
      * 
@@ -518,8 +414,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final Code OK = CODE_UNSPECIFIED; /** - * - * *
      * There is no error.
      * 
@@ -528,8 +422,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * There is no error.
      * 
@@ -538,8 +430,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.
@@ -549,8 +439,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.
@@ -560,8 +448,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.
@@ -571,8 +457,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.
@@ -582,8 +466,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.
      * 
@@ -592,8 +474,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.
      * 
@@ -602,8 +482,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.
@@ -613,8 +491,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.
@@ -624,8 +500,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.
      * 
@@ -634,8 +508,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).
      * 
@@ -644,8 +516,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.
      * 
@@ -654,8 +524,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.
@@ -665,8 +533,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.
      * 
@@ -675,8 +541,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.
@@ -686,8 +550,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.
      * 
@@ -696,8 +558,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.
      * 
@@ -706,8 +566,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.
      * 
@@ -716,8 +574,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.
      * 
@@ -726,8 +582,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.
@@ -737,8 +591,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
      * 
@@ -747,8 +599,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
@@ -759,8 +609,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).
      * 
@@ -769,8 +617,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.
      * 
@@ -779,8 +625,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROJECT_INACTIVE_VALUE = 24; /** - * - * *
      * A required field is not set.
      * 
@@ -789,8 +633,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.
@@ -800,8 +642,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.
      * 
@@ -810,8 +650,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.
      * 
@@ -820,8 +658,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.
      * 
@@ -830,8 +666,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).
      * 
@@ -840,8 +674,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.
      * 
@@ -850,8 +682,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.
@@ -861,8 +691,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.
      * 
@@ -871,8 +699,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.
@@ -882,8 +708,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.
@@ -893,8 +717,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.
      * 
@@ -903,8 +725,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.
      * 
@@ -913,8 +733,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.
      * 
@@ -923,8 +741,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.
      * 
@@ -933,8 +749,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.
@@ -944,8 +758,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.
      * 
@@ -954,6 +766,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( @@ -978,174 +791,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 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< + 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() { 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; @@ -1167,47 +897,33 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; 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; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.forNumber(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.forNumber(code_); + return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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
@@ -1216,7 +932,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() {
    * 
* * string field_name = 2; - * * @return The fieldName. */ @java.lang.Override @@ -1225,15 +940,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
@@ -1242,15 +956,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 { @@ -1259,7 +974,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1271,10 +985,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_)) { @@ -1289,10 +1002,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_); @@ -1305,16 +1017,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1336,104 +1048,98 @@ 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
@@ -1443,32 +1149,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1479,9 +1186,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
@@ -1500,11 +1207,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.ScanConfigError result = new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1523,39 +1227,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfigErro
     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;
@@ -1563,8 +1266,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());
       }
@@ -1599,25 +1301,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                fieldName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              fieldName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1627,34 +1326,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. */ @@ -1665,33 +1356,24 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.forNumber(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.forNumber(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. */ @@ -1705,14 +1387,11 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanConfigError.Co 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() { @@ -1724,8 +1403,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
@@ -1734,13 +1411,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; @@ -1749,8 +1426,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
@@ -1759,14 +1434,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 { @@ -1774,8 +1450,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
@@ -1784,22 +1458,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fieldName_ = value; bitField0_ |= 0x00000002; 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
@@ -1808,7 +1478,6 @@ public Builder setFieldName(java.lang.String value) {
      * 
* * string field_name = 2; - * * @return This builder for chaining. */ public Builder clearFieldName() { @@ -1818,8 +1487,6 @@ public Builder clearFieldName() { 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
@@ -1828,23 +1495,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldName_ = value; bitField0_ |= 0x00000002; 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); } @@ -1854,12 +1519,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(); } @@ -1868,27 +1533,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1903,4 +1568,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java index a00e47dbc021..c95f6cd7cffb 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java new file mode 100644 index 000000000000..20338780ce3b --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\212\002\n&com.google.cloud.websec" + + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" + + "Vcloud.google.com/go/websecurityscanner/" + + "apiv1/websecurityscannerpb;websecuritysc" + + "annerpb\252\002\"Google.Cloud.WebSecurityScanne" + + "r.V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V" + + "1\352\002%Google::Cloud::WebSecurityScanner::V" + + "1b\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java similarity index 82% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java index 50d338c833a3..882ee270fe97 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,99 +227,73 @@ 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(); /** - * - * *
    * Whether to keep scanning even if most requests return HTTP error codes.
    * 
* * bool ignore_http_status_errors = 15; - * * @return The ignoreHttpStatusErrors. */ boolean getIgnoreHttpStatusErrors(); diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java new file mode 100644 index 000000000000..c3a7b9c87eae --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java @@ -0,0 +1,175 @@ +// 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\"\305\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" + + "\022!\n\031ignore_http_status_errors\030\017 \001(\010\032\330\005\n\016" + + "Authentication\022i\n\016google_account\030\001 \001(\0132K" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.Authentication.GoogleAccountB\002\030\001H" + + "\000\022e\n\016custom_account\030\002 \001(\0132K.google.cloud" + + ".websecurityscanner.v1.ScanConfig.Authen" + + "tication.CustomAccountH\000\022e\n\016iap_credenti" + + "al\030\004 \001(\0132K.google.cloud.websecurityscann" + + "er.v1.ScanConfig.Authentication.IapCrede" + + "ntialH\000\0327\n\rGoogleAccount\022\020\n\010username\030\001 \001" + + "(\t\022\020\n\010password\030\002 \001(\t:\002\030\001\032F\n\rCustomAccoun" + + "t\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n" + + "\tlogin_url\030\003 \001(\t\032\371\001\n\rIapCredential\022\216\001\n\035i" + + "ap_test_service_account_info\030\001 \001(\0132e.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.Authentication.IapCredential.IapTestS" + + "erviceAccountInfoH\000\032D\n\031IapTestServiceAcc" + + "ountInfo\022\'\n\031target_audience_client_id\030\001 " + + "\001(\tB\004\342A\001\002B\021\n\017iap_credentialsB\020\n\016authenti" + + "cation\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022\036\n\026interva" + + "l_duration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026US" + + "ER_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\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000" + + "\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurit" + + "yCommandCenter\0221\n-EXPORT_TO_SECURITY_COM" + + "MAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014" + + "\n\010DISABLED\020\002B\205\002\n&com.google.cloud.websec" + + "urityscanner.v1B\017ScanConfigProtoP\001ZVclou" + + "d.google.com/go/websecurityscanner/apiv1" + + "/websecurityscannerpb;websecurityscanner" + + "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" + + "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" + + "oogle::Cloud::WebSecurityScanner::V1b\006pr" + + "oto3" + }; + 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", "IgnoreHttpStatusErrors", }); + 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java similarity index 74% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java index 12e7d9663400..74d4197ba4a6 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,38 +29,34 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
-  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.
@@ -88,8 +66,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -98,8 +74,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -108,8 +82,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -121,8 +93,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -132,8 +102,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.
      * 
@@ -142,8 +110,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -152,8 +118,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.
      * 
@@ -162,6 +126,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( @@ -186,51 +151,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; @@ -248,18 +212,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.
@@ -269,8 +230,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -279,8 +238,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -289,8 +246,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -302,8 +257,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -313,8 +266,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -323,8 +274,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -333,8 +282,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -343,6 +290,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( @@ -367,51 +315,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; @@ -429,12 +376,9 @@ private ResultState(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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}'.
@@ -442,7 +386,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -451,15 +394,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}'.
@@ -467,15 +409,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 { @@ -486,90 +429,65 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; 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; - * * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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_ = 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; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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 @@ -577,14 +495,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 @@ -592,8 +507,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.
    * 
@@ -608,15 +521,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 @@ -624,15 +534,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 @@ -640,8 +547,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.
@@ -657,15 +562,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_ = 0L;
   /**
-   *
-   *
    * 
    * 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 @@ -676,8 +578,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_ = 0L; /** - * - * *
    * 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
@@ -686,7 +586,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -697,14 +596,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_ = false; /** - * - * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -715,8 +611,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_ = 0; /** - * - * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -725,7 +619,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -736,15 +629,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 @@ -752,26 +642,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.
@@ -780,94 +663,72 @@ 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() {
-    return errorTrace_ == null
-        ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()
-        : errorTrace_;
+  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
+    return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
   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; @@ -879,18 +740,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) { @@ -929,39 +787,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -971,34 +835,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1025,11 +897,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()) { @@ -1045,104 +920,99 @@ 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
@@ -1150,32 +1020,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1213,9 +1084,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
@@ -1234,12 +1105,9 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1268,10 +1136,14 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRun result
         result.resultState_ = resultState_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.urlsCrawledCount_ = urlsCrawledCount_;
@@ -1286,7 +1158,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRun result
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.errorTrace_ = errorTraceBuilder_ == null ? errorTrace_ : errorTraceBuilder_.build();
+        result.errorTrace_ = errorTraceBuilder_ == null
+            ? errorTrace_
+            : errorTraceBuilder_.build();
       }
     }
 
@@ -1294,39 +1168,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRun result
     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;
@@ -1385,10 +1258,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRun other) {
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            warningTracesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWarningTracesFieldBuilder()
-                    : null;
+            warningTracesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWarningTracesFieldBuilder() : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1420,87 +1292,81 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                executionState_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                resultState_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
-                urlsCrawledCount_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                urlsTestedCount_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 64:
-              {
-                hasVulnerabilities_ = input.readBool();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 64
-            case 72:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 72
-            case 82:
-              {
-                input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace m =
-                    input.readMessage(
-                        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(),
-                        extensionRegistry);
-                if (warningTracesBuilder_ == null) {
-                  ensureWarningTracesIsMutable();
-                  warningTraces_.add(m);
-                } else {
-                  warningTracesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 90
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              executionState_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              resultState_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              urlsCrawledCount_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              urlsTestedCount_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 64: {
+              hasVulnerabilities_ = input.readBool();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 64
+            case 72: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 72
+            case 82: {
+              input.readMessage(
+                  getErrorTraceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace m =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(),
+                      extensionRegistry);
+              if (warningTracesBuilder_ == null) {
+                ensureWarningTracesIsMutable();
+                warningTraces_.add(m);
+              } else {
+                warningTracesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 90
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1510,13 +1376,10 @@ public Builder mergeFrom(
       } // finally
       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}'.
@@ -1524,13 +1387,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; @@ -1539,8 +1402,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}'.
@@ -1548,14 +1409,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 { @@ -1563,8 +1425,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}'.
@@ -1572,22 +1432,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1595,7 +1451,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1605,8 +1460,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1614,14 +1467,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1631,29 +1482,22 @@ 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. */ @@ -1664,38 +1508,28 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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.forNumber(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(); } @@ -1705,14 +1539,11 @@ public Builder setExecutionState( 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() { @@ -1724,31 +1555,24 @@ 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. */ @@ -1759,40 +1583,30 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1802,15 +1616,12 @@ public Builder setResultState( 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() { @@ -1822,33 +1633,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1859,8 +1661,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1881,15 +1681,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(); } else { @@ -1900,8 +1699,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1910,9 +1707,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1925,8 +1722,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1944,8 +1739,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1958,8 +1751,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1970,12 +1761,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.
      * 
@@ -1983,17 +1773,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_; @@ -2001,35 +1788,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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() { @@ -2040,8 +1818,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.
@@ -2063,8 +1839,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.
@@ -2072,7 +1846,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();
       } else {
@@ -2083,8 +1858,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.
@@ -2094,9 +1867,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -2109,8 +1882,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.
@@ -2129,8 +1900,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.
@@ -2144,8 +1913,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2157,12 +1924,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.
@@ -2171,33 +1937,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 @@ -2205,15 +1965,12 @@ 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. */ @@ -2225,15 +1982,12 @@ public Builder setUrlsCrawledCount(long value) { 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() { @@ -2243,10 +1997,8 @@ public Builder clearUrlsCrawledCount() { 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
@@ -2255,7 +2007,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2263,8 +2014,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
@@ -2273,7 +2022,6 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -2285,8 +2033,6 @@ public Builder setUrlsTestedCount(long value) { 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
@@ -2295,7 +2041,6 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -2305,16 +2050,13 @@ public Builder clearUrlsTestedCount() { 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 @@ -2322,14 +2064,11 @@ 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. */ @@ -2341,14 +2080,11 @@ public Builder setHasVulnerabilities(boolean value) { return this; } /** - * - * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { @@ -2358,10 +2094,8 @@ public Builder clearHasVulnerabilities() { 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.
@@ -2370,7 +2104,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2378,8 +2111,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.
@@ -2388,7 +2119,6 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -2400,8 +2130,6 @@ public Builder setProgressPercent(int value) { return this; } /** - * - * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2410,7 +2138,6 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -2422,49 +2149,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 ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * 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.
@@ -2486,8 +2200,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.
@@ -2507,8 +2219,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.
@@ -2518,10 +2228,9 @@ public Builder setErrorTrace(
      */
     public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0)
-            && errorTrace_ != null
-            && errorTrace_
-                != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          errorTrace_ != null &&
+          errorTrace_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) {
           getErrorTraceBuilder().mergeFrom(value);
         } else {
           errorTrace_ = value;
@@ -2534,8 +2243,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.
@@ -2554,8 +2261,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.
@@ -2569,8 +2274,6 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getError
       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.
@@ -2578,19 +2281,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.
@@ -2599,52 +2298,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_ & 0x00000400) != 0)) {
-        warningTraces_ =
-            new java.util.ArrayList(
-                warningTraces_);
+        warningTraces_ = new java.util.ArrayList(warningTraces_);
         bitField0_ |= 0x00000400;
-      }
+       }
     }
 
     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 { @@ -2652,14 +2338,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) { @@ -2669,14 +2352,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) { @@ -2686,14 +2366,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) { @@ -2710,18 +2387,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()); @@ -2732,17 +2405,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(); @@ -2756,14 +2425,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) { @@ -2780,14 +2446,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) { @@ -2801,18 +2464,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()); @@ -2823,21 +2482,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); @@ -2845,14 +2501,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) { @@ -2865,14 +2518,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) { @@ -2885,50 +2535,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 { @@ -2936,64 +2575,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_ & 0x00000400) != 0), getParentForChildren(), @@ -3002,9 +2622,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); } @@ -3014,12 +2634,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(); } @@ -3028,27 +2648,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3063,4 +2683,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java similarity index 72% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java index c9faaaf4d7dc..520b21901ac4 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,44 +11,40 @@
  *
  * 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();
   }
 
-  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.
@@ -74,10 +53,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.
      * 
@@ -86,8 +64,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -96,8 +72,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.
@@ -107,8 +81,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCAN_CONFIG_ISSUE(2),
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -118,8 +90,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.
      * 
@@ -128,8 +98,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.
@@ -139,8 +107,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
@@ -154,8 +120,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -164,8 +128,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.
      * 
@@ -174,8 +136,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.
@@ -185,8 +145,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.
@@ -196,8 +154,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.
      * 
@@ -206,8 +162,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.
@@ -217,8 +171,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
@@ -229,6 +181,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(
@@ -253,59 +206,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 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<
+        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() {
       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;
@@ -325,45 +272,32 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   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; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.forNumber(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.forNumber(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
@@ -371,7 +305,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 @@ -379,8 +312,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
@@ -388,18 +319,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
@@ -409,18 +335,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() {
-    return scanConfigError_ == null
-        ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()
-        : scanConfigError_;
+  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
+    return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_;
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_ = 0;
   /**
-   *
-   *
    * 
    * 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
@@ -428,7 +349,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigError getScanConfigError
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -437,7 +357,6 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -449,10 +368,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) { @@ -470,16 +388,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -489,20 +408,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -528,104 +448,98 @@ 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.
@@ -633,32 +547,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -674,9 +589,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
@@ -695,11 +610,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -710,8 +622,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunErrorTr
         result.code_ = code_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.scanConfigError_ =
-            scanConfigErrorBuilder_ == null ? scanConfigError_ : scanConfigErrorBuilder_.build();
+        result.scanConfigError_ = scanConfigErrorBuilder_ == null
+            ? scanConfigError_
+            : scanConfigErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.mostCommonHttpErrorCode_ = mostCommonHttpErrorCode_;
@@ -722,39 +635,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunErrorTr
     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;
@@ -762,8 +674,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());
       }
@@ -799,31 +710,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getScanConfigErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                mostCommonHttpErrorCode_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getScanConfigErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              mostCommonHttpErrorCode_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -833,34 +742,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. */ @@ -871,33 +772,24 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.forNumber(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.forNumber(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. */ @@ -911,14 +803,11 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace. 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() { @@ -930,13 +819,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
@@ -944,15 +828,12 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -960,21 +841,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
@@ -983,8 +859,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();
@@ -998,8 +873,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
@@ -1020,8 +893,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
@@ -1030,13 +901,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 (((bitField0_ & 0x00000002) != 0)
-            && scanConfigError_ != null
-            && scanConfigError_
-                != com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          scanConfigError_ != null &&
+          scanConfigError_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()) {
           getScanConfigErrorBuilder().mergeFrom(value);
         } else {
           scanConfigError_ = value;
@@ -1049,8 +918,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
@@ -1070,8 +937,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
@@ -1080,15 +945,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() {
       bitField0_ |= 0x00000002;
       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
@@ -1097,19 +959,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
@@ -1119,26 +977,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
@@ -1146,7 +999,6 @@ public Builder clearScanConfigError() {
      * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1154,8 +1006,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
@@ -1163,7 +1013,6 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; - * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ @@ -1175,8 +1024,6 @@ public Builder setMostCommonHttpErrorCode(int value) { 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
@@ -1184,7 +1031,6 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; - * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { @@ -1193,9 +1039,9 @@ public Builder clearMostCommonHttpErrorCode() { 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); } @@ -1205,12 +1051,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(); } @@ -1219,27 +1065,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1254,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java index 1ef8b49e0231..469625b4b802 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java new file mode 100644 index 000000000000..18233f0d16a3 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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" + + "\214\002\n&com.google.cloud.websecurityscanner." + + "v1B\026ScanRunErrorTraceProtoP\001ZVcloud.goog" + + "le.com/go/websecurityscanner/apiv1/webse" + + "curityscannerpb;websecurityscannerpb\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.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java index 64dc7b550038..1c92df1cf2b2 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.
@@ -31,16 +14,15 @@
  *
  * 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_ = "";
@@ -50,38 +32,33 @@ private ScanRunLog() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRunLog();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object summary_ = "";
   /**
-   *
-   *
    * 
    * Human friendly message about the event.
    * 
* * string summary = 1; - * * @return The summary. */ @java.lang.Override @@ -90,29 +67,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 { @@ -121,18 +98,14 @@ public com.google.protobuf.ByteString getSummaryBytes() { } public static final int NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; - * * @return The name. */ @java.lang.Override @@ -141,29 +114,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 { @@ -174,82 +147,59 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 3; 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; - * * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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_ = 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; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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_ = 0L; /** * int64 urls_crawled_count = 5; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -261,7 +211,6 @@ public long getUrlsCrawledCount() { private long urlsTestedCount_ = 0L; /** * int64 urls_tested_count = 6; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -273,7 +222,6 @@ public long getUrlsTestedCount() { private boolean hasFindings_ = false; /** * bool has_findings = 7; - * * @return The hasFindings. */ @java.lang.Override @@ -285,7 +233,6 @@ 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 @@ -294,26 +241,21 @@ 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() { - return errorTrace_ == null - ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() - : errorTrace_; + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() { + return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,21 +267,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(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) { @@ -369,27 +308,29 @@ 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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -399,24 +340,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -438,11 +384,14 @@ 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(); @@ -453,103 +402,98 @@ 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.
@@ -560,32 +504,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -606,9 +551,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
@@ -627,11 +572,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.ScanRunLog result = new com.google.cloud.websecurityscanner.v1.ScanRunLog(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -660,7 +602,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunLog res
         result.hasFindings_ = hasFindings_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.errorTrace_ = errorTraceBuilder_ == null ? errorTrace_ : errorTraceBuilder_.build();
+        result.errorTrace_ = errorTraceBuilder_ == null
+            ? errorTrace_
+            : errorTraceBuilder_.build();
       }
     }
 
@@ -668,39 +612,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunLog res
     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;
@@ -708,8 +651,7 @@ 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_;
         bitField0_ |= 0x00000001;
@@ -764,61 +706,54 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                summary_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                executionState_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 32:
-              {
-                resultState_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 40:
-              {
-                urlsCrawledCount_ = input.readInt64();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 40
-            case 48:
-              {
-                urlsTestedCount_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                hasFindings_ = input.readBool();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 66:
-              {
-                input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              summary_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              executionState_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 32: {
+              resultState_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 40: {
+              urlsCrawledCount_ = input.readInt64();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 40
+            case 48: {
+              urlsTestedCount_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              hasFindings_ = input.readBool();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 66: {
+              input.readMessage(
+                  getErrorTraceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -828,25 +763,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -855,21 +787,20 @@ 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 { @@ -877,35 +808,28 @@ public com.google.protobuf.ByteString getSummaryBytes() { } } /** - * - * *
      * 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(); - } + public Builder setSummary( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } summary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Human friendly message about the event.
      * 
* * string summary = 1; - * * @return This builder for chaining. */ public Builder clearSummary() { @@ -915,21 +839,17 @@ public Builder clearSummary() { 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(); - } + public Builder setSummaryBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); summary_ = value; bitField0_ |= 0x00000001; @@ -939,20 +859,18 @@ public Builder setSummaryBytes(com.google.protobuf.ByteString value) { 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; @@ -961,21 +879,20 @@ 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 { @@ -983,35 +900,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1021,21 +931,17 @@ public Builder clearName() { 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; @@ -1045,29 +951,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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. */ @@ -1078,38 +977,28 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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.forNumber(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(); } @@ -1119,14 +1008,11 @@ public Builder setExecutionState( 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() { @@ -1138,29 +1024,22 @@ 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. */ @@ -1171,38 +1050,28 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1212,14 +1081,11 @@ public Builder setResultState( 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() { @@ -1229,10 +1095,9 @@ public Builder clearResultState() { return this; } - private long urlsCrawledCount_; + private long urlsCrawledCount_ ; /** * int64 urls_crawled_count = 5; - * * @return The urlsCrawledCount. */ @java.lang.Override @@ -1241,7 +1106,6 @@ public long getUrlsCrawledCount() { } /** * int64 urls_crawled_count = 5; - * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ @@ -1254,7 +1118,6 @@ public Builder setUrlsCrawledCount(long value) { } /** * int64 urls_crawled_count = 5; - * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { @@ -1264,10 +1127,9 @@ public Builder clearUrlsCrawledCount() { return this; } - private long urlsTestedCount_; + private long urlsTestedCount_ ; /** * int64 urls_tested_count = 6; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -1276,7 +1138,6 @@ public long getUrlsTestedCount() { } /** * int64 urls_tested_count = 6; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -1289,7 +1150,6 @@ public Builder setUrlsTestedCount(long value) { } /** * int64 urls_tested_count = 6; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -1299,10 +1159,9 @@ public Builder clearUrlsTestedCount() { return this; } - private boolean hasFindings_; + private boolean hasFindings_ ; /** * bool has_findings = 7; - * * @return The hasFindings. */ @java.lang.Override @@ -1311,7 +1170,6 @@ public boolean getHasFindings() { } /** * bool has_findings = 7; - * * @param value The hasFindings to set. * @return This builder for chaining. */ @@ -1324,7 +1182,6 @@ public Builder setHasFindings(boolean value) { } /** * bool has_findings = 7; - * * @return This builder for chaining. */ public Builder clearHasFindings() { @@ -1336,13 +1193,9 @@ 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() { @@ -1350,19 +1203,18 @@ 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) { @@ -1376,7 +1228,9 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunError onChanged(); 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) { @@ -1388,13 +1242,14 @@ public Builder setErrorTrace( onChanged(); 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 (((bitField0_ & 0x00000080) != 0) - && errorTrace_ != null - && errorTrace_ - != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + errorTrace_ != null && + errorTrace_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) { getErrorTraceBuilder().mergeFrom(value); } else { errorTrace_ = value; @@ -1406,7 +1261,9 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr onChanged(); return this; } - /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ + /** + * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; + */ public Builder clearErrorTrace() { bitField0_ = (bitField0_ & ~0x00000080); errorTrace_ = null; @@ -1417,43 +1274,44 @@ public Builder clearErrorTrace() { onChanged(); 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() { bitField0_ |= 0x00000080; 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); } @@ -1463,12 +1321,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(); } @@ -1477,27 +1335,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1512,4 +1370,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java similarity index 75% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java index d98e46d84c47..daef3296ac7a 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java @@ -1,161 +1,120 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java new file mode 100644 index 000000000000..029b640d67b7 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\205\002\n&com.google.cloud.websecurit" + + "yscanner.v1B\017ScanRunLogProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java similarity index 85% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java index eb0493ed1a47..cba66f0a8cd7 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java new file mode 100644 index 000000000000..31e6d066651b --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\202\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\014ScanRunProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java index 7dcfef2797db..605ddfa4ee85 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,44 +12,40 @@
  *
  * 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();
   }
 
-  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.
@@ -75,10 +54,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.
      * 
@@ -87,8 +65,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
@@ -99,8 +75,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.
@@ -110,8 +84,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,
@@ -122,8 +94,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -132,8 +102,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ BLOCKED_BY_IAP(4), /** - * - * *
      * Indicates that no seeds is found for a scan
      * 
@@ -145,8 +113,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value is never used.
      * 
@@ -155,8 +121,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
@@ -167,8 +131,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.
@@ -178,8 +140,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,
@@ -190,8 +150,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.
      * 
@@ -200,8 +158,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BLOCKED_BY_IAP_VALUE = 4; /** - * - * *
      * Indicates that no seeds is found for a scan
      * 
@@ -210,6 +166,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -234,57 +191,52 @@ 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; - case 5: - return NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN; - 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; + case 5: return NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN; + 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; @@ -304,42 +256,30 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; 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; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.forNumber(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.forNumber(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; @@ -351,10 +291,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_); } getUnknownFields().writeTo(output); @@ -366,10 +305,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -379,13 +317,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -407,104 +344,98 @@ 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
@@ -513,32 +444,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -548,9 +480,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
@@ -569,11 +501,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -589,39 +518,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunWarning
     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;
@@ -629,8 +557,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());
       }
@@ -660,19 +587,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -682,34 +607,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. */ @@ -720,33 +637,24 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.forNumber(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.forNumber(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. */ @@ -760,14 +668,11 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrac return this; } /** - * - * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -776,9 +681,9 @@ public Builder clearCode() { 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); } @@ -788,12 +693,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(); } @@ -802,27 +707,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,4 +742,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java index 544870bb2942..bfd08704852f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java new file mode 100644 index 000000000000..667c96e5de3e --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java @@ -0,0 +1,62 @@ +// 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\"\225\002\n\023ScanRunWarning" + + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + + "curityscanner.v1.ScanRunWarningTrace.Cod" + + "e\"\261\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\004\022*\n&NO_STARTING_URL_FOU" + + "ND_FOR_MANAGED_SCAN\020\005B\216\002\n&com.google.clo" + + "ud.websecurityscanner.v1B\030ScanRunWarning" + + "TraceProtoP\001ZVcloud.google.com/go/websec" + + "urityscanner/apiv1/websecurityscannerpb;" + + "websecurityscannerpb\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_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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java index e988b3dc0dd8..dc5edee70b80 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -84,30 +61,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 { @@ -116,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +104,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_); } @@ -152,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,136 +157,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -319,9 +291,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 @@ -340,11 +312,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,39 +329,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.StartScanRunRe 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; @@ -400,8 +368,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_; bitField0_ |= 0x00000001; @@ -433,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,26 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -483,22 +445,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 { @@ -506,37 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -546,31 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -580,12 +530,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(); } @@ -594,27 +544,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -629,4 +579,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java similarity index 54% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java index 153ba90c04f0..78720ba52fa4 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java index 151d1acb3966..161bede274cb 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -76,7 +54,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -85,15 +62,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
@@ -101,15 +77,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 { @@ -118,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +106,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_); } @@ -154,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +293,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 @@ -342,11 +314,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +331,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.StopScanRunReq 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; @@ -402,8 +370,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_; bitField0_ |= 0x00000001; @@ -435,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,13 +422,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -471,13 +433,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; @@ -486,8 +448,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -495,14 +455,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 { @@ -510,8 +471,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -519,22 +478,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -542,7 +497,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -552,8 +506,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -561,23 +513,21 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -587,12 +537,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(); } @@ -601,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java index 87a091f0a033..f48ebe772751 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java index 9e14a7cd70e0..e28e698010ce 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java @@ -1,70 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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
@@ -72,7 +52,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 @@ -80,8 +59,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
@@ -89,18 +66,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
@@ -111,16 +83,12 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() {
    */
   @java.lang.Override
   public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigOrBuilder() {
-    return scanConfig_ == null
-        ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()
-        : scanConfig_;
+    return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_;
   }
 
   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
@@ -128,7 +96,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 @@ -136,8 +103,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -145,7 +110,6 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; - * * @return The updateMask. */ @java.lang.Override @@ -153,8 +117,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
@@ -169,7 +131,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -181,7 +142,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());
     }
@@ -198,10 +160,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -211,21 +175,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -252,136 +217,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,14 +360,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(); } @@ -422,23 +381,23 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null + ? scanConfig_ + : scanConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -446,39 +405,38 @@ private void buildPartial0( 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; @@ -486,9 +444,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()); } @@ -521,25 +477,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getScanConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,18 +506,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -568,15 +519,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; - * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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
@@ -584,21 +532,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
@@ -621,8 +564,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
@@ -643,8 +584,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
@@ -655,10 +594,9 @@ public Builder setScanConfig(
      */
     public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig value) {
       if (scanConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && scanConfig_ != null
-            && scanConfig_
-                != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          scanConfig_ != null &&
+          scanConfig_ != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) {
           getScanConfigBuilder().mergeFrom(value);
         } else {
           scanConfig_ = value;
@@ -671,8 +609,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
@@ -692,8 +628,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
@@ -708,8 +642,6 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBu
       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
@@ -722,14 +654,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
@@ -739,17 +668,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_;
@@ -757,13 +683,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
@@ -771,15 +692,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -787,21 +705,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
@@ -824,8 +737,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -834,7 +745,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();
       } else {
@@ -845,8 +757,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
@@ -857,9 +767,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -872,8 +782,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -893,8 +801,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -909,8 +815,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -923,14 +827,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
@@ -940,24 +841,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);
     }
 
@@ -967,43 +865,41 @@ 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 {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  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 {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1015,8 +911,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
similarity index 78%
rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
index f2e0ad0f5500..ca4f2db0837b 100644
--- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
+++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
similarity index 68%
rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
index 501aecf1ae7d..9ec739cdb392 100644
--- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
+++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License 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,38 +27,33 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object contentType_ = "";
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -85,29 +62,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 { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } public static final int RESOURCE_URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object resourceUrl_ = ""; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -136,29 +109,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,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_); } @@ -209,16 +182,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +214,98 @@ 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.
@@ -345,32 +313,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -381,9 +350,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
@@ -402,11 +371,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1.ViolatingResource result = new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -425,39 +391,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ViolatingResou
     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;
@@ -465,8 +430,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_;
         bitField0_ |= 0x00000001;
@@ -503,25 +467,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                contentType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                resourceUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              contentType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              resourceUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -531,25 +492,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -558,21 +516,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 { @@ -580,35 +537,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { @@ -618,21 +568,17 @@ public Builder clearContentType() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00000001; @@ -642,20 +588,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; @@ -664,21 +608,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 { @@ -686,35 +629,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceUrl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -724,30 +660,26 @@ public Builder clearResourceUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceUrl_ = value; bitField0_ |= 0x00000002; 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); } @@ -757,12 +689,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(); } @@ -771,27 +703,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,4 +738,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java index b6252fa30c6d..e4000fa52f38 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java index 9fca281e80e9..3a08217dd37d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,99 +26,84 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } - 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_ = ""; @@ -144,38 +111,33 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -184,29 +146,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 { @@ -215,18 +177,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -235,29 +193,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 { @@ -266,7 +224,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +235,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_); } @@ -308,16 +266,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,95 +298,89 @@ 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 @@ -437,42 +390,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -483,14 +433,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(); } @@ -505,17 +454,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -529,52 +474,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -611,25 +550,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,25 +575,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -666,21 +599,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 { @@ -688,35 +620,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -726,21 +651,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -750,20 +671,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; @@ -772,21 +691,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 { @@ -794,35 +712,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -832,28 +743,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -866,44 +772,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -915,19 +818,16 @@ 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; - @SuppressWarnings("serial") private java.util.List headers_; /** - * - * *
    * List of vulnerable headers.
    * 
@@ -935,13 +835,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.
    * 
@@ -949,14 +846,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.
    * 
@@ -968,8 +862,6 @@ public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -981,8 +873,6 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader return headers_.get(index); } /** - * - * *
    * List of vulnerable headers.
    * 
@@ -990,99 +880,73 @@ 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; - @SuppressWarnings("serial") - 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; @@ -1094,7 +958,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)); } @@ -1111,10 +976,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1124,16 +991,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1159,136 +1027,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1311,9 +1174,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 @@ -1332,18 +1195,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.VulnerableHeaders result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -1372,39 +1231,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.VulnerableHead 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; @@ -1412,8 +1270,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()) { @@ -1432,10 +1289,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_); } @@ -1459,10 +1315,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_); } @@ -1494,41 +1349,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(m); - } else { - headersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (missingHeadersBuilder_ == null) { - ensureMissingHeadersIsMutable(); - missingHeaders_.add(m); - } else { - missingHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1538,39 +1390,28 @@ public Builder mergeFrom( } // finally 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 { @@ -1578,14 +1419,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) { @@ -1595,14 +1433,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) { @@ -1612,14 +1447,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) { @@ -1636,18 +1468,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()); @@ -1658,17 +1486,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(); @@ -1682,14 +1506,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) { @@ -1706,14 +1527,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) { @@ -1727,18 +1545,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()); @@ -1749,22 +1563,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); @@ -1772,14 +1582,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) { @@ -1792,14 +1599,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) { @@ -1812,50 +1616,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 { @@ -1863,101 +1656,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 { @@ -1965,15 +1731,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) { @@ -1983,18 +1745,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 { @@ -2002,15 +1759,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) { @@ -2027,19 +1780,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()); @@ -2050,18 +1798,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(); @@ -2075,15 +1818,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) { @@ -2100,15 +1839,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) { @@ -2122,19 +1857,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()); @@ -2145,23 +1875,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); @@ -2169,15 +1894,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) { @@ -2190,15 +1911,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) { @@ -2211,53 +1928,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 { @@ -2265,67 +1968,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(), @@ -2334,9 +2015,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); } @@ -2346,12 +2027,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(); } @@ -2360,27 +2041,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2395,4 +2076,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java similarity index 60% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java index c729c6bbd3d4..0c7a2d04301b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java index 7bb8dfa59416..819a98e59cf6 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java @@ -1,109 +1,82 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.emptyList(); + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } - 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; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -111,23 +84,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; @@ -139,7 +109,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)); } @@ -168,15 +139,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,148 +169,144 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -358,11 +325,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -379,39 +343,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.VulnerablePara 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; @@ -419,8 +382,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_; @@ -457,20 +419,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureParameterNamesIsMutable(); - parameterNames_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -480,12 +440,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureParameterNamesIsMutable() { if (!parameterNames_.isModifiable()) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); @@ -493,43 +451,35 @@ private void ensureParameterNamesIsMutable() { 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() { parameterNames_.makeImmutable(); 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. */ @@ -537,37 +487,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParameterNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParameterNamesIsMutable(); parameterNames_.set(index, value); bitField0_ |= 0x00000001; @@ -575,21 +519,17 @@ public Builder setParameterNames(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addParameterNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParameterNamesIsMutable(); parameterNames_.add(value); bitField0_ |= 0x00000001; @@ -597,58 +537,50 @@ public Builder addParameterNames(java.lang.String value) { 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { - parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); @@ -656,9 +588,9 @@ public Builder addParameterNamesBytes(com.google.protobuf.ByteString 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); } @@ -668,12 +600,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(); } @@ -682,27 +614,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -717,4 +649,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java similarity index 59% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java index adfd6f950cc1..101f456a00ea 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java new file mode 100644 index 000000000000..9d0ed3f1a9c7 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\032\027google/api/client.proto\0324goog" + + "le/cloud/websecurityscanner/v1/crawled_u" + + "rl.proto\0320google/cloud/websecurityscanne" + + "r/v1/finding.proto\032;google/cloud/websecu" + + "rityscanner/v1/finding_type_stats.proto\032" + + "4google/cloud/websecurityscanner/v1/scan" + + "_config.proto\0321google/cloud/websecuritys" + + "canner/v1/scan_run.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.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.emptyList(); + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; attackVector_ = 0; storedXssSeedingUrl_ = ""; @@ -46,38 +29,34 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } - 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.
      * 
@@ -86,8 +65,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ ATTACK_VECTOR_UNSPECIFIED(0), /** - * - * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -96,8 +73,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ LOCAL_STORAGE(1), /** - * - * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -106,8 +81,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ SESSION_STORAGE(2), /** - * - * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -116,8 +89,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ WINDOW_NAME(3), /** - * - * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -126,8 +97,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ REFERRER(4), /** - * - * *
      * The attack comes from fuzzing an input element.
      * 
@@ -136,8 +105,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ FORM_INPUT(5), /** - * - * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -146,8 +113,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ COOKIE(6), /** - * - * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -156,8 +121,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ POST_MESSAGE(7), /** - * - * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -166,8 +129,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ GET_PARAMETERS(8), /** - * - * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -176,8 +137,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ URL_FRAGMENT(9), /** - * - * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -186,8 +145,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ HTML_COMMENT(10), /** - * - * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -196,8 +153,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ POST_PARAMETERS(11), /** - * - * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -206,8 +161,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ PROTOCOL(12), /** - * - * *
      * The attack comes from the server side and is stored.
      * 
@@ -216,8 +169,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.
      * 
@@ -226,8 +177,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
@@ -240,8 +189,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unknown attack vector.
      * 
@@ -250,8 +197,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.
      * 
@@ -260,8 +205,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.
      * 
@@ -270,8 +213,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.
      * 
@@ -280,8 +221,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.
      * 
@@ -290,8 +229,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REFERRER_VALUE = 4; /** - * - * *
      * The attack comes from fuzzing an input element.
      * 
@@ -300,8 +237,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.
      * 
@@ -310,8 +245,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.
      * 
@@ -320,8 +253,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.
      * 
@@ -330,8 +261,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.
      * 
@@ -340,8 +269,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.
      * 
@@ -350,8 +277,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.
      * 
@@ -360,8 +285,6 @@ public enum AttackVector implements com.google.protobuf.ProtocolMessageEnum { */ public static final int POST_PARAMETERS_VALUE = 11; /** - * - * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -370,8 +293,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.
      * 
@@ -380,8 +301,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.
      * 
@@ -390,8 +309,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
@@ -401,6 +318,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(
@@ -425,75 +343,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;
@@ -511,47 +416,38 @@ private AttackVector(int value) {
   }
 
   public static final int STACK_TRACES_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList stackTraces_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
-   *
-   *
    * 
    * 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. */ @@ -559,34 +455,28 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -595,29 +485,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 { @@ -628,53 +518,38 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { public static final int ATTACK_VECTOR_FIELD_NUMBER = 3; 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; - * * @return The attackVector. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = - com.google.cloud.websecurityscanner.v1.Xss.AttackVector.forNumber(attackVector_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.forNumber(attackVector_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; } public static final int STORED_XSS_SEEDING_URL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -683,29 +558,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 { @@ -714,7 +589,6 @@ public com.google.protobuf.ByteString getStoredXssSeedingUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -726,16 +600,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_)) { @@ -761,10 +634,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_); @@ -777,18 +649,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -815,141 +689,138 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; attackVector_ = 0; storedXssSeedingUrl_ = ""; @@ -957,9 +828,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 @@ -978,11 +849,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.Xss result = new com.google.cloud.websecurityscanner.v1.Xss(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1008,39 +876,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Xss result) { 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; @@ -1098,38 +965,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStackTracesIsMutable(); - stackTraces_.add(s); - break; - } // case 10 - case 18: - { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - attackVector_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - storedXssSeedingUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + attackVector_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + storedXssSeedingUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1139,12 +1001,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStackTracesIsMutable() { if (!stackTraces_.isModifiable()) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); @@ -1152,43 +1012,35 @@ private void ensureStackTracesIsMutable() { 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() { stackTraces_.makeImmutable(); 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. */ @@ -1196,37 +1048,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStackTraces( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStackTracesIsMutable(); stackTraces_.set(index, value); bitField0_ |= 0x00000001; @@ -1234,21 +1080,17 @@ public Builder setStackTraces(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStackTraces( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStackTracesIsMutable(); stackTraces_.add(value); bitField0_ |= 0x00000001; @@ -1256,58 +1098,50 @@ public Builder addStackTraces(java.lang.String value) { 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_); bitField0_ |= 0x00000001; 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() { - stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); @@ -1318,20 +1152,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; @@ -1340,21 +1172,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 { @@ -1362,35 +1193,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -1400,21 +1224,17 @@ public Builder clearErrorMessage() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; @@ -1424,29 +1244,22 @@ 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. */ @@ -1457,33 +1270,24 @@ public Builder setAttackVectorValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = - com.google.cloud.websecurityscanner.v1.Xss.AttackVector.forNumber(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.forNumber(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. */ @@ -1497,14 +1301,11 @@ public Builder setAttackVector(com.google.cloud.websecurityscanner.v1.Xss.Attack 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() { @@ -1516,20 +1317,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; @@ -1538,21 +1337,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 { @@ -1560,35 +1358,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStoredXssSeedingUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } storedXssSeedingUrl_ = value; bitField0_ |= 0x00000008; 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() { @@ -1598,30 +1389,26 @@ public Builder clearStoredXssSeedingUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStoredXssSeedingUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); storedXssSeedingUrl_ = value; bitField0_ |= 0x00000008; 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); } @@ -1631,12 +1418,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(); } @@ -1645,27 +1432,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1680,4 +1467,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java similarity index 72% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java index 50b23b50f8ac..881b7416d7f4 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java @@ -1,151 +1,109 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java index 61669226f08a..dd024a0596d0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 XXE.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} */ -public final class Xxe extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Xxe extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xxe) XxeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Xxe.newBuilder() to construct. private Xxe(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Xxe() { payloadValue_ = ""; payloadLocation_ = 0; @@ -44,38 +26,34 @@ private Xxe() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xxe(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xxe.class, - com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + com.google.cloud.websecurityscanner.v1.Xxe.class, com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); } /** - * - * *
    * Locations within a request where XML was substituted.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xxe.Location} */ - public enum Location implements com.google.protobuf.ProtocolMessageEnum { + public enum Location + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown Location.
      * 
@@ -84,8 +62,6 @@ public enum Location implements com.google.protobuf.ProtocolMessageEnum { */ LOCATION_UNSPECIFIED(0), /** - * - * *
      * The XML payload replaced the complete request body.
      * 
@@ -97,8 +73,6 @@ public enum Location implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown Location.
      * 
@@ -107,8 +81,6 @@ public enum Location implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOCATION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The XML payload replaced the complete request body.
      * 
@@ -117,6 +89,7 @@ public enum Location implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETE_REQUEST_BODY_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -141,47 +114,48 @@ public static Location valueOf(int value) { */ public static Location forNumber(int value) { switch (value) { - case 0: - return LOCATION_UNSPECIFIED; - case 1: - return COMPLETE_REQUEST_BODY; - default: - return null; + case 0: return LOCATION_UNSPECIFIED; + case 1: return COMPLETE_REQUEST_BODY; + 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< + Location> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Location findValueByNumber(int number) { + return Location.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Location findValueByNumber(int number) { - return Location.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.Xxe.getDescriptor().getEnumTypes().get(0); } private static final Location[] VALUES = values(); - public static Location valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Location 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; @@ -199,19 +173,15 @@ private Location(int value) { } public static final int PAYLOAD_VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object payloadValue_ = ""; /** - * - * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; - * * @return The payloadValue. */ @java.lang.Override @@ -220,30 +190,30 @@ public java.lang.String getPayloadValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payloadValue_ = s; return s; } } /** - * - * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; - * * @return The bytes for payloadValue. */ @java.lang.Override - public com.google.protobuf.ByteString getPayloadValueBytes() { + public com.google.protobuf.ByteString + getPayloadValueBytes() { java.lang.Object ref = payloadValue_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payloadValue_ = b; return b; } else { @@ -254,42 +224,30 @@ public com.google.protobuf.ByteString getPayloadValueBytes() { public static final int PAYLOAD_LOCATION_FIELD_NUMBER = 2; private int payloadLocation_ = 0; /** - * - * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @return The enum numeric value on the wire for payloadLocation. */ - @java.lang.Override - public int getPayloadLocationValue() { + @java.lang.Override public int getPayloadLocationValue() { return payloadLocation_; } /** - * - * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @return The payloadLocation. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { - com.google.cloud.websecurityscanner.v1.Xxe.Location result = - com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + com.google.cloud.websecurityscanner.v1.Xxe.Location result = com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,12 +259,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(payloadValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payloadValue_); } - if (payloadLocation_ - != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + if (payloadLocation_ != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { output.writeEnum(2, payloadLocation_); } getUnknownFields().writeTo(output); @@ -321,9 +279,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, payloadValue_); } - if (payloadLocation_ - != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, payloadLocation_); + if (payloadLocation_ != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, payloadLocation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -333,15 +291,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.Xxe)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Xxe other = - (com.google.cloud.websecurityscanner.v1.Xxe) obj; + com.google.cloud.websecurityscanner.v1.Xxe other = (com.google.cloud.websecurityscanner.v1.Xxe) obj; - if (!getPayloadValue().equals(other.getPayloadValue())) return false; + if (!getPayloadValue() + .equals(other.getPayloadValue())) return false; if (payloadLocation_ != other.payloadLocation_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -363,136 +321,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe 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.Xxe 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.Xxe parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe 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.Xxe 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.Xxe 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 XXE.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} */ - 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.Xxe) com.google.cloud.websecurityscanner.v1.XxeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto - .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xxe.class, - com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + com.google.cloud.websecurityscanner.v1.Xxe.class, com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Xxe.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -503,9 +457,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_Xxe_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; } @java.lang.Override @@ -524,11 +478,8 @@ public com.google.cloud.websecurityscanner.v1.Xxe build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xxe buildPartial() { - com.google.cloud.websecurityscanner.v1.Xxe result = - new com.google.cloud.websecurityscanner.v1.Xxe(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1.Xxe result = new com.google.cloud.websecurityscanner.v1.Xxe(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -547,39 +498,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Xxe result) { 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.Xxe) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Xxe) other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xxe)other); } else { super.mergeFrom(other); return this; @@ -622,25 +572,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - payloadValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - payloadLocation_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + payloadValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + payloadLocation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,26 +597,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object payloadValue_ = ""; /** - * - * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; - * * @return The payloadValue. */ public java.lang.String getPayloadValue() { java.lang.Object ref = payloadValue_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payloadValue_ = s; return s; @@ -678,22 +622,21 @@ public java.lang.String getPayloadValue() { } } /** - * - * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; - * * @return The bytes for payloadValue. */ - public com.google.protobuf.ByteString getPayloadValueBytes() { + public com.google.protobuf.ByteString + getPayloadValueBytes() { java.lang.Object ref = payloadValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payloadValue_ = b; return b; } else { @@ -701,37 +644,30 @@ public com.google.protobuf.ByteString getPayloadValueBytes() { } } /** - * - * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; - * * @param value The payloadValue to set. * @return This builder for chaining. */ - public Builder setPayloadValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } payloadValue_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; - * * @return This builder for chaining. */ public Builder clearPayloadValue() { @@ -741,22 +677,18 @@ public Builder clearPayloadValue() { return this; } /** - * - * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; - * * @param value The bytes for payloadValue to set. * @return This builder for chaining. */ - public Builder setPayloadValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payloadValue_ = value; bitField0_ |= 0x00000001; @@ -766,29 +698,22 @@ public Builder setPayloadValueBytes(com.google.protobuf.ByteString value) { private int payloadLocation_ = 0; /** - * - * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @return The enum numeric value on the wire for payloadLocation. */ - @java.lang.Override - public int getPayloadLocationValue() { + @java.lang.Override public int getPayloadLocationValue() { return payloadLocation_; } /** - * - * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @param value The enum numeric value on the wire for payloadLocation to set. * @return This builder for chaining. */ @@ -799,33 +724,24 @@ public Builder setPayloadLocationValue(int value) { return this; } /** - * - * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @return The payloadLocation. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { - com.google.cloud.websecurityscanner.v1.Xxe.Location result = - com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); - return result == null - ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED - : result; + com.google.cloud.websecurityscanner.v1.Xxe.Location result = com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); + return result == null ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED : result; } /** - * - * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @param value The payloadLocation to set. * @return This builder for chaining. */ @@ -839,14 +755,11 @@ public Builder setPayloadLocation(com.google.cloud.websecurityscanner.v1.Xxe.Loc return this; } /** - * - * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @return This builder for chaining. */ public Builder clearPayloadLocation() { @@ -855,9 +768,9 @@ public Builder clearPayloadLocation() { 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); } @@ -867,12 +780,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xxe) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xxe) private static final com.google.cloud.websecurityscanner.v1.Xxe DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xxe(); } @@ -881,27 +794,27 @@ public static com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xxe parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xxe parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -916,4 +829,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java index 764c37a8360e..478f22f8d20c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java @@ -1,76 +1,49 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 XxeOrBuilder - extends +public interface XxeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xxe) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; - * * @return The payloadValue. */ java.lang.String getPayloadValue(); /** - * - * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; - * * @return The bytes for payloadValue. */ - com.google.protobuf.ByteString getPayloadValueBytes(); + com.google.protobuf.ByteString + getPayloadValueBytes(); /** - * - * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @return The enum numeric value on the wire for payloadLocation. */ int getPayloadLocationValue(); /** - * - * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; - * * @return The payloadLocation. */ com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation(); diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto rename to owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java similarity index 88% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java index 593ccf37ffe0..b363811cd071 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java @@ -61,19 +61,263 @@ * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
CreateScanConfig

Creates a new ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createScanConfig(CreateScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createScanConfig(ProjectName parent, ScanConfig scanConfig) + *
  • createScanConfig(String parent, ScanConfig scanConfig) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createScanConfigCallable() + *
+ *
DeleteScanConfig

Deletes an existing ScanConfig and its child resources.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteScanConfig(DeleteScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteScanConfig(ScanConfigName name) + *
  • deleteScanConfig(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteScanConfigCallable() + *
+ *
GetScanConfig

Gets a ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getScanConfig(GetScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getScanConfig(ScanConfigName name) + *
  • getScanConfig(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getScanConfigCallable() + *
+ *
ListScanConfigs

Lists ScanConfigs under a given project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listScanConfigs(ListScanConfigsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listScanConfigs(ProjectName parent) + *
  • listScanConfigs(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listScanConfigsPagedCallable() + *
  • listScanConfigsCallable() + *
+ *
UpdateScanConfig

Updates a ScanConfig. This method support partial update of a ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateScanConfig(UpdateScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateScanConfig(ScanConfig scanConfig, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateScanConfigCallable() + *
+ *
StartScanRun

Start a ScanRun according to the given ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • startScanRun(StartScanRunRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • startScanRun(ScanConfigName name) + *
  • startScanRun(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • startScanRunCallable() + *
+ *
GetScanRun

Gets a ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getScanRun(GetScanRunRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getScanRun(ScanRunName name) + *
  • getScanRun(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getScanRunCallable() + *
+ *
ListScanRuns

Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listScanRuns(ListScanRunsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listScanRuns(ScanConfigName parent) + *
  • listScanRuns(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listScanRunsPagedCallable() + *
  • listScanRunsCallable() + *
+ *
StopScanRun

Stops a ScanRun. The stopped ScanRun is returned.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • stopScanRun(StopScanRunRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • stopScanRun(ScanRunName name) + *
  • stopScanRun(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • stopScanRunCallable() + *
+ *
ListCrawledUrls

List CrawledUrls under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listCrawledUrls(ListCrawledUrlsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listCrawledUrls(ScanRunName parent) + *
  • listCrawledUrls(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listCrawledUrlsPagedCallable() + *
  • listCrawledUrlsCallable() + *
+ *
GetFinding

Gets a Finding.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getFinding(GetFindingRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getFinding(FindingName name) + *
  • getFinding(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getFindingCallable() + *
+ *
ListFindings

List Findings under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFindings(ListFindingsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listFindings(ScanRunName parent, String filter) + *
  • listFindings(String parent, String filter) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listFindingsPagedCallable() + *
  • listFindingsCallable() + *
+ *
ListFindingTypeStats

List all FindingTypeStats under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFindingTypeStats(ListFindingTypeStatsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listFindingTypeStats(ScanRunName parent) + *
  • listFindingTypeStats(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listFindingTypeStatsCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java index 5db2a32b6938..4ab0c879ef89 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java +++ b/owl-bot-staging/java-websecurityscanner/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; diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java index 68db73b7e91d..5c7193c25706 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java index 9da9994c7d05..4350bd72dec0 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java @@ -453,6 +453,12 @@ public WebSecurityScannerStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "websecurityscanner"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/owl-bot-staging/java-websecurityscanner/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java new file mode 100644 index 000000000000..b50199428ce5 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java @@ -0,0 +1,1371 @@ +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 java.lang.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 interface AsyncService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service WebSecurityScanner. + *
+   * 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, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WebSecurityScannerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( + service, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( + service, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + + 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 java.lang.String methodName; + + WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java index 175901c890ea..58d0d3662d0c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,39 +29,34 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -88,30 +65,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 { @@ -120,18 +97,14 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } public static final int URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** - * - * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -140,29 +113,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 { @@ -171,18 +144,14 @@ public com.google.protobuf.ByteString getUrlBytes() { } public static final int BODY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -191,29 +160,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 { @@ -222,7 +191,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +202,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_); } @@ -270,17 +239,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,104 +275,98 @@ 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
@@ -410,32 +375,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -447,9 +413,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
@@ -468,11 +434,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result = new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -494,39 +457,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.CrawledUr
     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;
@@ -534,8 +496,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_;
         bitField0_ |= 0x00000001;
@@ -577,31 +538,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                httpMethod_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                url_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                body_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              httpMethod_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              url_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              body_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -611,26 +568,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -639,22 +593,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 { @@ -662,37 +615,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } httpMethod_ = value; bitField0_ |= 0x00000001; 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() { @@ -702,22 +648,18 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000001; @@ -727,20 +669,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; @@ -749,21 +689,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 { @@ -771,35 +710,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { @@ -809,21 +741,17 @@ public Builder clearUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; @@ -833,20 +761,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; @@ -855,21 +781,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 { @@ -877,35 +802,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBody( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000004; 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() { @@ -915,30 +833,26 @@ public Builder clearBody() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000004; 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); } @@ -948,12 +862,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(); } @@ -962,27 +876,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java similarity index 62% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java index 3dd7ba4b3c82..16190d960a01 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java new file mode 100644 index 000000000000..1a8437d58a99 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\235\001\n+com.google.cloud.websecurityscann" + + "er.v1alphaB\017CrawledUrlProtoP\001Z[cloud.goo" + + "gle.com/go/websecurityscanner/apiv1alpha" + + "/websecurityscannerpb;websecurityscanner" + + "pbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java similarity index 59% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java index 8b8acf39bfb4..3c7b5e822ebb 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -122,16 +95,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 @@ -139,44 +107,30 @@ 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() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,138 +211,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,16 +350,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 @@ -423,23 +371,21 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null + ? scanConfig_ + : scanConfigBuilder_.build(); } } @@ -447,51 +393,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -526,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getScanConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -584,24 +519,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 { @@ -609,41 +541,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -653,24 +574,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -680,58 +595,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -747,15 +643,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) { @@ -769,22 +661,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 (((bitField0_ & 0x00000002) != 0) - && scanConfig_ != null - && scanConfig_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + scanConfig_ != null && + scanConfig_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -797,15 +684,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -818,15 +701,11 @@ 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() { bitField0_ |= 0x00000002; @@ -834,56 +713,43 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon 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); } @@ -893,43 +759,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,8 +805,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..42ad6f50df13 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java similarity index 59% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java index 3064a96b58dc..c36e22bc790f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,138 +157,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,16 +291,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 @@ -348,17 +312,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -369,51 +329,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -445,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -497,24 +445,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 { @@ -522,41 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -566,33 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -602,43 +530,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,8 +576,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..19772138df5f --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java similarity index 72% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java index ba448f0b7e6a..9af92841034b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,38 +35,34 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
-  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.
      * 
@@ -93,8 +71,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
@@ -106,8 +82,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
@@ -119,8 +93,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
@@ -134,8 +106,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
@@ -146,8 +116,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
@@ -164,8 +132,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.
@@ -175,8 +141,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.
@@ -186,8 +150,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.
@@ -197,8 +159,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     XSS_ANGULAR_CALLBACK(8),
     /**
-     *
-     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -207,8 +167,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ INVALID_HEADER(9), /** - * - * *
      * Misspelled security header name.
      * 
@@ -217,8 +175,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ MISSPELLED_SECURITY_HEADER_NAME(10), /** - * - * *
      * Mismatching values in a duplicate security header.
      * 
@@ -230,8 +186,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The invalid finding type.
      * 
@@ -240,8 +194,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
@@ -253,8 +205,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
@@ -266,8 +216,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
@@ -281,8 +229,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
@@ -293,8 +239,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
@@ -311,8 +255,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.
@@ -322,8 +264,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.
@@ -333,8 +273,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.
@@ -344,8 +282,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int XSS_ANGULAR_CALLBACK_VALUE = 8;
     /**
-     *
-     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -354,8 +290,6 @@ public enum FindingType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INVALID_HEADER_VALUE = 9; /** - * - * *
      * Misspelled security header name.
      * 
@@ -364,8 +298,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.
      * 
@@ -374,6 +306,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( @@ -398,69 +331,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; @@ -478,12 +400,9 @@ private FindingType(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") 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}'.
@@ -491,7 +410,6 @@ private FindingType(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -500,15 +418,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}'.
@@ -516,15 +433,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 { @@ -535,54 +453,39 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; 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; - * * @return The findingType. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(findingType_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -591,30 +494,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 { @@ -623,19 +526,15 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } public static final int FUZZED_URL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -644,30 +543,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 { @@ -676,18 +575,14 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } public static final int BODY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object body_ = ""; /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -696,29 +591,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 { @@ -727,18 +622,14 @@ public com.google.protobuf.ByteString getBodyBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -747,29 +638,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 { @@ -778,19 +669,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") 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 @@ -799,30 +686,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 { @@ -831,19 +718,15 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } public static final int FRAME_URL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") 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 @@ -852,30 +735,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 { @@ -884,18 +767,14 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } public static final int FINAL_URL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") 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 @@ -904,29 +783,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 { @@ -935,19 +814,15 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } public static final int TRACKING_ID_FIELD_NUMBER = 10; - @SuppressWarnings("serial") 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 @@ -956,30 +831,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 { @@ -990,14 +865,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 @@ -1005,25 +877,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.
    * 
@@ -1031,26 +896,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() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } 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 @@ -1058,55 +916,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() { - return violatingResource_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() - : violatingResource_; + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() { + return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; } 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 @@ -1114,54 +956,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() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } 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 @@ -1169,55 +995,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() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } 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 @@ -1225,25 +1035,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.
    * 
@@ -1252,13 +1055,10 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder() { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1270,13 +1070,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_)) { @@ -1330,10 +1129,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_); @@ -1360,20 +1158,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1383,43 +1185,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1478,103 +1293,98 @@ 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.
@@ -1582,32 +1392,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1651,9 +1462,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
@@ -1672,11 +1483,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1alpha.Finding result = new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1714,29 +1522,29 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Finding r
         result.trackingId_ = trackingId_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.outdatedLibrary_ =
-            outdatedLibraryBuilder_ == null ? outdatedLibrary_ : outdatedLibraryBuilder_.build();
+        result.outdatedLibrary_ = outdatedLibraryBuilder_ == null
+            ? outdatedLibrary_
+            : outdatedLibraryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.violatingResource_ =
-            violatingResourceBuilder_ == null
-                ? violatingResource_
-                : violatingResourceBuilder_.build();
+        result.violatingResource_ = violatingResourceBuilder_ == null
+            ? violatingResource_
+            : violatingResourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.vulnerableHeaders_ =
-            vulnerableHeadersBuilder_ == null
-                ? vulnerableHeaders_
-                : vulnerableHeadersBuilder_.build();
+        result.vulnerableHeaders_ = vulnerableHeadersBuilder_ == null
+            ? vulnerableHeaders_
+            : vulnerableHeadersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.vulnerableParameters_ =
-            vulnerableParametersBuilder_ == null
-                ? vulnerableParameters_
-                : vulnerableParametersBuilder_.build();
+        result.vulnerableParameters_ = vulnerableParametersBuilder_ == null
+            ? vulnerableParameters_
+            : vulnerableParametersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.xss_ = xssBuilder_ == null ? xss_ : xssBuilder_.build();
+        result.xss_ = xssBuilder_ == null
+            ? xss_
+            : xssBuilder_.build();
       }
     }
 
@@ -1744,39 +1552,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Finding r
     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;
@@ -1784,8 +1591,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_;
         bitField0_ |= 0x00000001;
@@ -1875,106 +1681,97 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                findingType_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                httpMethod_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                fuzzedUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                body_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                reproductionUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                frameUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                finalUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                trackingId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(
-                    getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(
-                    getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 114
-            case 122:
-              {
-                input.readMessage(
-                    getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 122
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              findingType_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              httpMethod_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              fuzzedUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              body_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              reproductionUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              frameUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              finalUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              trackingId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getOutdatedLibraryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getViolatingResourceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getVulnerableParametersFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getXssFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 114
+            case 122: {
+              input.readMessage(
+                  getVulnerableHeadersFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 122
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1984,13 +1781,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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}'.
@@ -1998,13 +1792,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; @@ -2013,8 +1807,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}'.
@@ -2022,14 +1814,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 { @@ -2037,8 +1830,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}'.
@@ -2046,22 +1837,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2069,7 +1856,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2079,8 +1865,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -2088,14 +1872,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2105,29 +1887,22 @@ 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. */ @@ -2138,38 +1913,28 @@ public Builder setFindingTypeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(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.forNumber(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(); } @@ -2179,14 +1944,11 @@ public Builder setFindingType( return this; } /** - * - * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -2198,21 +1960,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; @@ -2221,22 +1981,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 { @@ -2244,37 +2003,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } httpMethod_ = value; bitField0_ |= 0x00000004; 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() { @@ -2284,22 +2036,18 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000004; @@ -2309,21 +2057,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; @@ -2332,22 +2078,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 { @@ -2355,37 +2100,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFuzzedUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fuzzedUrl_ = value; bitField0_ |= 0x00000008; 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() { @@ -2395,22 +2133,18 @@ public Builder clearFuzzedUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fuzzedUrl_ = value; bitField0_ |= 0x00000008; @@ -2420,20 +2154,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; @@ -2442,21 +2174,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 { @@ -2464,35 +2195,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBody( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { @@ -2502,21 +2226,17 @@ public Builder clearBody() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000010; @@ -2526,20 +2246,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; @@ -2548,21 +2266,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 { @@ -2570,35 +2287,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2608,21 +2318,17 @@ public Builder clearDescription() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000020; @@ -2632,21 +2338,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; @@ -2655,22 +2359,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 { @@ -2678,37 +2381,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReproductionUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reproductionUrl_ = value; bitField0_ |= 0x00000040; 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() { @@ -2718,22 +2414,18 @@ public Builder clearReproductionUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reproductionUrl_ = value; bitField0_ |= 0x00000040; @@ -2743,21 +2435,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; @@ -2766,22 +2456,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 { @@ -2789,37 +2478,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFrameUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } frameUrl_ = value; bitField0_ |= 0x00000080; 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() { @@ -2829,22 +2511,18 @@ public Builder clearFrameUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); frameUrl_ = value; bitField0_ |= 0x00000080; @@ -2854,20 +2532,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; @@ -2876,21 +2552,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 { @@ -2898,35 +2573,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFinalUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } finalUrl_ = value; bitField0_ |= 0x00000100; 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() { @@ -2936,21 +2604,17 @@ public Builder clearFinalUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); finalUrl_ = value; bitField0_ |= 0x00000100; @@ -2960,21 +2624,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; @@ -2983,22 +2645,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 { @@ -3006,37 +2667,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTrackingId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } trackingId_ = value; bitField0_ |= 0x00000200; 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() { @@ -3046,22 +2700,18 @@ public Builder clearTrackingId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); trackingId_ = value; bitField0_ |= 0x00000200; @@ -3071,55 +2721,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 ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * 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(); @@ -3133,8 +2769,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3153,22 +2787,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 (((bitField0_ & 0x00000400) != 0) - && outdatedLibrary_ != null - && outdatedLibrary_ - != com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary - .getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + outdatedLibrary_ != null && + outdatedLibrary_ != com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) { getOutdatedLibraryBuilder().mergeFrom(value); } else { outdatedLibrary_ = value; @@ -3181,8 +2810,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3200,42 +2827,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() { bitField0_ |= 0x00000400; 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.
      * 
@@ -3243,17 +2861,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_; @@ -3261,61 +2876,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 ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * 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(); @@ -3329,15 +2927,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) { @@ -3351,24 +2946,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 (((bitField0_ & 0x00000800) != 0) - && violatingResource_ != null - && violatingResource_ - != com.google.cloud.websecurityscanner.v1alpha.ViolatingResource - .getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + violatingResource_ != null && + violatingResource_ != com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance()) { getViolatingResourceBuilder().mergeFrom(value); } else { violatingResource_ = value; @@ -3381,15 +2970,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() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3402,66 +2988,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() { bitField0_ |= 0x00000800; 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_; @@ -3469,58 +3040,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 ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * 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(); @@ -3534,14 +3088,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) { @@ -3555,23 +3106,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 (((bitField0_ & 0x00001000) != 0) - && vulnerableHeaders_ != null - && vulnerableHeaders_ - != com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + vulnerableHeaders_ != null && + vulnerableHeaders_ != com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) { getVulnerableHeadersBuilder().mergeFrom(value); } else { vulnerableHeaders_ = value; @@ -3584,14 +3129,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() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3604,63 +3146,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() { bitField0_ |= 0x00001000; 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_; @@ -3668,65 +3195,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 ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * 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(); @@ -3740,16 +3246,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) { @@ -3763,25 +3265,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 (((bitField0_ & 0x00002000) != 0) - && vulnerableParameters_ != null - && vulnerableParameters_ - != com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters - .getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + vulnerableParameters_ != null && + vulnerableParameters_ != com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) { getVulnerableParametersBuilder().mergeFrom(value); } else { vulnerableParameters_ = value; @@ -3794,16 +3289,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() { bitField0_ = (bitField0_ & ~0x00002000); @@ -3816,69 +3307,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() { bitField0_ |= 0x00002000; 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_; @@ -3886,47 +3359,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 ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * 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.
      * 
@@ -3947,15 +3407,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(); } else { @@ -3966,8 +3425,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss.Builder bu return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3976,9 +3433,9 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1alpha.Xss.Builder bu */ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { if (xssBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && xss_ != null - && xss_ != com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + xss_ != null && + xss_ != com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) { getXssBuilder().mergeFrom(value); } else { xss_ = value; @@ -3991,8 +3448,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4010,8 +3465,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4024,8 +3477,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss.Builder getXssBuilder() { return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -4036,14 +3487,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.
      * 
@@ -4051,24 +3499,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); } @@ -4078,12 +3523,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(); } @@ -4092,27 +3537,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4127,4 +3572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java new file mode 100644 index 000000000000..29db98b24e3d --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\237\001\n+com.goo" + + "gle.cloud.websecurityscanner.v1alphaB\021Fi" + + "ndingAddonProtoP\001Z[cloud.google.com/go/w" + + "ebsecurityscanner/apiv1alpha/websecurity" + + "scannerpb;websecurityscannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java similarity index 80% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java index 6f4908776bbe..fda89e42dd9c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java new file mode 100644 index 000000000000..a46ac0fd8286 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java @@ -0,0 +1,92 @@ +// 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\232\001\n" + + "+com.google.cloud.websecurityscanner.v1a" + + "lphaB\014FindingProtoP\001Z[cloud.google.com/g" + + "o/websecurityscanner/apiv1alpha/websecur" + + "ityscannerpb;websecurityscannerpbb\006proto" + + "3" + }; + 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java index e328a9899dbe..fbeb77f1248d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,89 +11,73 @@
  *
  * 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();
   }
 
-  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_ = 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; - * * @return The findingType. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(findingType_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(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_ = 0; /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -119,7 +86,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,10 +97,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) { @@ -149,13 +114,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -165,16 +130,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -196,104 +161,98 @@ 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.
@@ -301,32 +260,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -337,14 +297,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();
     }
 
@@ -359,17 +318,13 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result) {
+    private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.findingType_ = findingType_;
@@ -383,39 +338,38 @@ private void buildPartial0(
     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;
@@ -423,9 +377,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());
       }
@@ -458,25 +410,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                findingType_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 16:
-              {
-                findingCount_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              findingType_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 16: {
+              findingCount_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -486,34 +435,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. */ @@ -524,38 +465,28 @@ public Builder setFindingTypeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(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.forNumber(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(); } @@ -565,14 +496,11 @@ public Builder setFindingType( 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() { @@ -582,16 +510,13 @@ public Builder clearFindingType() { 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 @@ -599,14 +524,11 @@ 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. */ @@ -618,14 +540,11 @@ public Builder setFindingCount(int value) { return this; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { @@ -634,9 +553,9 @@ public Builder clearFindingCount() { 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); } @@ -646,13 +565,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(); } @@ -661,27 +579,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -696,4 +614,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java index 2a7849773702..2da6562fd3a2 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java @@ -1,62 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java new file mode 100644 index 000000000000..167bdd57a8ca --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\243\001\n+com.google.cloud.websecuri" + + "tyscanner.v1alphaB\025FindingTypeStatsProto" + + "P\001Z[cloud.google.com/go/websecurityscann" + + "er/apiv1alpha/websecurityscannerpb;webse" + + "curityscannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java similarity index 63% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java index ea6d1fef1dd8..04449612915f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +293,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(); } @@ -347,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,38 @@ private void buildPartial0( 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; @@ -408,9 +370,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_; bitField0_ |= 0x00000001; @@ -442,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -495,25 +448,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 { @@ -521,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -567,34 +506,28 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -604,13 +537,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(); } @@ -619,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java new file mode 100644 index 000000000000..171e163667b9 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java index 589e1e9e1f18..ce9355fbf5d0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,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(); } @@ -345,17 +312,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,50 +329,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -441,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -493,24 +445,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 { @@ -518,41 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -562,33 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,43 +530,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,8 +576,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..90b3a5d63dfc --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java similarity index 63% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java index 1b1e119ddef1..0b42d8fe3471 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +293,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(); } @@ -347,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,38 @@ private void buildPartial0( 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; @@ -408,9 +370,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_; bitField0_ |= 0x00000001; @@ -442,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -495,25 +448,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 { @@ -521,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -567,34 +506,28 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -604,13 +537,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(); } @@ -619,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..7daa852d1986 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java index 6ec84a471139..9276362a8416 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,42 +26,35 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -88,33 +63,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 { @@ -123,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -136,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -145,15 +114,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.
@@ -161,15 +129,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 { @@ -180,8 +149,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -189,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -198,7 +164,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +175,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_); } @@ -236,7 +202,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,17 +213,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,138 +249,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,16 +385,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 @@ -446,17 +406,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -473,51 +429,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -557,31 +508,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,29 +538,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -622,25 +564,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 { @@ -648,43 +587,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -694,25 +622,19 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -722,8 +644,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.
@@ -731,13 +651,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; @@ -746,8 +666,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.
@@ -755,14 +673,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 { @@ -770,8 +689,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.
@@ -779,22 +696,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -802,7 +715,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -812,8 +724,6 @@ public Builder clearPageToken() { 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.
@@ -821,14 +731,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -836,10 +744,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -847,7 +753,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -855,8 +760,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
@@ -864,7 +767,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -876,8 +778,6 @@ public Builder setPageSize(int value) { 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,7 +785,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -894,9 +793,9 @@ public Builder clearPageSize() { 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,43 +805,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -954,8 +851,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java index d0ef7ae86259..ea234ea5c7c4 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java index dfd02fd3e7d8..446934c17948 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -77,13 +55,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.
    * 
@@ -91,13 +66,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.
    * 
@@ -109,8 +82,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -137,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -158,30 +123,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 { @@ -190,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +166,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)); } @@ -219,7 +184,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_); @@ -232,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,138 +232,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,16 +373,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 @@ -436,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -459,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -471,51 +424,46 @@ private void buildPartial0( 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()) { @@ -534,10 +482,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_); } @@ -574,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), - extensionRegistry); - if (crawledUrlsBuilder_ == null) { - ensureCrawledUrlsIsMutable(); - crawledUrls_.add(m); - } else { - crawledUrlsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,38 +554,28 @@ public Builder mergeFrom( } // finally 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 { @@ -649,8 +583,6 @@ private void ensureCrawledUrlsIsMutable() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -665,8 +597,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -681,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -704,8 +632,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -724,8 +650,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -746,8 +670,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.Crawle return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -769,8 +691,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -789,8 +709,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -809,8 +727,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -818,11 +734,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); @@ -830,8 +746,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -849,8 +763,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -868,8 +780,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -881,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -892,22 +800,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 { @@ -915,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -924,12 +827,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.
      * 
@@ -938,36 +839,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_; @@ -975,21 +870,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; @@ -998,22 +891,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 { @@ -1021,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1061,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1095,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java index 765016f5d3a5..0b93f80c366f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java similarity index 59% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java index 189d20f152de..4bd3717f1c01 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,139 +159,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,22 +293,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); } @@ -352,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -373,52 +331,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -450,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -503,25 +448,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 { @@ -529,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -575,34 +506,28 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; 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,44 +537,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,8 +583,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 000000000000..0ee100794975 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java similarity index 58% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java index 6420d315b5fe..b946480c8832 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java @@ -1,155 +1,110 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") - 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; @@ -161,7 +116,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)); } @@ -175,7 +131,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -185,16 +142,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,139 +172,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -364,22 +312,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); } @@ -388,18 +333,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -411,8 +352,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { int from_bitField0_ = bitField0_; } @@ -420,52 +360,46 @@ private void buildPartial0( 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()) { @@ -484,10 +418,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_); } @@ -519,27 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), - extensionRegistry); - if (findingTypeStatsBuilder_ == null) { - ensureFindingTypeStatsIsMutable(); - findingTypeStats_.add(m); - } else { - findingTypeStatsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -549,40 +480,28 @@ public Builder mergeFrom( } // finally 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 { @@ -590,15 +509,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) { @@ -608,18 +523,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 { @@ -627,15 +537,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) { @@ -652,19 +558,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()); @@ -675,18 +576,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(); @@ -700,15 +596,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) { @@ -725,15 +617,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) { @@ -747,19 +635,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()); @@ -770,22 +653,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); @@ -793,15 +672,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) { @@ -814,15 +689,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) { @@ -835,53 +706,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 { @@ -889,67 +746,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(), @@ -958,9 +793,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); } @@ -970,44 +805,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1019,8 +851,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java new file mode 100644 index 000000000000..c9d44f1c087d --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java index 4584d37afc00..f266c75a992c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,42 +27,35 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -89,33 +64,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 { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -138,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -147,15 +116,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>.
@@ -164,15 +132,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 { @@ -181,12 +150,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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.
@@ -194,7 +160,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -203,15 +168,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.
@@ -219,15 +183,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 { @@ -238,8 +203,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -247,7 +210,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -256,7 +218,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +229,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_); } @@ -300,7 +262,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,18 +273,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -347,136 +313,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +450,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(); } @@ -511,17 +471,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -541,50 +497,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -629,37 +581,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -669,29 +616,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -700,25 +642,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 { @@ -726,43 +665,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -772,25 +700,19 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -800,8 +722,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>.
@@ -810,13 +730,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; @@ -825,8 +745,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -835,14 +753,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 { @@ -850,8 +769,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -860,22 +777,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -884,7 +797,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -894,8 +806,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -904,14 +814,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -921,8 +829,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.
@@ -930,13 +836,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; @@ -945,8 +851,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.
@@ -954,14 +858,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 { @@ -969,8 +874,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.
@@ -978,22 +881,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; 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.
@@ -1001,7 +900,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1011,8 +909,6 @@ public Builder clearPageToken() { 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.
@@ -1020,14 +916,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1035,10 +929,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -1046,7 +938,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1054,8 +945,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
@@ -1063,7 +952,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1075,8 +963,6 @@ public Builder setPageSize(int value) { 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
@@ -1084,7 +970,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1093,9 +978,9 @@ public Builder clearPageSize() { 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); } @@ -1105,43 +990,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,8 +1036,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java index a0230a0d506f..0ea028905674 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java index 1e4333a27b22..b6cb98e7771f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getFi return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -157,30 +123,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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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)); } @@ -218,7 +184,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_); @@ -231,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +373,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(); } @@ -432,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,50 +424,46 @@ private void buildPartial0( 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()) { @@ -529,10 +482,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_); } @@ -569,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.Finding m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), - extensionRegistry); - if (findingsBuilder_ == null) { - ensureFindingsIsMutable(); - findings_.add(m); - } else { - findingsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1alpha.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,29 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +583,6 @@ public java.util.List getFi } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -658,8 +597,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -674,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -697,8 +632,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -717,8 +650,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -739,8 +670,6 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1alpha.Finding v return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -762,8 +691,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -782,8 +709,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -802,8 +727,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -814,7 +737,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); @@ -822,8 +746,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -841,8 +763,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -860,8 +780,6 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -873,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -884,22 +800,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 { @@ -907,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -916,12 +827,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.
      * 
@@ -930,36 +839,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_; @@ -967,21 +870,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; @@ -990,22 +891,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 { @@ -1013,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1053,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1087,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java index 6523c3a4e8a9..08fb2b10c3ea 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java index ee8653676165..d57727db1ef3 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,41 +26,34 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,32 +62,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 { @@ -121,12 +94,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -134,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -143,15 +112,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.
@@ -159,15 +127,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 { @@ -178,8 +147,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -187,7 +154,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -196,7 +162,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,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_); } @@ -234,7 +200,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,138 +247,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,16 +383,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 @@ -444,17 +404,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -471,51 +427,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -555,31 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,28 +536,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -619,24 +561,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 { @@ -644,41 +583,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -688,24 +616,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -715,8 +637,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.
@@ -724,13 +644,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; @@ -739,8 +659,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.
@@ -748,14 +666,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 { @@ -763,8 +682,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.
@@ -772,22 +689,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -795,7 +708,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -805,8 +717,6 @@ public Builder clearPageToken() { 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.
@@ -814,14 +724,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -829,10 +737,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -840,7 +746,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -848,8 +753,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
@@ -857,7 +760,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -869,8 +771,6 @@ public Builder setPageSize(int value) { 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,7 +778,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -887,9 +786,9 @@ public Builder clearPageSize() { 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,43 +798,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,8 +844,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java index 832a604e0c04..57f8ce2df873 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java index 604a98ab242f..bd001588bc9e 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -77,13 +55,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.
    * 
@@ -91,13 +66,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.
    * 
@@ -109,8 +82,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -137,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -158,30 +123,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 { @@ -190,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +166,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)); } @@ -219,7 +184,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_); @@ -232,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,138 +232,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,16 +373,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 @@ -436,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -459,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -471,51 +424,46 @@ private void buildPartial0( 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()) { @@ -534,10 +482,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_); } @@ -574,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (scanConfigsBuilder_ == null) { - ensureScanConfigsIsMutable(); - scanConfigs_.add(m); - } else { - scanConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,38 +554,28 @@ public Builder mergeFrom( } // finally 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 { @@ -649,8 +583,6 @@ private void ensureScanConfigsIsMutable() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -665,8 +597,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -681,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -704,8 +632,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -724,8 +650,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -746,8 +670,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ScanCo return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -769,8 +691,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -789,8 +709,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -809,8 +727,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -818,11 +734,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); @@ -830,8 +746,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -849,8 +763,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -868,8 +780,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -881,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -892,22 +800,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 { @@ -915,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -924,12 +827,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.
      * 
@@ -938,36 +839,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_; @@ -975,21 +870,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; @@ -998,22 +891,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 { @@ -1021,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1061,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1095,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java index 5cf5b916c10a..03bb5e60d1f6 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java similarity index 66% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java index f8bfd3250d59..3d1e14246919 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,41 +26,34 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,32 +62,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 { @@ -121,12 +94,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -134,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -143,15 +112,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.
@@ -159,15 +127,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 { @@ -178,8 +147,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -187,7 +154,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -196,7 +162,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,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_); } @@ -234,7 +200,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,136 +247,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -419,14 +383,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(); } @@ -441,17 +404,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -468,50 +427,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -551,31 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,28 +536,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -615,24 +561,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 { @@ -640,41 +583,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -684,24 +616,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -711,8 +637,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.
@@ -720,13 +644,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; @@ -735,8 +659,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.
@@ -744,14 +666,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 { @@ -759,8 +682,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.
@@ -768,22 +689,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -791,7 +708,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -801,8 +717,6 @@ public Builder clearPageToken() { 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,14 +724,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -825,10 +737,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -836,7 +746,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -844,8 +753,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
@@ -853,7 +760,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -865,8 +771,6 @@ public Builder setPageSize(int value) { 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
@@ -874,7 +778,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -883,9 +786,9 @@ public Builder clearPageSize() { 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,43 +798,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,8 +844,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java index 9aa8ed92664c..9d35ecb9796a 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java index d3553add58f2..a61788f5db88 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getSc return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -157,30 +123,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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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)); } @@ -218,7 +184,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_); @@ -231,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +373,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(); } @@ -432,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,50 +424,46 @@ private void buildPartial0( 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()) { @@ -529,10 +482,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_); } @@ -569,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.ScanRun m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), - extensionRegistry); - if (scanRunsBuilder_ == null) { - ensureScanRunsIsMutable(); - scanRuns_.add(m); - } else { - scanRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1alpha.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), + extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,29 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +583,6 @@ public java.util.List getSc } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -658,8 +597,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -674,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -697,8 +632,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -717,8 +650,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -739,8 +670,6 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1alpha.ScanRun v return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -762,8 +691,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -782,8 +709,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -802,8 +727,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -814,7 +737,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); @@ -822,8 +746,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -841,8 +763,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -860,8 +780,6 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -873,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -884,22 +800,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 { @@ -907,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -916,12 +827,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.
      * 
@@ -930,36 +839,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_; @@ -967,21 +870,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; @@ -990,22 +891,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 { @@ -1013,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1053,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1087,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java index 8ba3c48c431f..2a7099975639 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java index 977ab8c0ae98..e9c6dd727d52 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java @@ -1,82 +1,60 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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_ = ""; - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object libraryName_ = ""; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -85,29 +63,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 { @@ -116,18 +94,14 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } public static final int VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -136,29 +110,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 { @@ -167,47 +141,38 @@ public com.google.protobuf.ByteString getVersionBytes() { } public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -215,23 +180,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; @@ -243,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(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -284,17 +247,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,150 +285,146 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; libraryName_ = ""; version_ = ""; - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -482,11 +443,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -509,39 +467,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.OutdatedL 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; @@ -549,8 +506,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_; bitField0_ |= 0x00000001; @@ -597,32 +553,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - libraryName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLearnMoreUrlsIsMutable(); - learnMoreUrls_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + libraryName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -632,25 +584,22 @@ public Builder mergeFrom( } // finally 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; @@ -659,21 +608,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 { @@ -681,35 +629,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLibraryName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } libraryName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { @@ -719,21 +660,17 @@ public Builder clearLibraryName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); libraryName_ = value; bitField0_ |= 0x00000001; @@ -743,20 +680,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; @@ -765,21 +700,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 { @@ -787,35 +721,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { @@ -825,21 +752,17 @@ public Builder clearVersion() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000002; @@ -849,7 +772,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLearnMoreUrlsIsMutable() { if (!learnMoreUrls_.isModifiable()) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); @@ -857,43 +779,35 @@ private void ensureLearnMoreUrlsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * 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() { learnMoreUrls_.makeImmutable(); 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. */ @@ -901,37 +815,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLearnMoreUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); bitField0_ |= 0x00000004; @@ -939,21 +847,17 @@ public Builder setLearnMoreUrls(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLearnMoreUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); bitField0_ |= 0x00000004; @@ -961,58 +865,50 @@ public Builder addLearnMoreUrls(java.lang.String value) { 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_); bitField0_ |= 0x00000004; 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() { - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); @@ -1020,9 +916,9 @@ public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString 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); } @@ -1032,12 +928,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(); } @@ -1046,27 +942,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,4 +977,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java index f9c5c8c821d6..727833b26b50 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java similarity index 66% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java index 76b93252bc6f..83ae4f41d25a 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,59 +11,56 @@
  *
  * 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_ = "";
-    startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    startingUrls_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     userAgent_ = 0;
-    blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    blacklistPatterns_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     targetPlatforms_ = 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 ScanConfig();
   }
 
-  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.
      * 
@@ -89,8 +69,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -99,8 +77,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -109,8 +85,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -122,8 +96,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -132,8 +104,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.
      * 
@@ -142,8 +112,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -152,8 +120,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -162,6 +128,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( @@ -186,53 +153,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; @@ -250,18 +214,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.
@@ -271,8 +232,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -281,8 +240,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ APP_ENGINE(1), /** - * - * *
      * Google Compute Engine service.
      * 
@@ -294,8 +251,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.
@@ -305,8 +260,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -315,8 +268,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APP_ENGINE_VALUE = 1; /** - * - * *
      * Google Compute Engine service.
      * 
@@ -325,6 +276,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( @@ -349,51 +301,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; @@ -410,223 +360,167 @@ 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(); - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + 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(); } - 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_ = ""; @@ -634,40 +528,33 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } - 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; - @SuppressWarnings("serial") 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 @@ -676,29 +563,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 { @@ -707,21 +594,15 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -730,32 +611,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 { @@ -764,7 +643,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -776,7 +654,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_); } @@ -806,19 +685,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -839,116 +716,90 @@ 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 @@ -958,46 +809,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1008,23 +852,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); } @@ -1032,22 +872,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount - result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -1061,58 +893,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -1149,25 +969,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1177,25 +994,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -1204,21 +1018,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 { @@ -1226,35 +1039,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -1264,21 +1070,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -1288,23 +1090,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; @@ -1313,24 +1111,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 { @@ -1338,41 +1133,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -1382,31 +1166,24 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1419,48 +1196,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1472,118 +1242,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_ = ""; @@ -1592,40 +1338,33 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } - 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; - @SuppressWarnings("serial") 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 @@ -1634,29 +1373,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 { @@ -1665,21 +1404,15 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -1688,32 +1421,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 { @@ -1722,18 +1453,14 @@ public com.google.protobuf.ByteString getPasswordBytes() { } public static final int LOGIN_URL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -1742,29 +1469,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 { @@ -1773,7 +1500,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1785,7 +1511,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_); } @@ -1821,20 +1548,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1857,116 +1583,90 @@ 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 @@ -1976,46 +1676,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2027,23 +1720,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); } @@ -2051,22 +1740,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount - result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -2083,58 +1764,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -2176,31 +1845,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - loginUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + loginUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2210,25 +1875,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -2237,21 +1899,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 { @@ -2259,35 +1920,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -2297,21 +1951,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -2321,23 +1971,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; @@ -2346,24 +1992,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 { @@ -2371,41 +2014,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -2415,24 +2047,18 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; @@ -2442,20 +2068,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; @@ -2464,21 +2088,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 { @@ -2486,35 +2109,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLoginUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } loginUrl_ = value; bitField0_ |= 0x00000004; 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() { @@ -2524,28 +2140,23 @@ public Builder clearLoginUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2558,48 +2169,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2611,26 +2215,22 @@ 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; - @SuppressWarnings("serial") 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; } @@ -2646,38 +2246,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 @@ -2685,63 +2277,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 @@ -2749,53 +2320,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; @@ -2807,18 +2361,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_); } getUnknownFields().writeTo(output); } @@ -2830,20 +2379,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2853,21 +2394,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: @@ -2901,95 +2443,89 @@ 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 @@ -2999,43 +2535,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3052,22 +2584,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); } @@ -3076,29 +2605,26 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { + private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { result.authenticationCase_ = authenticationCase_; result.authentication_ = this.authentication_; - if (authenticationCase_ == 1 && googleAccountBuilder_ != null) { + if (authenticationCase_ == 1 && + googleAccountBuilder_ != null) { result.authentication_ = googleAccountBuilder_.build(); } - if (authenticationCase_ == 2 && customAccountBuilder_ != null) { + if (authenticationCase_ == 2 && + customAccountBuilder_ != null) { result.authentication_ = customAccountBuilder_.build(); } } @@ -3107,69 +2633,58 @@ private void buildPartialOneofs( 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.getUnknownFields()); onChanged(); @@ -3197,25 +2712,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); - authenticationCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); - authenticationCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGoogleAccountFieldBuilder().getBuilder(), + extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCustomAccountFieldBuilder().getBuilder(), + extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3225,12 +2741,12 @@ public Builder mergeFrom( } // finally 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() { @@ -3243,23 +2759,13 @@ public Builder clearAuthentication() { private int bitField0_; 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 @@ -3267,51 +2773,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(); @@ -3325,20 +2815,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(); @@ -3349,32 +2833,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; } @@ -3390,15 +2860,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) { @@ -3417,83 +2883,50 @@ 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; @@ -3504,23 +2937,13 @@ public Builder clearGoogleAccount() { } 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 @@ -3528,51 +2951,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(); @@ -3586,20 +2993,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(); @@ -3610,32 +3011,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; } @@ -3651,15 +3038,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) { @@ -3678,83 +3061,50 @@ 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; @@ -3763,7 +3113,6 @@ public Builder clearCustomAccount() { onChanged(); return customAccountBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3776,45 +3125,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3826,20 +3171,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
@@ -3848,13 +3190,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
@@ -3863,13 +3202,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
@@ -3882,65 +3218,57 @@ 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(); } - 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
@@ -3949,7 +3277,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 @@ -3957,8 +3284,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
@@ -3967,18 +3292,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
@@ -3990,22 +3310,17 @@ public com.google.protobuf.Timestamp getScheduleTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
-      return scheduleTime_ == null
-          ? com.google.protobuf.Timestamp.getDefaultInstance()
-          : scheduleTime_;
+      return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
     }
 
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_ = 0;
     /**
-     *
-     *
      * 
      * 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 @@ -4014,7 +3329,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4026,7 +3340,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()); } @@ -4043,10 +3358,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4056,19 +3373,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4092,95 +3410,89 @@ 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 @@ -4190,42 +3502,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4240,14 +3549,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(); } @@ -4262,21 +3570,18 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scheduleTime_ = - scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); + result.scheduleTime_ = scheduleTimeBuilder_ == null + ? scheduleTime_ + : scheduleTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.intervalDurationDays_ = intervalDurationDays_; @@ -4287,52 +3592,46 @@ private void buildPartial0( 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()); } @@ -4365,25 +3664,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - intervalDurationDays_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getScheduleTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + intervalDurationDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4393,18 +3691,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -4413,15 +3705,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * 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,21 +3719,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
@@ -4468,8 +3752,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
@@ -4479,7 +3761,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();
         } else {
@@ -4490,8 +3773,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
@@ -4503,9 +3784,9 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
        */
       public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && scheduleTime_ != null
-              && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            scheduleTime_ != null &&
+            scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getScheduleTimeBuilder().mergeFrom(value);
           } else {
             scheduleTime_ = value;
@@ -4518,8 +3799,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
@@ -4540,8 +3819,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
@@ -4557,8 +3834,6 @@ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
         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
@@ -4572,14 +3847,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
@@ -4590,32 +3862,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 @@ -4623,14 +3889,11 @@ 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. */ @@ -4642,14 +3905,11 @@ public Builder setIntervalDurationDays(int value) { 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() { @@ -4658,7 +3918,6 @@ public Builder clearIntervalDurationDays() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4671,44 +3930,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4720,19 +3976,16 @@ 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; - @SuppressWarnings("serial") 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
@@ -4740,7 +3993,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -4749,15 +4001,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
@@ -4765,15 +4016,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 { @@ -4782,18 +4034,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -4802,29 +4050,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 { @@ -4835,8 +4083,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_ = 0; /** - * - * *
    * 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
@@ -4845,7 +4091,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -4854,47 +4099,38 @@ public int getMaxQps() { } public static final int STARTING_URLS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -4902,34 +4138,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 @@ -4937,125 +4167,93 @@ 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() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { + return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; } public static final int USER_AGENT_FIELD_NUMBER = 6; 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; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.forNumber(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.forNumber(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -5063,33 +4261,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 @@ -5097,25 +4290,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.
    * 
@@ -5123,68 +4309,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() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") 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) { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.forNumber( - from); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform - .UNRECOGNIZED - : result; + java.lang.Integer, com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert(java.lang.Integer from) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.forNumber(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 @@ -5192,55 +4353,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. */ @@ -5248,20 +4394,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 @@ -5269,25 +4411,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.
    * 
@@ -5296,13 +4431,10 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRunOrBuilder() { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5314,7 +4446,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_); @@ -5331,9 +4464,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++) { @@ -5368,7 +4499,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; @@ -5379,12 +4511,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; @@ -5395,23 +4527,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5421,32 +4554,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5497,104 +4637,98 @@ 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
@@ -5602,32 +4736,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -5635,14 +4770,16 @@ public Builder clear() {
       name_ = "";
       displayName_ = "";
       maxQps_ = 0;
-      startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      startingUrls_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       authentication_ = null;
       if (authenticationBuilder_ != null) {
         authenticationBuilder_.dispose();
         authenticationBuilder_ = null;
       }
       userAgent_ = 0;
-      blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      blacklistPatterns_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       schedule_ = null;
       if (scheduleBuilder_ != null) {
         scheduleBuilder_.dispose();
@@ -5659,9 +4796,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
@@ -5680,18 +4817,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.websecurityscanner.v1alpha.ScanConfig result) {
+    private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ScanConfig result) {
       if (((bitField0_ & 0x00000100) != 0)) {
         targetPlatforms_ = java.util.Collections.unmodifiableList(targetPlatforms_);
         bitField0_ = (bitField0_ & ~0x00000100);
@@ -5715,8 +4848,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi
         result.startingUrls_ = startingUrls_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.authentication_ =
-            authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build();
+        result.authentication_ = authenticationBuilder_ == null
+            ? authentication_
+            : authenticationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.userAgent_ = userAgent_;
@@ -5726,10 +4860,14 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi
         result.blacklistPatterns_ = blacklistPatterns_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.schedule_ = scheduleBuilder_ == null ? schedule_ : scheduleBuilder_.build();
+        result.schedule_ = scheduleBuilder_ == null
+            ? schedule_
+            : scheduleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.latestRun_ = latestRunBuilder_ == null ? latestRun_ : latestRunBuilder_.build();
+        result.latestRun_ = latestRunBuilder_ == null
+            ? latestRun_
+            : latestRunBuilder_.build();
       }
     }
 
@@ -5737,39 +4875,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi
     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;
@@ -5777,8 +4914,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_;
         bitField0_ |= 0x00000001;
@@ -5860,88 +4996,82 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                maxQps_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureStartingUrlsIsMutable();
-                startingUrls_.add(s);
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
-                userAgent_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 58:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureBlacklistPatternsIsMutable();
-                blacklistPatterns_.add(s);
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 72:
-              {
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              maxQps_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureStartingUrlsIsMutable();
+              startingUrls_.add(s);
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getAuthenticationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              userAgent_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 58: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureBlacklistPatternsIsMutable();
+              blacklistPatterns_.add(s);
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getScheduleFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 72: {
+              int tmpRaw = input.readEnum();
+              ensureTargetPlatformsIsMutable();
+              targetPlatforms_.add(tmpRaw);
+              break;
+            } // case 72
+            case 74: {
+              int length = input.readRawVarint32();
+              int oldLimit = input.pushLimit(length);
+              while(input.getBytesUntilLimit() > 0) {
                 int tmpRaw = input.readEnum();
                 ensureTargetPlatformsIsMutable();
                 targetPlatforms_.add(tmpRaw);
-                break;
-              } // case 72
-            case 74:
-              {
-                int length = input.readRawVarint32();
-                int oldLimit = input.pushLimit(length);
-                while (input.getBytesUntilLimit() > 0) {
-                  int tmpRaw = input.readEnum();
-                  ensureTargetPlatformsIsMutable();
-                  targetPlatforms_.add(tmpRaw);
-                }
-                input.popLimit(oldLimit);
-                break;
-              } // case 74
-            case 90:
-              {
-                input.readMessage(getLatestRunFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 90
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              }
+              input.popLimit(oldLimit);
+              break;
+            } // case 74
+            case 90: {
+              input.readMessage(
+                  getLatestRunFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 90
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5951,13 +5081,10 @@ public Builder mergeFrom(
       } // finally
       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
@@ -5965,13 +5092,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; @@ -5980,8 +5107,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
@@ -5989,14 +5114,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 { @@ -6004,8 +5130,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
@@ -6013,22 +5137,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6036,7 +5156,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -6046,8 +5165,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6055,14 +5172,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -6072,20 +5187,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; @@ -6094,21 +5207,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 { @@ -6116,35 +5228,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; 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() { @@ -6154,21 +5259,17 @@ public Builder clearDisplayName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -6176,10 +5277,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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
@@ -6188,7 +5287,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -6196,8 +5294,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
@@ -6206,7 +5302,6 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ @@ -6218,8 +5313,6 @@ public Builder setMaxQps(int value) { 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
@@ -6228,7 +5321,6 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { @@ -6240,7 +5332,6 @@ public Builder clearMaxQps() { private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStartingUrlsIsMutable() { if (!startingUrls_.isModifiable()) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); @@ -6248,43 +5339,35 @@ private void ensureStartingUrlsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
      * 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() { startingUrls_.makeImmutable(); 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. */ @@ -6292,37 +5375,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStartingUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); bitField0_ |= 0x00000008; @@ -6330,21 +5407,17 @@ public Builder setStartingUrls(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartingUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartingUrlsIsMutable(); startingUrls_.add(value); bitField0_ |= 0x00000008; @@ -6352,58 +5425,50 @@ public Builder addStartingUrls(java.lang.String value) { 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_); bitField0_ |= 0x00000008; 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() { - startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + startingUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; 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 bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); @@ -6414,63 +5479,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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(); @@ -6484,19 +5530,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(); } else { @@ -6507,24 +5549,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 (((bitField0_ & 0x00000010) != 0) - && authentication_ != null - && authentication_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + authentication_ != null && + authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance()) { getAuthenticationBuilder().mergeFrom(value); } else { authentication_ = value; @@ -6537,15 +5573,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -6558,67 +5591,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() { bitField0_ |= 0x00000010; 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_; @@ -6626,29 +5643,22 @@ 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. */ @@ -6659,38 +5669,28 @@ public Builder setUserAgentValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.forNumber(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.forNumber(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(); } @@ -6700,14 +5700,11 @@ public Builder setUserAgent( 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() { @@ -6719,7 +5716,6 @@ public Builder clearUserAgent() { private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureBlacklistPatternsIsMutable() { if (!blacklistPatterns_.isModifiable()) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); @@ -6727,46 +5723,38 @@ private void ensureBlacklistPatternsIsMutable() { bitField0_ |= 0x00000040; } /** - * - * *
      * 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() { blacklistPatterns_.makeImmutable(); 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. */ @@ -6774,39 +5762,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); } /** - * - * *
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBlacklistPatterns( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); bitField0_ |= 0x00000040; @@ -6814,22 +5796,18 @@ public Builder setBlacklistPatterns(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addBlacklistPatterns( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); bitField0_ |= 0x00000040; @@ -6837,61 +5815,53 @@ public Builder addBlacklistPatterns(java.lang.String value) { 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_); bitField0_ |= 0x00000040; 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() { - blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; + blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; 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 bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); @@ -6902,55 +5872,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 ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * 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(); @@ -6964,8 +5920,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -6984,22 +5938,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 (((bitField0_ & 0x00000080) != 0) - && schedule_ != null - && schedule_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + schedule_ != null && + schedule_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) { getScheduleBuilder().mergeFrom(value); } else { schedule_ = value; @@ -7012,8 +5961,6 @@ public Builder mergeSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7031,42 +5978,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() { bitField0_ |= 0x00000080; 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.
      * 
@@ -7074,24 +6012,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_ & 0x00000100) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -7099,73 +6034,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. @@ -7181,22 +6093,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(); } @@ -7206,24 +6112,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()); @@ -7232,17 +6131,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() { @@ -7252,34 +6146,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. */ @@ -7287,39 +6172,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. */ @@ -7330,21 +6206,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); @@ -7355,47 +6227,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 ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * 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.
      * 
@@ -7416,8 +6275,6 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRun return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7436,8 +6293,6 @@ public Builder setLatestRun( return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7446,10 +6301,9 @@ public Builder setLatestRun( */ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRun value) { if (latestRunBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && latestRun_ != null - && latestRun_ - != com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + latestRun_ != null && + latestRun_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) { getLatestRunBuilder().mergeFrom(value); } else { latestRun_ = value; @@ -7462,8 +6316,6 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7481,8 +6333,6 @@ public Builder clearLatestRun() { return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7495,8 +6345,6 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getLatestRunB return getLatestRunFieldBuilder().getBuilder(); } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7507,14 +6355,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.
      * 
@@ -7522,24 +6367,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); } @@ -7549,12 +6391,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(); } @@ -7563,27 +6405,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7598,4 +6440,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java similarity index 78% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java index 9be779f745c5..656e32684050 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java new file mode 100644 index 000000000000..276717d3822e --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\"\265\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032" + + "\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 " + + "\001(\005\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Z\n\016auth" + + "entication\030\005 \001(\0132B.google.cloud.websecur" + + "ityscanner.v1alpha.ScanConfig.Authentica" + + "tion\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud." + + "websecurityscanner.v1alpha.ScanConfig.Us" + + "erAgent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010s" + + "chedule\030\010 \001(\0132<.google.cloud.websecurity" + + "scanner.v1alpha.ScanConfig.Schedule\022\\\n\020t" + + "arget_platforms\030\t \003(\0162B.google.cloud.web" + + "securityscanner.v1alpha.ScanConfig.Targe" + + "tPlatform\022D\n\nlatest_run\030\013 \001(\01320.google.c" + + "loud.websecurityscanner.v1alpha.ScanRun\032" + + "\227\003\n\016Authentication\022j\n\016google_account\030\001 \001" + + "(\0132P.google.cloud.websecurityscanner.v1a" + + "lpha.ScanConfig.Authentication.GoogleAcc" + + "ountH\000\022j\n\016custom_account\030\002 \001(\0132P.google." + + "cloud.websecurityscanner.v1alpha.ScanCon" + + "fig.Authentication.CustomAccountH\000\032@\n\rGo" + + "ogleAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010p" + + "assword\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n" + + "\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB" + + "\005\342A\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authe" + + "ntication\032c\n\010Schedule\0221\n\rschedule_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022$\n\026inte" + + "rval_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAg" + + "ent\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROM" + + "E_LINUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_" + + "IPHONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLA" + + "TFORM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007C" + + "OMPUTE\020\002:_\352A\\\n,websecurityscanner.google" + + "apis.com/ScanConfig\022,projects/{project}/" + + "scanConfigs/{scan_config}B\235\001\n+com.google" + + ".cloud.websecurityscanner.v1alphaB\017ScanC" + + "onfigProtoP\001Z[cloud.google.com/go/websec" + + "urityscanner/apiv1alpha/websecurityscann" + + "erpb;websecurityscannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java similarity index 73% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java index 8cec338dfc34..e0b646a19248 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,38 +27,34 @@ private ScanRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanRun(); } - 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.
@@ -86,8 +64,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -96,8 +72,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -106,8 +80,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -119,8 +91,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -130,8 +100,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.
      * 
@@ -140,8 +108,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -150,8 +116,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.
      * 
@@ -160,6 +124,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( @@ -184,53 +149,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; @@ -248,18 +210,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.
@@ -269,8 +228,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -279,8 +236,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -289,8 +244,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -302,8 +255,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -313,8 +264,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -323,8 +272,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -333,8 +280,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -343,6 +288,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( @@ -367,53 +313,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; @@ -431,12 +374,9 @@ private ResultState(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -444,7 +384,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -453,15 +392,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}'.
@@ -469,15 +407,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 { @@ -488,93 +427,65 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; 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; * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.forNumber( - executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.forNumber(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_ = 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; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.forNumber(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.forNumber(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 @@ -582,14 +493,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 @@ -597,8 +505,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -613,15 +519,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 @@ -629,15 +532,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 @@ -645,8 +545,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.
@@ -662,15 +560,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_ = 0L;
   /**
-   *
-   *
    * 
    * 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 @@ -681,8 +576,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_ = 0L; /** - * - * *
    * 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
@@ -691,7 +584,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -702,14 +594,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_ = false; /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -720,8 +609,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_ = 0; /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -730,7 +617,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -739,7 +625,6 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -751,19 +636,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) { @@ -796,34 +677,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -833,29 +717,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -882,11 +772,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) + getUnknownFields().hashCode(); @@ -895,135 +788,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1049,9 +938,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 @@ -1070,11 +959,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.ScanRun result = new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1091,10 +977,14 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanRun r result.resultState_ = resultState_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.urlsCrawledCount_ = urlsCrawledCount_; @@ -1114,39 +1004,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanRun r 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; @@ -1154,8 +1043,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_; bitField0_ |= 0x00000001; @@ -1211,67 +1099,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - executionState_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - resultState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - urlsCrawledCount_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - urlsTestedCount_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - hasVulnerabilities_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + executionState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + resultState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + urlsCrawledCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + urlsTestedCount_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + hasVulnerabilities_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1281,13 +1163,10 @@ public Builder mergeFrom( } // finally 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}'.
@@ -1295,13 +1174,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; @@ -1310,8 +1189,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1319,14 +1196,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 { @@ -1334,8 +1212,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}'.
@@ -1343,22 +1219,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1366,7 +1238,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1376,8 +1247,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1385,14 +1254,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1402,31 +1269,22 @@ 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. */ @@ -1437,41 +1295,28 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.forNumber( - 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.forNumber(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(); } @@ -1481,15 +1326,11 @@ public Builder setExecutionState( 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() { @@ -1501,31 +1342,24 @@ 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. */ @@ -1536,40 +1370,30 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1579,15 +1403,12 @@ public Builder setResultState( 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() { @@ -1599,33 +1420,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1636,8 +1448,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1658,15 +1468,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(); } else { @@ -1677,8 +1486,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1687,9 +1494,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1702,8 +1509,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1721,8 +1526,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1735,8 +1538,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1747,12 +1548,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.
      * 
@@ -1760,17 +1560,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_; @@ -1778,35 +1575,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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() { @@ -1817,8 +1605,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.
@@ -1840,8 +1626,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.
@@ -1849,7 +1633,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();
       } else {
@@ -1860,8 +1645,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.
@@ -1871,9 +1654,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1886,8 +1669,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.
@@ -1906,8 +1687,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.
@@ -1921,8 +1700,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1934,12 +1711,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.
@@ -1948,33 +1724,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 @@ -1982,15 +1752,12 @@ 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. */ @@ -2002,15 +1769,12 @@ public Builder setUrlsCrawledCount(long value) { 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() { @@ -2020,10 +1784,8 @@ public Builder clearUrlsCrawledCount() { 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
@@ -2032,7 +1794,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2040,8 +1801,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
@@ -2050,7 +1809,6 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -2062,8 +1820,6 @@ public Builder setUrlsTestedCount(long value) { 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
@@ -2072,7 +1828,6 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -2082,16 +1837,13 @@ public Builder clearUrlsTestedCount() { 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 @@ -2099,14 +1851,11 @@ 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. */ @@ -2118,14 +1867,11 @@ public Builder setHasVulnerabilities(boolean value) { return this; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { @@ -2135,10 +1881,8 @@ public Builder clearHasVulnerabilities() { 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.
@@ -2147,7 +1891,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2155,8 +1898,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.
@@ -2165,7 +1906,6 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -2177,8 +1917,6 @@ public Builder setProgressPercent(int value) { return this; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2187,7 +1925,6 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -2196,9 +1933,9 @@ public Builder clearProgressPercent() { 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); } @@ -2208,12 +1945,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(); } @@ -2222,27 +1959,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2257,4 +1994,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java similarity index 83% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java index 9397177c35cd..cb8b3862cf8b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java new file mode 100644 index 000000000000..00fecbcea94a --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\232\001\n+com.google.cloud.websecurity" + + "scanner.v1alphaB\014ScanRunProtoP\001Z[cloud.g" + + "oogle.com/go/websecurityscanner/apiv1alp" + + "ha/websecurityscannerpb;websecurityscann" + + "erpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java index 9d303f6eb627..499e8a861034 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,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(); } @@ -345,17 +312,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,50 +329,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -441,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -493,24 +445,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 { @@ -518,41 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -562,33 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,43 +530,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,8 +576,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..c678b425a19f --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java similarity index 62% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java index 7445b39fbc47..00dbaa7609db 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +293,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(); } @@ -347,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,38 @@ private void buildPartial0( 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; @@ -408,9 +370,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_; bitField0_ |= 0x00000001; @@ -442,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -495,25 +448,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 { @@ -521,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -567,34 +506,28 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -604,43 +537,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,8 +583,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..20f3af5ab04a --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java index f33e9efd07c2..3d06ff7c13b0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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 @@ -82,60 +59,43 @@ 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() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; } 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 @@ -143,17 +103,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 @@ -161,16 +117,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() { @@ -178,7 +131,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +142,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()); } @@ -207,10 +160,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -220,21 +175,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -261,138 +217,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,16 +360,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 @@ -434,23 +381,23 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null + ? scanConfig_ + : scanConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -458,51 +405,46 @@ private void buildPartial0( 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()); } @@ -535,25 +477,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getScanConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,69 +506,49 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -641,17 +564,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) { @@ -665,24 +584,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 (((bitField0_ & 0x00000001) != 0) - && scanConfig_ != null - && scanConfig_ - != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + scanConfig_ != null && + scanConfig_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -695,17 +609,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -718,17 +628,13 @@ 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() { bitField0_ |= 0x00000001; @@ -736,53 +642,40 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon 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_; @@ -790,61 +683,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -860,18 +737,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(); } else { @@ -882,22 +757,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 (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -910,16 +782,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -932,16 +801,13 @@ 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() { bitField0_ |= 0x00000002; @@ -949,57 +815,47 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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); } @@ -1009,43 +865,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1057,8 +911,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java index 9518da55ec93..35cda49203b0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java @@ -1,116 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java index 49e82bf41d7d..96109c8c043b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,38 +27,33 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object contentType_ = "";
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -85,29 +62,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 { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } public static final int RESOURCE_URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object resourceUrl_ = ""; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -136,29 +109,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,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_); } @@ -209,16 +182,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +214,98 @@ 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.
@@ -345,32 +313,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -381,14 +350,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();
     }
 
@@ -403,17 +371,13 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result = new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result) {
+    private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.contentType_ = contentType_;
@@ -427,39 +391,38 @@ private void buildPartial0(
     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;
@@ -467,9 +430,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_;
         bitField0_ |= 0x00000001;
@@ -506,25 +467,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                contentType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                resourceUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              contentType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              resourceUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -534,25 +492,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -561,21 +516,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 { @@ -583,35 +537,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { @@ -621,21 +568,17 @@ public Builder clearContentType() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00000001; @@ -645,20 +588,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; @@ -667,21 +608,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 { @@ -689,35 +629,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceUrl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -727,30 +660,26 @@ public Builder clearResourceUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceUrl_ = value; bitField0_ |= 0x00000002; 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); } @@ -760,13 +689,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(); } @@ -775,27 +703,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -810,4 +738,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java index 1473a406f99e..dbd8b1389d12 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java index 44abf92b5ab9..19bc90fb0cc1 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,99 +26,84 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } - 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_ = ""; @@ -144,38 +111,33 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -184,29 +146,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 { @@ -215,18 +177,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -235,29 +193,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 { @@ -266,7 +224,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +235,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_); } @@ -308,16 +266,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,95 +298,89 @@ 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 @@ -437,42 +390,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -483,22 +433,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); } @@ -507,17 +454,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -531,53 +474,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -614,25 +550,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,25 +575,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -669,21 +599,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 { @@ -691,35 +620,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -729,21 +651,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -753,20 +671,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; @@ -775,21 +691,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 { @@ -797,35 +712,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -835,28 +743,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -869,44 +772,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -918,181 +818,135 @@ 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; - @SuppressWarnings("serial") - 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; - @SuppressWarnings("serial") - 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; @@ -1104,7 +958,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)); } @@ -1121,10 +976,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1134,16 +991,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1169,136 +1027,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1321,14 +1174,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(); } @@ -1343,18 +1195,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -1375,8 +1223,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { int from_bitField0_ = bitField0_; } @@ -1384,39 +1231,38 @@ private void buildPartial0( 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; @@ -1424,9 +1270,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()) { @@ -1445,10 +1289,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_); } @@ -1472,10 +1315,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_); } @@ -1507,43 +1349,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .parser(), - extensionRegistry); - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(m); - } else { - headersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header - .parser(), - extensionRegistry); - if (missingHeadersBuilder_ == null) { - ensureMissingHeadersIsMutable(); - missingHeaders_.add(m); - } else { - missingHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1553,39 +1390,28 @@ public Builder mergeFrom( } // finally 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 { @@ -1593,14 +1419,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) { @@ -1610,17 +1433,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 { @@ -1628,14 +1447,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) { @@ -1652,19 +1468,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()); @@ -1675,17 +1486,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(); @@ -1699,14 +1506,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) { @@ -1723,18 +1527,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()); @@ -1745,19 +1545,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()); @@ -1768,22 +1563,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); @@ -1791,14 +1582,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) { @@ -1811,14 +1599,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) { @@ -1831,50 +1616,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 { @@ -1882,105 +1656,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 { @@ -1988,15 +1731,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) { @@ -2006,18 +1745,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 { @@ -2025,15 +1759,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) { @@ -2050,20 +1780,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()); @@ -2074,18 +1798,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(); @@ -2099,15 +1818,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) { @@ -2124,19 +1839,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()); @@ -2147,20 +1857,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()); @@ -2171,23 +1875,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); @@ -2195,15 +1894,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) { @@ -2216,15 +1911,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) { @@ -2237,53 +1928,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 { @@ -2291,70 +1968,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(), @@ -2363,9 +2015,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); } @@ -2375,13 +2027,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(); } @@ -2390,27 +2041,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2425,4 +2076,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java similarity index 51% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java index d7787bc41285..842572d10771 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java @@ -1,150 +1,97 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java similarity index 66% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java index 8cff0ef2b65c..33d63cbbfd2d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java @@ -1,109 +1,82 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.emptyList(); + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } - 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; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -111,23 +84,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; @@ -139,7 +109,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)); } @@ -168,15 +139,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,153 +169,148 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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(); } @@ -359,17 +325,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { parameterNames_.makeImmutable(); @@ -381,50 +343,46 @@ private void buildPartial0( 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_; @@ -461,20 +419,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureParameterNamesIsMutable(); - parameterNames_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,12 +440,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureParameterNamesIsMutable() { if (!parameterNames_.isModifiable()) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); @@ -497,43 +451,35 @@ private void ensureParameterNamesIsMutable() { 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() { parameterNames_.makeImmutable(); 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. */ @@ -541,37 +487,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParameterNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParameterNamesIsMutable(); parameterNames_.set(index, value); bitField0_ |= 0x00000001; @@ -579,21 +519,17 @@ public Builder setParameterNames(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addParameterNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParameterNamesIsMutable(); parameterNames_.add(value); bitField0_ |= 0x00000001; @@ -601,58 +537,50 @@ public Builder addParameterNames(java.lang.String value) { 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { - parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); @@ -660,9 +588,9 @@ public Builder addParameterNamesBytes(com.google.protobuf.ByteString 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); } @@ -672,43 +600,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -720,8 +646,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java similarity index 60% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java index 1a2946cee13f..c75e054fcd86 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java new file mode 100644 index 000000000000..c63d213c4401 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java @@ -0,0 +1,409 @@ +// 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\"\257\001\n\027CreateScanCon" + + "figRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+clo" + + "udresourcemanager.googleapis.com/Project" + + "\022N\n\013scan_config\030\002 \001(\01323.google.cloud.web" + + "securityscanner.v1alpha.ScanConfigB\004\342A\001\002" + + "\"^\n\027DeleteScanConfigRequest\022C\n\004name\030\001 \001(" + + "\tB5\342A\001\002\372A.\n,websecurityscanner.googleapi" + + "s.com/ScanConfig\"[\n\024GetScanConfigRequest" + + "\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\"\205\001\n\026ListSc" + + "anConfigsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\"\240\001\n\027UpdateScanConfigRequest\022N\n\013sca" + + "n_config\030\002 \001(\01323.google.cloud.websecurit" + + "yscanner.v1alpha.ScanConfigB\004\342A\001\002\0225\n\013upd" + + "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" + + "skB\004\342A\001\002\"}\n\027ListScanConfigsResponse\022I\n\014s" + + "can_configs\030\001 \003(\01323.google.cloud.websecu" + + "rityscanner.v1alpha.ScanConfig\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"Z\n\023StartScanRunRequest\022C" + + "\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanne" + + "r.googleapis.com/ScanConfig\"U\n\021GetScanRu" + + "nRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecu" + + "rityscanner.googleapis.com/ScanRun\"\203\001\n\023L" + + "istScanRunsRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\002" + + "\372A.\n,websecurityscanner.googleapis.com/S" + + "canConfig\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_si" + + "ze\030\003 \001(\005\"t\n\024ListScanRunsResponse\022C\n\tscan" + + "_runs\030\001 \003(\01320.google.cloud.websecuritysc" + + "anner.v1alpha.ScanRun\022\027\n\017next_page_token" + + "\030\002 \001(\t\"V\n\022StopScanRunRequest\022@\n\004name\030\001 \001" + + "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" + + "is.com/ScanRun\"\203\001\n\026ListCrawledUrlsReques" + + "t\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)websecuritys" + + "canner.googleapis.com/ScanRun\022\022\n\npage_to" + + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"}\n\027ListCraw" + + "ledUrlsResponse\022I\n\014crawled_urls\030\001 \003(\01323." + + "google.cloud.websecurityscanner.v1alpha." + + "CrawledUrl\022\027\n\017next_page_token\030\002 \001(\t\"U\n\021G" + + "etFindingRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + + ")websecurityscanner.googleapis.com/Findi" + + "ng\"\226\001\n\023ListFindingsRequest\022B\n\006parent\030\001 \001" + + "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" + + "is.com/ScanRun\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\n" + + "page_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024L" + + "istFindingsResponse\022B\n\010findings\030\001 \003(\01320." + + "google.cloud.websecurityscanner.v1alpha." + + "Finding\022\027\n\017next_page_token\030\002 \001(\t\"a\n\033List" + + "FindingTypeStatsRequest\022B\n\006parent\030\001 \001(\tB" + + "2\342A\001\002\372A+\n)websecurityscanner.googleapis." + + "com/ScanRun\"u\n\034ListFindingTypeStatsRespo" + + "nse\022U\n\022finding_type_stats\030\001 \003(\01329.google" + + ".cloud.websecurityscanner.v1alpha.Findin" + + "gTypeStats2\264\026\n\022WebSecurityScanner\022\335\001\n\020Cr" + + "eateScanConfig\022@.google.cloud.websecurit" + + "yscanner.v1alpha.CreateScanConfigRequest" + + "\0323.google.cloud.websecurityscanner.v1alp" + + "ha.ScanConfig\"R\332A\022parent,scan_config\202\323\344\223" + + "\0027\"(/v1alpha/{parent=projects/*}/scanCon" + + "figs:\013scan_config\022\245\001\n\020DeleteScanConfig\022@" + + ".google.cloud.websecurityscanner.v1alpha" + + ".DeleteScanConfigRequest\032\026.google.protob" + + "uf.Empty\"7\332A\004name\202\323\344\223\002**(/v1alpha/{name=" + + "projects/*/scanConfigs/*}\022\274\001\n\rGetScanCon" + + "fig\022=.google.cloud.websecurityscanner.v1" + + "alpha.GetScanConfigRequest\0323.google.clou" + + "d.websecurityscanner.v1alpha.ScanConfig\"" + + "7\332A\004name\202\323\344\223\002*\022(/v1alpha/{name=projects/" + + "*/scanConfigs/*}\022\317\001\n\017ListScanConfigs\022?.g" + + "oogle.cloud.websecurityscanner.v1alpha.L" + + "istScanConfigsRequest\032@.google.cloud.web" + + "securityscanner.v1alpha.ListScanConfigsR" + + "esponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/{pare" + + "nt=projects/*}/scanConfigs\022\356\001\n\020UpdateSca" + + "nConfig\022@.google.cloud.websecurityscanne" + + "r.v1alpha.UpdateScanConfigRequest\0323.goog" + + "le.cloud.websecurityscanner.v1alpha.Scan" + + "Config\"c\332A\027scan_config,update_mask\202\323\344\223\002C" + + "24/v1alpha/{scan_config.name=projects/*/" + + "scanConfigs/*}:\013scan_config\022\300\001\n\014StartSca" + + "nRun\022<.google.cloud.websecurityscanner.v" + + "1alpha.StartScanRunRequest\0320.google.clou" + + "d.websecurityscanner.v1alpha.ScanRun\"@\332A" + + "\004name\202\323\344\223\0023\"./v1alpha/{name=projects/*/s" + + "canConfigs/*}:start:\001*\022\276\001\n\nGetScanRun\022:." + + "google.cloud.websecurityscanner.v1alpha." + + "GetScanRunRequest\0320.google.cloud.websecu" + + "rityscanner.v1alpha.ScanRun\"B\332A\004name\202\323\344\223" + + "\0025\0223/v1alpha/{name=projects/*/scanConfig" + + "s/*/scanRuns/*}\022\321\001\n\014ListScanRuns\022<.googl" + + "e.cloud.websecurityscanner.v1alpha.ListS" + + "canRunsRequest\032=.google.cloud.websecurit" + + "yscanner.v1alpha.ListScanRunsResponse\"D\332" + + "A\006parent\202\323\344\223\0025\0223/v1alpha/{parent=project" + + "s/*/scanConfigs/*}/scanRuns\022\310\001\n\013StopScan" + + "Run\022;.google.cloud.websecurityscanner.v1" + + "alpha.StopScanRunRequest\0320.google.cloud." + + "websecurityscanner.v1alpha.ScanRun\"J\332A\004n" + + "ame\202\323\344\223\002=\"8/v1alpha/{name=projects/*/sca" + + "nConfigs/*/scanRuns/*}:stop:\001*\022\350\001\n\017ListC" + + "rawledUrls\022?.google.cloud.websecuritysca" + + "nner.v1alpha.ListCrawledUrlsRequest\032@.go" + + "ogle.cloud.websecurityscanner.v1alpha.Li" + + "stCrawledUrlsResponse\"R\332A\006parent\202\323\344\223\002C\022A" + + "/v1alpha/{parent=projects/*/scanConfigs/" + + "*/scanRuns/*}/crawledUrls\022\311\001\n\nGetFinding" + + "\022:.google.cloud.websecurityscanner.v1alp" + + "ha.GetFindingRequest\0320.google.cloud.webs" + + "ecurityscanner.v1alpha.Finding\"M\332A\004name\202" + + "\323\344\223\002@\022>/v1alpha/{name=projects/*/scanCon" + + "figs/*/scanRuns/*/findings/*}\022\343\001\n\014ListFi" + + "ndings\022<.google.cloud.websecurityscanner" + + ".v1alpha.ListFindingsRequest\032=.google.cl" + + "oud.websecurityscanner.v1alpha.ListFindi" + + "ngsResponse\"V\332A\rparent,filter\202\323\344\223\002@\022>/v1" + + "alpha/{parent=projects/*/scanConfigs/*/s" + + "canRuns/*}/findings\022\374\001\n\024ListFindingTypeS" + + "tats\022D.google.cloud.websecurityscanner.v" + + "1alpha.ListFindingTypeStatsRequest\032E.goo" + + "gle.cloud.websecurityscanner.v1alpha.Lis" + + "tFindingTypeStatsResponse\"W\332A\006parent\202\323\344\223" + + "\002H\022F/v1alpha/{parent=projects/*/scanConf" + + "igs/*/scanRuns/*}/findingTypeStats\032U\312A!w" + + "ebsecurityscanner.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\245\001\n+com.google.cloud.websecurityscanne" + + "r.v1alphaB\027WebSecurityScannerProtoP\001Z[cl" + + "oud.google.com/go/websecurityscanner/api" + + "v1alpha/websecurityscannerpb;websecurity" + + "scannerpbb\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java index fb389186e3b6..42e1be012c83 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java @@ -1,110 +1,83 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.emptyList(); + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } - 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; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -112,34 +85,28 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -148,29 +115,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 { @@ -179,7 +146,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +157,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)); } @@ -226,16 +193,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,149 +226,146 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; return this; } @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 @@ -419,11 +384,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1alpha.Xss result = new com.google.cloud.websecurityscanner.v1alpha.Xss(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -443,39 +405,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Xss resul 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; @@ -483,8 +444,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_; @@ -526,26 +486,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStackTracesIsMutable(); - stackTraces_.add(s); - break; - } // case 10 - case 18: - { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,12 +512,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStackTracesIsMutable() { if (!stackTraces_.isModifiable()) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); @@ -568,43 +523,35 @@ private void ensureStackTracesIsMutable() { 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() { stackTraces_.makeImmutable(); 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. */ @@ -612,37 +559,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStackTraces( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStackTracesIsMutable(); stackTraces_.set(index, value); bitField0_ |= 0x00000001; @@ -650,21 +591,17 @@ public Builder setStackTraces(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStackTraces( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStackTracesIsMutable(); stackTraces_.add(value); bitField0_ |= 0x00000001; @@ -672,58 +609,50 @@ public Builder addStackTraces(java.lang.String value) { 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_); bitField0_ |= 0x00000001; 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() { - stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); @@ -734,20 +663,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; @@ -756,21 +683,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 { @@ -778,35 +704,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -816,30 +735,26 @@ public Builder clearErrorMessage() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -849,12 +764,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(); } @@ -863,27 +778,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -898,4 +813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java index 6b3e8d226237..c70bccff6bed 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto rename to owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java similarity index 88% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java index fdd84b3a4b67..592a56509cdf 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java @@ -61,19 +61,263 @@ * such as threads. In the example above, try-with-resources is used, which automatically calls * close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
CreateScanConfig

Creates a new ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createScanConfig(CreateScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createScanConfig(ProjectName parent, ScanConfig scanConfig) + *
  • createScanConfig(String parent, ScanConfig scanConfig) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createScanConfigCallable() + *
+ *
DeleteScanConfig

Deletes an existing ScanConfig and its child resources.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteScanConfig(DeleteScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteScanConfig(ScanConfigName name) + *
  • deleteScanConfig(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteScanConfigCallable() + *
+ *
GetScanConfig

Gets a ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getScanConfig(GetScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getScanConfig(ScanConfigName name) + *
  • getScanConfig(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getScanConfigCallable() + *
+ *
ListScanConfigs

Lists ScanConfigs under a given project.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listScanConfigs(ListScanConfigsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listScanConfigs(ProjectName parent) + *
  • listScanConfigs(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listScanConfigsPagedCallable() + *
  • listScanConfigsCallable() + *
+ *
UpdateScanConfig

Updates a ScanConfig. This method support partial update of a ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateScanConfig(UpdateScanConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateScanConfig(ScanConfig scanConfig, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateScanConfigCallable() + *
+ *
StartScanRun

Start a ScanRun according to the given ScanConfig.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • startScanRun(StartScanRunRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • startScanRun(ScanConfigName name) + *
  • startScanRun(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • startScanRunCallable() + *
+ *
GetScanRun

Gets a ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getScanRun(GetScanRunRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getScanRun(ScanRunName name) + *
  • getScanRun(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getScanRunCallable() + *
+ *
ListScanRuns

Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listScanRuns(ListScanRunsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listScanRuns(ScanConfigName parent) + *
  • listScanRuns(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listScanRunsPagedCallable() + *
  • listScanRunsCallable() + *
+ *
StopScanRun

Stops a ScanRun. The stopped ScanRun is returned.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • stopScanRun(StopScanRunRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • stopScanRun(ScanRunName name) + *
  • stopScanRun(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • stopScanRunCallable() + *
+ *
ListCrawledUrls

List CrawledUrls under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listCrawledUrls(ListCrawledUrlsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listCrawledUrls(ScanRunName parent) + *
  • listCrawledUrls(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listCrawledUrlsPagedCallable() + *
  • listCrawledUrlsCallable() + *
+ *
GetFinding

Gets a Finding.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getFinding(GetFindingRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getFinding(FindingName name) + *
  • getFinding(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getFindingCallable() + *
+ *
ListFindings

List Findings under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFindings(ListFindingsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listFindings(ScanRunName parent, String filter) + *
  • listFindings(String parent, String filter) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listFindingsPagedCallable() + *
  • listFindingsCallable() + *
+ *
ListFindingTypeStats

List all FindingTypeStats under a given ScanRun.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listFindingTypeStats(ListFindingTypeStatsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listFindingTypeStats(ScanRunName parent) + *
  • listFindingTypeStats(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listFindingTypeStatsCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java index dd08f7863b36..12a72ea8b5e7 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java +++ b/owl-bot-staging/java-websecurityscanner/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; diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java index 004fb321b182..e70d5cee4d7b 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java similarity index 99% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java index f43553920d2b..1f6ed8aab030 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java @@ -453,6 +453,12 @@ public WebSecurityScannerStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "websecurityscanner"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java b/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java similarity index 100% rename from java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/owl-bot-staging/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java new file mode 100644 index 000000000000..37d866218acb --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java @@ -0,0 +1,1371 @@ +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 java.lang.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 interface AsyncService { + + /** + *
+     * Creates a new ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); + } + + /** + *
+     * Gets a ScanRun.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); + } + + /** + *
+     * Gets a Finding.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service WebSecurityScanner. + *
+   * 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, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WebSecurityScannerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( + service, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( + service, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + + 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 java.lang.String methodName; + + WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java index c4e7cc45871b..66d46ac51f33 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,39 +29,34 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   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 @@ -88,30 +65,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 { @@ -120,18 +97,14 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } public static final int URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** - * - * *
    * The URL that was crawled.
    * 
* * string url = 2; - * * @return The url. */ @java.lang.Override @@ -140,29 +113,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 { @@ -171,18 +144,14 @@ public com.google.protobuf.ByteString getUrlBytes() { } public static final int BODY_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -191,29 +160,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 { @@ -222,7 +191,6 @@ public com.google.protobuf.ByteString getBodyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +202,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_); } @@ -270,17 +239,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,104 +275,98 @@ 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
@@ -410,32 +375,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -447,9 +413,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
@@ -468,11 +434,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result = new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -494,39 +457,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.CrawledUrl
     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;
@@ -534,8 +496,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_;
         bitField0_ |= 0x00000001;
@@ -577,31 +538,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                httpMethod_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                url_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                body_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              httpMethod_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              url_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              body_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -611,26 +568,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -639,22 +593,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 { @@ -662,37 +615,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } httpMethod_ = value; bitField0_ |= 0x00000001; 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() { @@ -702,22 +648,18 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000001; @@ -727,20 +669,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; @@ -749,21 +689,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 { @@ -771,35 +710,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The URL that was crawled.
      * 
* * string url = 2; - * * @return This builder for chaining. */ public Builder clearUrl() { @@ -809,21 +741,17 @@ public Builder clearUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; @@ -833,20 +761,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; @@ -855,21 +781,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 { @@ -877,35 +802,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBody( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000004; 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() { @@ -915,30 +833,26 @@ public Builder clearBody() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000004; 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); } @@ -948,12 +862,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(); } @@ -962,27 +876,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java index 191ffe361f2b..43a78234ea98 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java @@ -1,102 +1,71 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java new file mode 100644 index 000000000000..a4bb367d4a57 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\231\002\n*com.google.cloud.websecurityscanner" + + ".v1betaB\017CrawledUrlProtoP\001ZZcloud.google" + + ".com/go/websecurityscanner/apiv1beta/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "&Google.Cloud.WebSecurityScanner.V1Beta\312" + + "\002&Google\\Cloud\\WebSecurityScanner\\V1beta" + + "\352\002)Google::Cloud::WebSecurityScanner::V1" + + "betab\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java similarity index 59% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java index 5708d4a02cab..88533e72496a 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -122,16 +95,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 @@ -139,44 +107,30 @@ 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() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +142,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_); } @@ -208,7 +163,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +174,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,138 +211,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,16 +350,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 @@ -423,23 +371,21 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null + ? scanConfig_ + : scanConfigBuilder_.build(); } } @@ -447,51 +393,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -526,25 +467,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getScanConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,28 +494,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -584,24 +519,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 { @@ -609,41 +541,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -653,24 +574,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -680,58 +595,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -747,15 +643,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) { @@ -769,22 +661,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 (((bitField0_ & 0x00000002) != 0) - && scanConfig_ != null - && scanConfig_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + scanConfig_ != null && + scanConfig_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -797,15 +684,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -818,15 +701,11 @@ 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() { bitField0_ |= 0x00000002; @@ -834,55 +713,43 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf 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); } @@ -892,43 +759,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -940,8 +805,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b4f98425a0bb --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java similarity index 60% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java index 055648312db1..15da1df96c92 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,138 +157,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,16 +291,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 @@ -348,17 +312,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -369,51 +329,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -445,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -497,24 +445,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 { @@ -522,41 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -566,33 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -602,43 +530,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,8 +576,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..9f431507d9df --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java index 6c93890eedf8..4f89fe50a2c0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +35,28 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Finding();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   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}'.
@@ -86,7 +64,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -95,15 +72,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}'.
@@ -111,15 +87,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 { @@ -128,12 +105,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FINDING_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object findingType_ = ""; /** - * - * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -141,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string finding_type = 2; - * * @return The findingType. */ @java.lang.Override @@ -150,15 +123,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:
@@ -166,15 +138,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 { @@ -183,19 +156,15 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } public static final int HTTP_METHOD_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -204,30 +173,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 { @@ -236,19 +205,15 @@ public com.google.protobuf.ByteString getHttpMethodBytes() { } public static final int FUZZED_URL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") 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 @@ -257,30 +222,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 { @@ -289,18 +254,14 @@ public com.google.protobuf.ByteString getFuzzedUrlBytes() { } public static final int BODY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object body_ = ""; /** - * - * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; - * * @return The body. */ @java.lang.Override @@ -309,29 +270,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 { @@ -340,18 +301,14 @@ public com.google.protobuf.ByteString getBodyBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * The description of the vulnerability.
    * 
* * string description = 6; - * * @return The description. */ @java.lang.Override @@ -360,29 +317,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 { @@ -391,19 +348,15 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; - @SuppressWarnings("serial") 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 @@ -412,30 +365,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 { @@ -444,19 +397,15 @@ public com.google.protobuf.ByteString getReproductionUrlBytes() { } public static final int FRAME_URL_FIELD_NUMBER = 8; - @SuppressWarnings("serial") 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 @@ -465,30 +414,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 { @@ -497,18 +446,14 @@ public com.google.protobuf.ByteString getFrameUrlBytes() { } public static final int FINAL_URL_FIELD_NUMBER = 9; - @SuppressWarnings("serial") 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 @@ -517,29 +462,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 { @@ -548,19 +493,15 @@ public com.google.protobuf.ByteString getFinalUrlBytes() { } public static final int TRACKING_ID_FIELD_NUMBER = 10; - @SuppressWarnings("serial") 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 @@ -569,30 +510,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 { @@ -603,15 +544,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 @@ -619,26 +557,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.
@@ -648,22 +579,17 @@ public com.google.cloud.websecurityscanner.v1beta.Form getForm() {
    */
   @java.lang.Override
   public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder() {
-    return form_ == null
-        ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()
-        : form_;
+    return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_;
   }
 
   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 @@ -671,25 +597,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.
    * 
@@ -697,25 +616,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() { - return outdatedLibrary_ == null - ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() - : outdatedLibrary_; + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder getOutdatedLibraryOrBuilder() { + return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; } 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 @@ -723,26 +636,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.
@@ -751,24 +657,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() {
-    return violatingResource_ == null
-        ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance()
-        : violatingResource_;
+  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder getViolatingResourceOrBuilder() {
+    return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_;
   }
 
   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 @@ -776,25 +676,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.
    * 
@@ -802,26 +695,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() { - return vulnerableHeaders_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() - : vulnerableHeaders_; + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder getVulnerableHeadersOrBuilder() { + return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; } 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 @@ -829,54 +715,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() { - return vulnerableParameters_ == null - ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() - : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder getVulnerableParametersOrBuilder() { + return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; } 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 @@ -884,25 +755,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.
    * 
@@ -911,13 +775,10 @@ public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() { - return xss_ == null - ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() - : xss_; + return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -929,7 +790,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_); } @@ -1018,23 +880,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1044,47 +911,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1147,103 +1029,98 @@ 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.
@@ -1251,32 +1128,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1325,9 +1203,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
@@ -1346,11 +1224,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1beta.Finding result = new com.google.cloud.websecurityscanner.v1beta.Finding(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1388,32 +1263,34 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Finding re
         result.trackingId_ = trackingId_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.form_ = formBuilder_ == null ? form_ : formBuilder_.build();
+        result.form_ = formBuilder_ == null
+            ? form_
+            : formBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.outdatedLibrary_ =
-            outdatedLibraryBuilder_ == null ? outdatedLibrary_ : outdatedLibraryBuilder_.build();
+        result.outdatedLibrary_ = outdatedLibraryBuilder_ == null
+            ? outdatedLibrary_
+            : outdatedLibraryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.violatingResource_ =
-            violatingResourceBuilder_ == null
-                ? violatingResource_
-                : violatingResourceBuilder_.build();
+        result.violatingResource_ = violatingResourceBuilder_ == null
+            ? violatingResource_
+            : violatingResourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.vulnerableHeaders_ =
-            vulnerableHeadersBuilder_ == null
-                ? vulnerableHeaders_
-                : vulnerableHeadersBuilder_.build();
+        result.vulnerableHeaders_ = vulnerableHeadersBuilder_ == null
+            ? vulnerableHeaders_
+            : vulnerableHeadersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.vulnerableParameters_ =
-            vulnerableParametersBuilder_ == null
-                ? vulnerableParameters_
-                : vulnerableParametersBuilder_.build();
+        result.vulnerableParameters_ = vulnerableParametersBuilder_ == null
+            ? vulnerableParameters_
+            : vulnerableParametersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.xss_ = xssBuilder_ == null ? xss_ : xssBuilder_.build();
+        result.xss_ = xssBuilder_ == null
+            ? xss_
+            : xssBuilder_.build();
       }
     }
 
@@ -1421,39 +1298,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Finding re
     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;
@@ -1461,8 +1337,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_;
         bitField0_ |= 0x00000001;
@@ -1557,112 +1432,104 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                findingType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                httpMethod_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                fuzzedUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                body_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                description_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 58:
-              {
-                reproductionUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 66:
-              {
-                frameUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 66
-            case 74:
-              {
-                finalUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 74
-            case 82:
-              {
-                trackingId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(
-                    getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(
-                    getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 114
-            case 122:
-              {
-                input.readMessage(
-                    getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 122
-            case 130:
-              {
-                input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 130
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              findingType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              httpMethod_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              fuzzedUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              body_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              description_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 58: {
+              reproductionUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 66: {
+              frameUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 66
+            case 74: {
+              finalUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 74
+            case 82: {
+              trackingId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getOutdatedLibraryFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getViolatingResourceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getVulnerableParametersFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getXssFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 114
+            case 122: {
+              input.readMessage(
+                  getVulnerableHeadersFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 122
+            case 130: {
+              input.readMessage(
+                  getFormFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 130
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1672,13 +1539,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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}'.
@@ -1686,13 +1550,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; @@ -1701,8 +1565,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}'.
@@ -1710,14 +1572,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 { @@ -1725,8 +1588,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}'.
@@ -1734,22 +1595,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1757,7 +1614,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1767,8 +1623,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1776,14 +1630,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1793,8 +1645,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:
@@ -1802,13 +1652,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; @@ -1817,8 +1667,6 @@ public java.lang.String getFindingType() { } } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1826,14 +1674,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 { @@ -1841,8 +1690,6 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { } } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1850,22 +1697,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } findingType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1873,7 +1716,6 @@ public Builder setFindingType(java.lang.String value) {
      * 
* * string finding_type = 2; - * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -1883,8 +1725,6 @@ public Builder clearFindingType() { return this; } /** - * - * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1892,14 +1732,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000002; @@ -1909,21 +1747,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; @@ -1932,22 +1768,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 { @@ -1955,37 +1790,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } httpMethod_ = value; bitField0_ |= 0x00000004; 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() { @@ -1995,22 +1823,18 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHttpMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000004; @@ -2020,21 +1844,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; @@ -2043,22 +1865,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 { @@ -2066,37 +1887,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFuzzedUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fuzzedUrl_ = value; bitField0_ |= 0x00000008; 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() { @@ -2106,22 +1920,18 @@ public Builder clearFuzzedUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFuzzedUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fuzzedUrl_ = value; bitField0_ |= 0x00000008; @@ -2131,20 +1941,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; @@ -2153,21 +1961,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 { @@ -2175,35 +1982,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBody( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } body_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { @@ -2213,21 +2013,17 @@ public Builder clearBody() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBodyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000010; @@ -2237,20 +2033,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; @@ -2259,21 +2053,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 { @@ -2281,35 +2074,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * The description of the vulnerability.
      * 
* * string description = 6; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2319,21 +2105,17 @@ public Builder clearDescription() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000020; @@ -2343,21 +2125,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; @@ -2366,22 +2146,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 { @@ -2389,37 +2168,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReproductionUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reproductionUrl_ = value; bitField0_ |= 0x00000040; 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() { @@ -2429,22 +2201,18 @@ public Builder clearReproductionUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReproductionUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reproductionUrl_ = value; bitField0_ |= 0x00000040; @@ -2454,21 +2222,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; @@ -2477,22 +2243,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 { @@ -2500,37 +2265,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFrameUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } frameUrl_ = value; bitField0_ |= 0x00000080; 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() { @@ -2540,22 +2298,18 @@ public Builder clearFrameUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFrameUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); frameUrl_ = value; bitField0_ |= 0x00000080; @@ -2565,20 +2319,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; @@ -2587,21 +2339,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 { @@ -2609,35 +2360,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFinalUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } finalUrl_ = value; bitField0_ |= 0x00000100; 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() { @@ -2647,21 +2391,17 @@ public Builder clearFinalUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFinalUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); finalUrl_ = value; bitField0_ |= 0x00000100; @@ -2671,21 +2411,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; @@ -2694,22 +2432,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 { @@ -2717,37 +2454,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTrackingId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } trackingId_ = value; bitField0_ |= 0x00000200; 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() { @@ -2757,22 +2487,18 @@ public Builder clearTrackingId() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTrackingIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); trackingId_ = value; bitField0_ |= 0x00000200; @@ -2782,49 +2508,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 ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * 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.
@@ -2846,8 +2559,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.
@@ -2867,8 +2578,6 @@ public Builder setForm(
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2878,9 +2587,9 @@ public Builder setForm(
      */
     public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value) {
       if (formBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0)
-            && form_ != null
-            && form_ != com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0) &&
+          form_ != null &&
+          form_ != com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) {
           getFormBuilder().mergeFrom(value);
         } else {
           form_ = value;
@@ -2893,8 +2602,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.
@@ -2913,8 +2620,6 @@ public Builder clearForm() {
       return this;
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2928,8 +2633,6 @@ public com.google.cloud.websecurityscanner.v1beta.Form.Builder getFormBuilder()
       return getFormFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2941,14 +2644,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.
@@ -2957,17 +2657,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_;
@@ -2975,55 +2672,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 ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * 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(); @@ -3037,8 +2720,6 @@ public Builder setOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3057,22 +2738,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 (((bitField0_ & 0x00000800) != 0) - && outdatedLibrary_ != null - && outdatedLibrary_ - != com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary - .getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + outdatedLibrary_ != null && + outdatedLibrary_ != com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) { getOutdatedLibraryBuilder().mergeFrom(value); } else { outdatedLibrary_ = value; @@ -3085,8 +2761,6 @@ public Builder mergeOutdatedLibrary( return this; } /** - * - * *
      * An addon containing information about outdated libraries.
      * 
@@ -3104,42 +2778,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() { bitField0_ |= 0x00000800; 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.
      * 
@@ -3147,17 +2812,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_; @@ -3165,61 +2827,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 ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * 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(); @@ -3233,15 +2878,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) { @@ -3255,24 +2897,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 (((bitField0_ & 0x00001000) != 0) - && violatingResource_ != null - && violatingResource_ - != com.google.cloud.websecurityscanner.v1beta.ViolatingResource - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + violatingResource_ != null && + violatingResource_ != com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance()) { getViolatingResourceBuilder().mergeFrom(value); } else { violatingResource_ = value; @@ -3285,15 +2921,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() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3306,66 +2939,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() { bitField0_ |= 0x00001000; 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_; @@ -3373,58 +2991,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 ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * 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(); @@ -3438,14 +3039,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) { @@ -3459,23 +3057,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 (((bitField0_ & 0x00002000) != 0) - && vulnerableHeaders_ != null - && vulnerableHeaders_ - != com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders - .getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + vulnerableHeaders_ != null && + vulnerableHeaders_ != com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) { getVulnerableHeadersBuilder().mergeFrom(value); } else { vulnerableHeaders_ = value; @@ -3488,14 +3080,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() { bitField0_ = (bitField0_ & ~0x00002000); @@ -3508,63 +3097,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() { bitField0_ |= 0x00002000; 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_; @@ -3572,65 +3146,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 ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * 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(); @@ -3644,16 +3197,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) { @@ -3667,25 +3216,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 (((bitField0_ & 0x00004000) != 0) - && vulnerableParameters_ != null - && vulnerableParameters_ - != com.google.cloud.websecurityscanner.v1beta.VulnerableParameters - .getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + vulnerableParameters_ != null && + vulnerableParameters_ != com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) { getVulnerableParametersBuilder().mergeFrom(value); } else { vulnerableParameters_ = value; @@ -3698,16 +3240,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() { bitField0_ = (bitField0_ & ~0x00004000); @@ -3720,69 +3258,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() { bitField0_ |= 0x00004000; 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_; @@ -3790,47 +3310,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 ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * 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.
      * 
@@ -3851,15 +3358,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(); } else { @@ -3870,8 +3376,6 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder bui return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3880,9 +3384,9 @@ public Builder setXss(com.google.cloud.websecurityscanner.v1beta.Xss.Builder bui */ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { if (xssBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && xss_ != null - && xss_ != com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) && + xss_ != null && + xss_ != com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance()) { getXssBuilder().mergeFrom(value); } else { xss_ = value; @@ -3895,8 +3399,6 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3914,8 +3416,6 @@ public Builder clearXss() { return this; } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3928,8 +3428,6 @@ public com.google.cloud.websecurityscanner.v1beta.Xss.Builder getXssBuilder() { return getXssFieldBuilder().getBuilder(); } /** - * - * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3940,14 +3438,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.
      * 
@@ -3955,24 +3450,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); } @@ -3982,12 +3474,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(); } @@ -3996,27 +3488,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4031,4 +3523,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java new file mode 100644 index 000000000000..a7a8dc180cb9 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java @@ -0,0 +1,135 @@ +// 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\233\002\n*com.goo" + + "gle.cloud.websecurityscanner.v1betaB\021Fin" + + "dingAddonProtoP\001ZZcloud.google.com/go/we" + + "bsecurityscanner/apiv1beta/websecuritysc" + + "annerpb;websecurityscannerpb\252\002&Google.Cl" + + "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" + + "loud\\WebSecurityScanner\\V1beta\352\002)Google:" + + ":Cloud::WebSecurityScanner::V1betab\006prot" + + "o3" + }; + 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java similarity index 84% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java index bc9e17dbc203..e8121da0947b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java new file mode 100644 index 000000000000..5a5f3c1643b0 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java @@ -0,0 +1,87 @@ +// 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\226\002\n*co" + + "m.google.cloud.websecurityscanner.v1beta" + + "B\014FindingProtoP\001ZZcloud.google.com/go/we" + + "bsecurityscanner/apiv1beta/websecuritysc" + + "annerpb;websecurityscannerpb\252\002&Google.Cl" + + "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" + + "loud\\WebSecurityScanner\\V1beta\352\002)Google:" + + ":Cloud::WebSecurityScanner::V1betab\006prot" + + "o3" + }; + 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java index 978b406c4c3f..ed689e6873ea 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,54 +11,48 @@
  *
  * 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();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object findingType_ = "";
   /**
-   *
-   *
    * 
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; - * * @return The findingType. */ @java.lang.Override @@ -84,29 +61,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 { @@ -117,14 +94,11 @@ public com.google.protobuf.ByteString getFindingTypeBytes() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_ = 0; /** - * - * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; - * * @return The findingCount. */ @java.lang.Override @@ -133,7 +107,6 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,7 +118,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_); } @@ -165,7 +139,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,16 +150,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -206,104 +182,98 @@ 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.
@@ -311,32 +281,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -347,9 +318,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
@@ -368,11 +339,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result = new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -391,39 +359,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.FindingTyp
     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;
@@ -431,8 +398,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_;
         bitField0_ |= 0x00000001;
@@ -467,25 +433,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                findingType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                findingCount_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              findingType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              findingCount_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -495,25 +458,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -522,21 +482,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 { @@ -544,35 +503,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } findingType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; - * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -582,21 +534,17 @@ public Builder clearFindingType() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFindingTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000001; @@ -604,16 +552,13 @@ public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { 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 @@ -621,14 +566,11 @@ 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. */ @@ -640,14 +582,11 @@ public Builder setFindingCount(int value) { return this; } /** - * - * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; - * * @return This builder for chaining. */ public Builder clearFindingCount() { @@ -656,9 +595,9 @@ public Builder clearFindingCount() { 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); } @@ -668,12 +607,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(); } @@ -682,27 +621,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -717,4 +656,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java similarity index 54% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java index 1264749efae0..b78eb3481040 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java @@ -1,62 +1,38 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java new file mode 100644 index 000000000000..da7760925728 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\237\002\n*com.google.cloud.websecur" + + "ityscanner.v1betaB\025FindingTypeStatsProto" + + "P\001ZZcloud.google.com/go/websecurityscann" + + "er/apiv1beta/websecurityscannerpb;websec" + + "urityscannerpb\252\002&Google.Cloud.WebSecurit" + + "yScanner.V1Beta\312\002&Google\\Cloud\\WebSecuri" + + "tyScanner\\V1beta\352\002)Google::Cloud::WebSec" + + "urityScanner::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java index 5be35402ee17..74180cb8048b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java @@ -1,81 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.emptyList(); + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Form(); } - 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; - @SuppressWarnings("serial") 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 @@ -84,29 +62,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 { @@ -115,47 +93,38 @@ public com.google.protobuf.ByteString getActionUriBytes() { } public static final int FIELDS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * ! 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. */ @@ -163,23 +132,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; @@ -191,7 +157,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_); } @@ -226,16 +193,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,149 +226,146 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; actionUri_ = ""; - fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -419,11 +384,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.Form result = new com.google.cloud.websecurityscanner.v1beta.Form(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -443,39 +405,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Form resul 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; @@ -483,8 +444,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_; bitField0_ |= 0x00000001; @@ -526,26 +486,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - actionUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFieldsIsMutable(); - fields_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + actionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,25 +512,22 @@ public Builder mergeFrom( } // finally 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; @@ -582,21 +536,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 { @@ -604,35 +557,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } actionUri_ = value; bitField0_ |= 0x00000001; 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() { @@ -642,21 +588,17 @@ public Builder clearActionUri() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setActionUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); actionUri_ = value; bitField0_ |= 0x00000001; @@ -666,7 +608,6 @@ public Builder setActionUriBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureFieldsIsMutable() { if (!fields_.isModifiable()) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); @@ -674,43 +615,35 @@ private void ensureFieldsIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * ! 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() { fields_.makeImmutable(); 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. */ @@ -718,37 +651,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.set(index, value); bitField0_ |= 0x00000002; @@ -756,21 +683,17 @@ public Builder setFields(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureFieldsIsMutable(); fields_.add(value); bitField0_ |= 0x00000002; @@ -778,58 +701,50 @@ public Builder addFields(java.lang.String value) { 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; - * * @return This builder for chaining. */ public Builder clearFields() { - fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + fields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); @@ -837,9 +752,9 @@ public Builder addFieldsBytes(com.google.protobuf.ByteString 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); } @@ -849,12 +764,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(); } @@ -863,27 +778,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -898,4 +813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java index 64827b16614d..991f84ae23c8 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java similarity index 63% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java index c4929ed65170..b91bbacb299a 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +293,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(); } @@ -347,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,38 @@ private void buildPartial0( 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; @@ -408,9 +370,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_; bitField0_ |= 0x00000001; @@ -442,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -495,25 +448,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 { @@ -521,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -567,34 +506,28 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -604,13 +537,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(); } @@ -619,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java new file mode 100644 index 000000000000..82d82324135d --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java index 4b6047d7f42f..ddfa11e37903 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,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(); } @@ -345,17 +312,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,50 +329,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -441,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -493,24 +445,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 { @@ -518,41 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -562,33 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,43 +530,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,8 +576,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..51da9ac41830 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java similarity index 63% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java index f7e609310c82..2b0d7dde8bd0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +293,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(); } @@ -347,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,38 @@ private void buildPartial0( 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; @@ -408,9 +370,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_; bitField0_ |= 0x00000001; @@ -442,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -495,25 +448,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 { @@ -521,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -567,34 +506,28 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -604,13 +537,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(); } @@ -619,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..a24004470523 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java similarity index 66% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java index e414bbd60322..57746757692d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,42 +26,35 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -88,33 +63,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 { @@ -123,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -136,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -145,15 +114,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.
@@ -161,15 +129,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 { @@ -180,8 +149,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -189,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -198,7 +164,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +175,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_); } @@ -236,7 +202,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -246,17 +213,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -280,138 +249,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,14 +385,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(); } @@ -445,17 +406,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -472,50 +429,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -555,31 +508,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,29 +538,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -620,25 +564,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 { @@ -646,43 +587,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -692,25 +622,19 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -720,8 +644,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.
@@ -729,13 +651,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; @@ -744,8 +666,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.
@@ -753,14 +673,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 { @@ -768,8 +689,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.
@@ -777,22 +696,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -800,7 +715,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -810,8 +724,6 @@ public Builder clearPageToken() { 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.
@@ -819,14 +731,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -834,10 +744,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -845,7 +753,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -853,8 +760,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
@@ -862,7 +767,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -874,8 +778,6 @@ public Builder setPageSize(int value) { 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
@@ -883,7 +785,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -892,9 +793,9 @@ public Builder clearPageSize() { 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); } @@ -904,43 +805,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,8 +851,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java index 081ce172e598..765f81fcd99e 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java index 1b31997f1d8c..3f05d3e9f08f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List crawledUrls_; /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -77,13 +55,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.
    * 
@@ -91,13 +66,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.
    * 
@@ -109,8 +82,6 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** - * - * *
    * The list of CrawledUrls returned.
    * 
@@ -137,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -158,30 +123,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 { @@ -190,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +166,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)); } @@ -219,7 +184,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_); @@ -232,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,138 +232,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,16 +373,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 @@ -436,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -459,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -471,51 +424,46 @@ private void buildPartial0( 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()) { @@ -534,10 +482,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_); } @@ -574,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.CrawledUrl m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), - extensionRegistry); - if (crawledUrlsBuilder_ == null) { - ensureCrawledUrlsIsMutable(); - crawledUrls_.add(m); - } else { - crawledUrlsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1beta.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,38 +554,28 @@ public Builder mergeFrom( } // finally 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 { @@ -649,8 +583,6 @@ private void ensureCrawledUrlsIsMutable() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -665,8 +597,6 @@ public int getCrawledUrlsCount() { } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -681,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -704,8 +632,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -724,8 +650,6 @@ public Builder setCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -746,8 +670,6 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1beta.Crawled return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -769,8 +691,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -789,8 +709,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -809,8 +727,6 @@ public Builder addCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -818,11 +734,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); @@ -830,8 +746,6 @@ public Builder addAllCrawledUrls( return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -849,8 +763,6 @@ public Builder clearCrawledUrls() { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -868,8 +780,6 @@ public Builder removeCrawledUrls(int index) { return this; } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -881,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU return getCrawledUrlsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -892,22 +800,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 { @@ -915,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled } } /** - * - * *
      * The list of CrawledUrls returned.
      * 
@@ -924,12 +827,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.
      * 
@@ -938,36 +839,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_; @@ -975,21 +870,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; @@ -998,22 +891,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 { @@ -1021,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1061,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1095,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java index 162f9656fb39..0f79126ae26b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java similarity index 60% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java index c8dcb2d829eb..07fdbada1c78 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getParentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,138 +159,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,22 +293,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); } @@ -351,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -372,51 +331,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -448,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -470,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -501,25 +448,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 { @@ -527,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -573,34 +506,28 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; 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); } @@ -610,43 +537,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -658,8 +583,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 000000000000..dc0b39df7a58 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java similarity index 59% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java index 96593b95a714..239e705067fb 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java @@ -1,150 +1,110 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") - 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; @@ -156,7 +116,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)); } @@ -170,7 +131,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,15 +142,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -210,139 +172,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -358,22 +312,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); } @@ -382,18 +333,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -405,8 +352,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { int from_bitField0_ = bitField0_; } @@ -414,52 +360,46 @@ private void buildPartial0( 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()) { @@ -478,10 +418,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_); } @@ -513,27 +452,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), - extensionRegistry); - if (findingTypeStatsBuilder_ == null) { - ensureFindingTypeStatsIsMutable(); - findingTypeStats_.add(m); - } else { - findingTypeStatsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,40 +480,28 @@ public Builder mergeFrom( } // finally 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 { @@ -584,15 +509,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) { @@ -602,18 +523,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 { @@ -621,15 +537,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) { @@ -646,19 +558,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()); @@ -669,18 +576,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(); @@ -694,15 +596,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) { @@ -719,15 +617,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) { @@ -741,19 +635,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()); @@ -764,22 +653,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); @@ -787,15 +672,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) { @@ -808,15 +689,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) { @@ -829,53 +706,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 { @@ -883,67 +746,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(), @@ -952,9 +793,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); } @@ -964,44 +805,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1013,8 +851,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java similarity index 60% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java index 240551de1277..c11e2fafc4d5 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java @@ -1,83 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java index e2b0c5602685..a37706c8e19f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,42 +27,35 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -89,33 +64,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 { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -138,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -147,15 +116,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>.
@@ -164,15 +132,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 { @@ -181,12 +150,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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.
@@ -194,7 +160,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -203,15 +168,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.
@@ -219,15 +183,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 { @@ -238,8 +203,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** - * - * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -247,7 +210,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -256,7 +218,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +229,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_); } @@ -300,7 +262,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,18 +273,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -347,136 +313,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +450,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(); } @@ -511,17 +471,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -541,39 +497,38 @@ private void buildPartial0( 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; @@ -581,9 +536,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_; bitField0_ |= 0x00000001; @@ -628,37 +581,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -668,29 +616,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -699,25 +642,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 { @@ -725,43 +665,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -771,25 +700,19 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -799,8 +722,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>.
@@ -809,13 +730,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; @@ -824,8 +745,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -834,14 +753,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 { @@ -849,8 +769,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -859,22 +777,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -883,7 +797,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -893,8 +806,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -903,14 +814,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -920,8 +829,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 +836,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 +851,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 +858,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 +874,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 +881,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; 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,7 +900,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1010,8 +909,6 @@ public Builder clearPageToken() { 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,14 +916,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1034,10 +929,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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 +938,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4; - * * @return The pageSize. */ @java.lang.Override @@ -1053,8 +945,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,7 +952,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1074,8 +963,6 @@ public Builder setPageSize(int value) { 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
@@ -1083,7 +970,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1092,9 +978,9 @@ public Builder clearPageSize() { 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); } @@ -1104,43 +990,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,8 +1036,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java index 9e22435dcf1e..975732f56d22 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java index 63b53fd7c765..b2f289ed40f6 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFindingsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List findings_; /** - * - * *
    * The list of Findings returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getFin return findings_; } /** - * - * *
    * The list of Findings returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getFindingsCount() { return findings_.size(); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) return findings_.get(index); } /** - * - * *
    * The list of Findings returned.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -157,30 +123,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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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)); } @@ -218,7 +184,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_); @@ -231,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +373,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(); } @@ -432,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,50 +424,46 @@ private void buildPartial0( 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()) { @@ -529,10 +482,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_); } @@ -569,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.Finding m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.Finding.parser(), - extensionRegistry); - if (findingsBuilder_ == null) { - ensureFindingsIsMutable(); - findings_.add(m); - } else { - findingsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1beta.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.Finding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,29 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +583,6 @@ public java.util.List getFin } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -658,8 +597,6 @@ public int getFindingsCount() { } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -674,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -697,8 +632,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -717,8 +650,6 @@ public Builder setFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -739,8 +670,6 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1beta.Finding va return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -762,8 +691,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -782,8 +709,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -802,8 +727,6 @@ public Builder addFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -814,7 +737,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); @@ -822,8 +746,6 @@ public Builder addAllFindings( return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -841,8 +763,6 @@ public Builder clearFindings() { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -860,8 +780,6 @@ public Builder removeFindings(int index) { return this; } /** - * - * *
      * The list of Findings returned.
      * 
@@ -873,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui return getFindingsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Findings returned.
      * 
@@ -884,22 +800,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 { @@ -907,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr } } /** - * - * *
      * The list of Findings returned.
      * 
@@ -916,12 +827,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.
      * 
@@ -930,36 +839,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_; @@ -967,21 +870,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; @@ -990,22 +891,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 { @@ -1013,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1053,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1087,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java index 797009b6657c..731383beee96 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java index f05fec5d069e..e29573be7a9b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,41 +26,34 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,32 +62,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 { @@ -121,12 +94,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -134,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -143,15 +112,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.
@@ -159,15 +127,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 { @@ -178,8 +147,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -187,7 +154,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -196,7 +162,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,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_); } @@ -234,7 +200,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,138 +247,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,14 +383,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(); } @@ -443,17 +404,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -470,50 +427,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -553,31 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,28 +536,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -617,24 +561,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 { @@ -642,41 +583,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -686,24 +616,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -713,8 +637,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 +644,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 +659,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 +666,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 +682,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 +689,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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,7 +708,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -803,8 +717,6 @@ public Builder clearPageToken() { 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,14 +724,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -827,10 +737,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -838,7 +746,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -846,8 +753,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
@@ -855,7 +760,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -867,8 +771,6 @@ public Builder setPageSize(int value) { 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
@@ -876,7 +778,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -885,9 +786,9 @@ public Builder clearPageSize() { 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); } @@ -897,43 +798,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,8 +844,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java index 3ed7076b90cb..ba39d379631e 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java index 301c43873237..3091152bcd9d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List scanConfigs_; /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -77,13 +55,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.
    * 
@@ -91,13 +66,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.
    * 
@@ -109,8 +82,6 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** - * - * *
    * The list of ScanConfigs returned.
    * 
@@ -137,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -158,30 +123,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 { @@ -190,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +166,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)); } @@ -219,7 +184,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_); @@ -232,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,138 +232,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,16 +373,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 @@ -436,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -459,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -471,51 +424,46 @@ private void buildPartial0( 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()) { @@ -534,10 +482,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_); } @@ -574,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.ScanConfig m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (scanConfigsBuilder_ == null) { - ensureScanConfigsIsMutable(); - scanConfigs_.add(m); - } else { - scanConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1beta.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,38 +554,28 @@ public Builder mergeFrom( } // finally 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 { @@ -649,8 +583,6 @@ private void ensureScanConfigsIsMutable() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -665,8 +597,6 @@ public int getScanConfigsCount() { } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -681,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -704,8 +632,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -724,8 +650,6 @@ public Builder setScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -746,8 +670,6 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1beta.ScanCon return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -769,8 +691,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -789,8 +709,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -809,8 +727,6 @@ public Builder addScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -818,11 +734,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); @@ -830,8 +746,6 @@ public Builder addAllScanConfigs( return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -849,8 +763,6 @@ public Builder clearScanConfigs() { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -868,8 +780,6 @@ public Builder removeScanConfigs(int index) { return this; } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -881,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf return getScanConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -892,22 +800,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 { @@ -915,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } } /** - * - * *
      * The list of ScanConfigs returned.
      * 
@@ -924,12 +827,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.
      * 
@@ -938,36 +839,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_; @@ -975,21 +870,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; @@ -998,22 +891,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 { @@ -1021,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1061,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1095,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1143,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java index fdef73559355..845e712e46e9 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java index bbf7bc117f28..f1ffc645de4f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,41 +26,34 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,32 +62,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 { @@ -121,12 +94,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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.
@@ -134,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2; - * * @return The pageToken. */ @java.lang.Override @@ -143,15 +112,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.
@@ -159,15 +127,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 { @@ -178,8 +147,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -187,7 +154,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -196,7 +162,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +173,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_); } @@ -234,7 +200,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,136 +247,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -419,14 +383,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(); } @@ -441,17 +404,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -468,39 +427,38 @@ private void buildPartial0( 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; @@ -508,9 +466,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_; bitField0_ |= 0x00000001; @@ -550,31 +506,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,28 +536,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -614,24 +561,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 { @@ -639,41 +583,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -683,24 +616,18 @@ public Builder clearParent() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -710,8 +637,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.
@@ -719,13 +644,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; @@ -734,8 +659,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.
@@ -743,14 +666,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 { @@ -758,8 +682,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.
@@ -767,22 +689,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -790,7 +708,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -800,8 +717,6 @@ public Builder clearPageToken() { 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.
@@ -809,14 +724,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -824,10 +737,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -835,7 +746,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3; - * * @return The pageSize. */ @java.lang.Override @@ -843,8 +753,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
@@ -852,7 +760,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -864,8 +771,6 @@ public Builder setPageSize(int value) { 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
@@ -873,7 +778,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -882,9 +786,9 @@ public Builder clearPageSize() { 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); } @@ -894,43 +798,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -942,8 +844,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java index 246ad67a029c..a02571fa7cbb 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java index bf73be4eba8c..624585b05d7c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,32 +26,28 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } - 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; - @SuppressWarnings("serial") private java.util.List scanRuns_; /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -81,8 +59,6 @@ public java.util.List getSca return scanRuns_; } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -90,13 +66,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.
    * 
@@ -108,8 +82,6 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -121,8 +93,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) return scanRuns_.get(index); } /** - * - * *
    * The list of ScanRuns returned.
    * 
@@ -136,19 +106,15 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -157,30 +123,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 { @@ -189,7 +155,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +166,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)); } @@ -218,7 +184,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_); @@ -231,16 +198,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,136 +232,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +373,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(); } @@ -432,18 +394,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -455,8 +413,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -467,50 +424,46 @@ private void buildPartial0( 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()) { @@ -529,10 +482,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_); } @@ -569,33 +521,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.ScanRun m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry); - if (scanRunsBuilder_ == null) { - ensureScanRunsIsMutable(); - scanRuns_.add(m); - } else { - scanRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1beta.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), + extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,29 +554,21 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -642,8 +583,6 @@ public java.util.List getSca } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -658,8 +597,6 @@ public int getScanRunsCount() { } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -674,8 +611,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -697,8 +632,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -717,8 +650,6 @@ public Builder setScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -739,8 +670,6 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1beta.ScanRun va return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -762,8 +691,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -782,8 +709,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -802,8 +727,6 @@ public Builder addScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -814,7 +737,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); @@ -822,8 +746,6 @@ public Builder addAllScanRuns( return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -841,8 +763,6 @@ public Builder clearScanRuns() { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -860,8 +780,6 @@ public Builder removeScanRuns(int index) { return this; } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -873,8 +791,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui return getScanRunsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -884,22 +800,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 { @@ -907,8 +820,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr } } /** - * - * *
      * The list of ScanRuns returned.
      * 
@@ -916,12 +827,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.
      * 
@@ -930,36 +839,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_; @@ -967,21 +870,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; @@ -990,22 +891,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 { @@ -1013,37 +913,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1053,31 +946,27 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1087,43 +976,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1135,8 +1022,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java similarity index 69% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java index b52d575bde5e..f84d198f652b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java index 68a9723f4114..33185610db2f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java @@ -1,82 +1,60 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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_ = ""; - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OutdatedLibrary(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object libraryName_ = ""; /** - * - * *
    * The name of the outdated library.
    * 
* * string library_name = 1; - * * @return The libraryName. */ @java.lang.Override @@ -85,29 +63,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 { @@ -116,18 +94,14 @@ public com.google.protobuf.ByteString getLibraryNameBytes() { } public static final int VERSION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** - * - * *
    * The version number.
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -136,29 +110,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 { @@ -167,47 +141,38 @@ public com.google.protobuf.ByteString getVersionBytes() { } public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -215,23 +180,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; @@ -243,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(libraryName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, libraryName_); } @@ -284,17 +247,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,150 +285,146 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; libraryName_ = ""; version_ = ""; - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -482,11 +443,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -509,39 +467,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.OutdatedLi 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; @@ -549,8 +506,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_; bitField0_ |= 0x00000001; @@ -597,32 +553,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - libraryName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureLearnMoreUrlsIsMutable(); - learnMoreUrls_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + libraryName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -632,25 +584,22 @@ public Builder mergeFrom( } // finally 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; @@ -659,21 +608,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 { @@ -681,35 +629,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLibraryName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } libraryName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The name of the outdated library.
      * 
* * string library_name = 1; - * * @return This builder for chaining. */ public Builder clearLibraryName() { @@ -719,21 +660,17 @@ public Builder clearLibraryName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLibraryNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); libraryName_ = value; bitField0_ |= 0x00000001; @@ -743,20 +680,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; @@ -765,21 +700,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 { @@ -787,35 +721,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The version number.
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { @@ -825,21 +752,17 @@ public Builder clearVersion() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000002; @@ -849,7 +772,6 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureLearnMoreUrlsIsMutable() { if (!learnMoreUrls_.isModifiable()) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); @@ -857,43 +779,35 @@ private void ensureLearnMoreUrlsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * 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() { learnMoreUrls_.makeImmutable(); 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. */ @@ -901,37 +815,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLearnMoreUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); bitField0_ |= 0x00000004; @@ -939,21 +847,17 @@ public Builder setLearnMoreUrls(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLearnMoreUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); bitField0_ |= 0x00000004; @@ -961,58 +865,50 @@ public Builder addLearnMoreUrls(java.lang.String value) { 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_); bitField0_ |= 0x00000004; 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() { - learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + learnMoreUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addLearnMoreUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); @@ -1020,9 +916,9 @@ public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString 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); } @@ -1032,12 +928,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(); } @@ -1046,27 +942,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1081,4 +977,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java index b2b68debfe62..68ad3f2f1e80 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java @@ -1,126 +1,90 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java similarity index 66% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java index 4ccfb62db9d2..891226b7a719 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java @@ -1,48 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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_ = ""; - startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); userAgent_ = 0; - blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); targetPlatforms_ = java.util.Collections.emptyList(); exportToSecurityCommandCenter_ = 0; riskLevel_ = 0; @@ -50,38 +34,34 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ScanConfig(); } - 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.
      * 
@@ -90,8 +70,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ USER_AGENT_UNSPECIFIED(0), /** - * - * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -100,8 +78,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_LINUX(1), /** - * - * *
      * Chrome on Android.
      * 
@@ -110,8 +86,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ CHROME_ANDROID(2), /** - * - * *
      * Safari on IPhone.
      * 
@@ -123,8 +97,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -133,8 +105,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.
      * 
@@ -143,8 +113,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_LINUX_VALUE = 1; /** - * - * *
      * Chrome on Android.
      * 
@@ -153,8 +121,6 @@ public enum UserAgent implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CHROME_ANDROID_VALUE = 2; /** - * - * *
      * Safari on IPhone.
      * 
@@ -163,6 +129,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( @@ -187,53 +154,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; @@ -251,18 +215,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.
@@ -272,8 +233,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -282,8 +241,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ APP_ENGINE(1), /** - * - * *
      * Google Compute Engine service.
      * 
@@ -295,8 +252,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.
@@ -306,8 +261,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Google App Engine service.
      * 
@@ -316,8 +269,6 @@ public enum TargetPlatform implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APP_ENGINE_VALUE = 1; /** - * - * *
      * Google Compute Engine service.
      * 
@@ -326,6 +277,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( @@ -350,51 +302,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; @@ -412,8 +362,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
@@ -422,10 +370,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.
      * 
@@ -434,8 +381,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ RISK_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -444,8 +389,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ NORMAL(1), /** - * - * *
      * Lower impact scanning
      * 
@@ -457,8 +400,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Use default, which is NORMAL.
      * 
@@ -467,8 +408,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Normal scanning (Recommended)
      * 
@@ -477,8 +416,6 @@ public enum RiskLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NORMAL_VALUE = 1; /** - * - * *
      * Lower impact scanning
      * 
@@ -487,6 +424,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( @@ -511,51 +449,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; @@ -573,20 +509,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.
      * 
@@ -595,8 +527,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.
      * 
@@ -605,8 +535,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco */ ENABLED(1), /** - * - * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -618,8 +546,6 @@ public enum ExportToSecurityCommandCenter implements com.google.protobuf.Protoco ; /** - * - * *
      * Use default, which is ENABLED.
      * 
@@ -628,8 +554,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.
      * 
@@ -638,8 +562,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.
      * 
@@ -648,6 +570,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( @@ -672,14 +595,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; } } @@ -687,31 +606,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(); @@ -719,7 +636,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; @@ -736,223 +654,167 @@ 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(); - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase - getAuthenticationCase(); + 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(); } - 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_ = ""; @@ -960,40 +822,33 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GoogleAccount(); } - 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; - @SuppressWarnings("serial") 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 @@ -1002,29 +857,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 { @@ -1033,21 +888,15 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -1056,32 +905,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 { @@ -1090,7 +937,6 @@ public com.google.protobuf.ByteString getPasswordBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1102,7 +948,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_); } @@ -1132,19 +979,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1165,116 +1010,90 @@ 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 @@ -1284,46 +1103,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1334,23 +1146,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); } @@ -1358,22 +1166,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount - result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -1387,57 +1187,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -1474,25 +1263,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1502,25 +1288,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -1529,21 +1312,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 { @@ -1551,35 +1333,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -1589,21 +1364,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -1613,23 +1384,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; @@ -1638,24 +1405,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 { @@ -1663,41 +1427,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -1707,31 +1460,24 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1744,48 +1490,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1797,118 +1536,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_ = ""; @@ -1917,40 +1632,33 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CustomAccount(); } - 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; - @SuppressWarnings("serial") 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 @@ -1959,29 +1667,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 { @@ -1990,21 +1698,15 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -2013,32 +1715,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 { @@ -2047,18 +1747,14 @@ public com.google.protobuf.ByteString getPasswordBytes() { } public static final int LOGIN_URL_FIELD_NUMBER = 3; - @SuppressWarnings("serial") 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 @@ -2067,29 +1763,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 { @@ -2098,7 +1794,6 @@ public com.google.protobuf.ByteString getLoginUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2110,7 +1805,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_); } @@ -2146,20 +1842,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2182,116 +1877,90 @@ 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 @@ -2301,46 +1970,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2352,23 +2014,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); } @@ -2376,22 +2034,14 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + 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); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount - result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -2408,57 +2058,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -2500,31 +2139,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - loginUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + loginUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2534,25 +2169,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -2561,21 +2193,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 { @@ -2583,35 +2214,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -2621,21 +2245,17 @@ public Builder clearUsername() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -2645,23 +2265,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; @@ -2670,24 +2286,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 { @@ -2695,41 +2308,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -2739,24 +2341,18 @@ public Builder clearPassword() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; @@ -2766,20 +2362,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; @@ -2788,21 +2382,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 { @@ -2810,35 +2403,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLoginUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } loginUrl_ = value; bitField0_ |= 0x00000004; 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() { @@ -2848,28 +2434,23 @@ public Builder clearLoginUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLoginUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2882,48 +2463,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2935,26 +2509,22 @@ 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; - @SuppressWarnings("serial") 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; } @@ -2970,38 +2540,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 @@ -3009,63 +2571,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 @@ -3073,53 +2614,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; @@ -3131,18 +2655,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_); } getUnknownFields().writeTo(output); } @@ -3154,18 +2673,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3175,21 +2688,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: @@ -3223,95 +2737,89 @@ 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 @@ -3321,42 +2829,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3373,22 +2878,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); } @@ -3397,29 +2899,26 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { + private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { result.authenticationCase_ = authenticationCase_; result.authentication_ = this.authentication_; - if (authenticationCase_ == 1 && googleAccountBuilder_ != null) { + if (authenticationCase_ == 1 && + googleAccountBuilder_ != null) { result.authentication_ = googleAccountBuilder_.build(); } - if (authenticationCase_ == 2 && customAccountBuilder_ != null) { + if (authenticationCase_ == 2 && + customAccountBuilder_ != null) { result.authentication_ = customAccountBuilder_.build(); } } @@ -3428,68 +2927,58 @@ private void buildPartialOneofs( 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.getUnknownFields()); onChanged(); @@ -3517,25 +3006,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); - authenticationCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); - authenticationCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGoogleAccountFieldBuilder().getBuilder(), + extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getCustomAccountFieldBuilder().getBuilder(), + extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3545,12 +3035,12 @@ public Builder mergeFrom( } // finally 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() { @@ -3563,23 +3053,13 @@ public Builder clearAuthentication() { private int bitField0_; 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 @@ -3587,51 +3067,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(); @@ -3645,19 +3109,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(); @@ -3668,32 +3127,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; } @@ -3709,15 +3154,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) { @@ -3736,83 +3177,50 @@ 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; @@ -3823,23 +3231,13 @@ public Builder clearGoogleAccount() { } 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 @@ -3847,51 +3245,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(); @@ -3905,19 +3287,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(); @@ -3928,32 +3305,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; } @@ -3969,15 +3332,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) { @@ -3996,83 +3355,50 @@ 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; @@ -4081,7 +3407,6 @@ public Builder clearCustomAccount() { onChanged(); return customAccountBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4094,44 +3419,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4143,20 +3465,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
@@ -4165,13 +3484,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
@@ -4180,13 +3496,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
@@ -4199,65 +3512,57 @@ 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(); } - 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
@@ -4266,7 +3571,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 @@ -4274,8 +3578,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
@@ -4284,18 +3586,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
@@ -4307,22 +3604,17 @@ public com.google.protobuf.Timestamp getScheduleTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
-      return scheduleTime_ == null
-          ? com.google.protobuf.Timestamp.getDefaultInstance()
-          : scheduleTime_;
+      return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
     }
 
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_ = 0;
     /**
-     *
-     *
      * 
      * 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 @@ -4331,7 +3623,6 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4343,7 +3634,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()); } @@ -4360,10 +3652,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4373,19 +3667,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4409,94 +3704,89 @@ 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 @@ -4506,41 +3796,39 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4555,14 +3843,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(); } @@ -4577,21 +3864,18 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scheduleTime_ = - scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); + result.scheduleTime_ = scheduleTimeBuilder_ == null + ? scheduleTime_ + : scheduleTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.intervalDurationDays_ = intervalDurationDays_; @@ -4602,52 +3886,46 @@ private void buildPartial0( 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()); } @@ -4680,25 +3958,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - intervalDurationDays_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getScheduleTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + intervalDurationDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4708,18 +3985,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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
@@ -4728,15 +3999,12 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; - * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * 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
@@ -4745,21 +4013,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
@@ -4783,8 +4046,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
@@ -4794,7 +4055,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();
         } else {
@@ -4805,8 +4067,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
@@ -4818,9 +4078,9 @@ public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForV
        */
       public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && scheduleTime_ != null
-              && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            scheduleTime_ != null &&
+            scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getScheduleTimeBuilder().mergeFrom(value);
           } else {
             scheduleTime_ = value;
@@ -4833,8 +4093,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
@@ -4855,8 +4113,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
@@ -4872,8 +4128,6 @@ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
         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
@@ -4887,14 +4141,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
@@ -4905,32 +4156,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 @@ -4938,14 +4183,11 @@ 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. */ @@ -4956,15 +4198,12 @@ public Builder setIntervalDurationDays(int 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() { @@ -4973,7 +4212,6 @@ public Builder clearIntervalDurationDays() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4986,44 +4224,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5035,19 +4270,16 @@ 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; - @SuppressWarnings("serial") 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
@@ -5055,7 +4287,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -5064,15 +4295,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
@@ -5080,15 +4310,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 { @@ -5097,18 +4328,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -5117,29 +4344,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 { @@ -5150,8 +4377,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_ = 0; /** - * - * *
    * 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
@@ -5160,7 +4385,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -5169,47 +4393,38 @@ public int getMaxQps() { } public static final int STARTING_URLS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -5217,34 +4432,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 @@ -5252,125 +4461,93 @@ 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() { - return authentication_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() - : authentication_; + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder getAuthenticationOrBuilder() { + return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; } public static final int USER_AGENT_FIELD_NUMBER = 6; 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; - * * @return The userAgent. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.forNumber(userAgent_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.forNumber(userAgent_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -5378,33 +4555,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 @@ -5412,25 +4584,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.
    * 
@@ -5438,68 +4603,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() { - return schedule_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() - : schedule_; + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder getScheduleOrBuilder() { + return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") 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) { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.forNumber( - from); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform - .UNRECOGNIZED - : result; + java.lang.Integer, com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert(java.lang.Integer from) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.forNumber(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 @@ -5507,55 +4647,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. */ @@ -5563,66 +4688,44 @@ 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_ = 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; * @return The exportToSecurityCommandCenter. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - getExportToSecurityCommandCenter() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .forNumber(exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.forNumber(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 @@ -5630,25 +4733,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.
    * 
@@ -5657,50 +4753,36 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunOrBuilder() { - return latestRun_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() - : latestRun_; + return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; } public static final int RISK_LEVEL_FIELD_NUMBER = 12; 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; - * * @return The riskLevel. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.forNumber(riskLevel_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.forNumber(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; @@ -5712,7 +4794,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_); @@ -5729,9 +4812,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++) { @@ -5747,18 +4828,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_); } getUnknownFields().writeTo(output); @@ -5777,7 +4853,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; @@ -5788,12 +4865,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; @@ -5804,35 +4881,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5842,33 +4916,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -5924,136 +5005,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6061,14 +5137,16 @@ public Builder clear() { name_ = ""; displayName_ = ""; maxQps_ = 0; - startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); authentication_ = null; if (authenticationBuilder_ != null) { authenticationBuilder_.dispose(); authenticationBuilder_ = null; } userAgent_ = 0; - blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); schedule_ = null; if (scheduleBuilder_ != null) { scheduleBuilder_.dispose(); @@ -6087,9 +5165,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 @@ -6108,18 +5186,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1beta.ScanConfig result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ScanConfig result) { if (((bitField0_ & 0x00000100) != 0)) { targetPlatforms_ = java.util.Collections.unmodifiableList(targetPlatforms_); bitField0_ = (bitField0_ & ~0x00000100); @@ -6143,8 +5217,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig result.startingUrls_ = startingUrls_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.authentication_ = - authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); + result.authentication_ = authenticationBuilder_ == null + ? authentication_ + : authenticationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.userAgent_ = userAgent_; @@ -6154,13 +5229,17 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig result.blacklistPatterns_ = blacklistPatterns_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.schedule_ = scheduleBuilder_ == null ? schedule_ : scheduleBuilder_.build(); + result.schedule_ = scheduleBuilder_ == null + ? schedule_ + : scheduleBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.exportToSecurityCommandCenter_ = exportToSecurityCommandCenter_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.latestRun_ = latestRunBuilder_ == null ? latestRun_ : latestRunBuilder_.build(); + result.latestRun_ = latestRunBuilder_ == null + ? latestRun_ + : latestRunBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.riskLevel_ = riskLevel_; @@ -6171,39 +5250,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig 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; @@ -6211,8 +5289,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_; bitField0_ |= 0x00000001; @@ -6300,100 +5377,92 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - maxQps_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStartingUrlsIsMutable(); - startingUrls_.add(s); - break; - } // case 34 - case 42: - { - input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - userAgent_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureBlacklistPatternsIsMutable(); - blacklistPatterns_.add(s); - break; - } // case 58 - case 66: - { - input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: - { + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + maxQps_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStartingUrlsIsMutable(); + startingUrls_.add(s); + break; + } // case 34 + case 42: { + input.readMessage( + getAuthenticationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + userAgent_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlacklistPatternsIsMutable(); + blacklistPatterns_.add(s); + break; + } // case 58 + case 66: { + input.readMessage( + getScheduleFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + int tmpRaw = input.readEnum(); + ensureTargetPlatformsIsMutable(); + targetPlatforms_.add(tmpRaw); + break; + } // case 72 + case 74: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); ensureTargetPlatformsIsMutable(); targetPlatforms_.add(tmpRaw); - break; - } // case 72 - case 74: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureTargetPlatformsIsMutable(); - targetPlatforms_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 74 - case 80: - { - exportToSecurityCommandCenter_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: - { - input.readMessage(getLatestRunFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: - { - riskLevel_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + } + input.popLimit(oldLimit); + break; + } // case 74 + case 80: { + exportToSecurityCommandCenter_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: { + input.readMessage( + getLatestRunFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: { + riskLevel_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6403,13 +5472,10 @@ public Builder mergeFrom( } // finally 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
@@ -6417,13 +5483,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; @@ -6432,8 +5498,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
@@ -6441,14 +5505,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 { @@ -6456,8 +5521,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
@@ -6465,22 +5528,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6488,7 +5547,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -6498,8 +5556,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6507,14 +5563,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -6524,20 +5578,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; @@ -6546,21 +5598,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 { @@ -6568,35 +5619,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; 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() { @@ -6606,21 +5650,17 @@ public Builder clearDisplayName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -6628,10 +5668,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { 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
@@ -6640,7 +5678,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 max_qps = 3; - * * @return The maxQps. */ @java.lang.Override @@ -6648,8 +5685,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
@@ -6658,7 +5693,6 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; - * * @param value The maxQps to set. * @return This builder for chaining. */ @@ -6670,8 +5704,6 @@ public Builder setMaxQps(int value) { 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
@@ -6680,7 +5712,6 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; - * * @return This builder for chaining. */ public Builder clearMaxQps() { @@ -6692,7 +5723,6 @@ public Builder clearMaxQps() { private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStartingUrlsIsMutable() { if (!startingUrls_.isModifiable()) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); @@ -6700,43 +5730,35 @@ private void ensureStartingUrlsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
      * 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() { startingUrls_.makeImmutable(); 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. */ @@ -6744,37 +5766,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStartingUrls( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); bitField0_ |= 0x00000008; @@ -6782,21 +5798,17 @@ public Builder setStartingUrls(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartingUrls( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStartingUrlsIsMutable(); startingUrls_.add(value); bitField0_ |= 0x00000008; @@ -6804,58 +5816,50 @@ public Builder addStartingUrls(java.lang.String value) { 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_); bitField0_ |= 0x00000008; 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() { - startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + startingUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; 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 bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStartingUrlsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); @@ -6866,63 +5870,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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(); @@ -6936,19 +5921,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(); } else { @@ -6959,24 +5940,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 (((bitField0_ & 0x00000010) != 0) - && authentication_ != null - && authentication_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + authentication_ != null && + authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance()) { getAuthenticationBuilder().mergeFrom(value); } else { authentication_ = value; @@ -6989,15 +5964,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -7010,67 +5982,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() { bitField0_ |= 0x00000010; 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_; @@ -7078,29 +6034,22 @@ 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. */ @@ -7111,38 +6060,28 @@ public Builder setUserAgentValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.forNumber(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.forNumber(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(); } @@ -7152,14 +6091,11 @@ public Builder setUserAgent( 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() { @@ -7171,7 +6107,6 @@ public Builder clearUserAgent() { private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureBlacklistPatternsIsMutable() { if (!blacklistPatterns_.isModifiable()) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); @@ -7179,46 +6114,38 @@ private void ensureBlacklistPatternsIsMutable() { bitField0_ |= 0x00000040; } /** - * - * *
      * 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() { blacklistPatterns_.makeImmutable(); 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. */ @@ -7226,39 +6153,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); } /** - * - * *
      * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBlacklistPatterns( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); bitField0_ |= 0x00000040; @@ -7266,22 +6187,18 @@ public Builder setBlacklistPatterns(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addBlacklistPatterns( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); bitField0_ |= 0x00000040; @@ -7289,61 +6206,53 @@ public Builder addBlacklistPatterns(java.lang.String value) { 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_); bitField0_ |= 0x00000040; 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() { - blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; + blacklistPatterns_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040);; 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 bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addBlacklistPatternsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); @@ -7354,55 +6263,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 ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * 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(); @@ -7416,8 +6311,6 @@ public Builder setSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7436,22 +6329,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 (((bitField0_ & 0x00000080) != 0) - && schedule_ != null - && schedule_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + schedule_ != null && + schedule_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) { getScheduleBuilder().mergeFrom(value); } else { schedule_ = value; @@ -7464,8 +6352,6 @@ public Builder mergeSchedule( return this; } /** - * - * *
      * The schedule of the ScanConfig.
      * 
@@ -7483,42 +6369,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() { bitField0_ |= 0x00000080; 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.
      * 
@@ -7526,24 +6403,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_ & 0x00000100) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -7551,73 +6425,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. @@ -7633,22 +6484,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(); } @@ -7658,24 +6503,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()); @@ -7684,17 +6522,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() { @@ -7704,34 +6537,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. */ @@ -7739,39 +6563,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. */ @@ -7782,21 +6597,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); @@ -7807,35 +6618,24 @@ 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. */ @@ -7846,47 +6646,30 @@ public Builder setExportToSecurityCommandCenterValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .forNumber(exportToSecurityCommandCenter_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter - .UNRECOGNIZED - : result; + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.forNumber(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(); } @@ -7896,17 +6679,12 @@ public Builder setExportToSecurityCommandCenter( 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() { @@ -7918,47 +6696,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 ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * 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.
      * 
@@ -7979,8 +6744,6 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun v return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -7999,8 +6762,6 @@ public Builder setLatestRun( return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8009,10 +6770,9 @@ public Builder setLatestRun( */ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun value) { if (latestRunBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && latestRun_ != null - && latestRun_ - != com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + latestRun_ != null && + latestRun_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()) { getLatestRunBuilder().mergeFrom(value); } else { latestRun_ = value; @@ -8025,8 +6785,6 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8044,8 +6802,6 @@ public Builder clearLatestRun() { return this; } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8058,8 +6814,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getLatestRunBu return getLatestRunFieldBuilder().getBuilder(); } /** - * - * *
      * Latest ScanRun if available.
      * 
@@ -8070,14 +6824,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.
      * 
@@ -8085,17 +6836,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_; @@ -8103,29 +6851,22 @@ 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. */ @@ -8136,38 +6877,28 @@ public Builder setRiskLevelValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.forNumber(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.forNumber(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(); } @@ -8177,14 +6908,11 @@ public Builder setRiskLevel( 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() { @@ -8193,9 +6921,9 @@ public Builder clearRiskLevel() { 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); } @@ -8205,12 +6933,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(); } @@ -8219,27 +6947,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8254,4 +6982,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java similarity index 74% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java index 86aa9aa64593..bf9c10813984 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,28 +29,25 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
-  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.
@@ -77,10 +56,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.
      * 
@@ -89,8 +67,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.
@@ -100,8 +76,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.
@@ -111,8 +85,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.
@@ -122,8 +94,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.
@@ -133,8 +103,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
-     *
-     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -143,8 +111,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.
      * 
@@ -153,8 +119,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.
@@ -164,8 +128,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.
@@ -175,8 +137,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.
      * 
@@ -185,8 +145,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).
      * 
@@ -195,8 +153,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.
      * 
@@ -205,8 +161,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.
@@ -216,8 +170,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.
      * 
@@ -226,8 +178,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.
@@ -237,8 +187,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.
      * 
@@ -247,8 +195,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DUPLICATE_SCAN_NAME(16, 16), /** - * - * *
      * A field is set to an invalid value.
      * 
@@ -257,8 +203,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.
      * 
@@ -267,8 +211,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.
      * 
@@ -277,8 +219,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.
@@ -288,8 +228,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
-     *
-     *
      * 
      * User tries to update managed scan
      * 
@@ -298,8 +236,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
@@ -310,8 +246,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     MALFORMED_FILTER(22, 22),
     /**
-     *
-     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -320,8 +254,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ MALFORMED_RESOURCE_NAME(23, 23), /** - * - * *
      * The current project is not in an active state.
      * 
@@ -330,8 +262,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ PROJECT_INACTIVE(24, 24), /** - * - * *
      * A required field is not set.
      * 
@@ -340,8 +270,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.
@@ -351,8 +279,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
-     *
-     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -361,8 +287,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.
      * 
@@ -371,8 +295,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.
      * 
@@ -381,8 +303,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).
      * 
@@ -391,8 +311,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.
      * 
@@ -401,8 +319,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.
@@ -412,8 +328,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.
      * 
@@ -422,8 +336,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.
@@ -433,8 +345,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.
@@ -444,8 +354,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
-     *
-     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -454,8 +362,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ TOO_MANY_SCANS(36, 37), /** - * - * *
      * Resolving the details of the current project fails.
      * 
@@ -464,8 +370,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.
      * 
@@ -474,8 +378,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** - * - * *
      * The supplied filter is not supported.
      * 
@@ -484,8 +386,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.
@@ -495,8 +395,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.
      * 
@@ -508,8 +406,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * There is no error.
      * 
@@ -518,8 +414,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final Code OK = CODE_UNSPECIFIED; /** - * - * *
      * There is no error.
      * 
@@ -528,8 +422,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * There is no error.
      * 
@@ -538,8 +430,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.
@@ -549,8 +439,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.
@@ -560,8 +448,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.
@@ -571,8 +457,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.
@@ -582,8 +466,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.
      * 
@@ -592,8 +474,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.
      * 
@@ -602,8 +482,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.
@@ -613,8 +491,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.
@@ -624,8 +500,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.
      * 
@@ -634,8 +508,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).
      * 
@@ -644,8 +516,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.
      * 
@@ -654,8 +524,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.
@@ -665,8 +533,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.
      * 
@@ -675,8 +541,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.
@@ -686,8 +550,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.
      * 
@@ -696,8 +558,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.
      * 
@@ -706,8 +566,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.
      * 
@@ -716,8 +574,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.
      * 
@@ -726,8 +582,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.
@@ -737,8 +591,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
      * 
@@ -747,8 +599,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
@@ -759,8 +609,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).
      * 
@@ -769,8 +617,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.
      * 
@@ -779,8 +625,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROJECT_INACTIVE_VALUE = 24; /** - * - * *
      * A required field is not set.
      * 
@@ -789,8 +633,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.
@@ -800,8 +642,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.
      * 
@@ -810,8 +650,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.
      * 
@@ -820,8 +658,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.
      * 
@@ -830,8 +666,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).
      * 
@@ -840,8 +674,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.
      * 
@@ -850,8 +682,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.
@@ -861,8 +691,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.
      * 
@@ -871,8 +699,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.
@@ -882,8 +708,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.
@@ -893,8 +717,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.
      * 
@@ -903,8 +725,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.
      * 
@@ -913,8 +733,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.
      * 
@@ -923,8 +741,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.
      * 
@@ -933,8 +749,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.
@@ -944,8 +758,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.
      * 
@@ -954,6 +766,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( @@ -978,174 +791,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 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< + 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() { 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; @@ -1167,47 +897,33 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; 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; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.forNumber(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.forNumber(code_); + return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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
@@ -1216,7 +932,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode()
    * 
* * string field_name = 2; - * * @return The fieldName. */ @java.lang.Override @@ -1225,15 +940,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
@@ -1242,15 +956,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 { @@ -1259,7 +974,6 @@ public com.google.protobuf.ByteString getFieldNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1271,10 +985,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_)) { @@ -1289,10 +1002,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_); @@ -1305,16 +1017,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1336,104 +1048,98 @@ 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
@@ -1443,32 +1149,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1479,9 +1186,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
@@ -1500,11 +1207,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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result = new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1523,39 +1227,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig
     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;
@@ -1563,8 +1266,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());
       }
@@ -1599,25 +1301,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                fieldName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              fieldName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1627,34 +1326,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. */ @@ -1665,33 +1356,24 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.forNumber(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.forNumber(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. */ @@ -1705,14 +1387,11 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanConfigErro 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() { @@ -1724,8 +1403,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
@@ -1734,13 +1411,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; @@ -1749,8 +1426,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
@@ -1759,14 +1434,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 { @@ -1774,8 +1450,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
@@ -1784,22 +1458,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fieldName_ = value; bitField0_ |= 0x00000002; 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
@@ -1808,7 +1478,6 @@ public Builder setFieldName(java.lang.String value) {
      * 
* * string field_name = 2; - * * @return This builder for chaining. */ public Builder clearFieldName() { @@ -1818,8 +1487,6 @@ public Builder clearFieldName() { 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
@@ -1828,23 +1495,21 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFieldNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fieldName_ = value; bitField0_ |= 0x00000002; 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); } @@ -1854,12 +1519,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(); } @@ -1868,27 +1533,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1903,4 +1568,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java similarity index 68% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java index 0a7d57154d61..61d24001a4fa 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java new file mode 100644 index 000000000000..fde1b52897af --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java @@ -0,0 +1,94 @@ +// 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\236\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\024ScanCon" + + "figErrorProtoP\001ZZcloud.google.com/go/web" + + "securityscanner/apiv1beta/websecuritysca" + + "nnerpb;websecurityscannerpb\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[] { + }); + 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java similarity index 77% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java index 6597b06918ff..3adb81e5b36c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java new file mode 100644 index 000000000000..c46c06b93fb5 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\"\252\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014d" + + "isplay_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 \001(\005" + + "\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Y\n\016authent" + + "ication\030\005 \001(\0132A.google.cloud.websecurity" + + "scanner.v1beta.ScanConfig.Authentication" + + "\022P\n\nuser_agent\030\006 \001(\0162<.google.cloud.webs" + + "ecurityscanner.v1beta.ScanConfig.UserAge" + + "nt\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedu" + + "le\030\010 \001(\0132;.google.cloud.websecurityscann" + + "er.v1beta.ScanConfig.Schedule\022[\n\020target_" + + "platforms\030\t \003(\0162A.google.cloud.websecuri" + + "tyscanner.v1beta.ScanConfig.TargetPlatfo" + + "rm\022{\n!export_to_security_command_center\030" + + "\n \001(\0162P.google.cloud.websecurityscanner." + + "v1beta.ScanConfig.ExportToSecurityComman" + + "dCenter\022C\n\nlatest_run\030\013 \001(\0132/.google.clo" + + "ud.websecurityscanner.v1beta.ScanRun\022P\n\n" + + "risk_level\030\014 \001(\0162<.google.cloud.websecur" + + "ityscanner.v1beta.ScanConfig.RiskLevel\032\225" + + "\003\n\016Authentication\022i\n\016google_account\030\001 \001(" + + "\0132O.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfig.Authentication.GoogleAccou" + + "ntH\000\022i\n\016custom_account\030\002 \001(\0132O.google.cl" + + "oud.websecurityscanner.v1beta.ScanConfig" + + ".Authentication.CustomAccountH\000\032@\n\rGoogl" + + "eAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010pass" + + "word\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n\010us" + + "ername\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB\005\342A" + + "\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authenti" + + "cation\032c\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022$\n\026interva" + + "l_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAgent" + + "\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_L" + + "INUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPH" + + "ONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFO" + + "RM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMP" + + "UTE\020\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECI" + + "FIED\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToS" + + "ecurityCommandCenter\0221\n-EXPORT_TO_SECURI" + + "TY_COMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABL" + + "ED\020\001\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\022,projects/" + + "{project}/scanConfigs/{scan_config}B\231\002\n*" + + "com.google.cloud.websecurityscanner.v1be" + + "taB\017ScanConfigProtoP\001ZZcloud.google.com/" + + "go/websecurityscanner/apiv1beta/websecur" + + "ityscannerpb;websecurityscannerpb\252\002&Goog" + + "le.Cloud.WebSecurityScanner.V1Beta\312\002&Goo" + + "gle\\Cloud\\WebSecurityScanner\\V1beta\352\002)Go" + + "ogle::Cloud::WebSecurityScanner::V1betab" + + "\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.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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java similarity index 71% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java index a19f2dfcdbab..ae73b91b7531 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,38 +29,34 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
-  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.
@@ -88,8 +66,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum {
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -98,8 +74,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ QUEUED(1), /** - * - * *
      * The scan is in progress.
      * 
@@ -108,8 +82,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ SCANNING(2), /** - * - * *
      * The scan is either finished or stopped by user.
      * 
@@ -121,8 +93,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -132,8 +102,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.
      * 
@@ -142,8 +110,6 @@ public enum ExecutionState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 1; /** - * - * *
      * The scan is in progress.
      * 
@@ -152,8 +118,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.
      * 
@@ -162,6 +126,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( @@ -186,53 +151,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; @@ -250,18 +212,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.
@@ -271,8 +230,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -281,8 +238,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ SUCCESS(1), /** - * - * *
      * The scan finished with errors.
      * 
@@ -291,8 +246,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(2), /** - * - * *
      * The scan was terminated by user.
      * 
@@ -304,8 +257,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -315,8 +266,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * The scan finished without errors.
      * 
@@ -325,8 +274,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCESS_VALUE = 1; /** - * - * *
      * The scan finished with errors.
      * 
@@ -335,8 +282,6 @@ public enum ResultState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; /** - * - * *
      * The scan was terminated by user.
      * 
@@ -345,6 +290,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( @@ -369,53 +315,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; @@ -433,12 +376,9 @@ private ResultState(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -446,7 +386,6 @@ private ResultState(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -455,15 +394,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}'.
@@ -471,15 +409,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 { @@ -490,93 +429,65 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; 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; * @return The executionState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.forNumber( - executionState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.forNumber(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_ = 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; - * * @return The resultState. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.forNumber(resultState_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.forNumber(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 @@ -584,14 +495,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 @@ -599,8 +507,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The time at which the ScanRun started.
    * 
@@ -615,15 +521,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 @@ -631,15 +534,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 @@ -647,8 +547,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.
@@ -664,15 +562,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_ = 0L;
   /**
-   *
-   *
    * 
    * 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 @@ -683,8 +578,6 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_ = 0L; /** - * - * *
    * 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,7 +586,6 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -704,14 +596,11 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_ = false; /** - * - * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; - * * @return The hasVulnerabilities. */ @java.lang.Override @@ -722,8 +611,6 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_ = 0; /** - * - * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -732,7 +619,6 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -743,15 +629,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 @@ -759,26 +642,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.
@@ -787,96 +663,72 @@ 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() {
-    return errorTrace_ == null
-        ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()
-        : errorTrace_;
+  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder getErrorTraceOrBuilder() {
+    return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
-
   @SuppressWarnings("serial")
-  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; @@ -888,19 +740,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) { @@ -939,40 +787,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -982,34 +835,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1036,11 +897,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()) { @@ -1057,103 +921,98 @@ 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
@@ -1161,32 +1020,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1224,9 +1084,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
@@ -1245,18 +1105,14 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.websecurityscanner.v1beta.ScanRun result) {
+    private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ScanRun result) {
       if (warningTracesBuilder_ == null) {
         if (((bitField0_ & 0x00000400) != 0)) {
           warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -1280,10 +1136,14 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRun re
         result.resultState_ = resultState_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.urlsCrawledCount_ = urlsCrawledCount_;
@@ -1298,7 +1158,9 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRun re
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.errorTrace_ = errorTraceBuilder_ == null ? errorTrace_ : errorTraceBuilder_.build();
+        result.errorTrace_ = errorTraceBuilder_ == null
+            ? errorTrace_
+            : errorTraceBuilder_.build();
       }
     }
 
@@ -1306,39 +1168,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRun re
     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;
@@ -1346,8 +1207,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_;
         bitField0_ |= 0x00000001;
@@ -1398,10 +1258,9 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun othe
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            warningTracesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWarningTracesFieldBuilder()
-                    : null;
+            warningTracesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWarningTracesFieldBuilder() : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1433,87 +1292,81 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                executionState_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 24:
-              {
-                resultState_ = input.readEnum();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            case 34:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
-                urlsCrawledCount_ = input.readInt64();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 56:
-              {
-                urlsTestedCount_ = input.readInt64();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            case 64:
-              {
-                hasVulnerabilities_ = input.readBool();
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 64
-            case 72:
-              {
-                progressPercent_ = input.readInt32();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 72
-            case 82:
-              {
-                input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace m =
-                    input.readMessage(
-                        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(),
-                        extensionRegistry);
-                if (warningTracesBuilder_ == null) {
-                  ensureWarningTracesIsMutable();
-                  warningTraces_.add(m);
-                } else {
-                  warningTracesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 90
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              executionState_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 24: {
+              resultState_ = input.readEnum();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            case 34: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              urlsCrawledCount_ = input.readInt64();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 56: {
+              urlsTestedCount_ = input.readInt64();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            case 64: {
+              hasVulnerabilities_ = input.readBool();
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 64
+            case 72: {
+              progressPercent_ = input.readInt32();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 72
+            case 82: {
+              input.readMessage(
+                  getErrorTraceFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 82
+            case 90: {
+              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace m =
+                  input.readMessage(
+                      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(),
+                      extensionRegistry);
+              if (warningTracesBuilder_ == null) {
+                ensureWarningTracesIsMutable();
+                warningTraces_.add(m);
+              } else {
+                warningTracesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 90
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1523,13 +1376,10 @@ public Builder mergeFrom(
       } // finally
       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}'.
@@ -1537,13 +1387,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; @@ -1552,8 +1402,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1561,14 +1409,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 { @@ -1576,8 +1425,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}'.
@@ -1585,22 +1432,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1608,7 +1451,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1618,8 +1460,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1627,14 +1467,12 @@ 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1644,31 +1482,22 @@ 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. */ @@ -1679,41 +1508,28 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.forNumber( - 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.forNumber(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(); } @@ -1723,15 +1539,11 @@ public Builder setExecutionState( 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() { @@ -1743,31 +1555,24 @@ 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. */ @@ -1778,40 +1583,30 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1821,15 +1616,12 @@ public Builder setResultState( 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() { @@ -1841,33 +1633,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 ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1878,8 +1661,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1900,15 +1681,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(); } else { @@ -1919,8 +1699,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1929,9 +1707,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1944,8 +1722,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1963,8 +1739,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1977,8 +1751,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time at which the ScanRun started.
      * 
@@ -1989,12 +1761,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.
      * 
@@ -2002,17 +1773,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_; @@ -2020,35 +1788,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 ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * 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() { @@ -2059,8 +1818,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.
@@ -2082,8 +1839,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.
@@ -2091,7 +1846,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();
       } else {
@@ -2102,8 +1858,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.
@@ -2113,9 +1867,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && endTime_ != null
-            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          endTime_ != null &&
+          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -2128,8 +1882,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.
@@ -2148,8 +1900,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.
@@ -2163,8 +1913,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -2176,12 +1924,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.
@@ -2190,33 +1937,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 @@ -2224,15 +1965,12 @@ 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. */ @@ -2244,15 +1982,12 @@ public Builder setUrlsCrawledCount(long value) { 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() { @@ -2262,10 +1997,8 @@ public Builder clearUrlsCrawledCount() { 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
@@ -2274,7 +2007,6 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; - * * @return The urlsTestedCount. */ @java.lang.Override @@ -2282,8 +2014,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
@@ -2292,7 +2022,6 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; - * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -2304,8 +2033,6 @@ public Builder setUrlsTestedCount(long value) { 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
@@ -2314,7 +2041,6 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; - * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -2324,16 +2050,13 @@ public Builder clearUrlsTestedCount() { 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 @@ -2341,14 +2064,11 @@ 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. */ @@ -2360,14 +2080,11 @@ public Builder setHasVulnerabilities(boolean value) { return this; } /** - * - * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; - * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { @@ -2377,10 +2094,8 @@ public Builder clearHasVulnerabilities() { 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.
@@ -2389,7 +2104,6 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; - * * @return The progressPercent. */ @java.lang.Override @@ -2397,8 +2111,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.
@@ -2407,7 +2119,6 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; - * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -2419,8 +2130,6 @@ public Builder setProgressPercent(int value) { return this; } /** - * - * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2429,7 +2138,6 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -2441,49 +2149,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 ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * 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.
@@ -2491,8 +2186,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();
@@ -2506,8 +2200,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.
@@ -2527,8 +2219,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.
@@ -2536,14 +2226,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 (((bitField0_ & 0x00000200) != 0)
-            && errorTrace_ != null
-            && errorTrace_
-                != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0) &&
+          errorTrace_ != null &&
+          errorTrace_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()) {
           getErrorTraceBuilder().mergeFrom(value);
         } else {
           errorTrace_ = value;
@@ -2556,8 +2243,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.
@@ -2576,8 +2261,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.
@@ -2585,15 +2268,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() {
       bitField0_ |= 0x00000200;
       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.
@@ -2601,19 +2281,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.
@@ -2622,53 +2298,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_ & 0x00000400) != 0)) {
-        warningTraces_ =
-            new java.util.ArrayList(
-                warningTraces_);
+        warningTraces_ = new java.util.ArrayList(warningTraces_);
         bitField0_ |= 0x00000400;
-      }
+       }
     }
 
     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 { @@ -2676,15 +2338,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) { @@ -2694,18 +2352,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 { @@ -2713,15 +2366,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) { @@ -2738,19 +2387,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()); @@ -2761,18 +2405,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(); @@ -2786,15 +2425,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) { @@ -2811,15 +2446,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) { @@ -2833,19 +2464,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()); @@ -2856,22 +2482,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); @@ -2879,15 +2501,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) { @@ -2900,15 +2518,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) { @@ -2921,53 +2535,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 { @@ -2975,67 +2575,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_ & 0x00000400) != 0), getParentForChildren(), @@ -3044,9 +2622,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); } @@ -3056,12 +2634,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(); } @@ -3070,27 +2648,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3105,4 +2683,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java index f8798647574a..f906b4b51319 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,44 +11,40 @@
  *
  * 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();
   }
 
-  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.
@@ -74,10 +53,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.
      * 
@@ -86,8 +64,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -96,8 +72,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.
@@ -107,8 +81,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCAN_CONFIG_ISSUE(2),
     /**
-     *
-     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -118,8 +90,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.
      * 
@@ -128,8 +98,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.
@@ -139,8 +107,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
@@ -154,8 +120,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value is never used.
      * 
@@ -164,8 +128,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.
      * 
@@ -174,8 +136,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.
@@ -185,8 +145,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.
@@ -196,8 +154,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.
      * 
@@ -206,8 +162,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.
@@ -217,8 +171,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
@@ -229,6 +181,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(
@@ -253,59 +206,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 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<
+        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() {
       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;
@@ -325,45 +272,32 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   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; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.forNumber(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.forNumber(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
@@ -371,7 +305,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 @@ -379,8 +312,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
@@ -388,18 +319,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
@@ -409,18 +335,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() {
-    return scanConfigError_ == null
-        ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()
-        : scanConfigError_;
+  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getScanConfigErrorOrBuilder() {
+    return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_;
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_ = 0;
   /**
-   *
-   *
    * 
    * 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
@@ -428,7 +349,6 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getScanConfigE
    * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -437,7 +357,6 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -449,10 +368,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) { @@ -470,16 +388,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -489,20 +408,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -528,104 +448,98 @@ 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.
@@ -633,32 +547,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -674,14 +589,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();
     }
 
@@ -696,24 +610,21 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result) {
+    private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.code_ = code_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.scanConfigError_ =
-            scanConfigErrorBuilder_ == null ? scanConfigError_ : scanConfigErrorBuilder_.build();
+        result.scanConfigError_ = scanConfigErrorBuilder_ == null
+            ? scanConfigError_
+            : scanConfigErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.mostCommonHttpErrorCode_ = mostCommonHttpErrorCode_;
@@ -724,39 +635,38 @@ private void buildPartial0(
     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;
@@ -764,9 +674,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());
       }
@@ -802,31 +710,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                input.readMessage(getScanConfigErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 24:
-              {
-                mostCommonHttpErrorCode_ = input.readInt32();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 24
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              input.readMessage(
+                  getScanConfigErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 24: {
+              mostCommonHttpErrorCode_ = input.readInt32();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 24
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -836,34 +742,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. */ @@ -874,38 +772,28 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.forNumber(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.forNumber(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(); } @@ -915,14 +803,11 @@ public Builder setCode( return this; } /** - * - * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -934,13 +819,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
@@ -948,15 +828,12 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; - * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -964,21 +841,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
@@ -987,8 +859,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();
@@ -1002,8 +873,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
@@ -1024,8 +893,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
@@ -1034,14 +901,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 (((bitField0_ & 0x00000002) != 0)
-            && scanConfigError_ != null
-            && scanConfigError_
-                != com.google.cloud.websecurityscanner.v1beta.ScanConfigError
-                    .getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          scanConfigError_ != null &&
+          scanConfigError_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()) {
           getScanConfigErrorBuilder().mergeFrom(value);
         } else {
           scanConfigError_ = value;
@@ -1054,8 +918,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
@@ -1075,8 +937,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
@@ -1085,15 +945,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() {
       bitField0_ |= 0x00000002;
       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
@@ -1102,19 +959,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
@@ -1124,26 +977,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
@@ -1151,7 +999,6 @@ public Builder clearScanConfigError() {
      * 
* * int32 most_common_http_error_code = 3; - * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1159,8 +1006,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
@@ -1168,7 +1013,6 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; - * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ @@ -1180,8 +1024,6 @@ public Builder setMostCommonHttpErrorCode(int value) { 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
@@ -1189,7 +1031,6 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; - * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { @@ -1198,9 +1039,9 @@ public Builder clearMostCommonHttpErrorCode() { 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); } @@ -1210,13 +1051,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(); } @@ -1225,27 +1065,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1260,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java index dfd2ae419d8f..abfe6d8c877f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java @@ -1,56 +1,32 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java new file mode 100644 index 000000000000..f2567d9ff36a --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\240\002\n*com.google.cloud" + + ".websecurityscanner.v1betaB\026ScanRunError" + + "TraceProtoP\001ZZcloud.google.com/go/websec" + + "urityscanner/apiv1beta/websecurityscanne" + + "rpb;websecurityscannerpb\252\002&Google.Cloud." + + "WebSecurityScanner.V1Beta\312\002&Google\\Cloud" + + "\\WebSecurityScanner\\V1beta\352\002)Google::Clo" + + "ud::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java similarity index 84% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java index 2467b98e2bcc..f57585131d4f 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java new file mode 100644 index 000000000000..998af3f12479 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\226\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\014ScanRun" + + "ProtoP\001ZZcloud.google.com/go/websecurity" + + "scanner/apiv1beta/websecurityscannerpb;w" + + "ebsecurityscannerpb\252\002&Google.Cloud.WebSe" + + "curityScanner.V1Beta\312\002&Google\\Cloud\\WebS" + + "ecurityScanner\\V1beta\352\002)Google::Cloud::W" + + "ebSecurityScanner::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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java similarity index 66% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java index edeaa85e6bf1..03a7e3b055fd 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,44 +12,40 @@
  *
  * 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();
   }
 
-  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.
@@ -75,10 +54,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.
      * 
@@ -87,8 +65,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
@@ -99,8 +75,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.
@@ -110,8 +84,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,
@@ -122,8 +94,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
-     *
-     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -135,8 +105,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value is never used.
      * 
@@ -145,8 +113,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
@@ -157,8 +123,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.
@@ -168,8 +132,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,
@@ -180,8 +142,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.
      * 
@@ -190,6 +150,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( @@ -214,55 +175,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; @@ -282,42 +239,30 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; 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; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.forNumber(code_); - return result == null - ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.forNumber(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; @@ -329,10 +274,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_); } getUnknownFields().writeTo(output); @@ -344,10 +288,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -357,13 +300,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -385,104 +327,98 @@ 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
@@ -491,32 +427,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -526,14 +463,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();
     }
 
@@ -548,17 +484,13 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result = new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result) {
+    private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.code_ = code_;
@@ -569,39 +501,38 @@ private void buildPartial0(
     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;
@@ -609,9 +540,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());
       }
@@ -641,19 +570,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -663,34 +590,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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. */ @@ -701,38 +620,28 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.forNumber(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.forNumber(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(); } @@ -742,14 +651,11 @@ public Builder setCode( return this; } /** - * - * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -758,9 +664,9 @@ public Builder clearCode() { 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); } @@ -770,43 +676,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,8 +722,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java index fb409d23723d..80d1a309d602 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java new file mode 100644 index 000000000000..8da484c815d3 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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\242\002\n*com.go" + + "ogle.cloud.websecurityscanner.v1betaB\030Sc" + + "anRunWarningTraceProtoP\001ZZcloud.google.c" + + "om/go/websecurityscanner/apiv1beta/webse" + + "curityscannerpb;websecurityscannerpb\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_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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java similarity index 61% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java index dbe6116453f1..b3509d335192 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java @@ -1,83 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -86,32 +61,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 { @@ -120,7 +93,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -132,7 +104,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_); } @@ -156,15 +129,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +157,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +291,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(); } @@ -345,17 +312,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,39 +329,38 @@ private void buildPartial0( 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; @@ -406,9 +368,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_; bitField0_ |= 0x00000001; @@ -440,19 +400,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,28 +420,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -492,24 +445,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 { @@ -517,41 +467,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -561,33 +500,27 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -597,43 +530,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -645,8 +576,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..ad91dfc00c42 --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java similarity index 63% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java index 8f704f3de9bd..5972043eff0c 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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; - @SuppressWarnings("serial") 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 @@ -87,33 +62,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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,14 +293,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(); } @@ -347,17 +314,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,39 +331,38 @@ private void buildPartial0( 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; @@ -408,9 +370,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_; bitField0_ |= 0x00000001; @@ -442,19 +402,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,29 +422,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -495,25 +448,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 { @@ -521,43 +471,32 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -567,34 +506,28 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -604,13 +537,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(); } @@ -619,27 +551,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -654,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..451ee9bd6f6c --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java index 553c56e3e8f5..9ae45d972c28 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java @@ -1,80 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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(); } - 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 @@ -82,60 +59,43 @@ 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() { - return scanConfig_ == null - ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() - : scanConfig_; + return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; } 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 @@ -143,17 +103,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 @@ -161,16 +117,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() { @@ -178,7 +131,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +142,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()); } @@ -207,10 +160,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -220,21 +175,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -261,138 +217,131 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,16 +360,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 @@ -434,23 +381,23 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null + ? scanConfig_ + : scanConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -458,51 +405,46 @@ private void buildPartial0( 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()); } @@ -535,25 +477,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getScanConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -563,69 +506,49 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * 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) { @@ -641,17 +564,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) { @@ -665,24 +584,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 (((bitField0_ & 0x00000001) != 0) - && scanConfig_ != null - && scanConfig_ - != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + scanConfig_ != null && + scanConfig_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -695,17 +609,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -718,17 +628,13 @@ 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() { bitField0_ |= 0x00000001; @@ -736,52 +642,40 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf 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_; @@ -789,61 +683,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 ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * 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) { @@ -859,18 +737,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(); } else { @@ -881,22 +757,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 (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -909,16 +782,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -931,16 +801,13 @@ 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() { bitField0_ |= 0x00000002; @@ -948,57 +815,47 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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); } @@ -1008,43 +865,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,8 +911,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java index 0f6c75ae2d2d..64762742d8f0 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java @@ -1,116 +1,75 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java similarity index 67% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java index 143523ddeacc..1fb413c279e1 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,38 +27,33 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
-  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;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object contentType_ = "";
   /**
-   *
-   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; - * * @return The contentType. */ @java.lang.Override @@ -85,29 +62,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 { @@ -116,18 +93,14 @@ public com.google.protobuf.ByteString getContentTypeBytes() { } public static final int RESOURCE_URL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object resourceUrl_ = ""; /** - * - * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; - * * @return The resourceUrl. */ @java.lang.Override @@ -136,29 +109,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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getResourceUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,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_); } @@ -209,16 +182,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -240,104 +214,98 @@ 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.
@@ -345,32 +313,33 @@ 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -381,14 +350,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();
     }
 
@@ -403,17 +371,13 @@ 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);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result = new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.websecurityscanner.v1beta.ViolatingResource result) {
+    private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ViolatingResource result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.contentType_ = contentType_;
@@ -427,39 +391,38 @@ private void buildPartial0(
     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;
@@ -467,9 +430,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_;
         bitField0_ |= 0x00000001;
@@ -506,25 +467,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                contentType_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                resourceUrl_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              contentType_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              resourceUrl_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -534,25 +492,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     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; @@ -561,21 +516,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 { @@ -583,35 +537,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } contentType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; - * * @return This builder for chaining. */ public Builder clearContentType() { @@ -621,21 +568,17 @@ public Builder clearContentType() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContentTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00000001; @@ -645,20 +588,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; @@ -667,21 +608,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 { @@ -689,35 +629,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } resourceUrl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; - * * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -727,30 +660,26 @@ public Builder clearResourceUrl() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResourceUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceUrl_ = value; bitField0_ |= 0x00000002; 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); } @@ -760,13 +689,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(); } @@ -775,27 +703,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -810,4 +738,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java similarity index 55% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java index 0453152fc596..4021d2289e10 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java similarity index 64% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java index 6694df97a89f..b179468bb8fb 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,99 +26,84 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableHeaders(); } - 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_ = ""; @@ -144,38 +111,33 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } - 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; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Header name.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -184,29 +146,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 { @@ -215,18 +177,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** - * - * *
      * Header value.
      * 
* * string value = 2; - * * @return The value. */ @java.lang.Override @@ -235,29 +193,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 { @@ -266,7 +224,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +235,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_); } @@ -308,16 +266,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,95 +298,89 @@ 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 @@ -437,42 +390,39 @@ 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() - private Builder() {} + // Construct using com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -483,16 +433,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 @@ -506,17 +454,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -530,53 +474,46 @@ private void buildPartial0( 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_; bitField0_ |= 0x00000001; @@ -613,25 +550,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -641,25 +575,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; 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; @@ -668,21 +599,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 { @@ -690,35 +620,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Header name.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -728,21 +651,17 @@ public Builder clearName() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -752,20 +671,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; @@ -774,21 +691,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 { @@ -796,35 +712,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValue( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Header value.
        * 
* * string value = 2; - * * @return This builder for chaining. */ public Builder clearValue() { @@ -834,28 +743,23 @@ public Builder clearValue() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -868,44 +772,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -917,180 +818,135 @@ 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; - @SuppressWarnings("serial") - 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; - @SuppressWarnings("serial") - 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; @@ -1102,7 +958,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)); } @@ -1119,10 +976,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1132,16 +991,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1167,136 +1027,131 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1319,14 +1174,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(); } @@ -1341,18 +1195,14 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { + private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -1373,8 +1223,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { int from_bitField0_ = bitField0_; } @@ -1382,39 +1231,38 @@ private void buildPartial0( 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; @@ -1422,9 +1270,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()) { @@ -1443,10 +1289,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_); } @@ -1470,10 +1315,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_); } @@ -1505,43 +1349,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .parser(), - extensionRegistry); - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(m); - } else { - headersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header - .parser(), - extensionRegistry); - if (missingHeadersBuilder_ == null) { - ensureMissingHeadersIsMutable(); - missingHeaders_.add(m); - } else { - missingHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1551,39 +1390,28 @@ public Builder mergeFrom( } // finally 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 { @@ -1591,14 +1419,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) { @@ -1608,17 +1433,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 { @@ -1626,14 +1447,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) { @@ -1650,19 +1468,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()); @@ -1673,17 +1486,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(); @@ -1697,14 +1506,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) { @@ -1721,18 +1527,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()); @@ -1743,19 +1545,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()); @@ -1766,22 +1563,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); @@ -1789,14 +1582,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) { @@ -1809,14 +1599,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) { @@ -1829,50 +1616,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 { @@ -1880,105 +1656,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 { @@ -1986,15 +1731,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) { @@ -2004,18 +1745,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 { @@ -2023,15 +1759,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) { @@ -2048,20 +1780,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()); @@ -2072,18 +1798,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(); @@ -2097,15 +1818,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) { @@ -2122,19 +1839,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()); @@ -2145,20 +1857,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()); @@ -2169,23 +1875,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); @@ -2193,15 +1894,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) { @@ -2214,15 +1911,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) { @@ -2235,53 +1928,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 { @@ -2289,70 +1968,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(), @@ -2361,9 +2015,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); } @@ -2373,13 +2027,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(); } @@ -2388,27 +2041,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2423,4 +2076,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java similarity index 51% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java index f3fb687b8ce1..9bdd7c490fe8 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java @@ -1,150 +1,97 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java index 6645506168aa..e28603e315e7 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java @@ -1,109 +1,82 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.emptyList(); + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VulnerableParameters(); } - 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; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -111,23 +84,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; @@ -139,7 +109,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)); } @@ -168,15 +139,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -198,153 +169,148 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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(); } @@ -359,17 +325,13 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result) { + private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { parameterNames_.makeImmutable(); @@ -381,50 +343,46 @@ private void buildPartial0( 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_; @@ -461,20 +419,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureParameterNamesIsMutable(); - parameterNames_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -484,12 +440,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureParameterNamesIsMutable() { if (!parameterNames_.isModifiable()) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); @@ -497,43 +451,35 @@ private void ensureParameterNamesIsMutable() { 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() { parameterNames_.makeImmutable(); 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. */ @@ -541,37 +487,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParameterNames( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParameterNamesIsMutable(); parameterNames_.set(index, value); bitField0_ |= 0x00000001; @@ -579,21 +519,17 @@ public Builder setParameterNames(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addParameterNames( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureParameterNamesIsMutable(); parameterNames_.add(value); bitField0_ |= 0x00000001; @@ -601,58 +537,50 @@ public Builder addParameterNames(java.lang.String value) { 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; - * * @return This builder for chaining. */ public Builder clearParameterNames() { - parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + parameterNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addParameterNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); @@ -660,9 +588,9 @@ public Builder addParameterNamesBytes(com.google.protobuf.ByteString 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); } @@ -672,43 +600,41 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -720,8 +646,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java similarity index 60% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java index 507620bf2446..c79d07da523d 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java @@ -1,76 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java new file mode 100644 index 000000000000..e4097a30499d --- /dev/null +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java @@ -0,0 +1,411 @@ +// 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\"\256\001\n\027CreateScanConfigRequ" + + "est\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022M\n\013sca" + + "n_config\030\002 \001(\01322.google.cloud.websecurit" + + "yscanner.v1beta.ScanConfigB\004\342A\001\002\"^\n\027Dele" + + "teScanConfigRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372" + + "A.\n,websecurityscanner.googleapis.com/Sc" + + "anConfig\"[\n\024GetScanConfigRequest\022C\n\004name" + + "\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanner.goog" + + "leapis.com/ScanConfig\"\205\001\n\026ListScanConfig" + + "sRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\022" + + "\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\237\001" + + "\n\027UpdateScanConfigRequest\022M\n\013scan_config" + + "\030\002 \001(\01322.google.cloud.websecurityscanner" + + ".v1beta.ScanConfigB\004\342A\001\002\0225\n\013update_mask\030" + + "\003 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"" + + "|\n\027ListScanConfigsResponse\022H\n\014scan_confi" + + "gs\030\001 \003(\01322.google.cloud.websecurityscann" + + "er.v1beta.ScanConfig\022\027\n\017next_page_token\030" + + "\002 \001(\t\"Z\n\023StartScanRunRequest\022C\n\004name\030\001 \001" + + "(\tB5\342A\001\002\372A.\n,websecurityscanner.googleap" + + "is.com/ScanConfig\"U\n\021GetScanRunRequest\022@" + + "\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanne" + + "r.googleapis.com/ScanRun\"\203\001\n\023ListScanRun" + + "sRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\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\"s" + + "\n\024ListScanRunsResponse\022B\n\tscan_runs\030\001 \003(" + + "\0132/.google.cloud.websecurityscanner.v1be" + + "ta.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"V\n\022S" + + "topScanRunRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+" + + "\n)websecurityscanner.googleapis.com/Scan" + + "Run\"\203\001\n\026ListCrawledUrlsRequest\022B\n\006parent" + + "\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanner.goog" + + "leapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\"|\n\027ListCrawledUrlsResp" + + "onse\022H\n\014crawled_urls\030\001 \003(\01322.google.clou" + + "d.websecurityscanner.v1beta.CrawledUrl\022\027" + + "\n\017next_page_token\030\002 \001(\t\"U\n\021GetFindingReq" + + "uest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurity" + + "scanner.googleapis.com/Finding\"\226\001\n\023ListF" + + "indingsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n" + + ")websecurityscanner.googleapis.com/ScanR" + + "un\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\npage_token\030\003" + + " \001(\t\022\021\n\tpage_size\030\004 \001(\005\"r\n\024ListFindingsR" + + "esponse\022A\n\010findings\030\001 \003(\0132/.google.cloud" + + ".websecurityscanner.v1beta.Finding\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"a\n\033ListFindingTypeSt" + + "atsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)web" + + "securityscanner.googleapis.com/ScanRun\"t" + + "\n\034ListFindingTypeStatsResponse\022T\n\022findin" + + "g_type_stats\030\001 \003(\01328.google.cloud.websec" + + "urityscanner.v1beta.FindingTypeStats2\216\026\n" + + "\022WebSecurityScanner\022\332\001\n\020CreateScanConfig" + + "\022?.google.cloud.websecurityscanner.v1bet" + + "a.CreateScanConfigRequest\0322.google.cloud" + + ".websecurityscanner.v1beta.ScanConfig\"Q\332" + + "A\022parent,scan_config\202\323\344\223\0026\"\'/v1beta/{par" + + "ent=projects/*}/scanConfigs:\013scan_config" + + "\022\243\001\n\020DeleteScanConfig\022?.google.cloud.web" + + "securityscanner.v1beta.DeleteScanConfigR" + + "equest\032\026.google.protobuf.Empty\"6\332A\004name\202" + + "\323\344\223\002)*\'/v1beta/{name=projects/*/scanConf" + + "igs/*}\022\271\001\n\rGetScanConfig\022<.google.cloud." + + "websecurityscanner.v1beta.GetScanConfigR" + + "equest\0322.google.cloud.websecurityscanner" + + ".v1beta.ScanConfig\"6\332A\004name\202\323\344\223\002)\022\'/v1be" + + "ta/{name=projects/*/scanConfigs/*}\022\314\001\n\017L" + + "istScanConfigs\022>.google.cloud.websecurit" + + "yscanner.v1beta.ListScanConfigsRequest\032?" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanConfigsResponse\"8\332A\006parent\202\323\344\223\002)" + + "\022\'/v1beta/{parent=projects/*}/scanConfig" + + "s\022\353\001\n\020UpdateScanConfig\022?.google.cloud.we" + + "bsecurityscanner.v1beta.UpdateScanConfig" + + "Request\0322.google.cloud.websecurityscanne" + + "r.v1beta.ScanConfig\"b\332A\027scan_config,upda" + + "te_mask\202\323\344\223\002B23/v1beta/{scan_config.name" + + "=projects/*/scanConfigs/*}:\013scan_config\022" + + "\275\001\n\014StartScanRun\022;.google.cloud.websecur" + + "ityscanner.v1beta.StartScanRunRequest\032/." + + "google.cloud.websecurityscanner.v1beta.S" + + "canRun\"?\332A\004name\202\323\344\223\0022\"-/v1beta/{name=pro" + + "jects/*/scanConfigs/*}:start:\001*\022\273\001\n\nGetS" + + "canRun\0229.google.cloud.websecurityscanner" + + ".v1beta.GetScanRunRequest\032/.google.cloud" + + ".websecurityscanner.v1beta.ScanRun\"A\332A\004n" + + "ame\202\323\344\223\0024\0222/v1beta/{name=projects/*/scan" + + "Configs/*/scanRuns/*}\022\316\001\n\014ListScanRuns\022;" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanRunsRequest\032<.google.cloud.webse" + + "curityscanner.v1beta.ListScanRunsRespons" + + "e\"C\332A\006parent\202\323\344\223\0024\0222/v1beta/{parent=proj" + + "ects/*/scanConfigs/*}/scanRuns\022\305\001\n\013StopS" + + "canRun\022:.google.cloud.websecurityscanner" + + ".v1beta.StopScanRunRequest\032/.google.clou" + + "d.websecurityscanner.v1beta.ScanRun\"I\332A\004" + + "name\202\323\344\223\002<\"7/v1beta/{name=projects/*/sca" + + "nConfigs/*/scanRuns/*}:stop:\001*\022\345\001\n\017ListC" + + "rawledUrls\022>.google.cloud.websecuritysca" + + "nner.v1beta.ListCrawledUrlsRequest\032?.goo" + + "gle.cloud.websecurityscanner.v1beta.List" + + "CrawledUrlsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v" + + "1beta/{parent=projects/*/scanConfigs/*/s" + + "canRuns/*}/crawledUrls\022\306\001\n\nGetFinding\0229." + + "google.cloud.websecurityscanner.v1beta.G" + + "etFindingRequest\032/.google.cloud.websecur" + + "ityscanner.v1beta.Finding\"L\332A\004name\202\323\344\223\002?" + + "\022=/v1beta/{name=projects/*/scanConfigs/*" + + "/scanRuns/*/findings/*}\022\340\001\n\014ListFindings" + + "\022;.google.cloud.websecurityscanner.v1bet" + + "a.ListFindingsRequest\032<.google.cloud.web" + + "securityscanner.v1beta.ListFindingsRespo" + + "nse\"U\332A\rparent,filter\202\323\344\223\002?\022=/v1beta/{pa" + + "rent=projects/*/scanConfigs/*/scanRuns/*" + + "}/findings\022\371\001\n\024ListFindingTypeStats\022C.go" + + "ogle.cloud.websecurityscanner.v1beta.Lis" + + "tFindingTypeStatsRequest\032D.google.cloud." + + "websecurityscanner.v1beta.ListFindingTyp" + + "eStatsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1beta" + + "/{parent=projects/*/scanConfigs/*/scanRu" + + "ns/*}/findingTypeStats\032U\312A!websecuritysc" + + "anner.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\241\002\n*com.go" + + "ogle.cloud.websecurityscanner.v1betaB\027We" + + "bSecurityScannerProtoP\001ZZcloud.google.co" + + "m/go/websecurityscanner/apiv1beta/websec" + + "urityscannerpb;websecurityscannerpb\252\002&Go" + + "ogle.Cloud.WebSecurityScanner.V1Beta\312\002&G" + + "oogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)" + + "Google::Cloud::WebSecurityScanner::V1bet" + + "ab\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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java similarity index 70% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java index a72bde033ddf..fbc19190945b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java @@ -1,110 +1,83 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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.emptyList(); + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Xss(); } - 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; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -112,34 +85,28 @@ 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; - @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** - * - * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -148,29 +115,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 { @@ -179,7 +146,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +157,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)); } @@ -226,16 +193,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,149 +226,146 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; return this; } @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 @@ -419,11 +384,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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.websecurityscanner.v1beta.Xss result = new com.google.cloud.websecurityscanner.v1beta.Xss(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -443,39 +405,38 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Xss result 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; @@ -525,26 +486,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStackTracesIsMutable(); - stackTraces_.add(s); - break; - } // case 10 - case 18: - { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,12 +512,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureStackTracesIsMutable() { if (!stackTraces_.isModifiable()) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); @@ -567,43 +523,35 @@ private void ensureStackTracesIsMutable() { 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() { stackTraces_.makeImmutable(); 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. */ @@ -611,37 +559,31 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStackTraces( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStackTracesIsMutable(); stackTraces_.set(index, value); bitField0_ |= 0x00000001; @@ -649,21 +591,17 @@ public Builder setStackTraces(int index, java.lang.String value) { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStackTraces( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStackTracesIsMutable(); stackTraces_.add(value); bitField0_ |= 0x00000001; @@ -671,58 +609,50 @@ public Builder addStackTraces(java.lang.String value) { 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_); bitField0_ |= 0x00000001; 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() { - stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + stackTraces_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStackTracesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); @@ -733,20 +663,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; @@ -755,21 +683,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 { @@ -777,35 +704,28 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -815,30 +735,26 @@ public Builder clearErrorMessage() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -848,12 +764,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(); } @@ -862,27 +778,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -897,4 +813,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java similarity index 65% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java index 17c452df0e8f..bf9286e91cc8 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java +++ b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java @@ -1,101 +1,70 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto similarity index 100% rename from java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto rename to owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java similarity index 89% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java index 528f7bee330b..f78cdac3bbcb 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java +++ b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java @@ -56,19 +56,90 @@ *

Note: close() needs to be called on the ExecutionsClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
ListExecutions

Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first).

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listExecutions(ListExecutionsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listExecutions(WorkflowName parent) + *
  • listExecutions(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listExecutionsPagedCallable() + *
  • listExecutionsCallable() + *
+ *
CreateExecution

Creates a new execution using the latest revision of the given workflow.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createExecution(CreateExecutionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createExecution(WorkflowName parent, Execution execution) + *
  • createExecution(String parent, Execution execution) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createExecutionCallable() + *
+ *
GetExecution

Returns an execution of the given name.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getExecution(GetExecutionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getExecution(ExecutionName name) + *
  • getExecution(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getExecutionCallable() + *
+ *
CancelExecution

Cancels an execution of the given name.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • cancelExecution(CancelExecutionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • cancelExecution(ExecutionName name) + *
  • cancelExecution(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • cancelExecutionCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java similarity index 99% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java index bce0e9f58b53..172631ce0cc6 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java +++ b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java @@ -28,6 +28,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.workflows.executions.v1.stub.ExecutionsStubSettings; diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java similarity index 99% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java index 02a336e085e5..b692dc08b4ba 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java +++ b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java @@ -199,6 +199,12 @@ public ExecutionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "workflowexecutions"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java similarity index 99% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java index a311dcf8856b..1d395613bad9 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java +++ b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java @@ -35,6 +35,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/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java b/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java rename to owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java diff --git a/owl-bot-staging/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java b/owl-bot-staging/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java new file mode 100644 index 000000000000..ad59682a2bb6 --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java @@ -0,0 +1,599 @@ +package com.google.cloud.workflows.executions.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Executions is used to start and manage running instances of
+ * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workflows/executions/v1/executions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ExecutionsGrpc { + + private ExecutionsGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.executions.v1.Executions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, + responseType = com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListExecutionsMethod() { + io.grpc.MethodDescriptor getListExecutionsMethod; + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + ExecutionsGrpc.getListExecutionsMethod = getListExecutionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExecution", + requestType = com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateExecutionMethod() { + io.grpc.MethodDescriptor getCreateExecutionMethod; + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + ExecutionsGrpc.getCreateExecutionMethod = getCreateExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CreateExecution")) + .build(); + } + } + } + return getCreateExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetExecutionMethod() { + io.grpc.MethodDescriptor getGetExecutionMethod; + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + ExecutionsGrpc.getGetExecutionMethod = getGetExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCancelExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelExecution", + requestType = com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCancelExecutionMethod() { + io.grpc.MethodDescriptor getCancelExecutionMethod; + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + ExecutionsGrpc.getCancelExecutionMethod = getCancelExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CancelExecution")) + .build(); + } + } + } + return getCancelExecutionMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ExecutionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + }; + return ExecutionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ExecutionsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + }; + return ExecutionsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ExecutionsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + }; + return ExecutionsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + default void listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExecutionsMethod(), responseObserver); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + default void createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExecutionMethod(), responseObserver); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + default void getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExecutionMethod(), responseObserver); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + default void cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelExecutionMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public static abstract class ExecutionsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ExecutionsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsStub + extends io.grpc.stub.AbstractAsyncStub { + private ExecutionsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public void listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public void createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + public void getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public void cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ExecutionsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.ListExecutionsResponse listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.Execution createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExecutionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.Execution getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.Execution cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelExecutionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ExecutionsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listExecutions( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createExecution( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getExecution( + com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture cancelExecution( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EXECUTIONS = 0; + private static final int METHODID_CREATE_EXECUTION = 1; + private static final int METHODID_GET_EXECUTION = 2; + private static final int METHODID_CANCEL_EXECUTION = 3; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_LIST_EXECUTIONS: + serviceImpl.listExecutions((com.google.cloud.workflows.executions.v1.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EXECUTION: + serviceImpl.createExecution((com.google.cloud.workflows.executions.v1.CreateExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EXECUTION: + serviceImpl.getExecution((com.google.cloud.workflows.executions.v1.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_EXECUTION: + serviceImpl.cancelExecution((com.google.cloud.workflows.executions.v1.CancelExecutionRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1.ListExecutionsResponse>( + service, METHODID_LIST_EXECUTIONS))) + .addMethod( + getCreateExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution>( + service, METHODID_CREATE_EXECUTION))) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.GetExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution>( + service, METHODID_GET_EXECUTION))) + .addMethod( + getCancelExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution>( + service, METHODID_CANCEL_EXECUTION))) + .build(); + } + + private static abstract class ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ExecutionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Executions"); + } + } + + private static final class ExecutionsFileDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier { + ExecutionsFileDescriptorSupplier() {} + } + + private static final class ExecutionsMethodDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) + .addMethod(getListExecutionsMethod()) + .addMethod(getCreateExecutionMethod()) + .addMethod(getGetExecutionMethod()) + .addMethod(getCancelExecutionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java similarity index 61% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java index 9b55168ce33b..f3e7a924fedf 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** - * - * *
  * Request for the
  * [CancelExecution][google.cloud.workflows.executions.v1.Executions.CancelExecution]
@@ -29,58 +12,50 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.CancelExecutionRequest}
  */
-public final class CancelExecutionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CancelExecutionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.CancelExecutionRequest)
     CancelExecutionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CancelExecutionRequest.newBuilder() to construct.
   private CancelExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CancelExecutionRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CancelExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class,
-            com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 @@ -89,33 +64,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. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 { @@ -124,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +108,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_); } @@ -160,15 +133,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.workflows.executions.v1.CancelExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.CancelExecutionRequest other = - (com.google.cloud.workflows.executions.v1.CancelExecutionRequest) obj; + com.google.cloud.workflows.executions.v1.CancelExecutionRequest other = (com.google.cloud.workflows.executions.v1.CancelExecutionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,104 +161,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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
    * [CancelExecution][google.cloud.workflows.executions.v1.Executions.CancelExecution]
@@ -294,32 +261,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.CancelExecutionRequest}
    */
-  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.workflows.executions.v1.CancelExecutionRequest)
       com.google.cloud.workflows.executions.v1.CancelExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class,
-              com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.CancelExecutionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -329,14 +297,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.CancelExecutionRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.CancelExecutionRequest getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance();
     }
 
@@ -351,17 +318,13 @@ public com.google.cloud.workflows.executions.v1.CancelExecutionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.CancelExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.CancelExecutionRequest result =
-          new com.google.cloud.workflows.executions.v1.CancelExecutionRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1.CancelExecutionRequest result = new com.google.cloud.workflows.executions.v1.CancelExecutionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1.CancelExecutionRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1.CancelExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -372,50 +335,46 @@ private void buildPartial0(
     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.workflows.executions.v1.CancelExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.CancelExecutionRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.CancelExecutionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1.CancelExecutionRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1.CancelExecutionRequest other) {
+      if (other == com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -447,19 +406,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -469,29 +426,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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; @@ -500,25 +452,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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 { @@ -526,43 +475,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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() { @@ -572,34 +510,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -609,43 +541,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.CancelExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.CancelExecutionRequest) - private static final com.google.cloud.workflows.executions.v1.CancelExecutionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.CancelExecutionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.CancelExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,8 +587,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.CancelExecutionRequest - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.CancelExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..274df6c45434 --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1/executions.proto + +package com.google.cloud.workflows.executions.v1; + +public interface CancelExecutionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CancelExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * 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/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java similarity index 60% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java index aff268129b02..5b7b08d97c95 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** - * - * *
  * Request for the
  * [CreateExecution][google.cloud.workflows.executions.v1.Executions.CreateExecution]
@@ -29,58 +12,50 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.CreateExecutionRequest}
  */
-public final class CreateExecutionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateExecutionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.CreateExecutionRequest)
     CreateExecutionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateExecutionRequest.newBuilder() to construct.
   private CreateExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateExecutionRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class,
-            com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * - * 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 @@ -89,33 +64,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. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * - * 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 { @@ -126,16 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int EXECUTION_FIELD_NUMBER = 2; private com.google.cloud.workflows.executions.v1.Execution execution_; /** - * - * *
    * Required. Execution to be created.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the execution field is set. */ @java.lang.Override @@ -143,44 +111,30 @@ public boolean hasExecution() { return execution_ != null; } /** - * - * *
    * Required. Execution to be created.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The execution. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution getExecution() { - return execution_ == null - ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; } /** - * - * *
    * Required. Execution to be created.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder() { - return execution_ == null - ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,7 +146,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_); } @@ -212,7 +167,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (execution_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecution()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecution()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,18 +178,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.workflows.executions.v1.CreateExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.CreateExecutionRequest other = - (com.google.cloud.workflows.executions.v1.CreateExecutionRequest) obj; + com.google.cloud.workflows.executions.v1.CreateExecutionRequest other = (com.google.cloud.workflows.executions.v1.CreateExecutionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasExecution() != other.hasExecution()) return false; if (hasExecution()) { - if (!getExecution().equals(other.getExecution())) return false; + if (!getExecution() + .equals(other.getExecution())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -258,104 +215,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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
    * [CreateExecution][google.cloud.workflows.executions.v1.Executions.CreateExecution]
@@ -364,32 +315,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.CreateExecutionRequest}
    */
-  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.workflows.executions.v1.CreateExecutionRequest)
       com.google.cloud.workflows.executions.v1.CreateExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class,
-              com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.CreateExecutionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -404,14 +356,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.CreateExecutionRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.CreateExecutionRequest getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance();
     }
 
@@ -426,23 +377,21 @@ public com.google.cloud.workflows.executions.v1.CreateExecutionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.CreateExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.CreateExecutionRequest result =
-          new com.google.cloud.workflows.executions.v1.CreateExecutionRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1.CreateExecutionRequest result = new com.google.cloud.workflows.executions.v1.CreateExecutionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1.CreateExecutionRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1.CreateExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build();
+        result.execution_ = executionBuilder_ == null
+            ? execution_
+            : executionBuilder_.build();
       }
     }
 
@@ -450,50 +399,46 @@ private void buildPartial0(
     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.workflows.executions.v1.CreateExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.CreateExecutionRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.CreateExecutionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1.CreateExecutionRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1.CreateExecutionRequest other) {
+      if (other == com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -528,25 +473,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getExecutionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -556,29 +500,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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; @@ -587,25 +526,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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 { @@ -613,43 +549,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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() { @@ -659,25 +584,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -687,58 +606,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.executions.v1.Execution execution_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, - com.google.cloud.workflows.executions.v1.Execution.Builder, - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> - executionBuilder_; + com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> executionBuilder_; /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the execution field is set. */ public boolean hasExecution() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The execution. */ public com.google.cloud.workflows.executions.v1.Execution getExecution() { if (executionBuilder_ == null) { - return execution_ == null - ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; } else { return executionBuilder_.getMessage(); } } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExecution(com.google.cloud.workflows.executions.v1.Execution value) { if (executionBuilder_ == null) { @@ -754,15 +654,11 @@ public Builder setExecution(com.google.cloud.workflows.executions.v1.Execution v return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExecution( com.google.cloud.workflows.executions.v1.Execution.Builder builderForValue) { @@ -776,22 +672,17 @@ public Builder setExecution( return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeExecution(com.google.cloud.workflows.executions.v1.Execution value) { if (executionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && execution_ != null - && execution_ - != com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + execution_ != null && + execution_ != com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()) { getExecutionBuilder().mergeFrom(value); } else { execution_ = value; @@ -804,15 +695,11 @@ public Builder mergeExecution(com.google.cloud.workflows.executions.v1.Execution return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearExecution() { bitField0_ = (bitField0_ & ~0x00000002); @@ -825,15 +712,11 @@ public Builder clearExecution() { return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionBuilder() { bitField0_ |= 0x00000002; @@ -841,55 +724,43 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionBu return getExecutionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder() { if (executionBuilder_ != null) { return executionBuilder_.getMessageOrBuilder(); } else { - return execution_ == null - ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? + com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; } } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, - com.google.cloud.workflows.executions.v1.Execution.Builder, - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> getExecutionFieldBuilder() { if (executionBuilder_ == null) { - executionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, - com.google.cloud.workflows.executions.v1.Execution.Builder, - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( - getExecution(), getParentForChildren(), isClean()); + executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( + getExecution(), + getParentForChildren(), + isClean()); execution_ = null; } return executionBuilder_; } - @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,43 +770,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.CreateExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.CreateExecutionRequest) - private static final com.google.cloud.workflows.executions.v1.CreateExecutionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.CreateExecutionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.CreateExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,8 +816,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.CreateExecutionRequest - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.CreateExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..e519bd4fab18 --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1/executions.proto + +package com.google.cloud.workflows.executions.v1; + +public interface CreateExecutionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CreateExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Execution to be created.
+   * 
+ * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + *
+   * Required. Execution to be created.
+   * 
+ * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The execution. + */ + com.google.cloud.workflows.executions.v1.Execution getExecution(); + /** + *
+   * Required. Execution to be created.
+   * 
+ * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder(); +} diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java similarity index 68% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java index 1d91925be878..f21de0f28eda 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** - * - * *
  * A running instance of a
  * [Workflow](/workflows/docs/reference/rest/v1/projects.locations.workflows).
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.Execution}
  */
-public final class Execution extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Execution extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution)
     ExecutionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Execution.newBuilder() to construct.
   private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Execution() {
     name_ = "";
     state_ = 0;
@@ -49,39 +31,37 @@ private Execution() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Execution();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 11:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.Execution.class,
-            com.google.cloud.workflows.executions.v1.Execution.Builder.class);
+            com.google.cloud.workflows.executions.v1.Execution.class, com.google.cloud.workflows.executions.v1.Execution.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Describes the current state of the execution. More states might be added
    * in the future.
@@ -89,10 +69,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.workflows.executions.v1.Execution.State}
    */
-  public enum State implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid state.
      * 
@@ -101,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The execution is in progress.
      * 
@@ -111,8 +88,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The execution finished successfully.
      * 
@@ -121,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The execution failed with an error.
      * 
@@ -131,8 +104,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * The execution was stopped intentionally.
      * 
@@ -141,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CANCELLED(4), /** - * - * *
      * Execution data is unavailable. See the `state_error` field.
      * 
@@ -151,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UNAVAILABLE(5), /** - * - * *
      * Request has been placed in the backlog for processing at a later time.
      * 
@@ -164,8 +131,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -174,8 +139,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The execution is in progress.
      * 
@@ -184,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The execution finished successfully.
      * 
@@ -194,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The execution failed with an error.
      * 
@@ -204,8 +163,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * The execution was stopped intentionally.
      * 
@@ -214,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; /** - * - * *
      * Execution data is unavailable. See the `state_error` field.
      * 
@@ -224,8 +179,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNAVAILABLE_VALUE = 5; /** - * - * *
      * Request has been placed in the backlog for processing at a later time.
      * 
@@ -234,6 +187,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int QUEUED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -258,59 +212,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLED; - case 5: - return UNAVAILABLE; - case 6: - return QUEUED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLED; + case 5: return UNAVAILABLE; + case 6: return QUEUED; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.workflows.executions.v1.Execution.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.Execution.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -328,8 +276,6 @@ private State(int value) { } /** - * - * *
    * Describes the level of platform logging to apply to calls and call
    * responses during workflow executions.
@@ -337,10 +283,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.workflows.executions.v1.Execution.CallLogLevel}
    */
-  public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CallLogLevel
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No call logging level specified.
      * 
@@ -349,8 +294,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ CALL_LOG_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -360,8 +303,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
      */
     LOG_ALL_CALLS(1),
     /**
-     *
-     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -370,8 +311,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ LOG_ERRORS_ONLY(2), /** - * - * *
      * Explicitly log nothing.
      * 
@@ -383,8 +322,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * No call logging level specified.
      * 
@@ -393,8 +330,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CALL_LOG_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -404,8 +339,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int LOG_ALL_CALLS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -414,8 +347,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOG_ERRORS_ONLY_VALUE = 2; /** - * - * *
      * Explicitly log nothing.
      * 
@@ -424,6 +355,7 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOG_NONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -448,53 +380,50 @@ public static CallLogLevel valueOf(int value) { */ public static CallLogLevel forNumber(int value) { switch (value) { - case 0: - return CALL_LOG_LEVEL_UNSPECIFIED; - case 1: - return LOG_ALL_CALLS; - case 2: - return LOG_ERRORS_ONLY; - case 3: - return LOG_NONE; - default: - return null; + case 0: return CALL_LOG_LEVEL_UNSPECIFIED; + case 1: return LOG_ALL_CALLS; + case 2: return LOG_ERRORS_ONLY; + case 3: return LOG_NONE; + 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< + CallLogLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CallLogLevel findValueByNumber(int number) { + return CallLogLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CallLogLevel findValueByNumber(int number) { - return CallLogLevel.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.workflows.executions.v1.Execution.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.Execution.getDescriptor().getEnumTypes().get(1); } private static final CallLogLevel[] VALUES = values(); - public static CallLogLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CallLogLevel 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; @@ -511,122 +440,93 @@ private CallLogLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1.Execution.CallLogLevel) } - public interface StackTraceElementOrBuilder - extends + public interface StackTraceElementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StackTraceElement) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The step the error occurred at.
      * 
* * string step = 1; - * * @return The step. */ java.lang.String getStep(); /** - * - * *
      * The step the error occurred at.
      * 
* * string step = 1; - * * @return The bytes for step. */ - com.google.protobuf.ByteString getStepBytes(); + com.google.protobuf.ByteString + getStepBytes(); /** - * - * *
      * The routine where the error occurred.
      * 
* * string routine = 2; - * * @return The routine. */ java.lang.String getRoutine(); /** - * - * *
      * The routine where the error occurred.
      * 
* * string routine = 2; - * * @return The bytes for routine. */ - com.google.protobuf.ByteString getRoutineBytes(); + com.google.protobuf.ByteString + getRoutineBytes(); /** - * - * *
      * The source position information of the stack trace element.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; * @return Whether the position field is set. */ boolean hasPosition(); /** - * - * *
      * The source position information of the stack trace element.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; * @return The position. */ com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getPosition(); /** - * - * *
      * The source position information of the stack trace element.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder - getPositionOrBuilder(); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder getPositionOrBuilder(); } /** - * - * *
    * A single stack element (frame) where an error occurred.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement} */ - public static final class StackTraceElement extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StackTraceElement extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StackTraceElement) StackTraceElementOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StackTraceElement.newBuilder() to construct. private StackTraceElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StackTraceElement() { step_ = ""; routine_ = ""; @@ -634,127 +534,108 @@ private StackTraceElement() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StackTraceElement(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); } - public interface PositionOrBuilder - extends + public interface PositionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * The source code line number the current instruction was generated from.
        * 
* * int64 line = 1; - * * @return The line. */ long getLine(); /** - * - * *
        * The source code column position (of the line) the current instruction
        * was generated from.
        * 
* * int64 column = 2; - * * @return The column. */ long getColumn(); /** - * - * *
        * The number of bytes of source code making up this stack trace element.
        * 
* * int64 length = 3; - * * @return The length. */ long getLength(); } /** - * - * *
      * Position contains source position information about the stack trace
      * element such as line number, column number and length of the code block
      * in bytes.
      * 
* - * Protobuf type {@code - * google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} + * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} */ - public static final class Position extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Position extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) PositionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Position.newBuilder() to construct. private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Position() {} + private Position() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Position(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.class, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder.class); } public static final int LINE_FIELD_NUMBER = 1; private long line_ = 0L; /** - * - * *
        * The source code line number the current instruction was generated from.
        * 
* * int64 line = 1; - * * @return The line. */ @java.lang.Override @@ -765,15 +646,12 @@ public long getLine() { public static final int COLUMN_FIELD_NUMBER = 2; private long column_ = 0L; /** - * - * *
        * The source code column position (of the line) the current instruction
        * was generated from.
        * 
* * int64 column = 2; - * * @return The column. */ @java.lang.Override @@ -784,14 +662,11 @@ public long getColumn() { public static final int LENGTH_FIELD_NUMBER = 3; private long length_ = 0L; /** - * - * *
        * The number of bytes of source code making up this stack trace element.
        * 
* * int64 length = 3; - * * @return The length. */ @java.lang.Override @@ -800,7 +675,6 @@ public long getLength() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -812,7 +686,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 (line_ != 0L) { output.writeInt64(1, line_); } @@ -832,13 +707,16 @@ public int getSerializedSize() { size = 0; if (line_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, line_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, line_); } if (column_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, column_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, column_); } if (length_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, length_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -848,19 +726,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.workflows.executions.v1.Execution.StackTraceElement.Position)) { + if (!(obj instanceof com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other = - (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) obj; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other = (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) obj; - if (getLine() != other.getLine()) return false; - if (getColumn() != other.getColumn()) return false; - if (getLength() != other.getLength()) return false; + if (getLine() + != other.getLine()) return false; + if (getColumn() + != other.getColumn()) return false; + if (getLength() + != other.getLength()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -873,113 +751,103 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLine()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLine()); hash = (37 * hash) + COLUMN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumn()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getColumn()); hash = (37 * hash) + LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLength()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - 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.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - 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.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - 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.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position 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 @@ -989,47 +857,41 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Position contains source position information about the stack trace
        * element such as line number, column number and length of the code block
        * in bytes.
        * 
* - * Protobuf type {@code - * google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} + * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} */ - 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.workflows.executions.v1.Execution.StackTraceElement.Position) com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .class, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder.class); } - // Construct using - // com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1041,23 +903,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - getDefaultInstanceForType() { - return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .getDefaultInstance(); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getDefaultInstanceForType() { + return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - build() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = - buildPartial(); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position build() { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1065,20 +923,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = - new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position buildPartial() { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result) { + private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.line_ = line_; @@ -1095,56 +947,46 @@ private void buildPartial0( 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.workflows.executions.v1.Execution.StackTraceElement.Position) { - return mergeFrom( - (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) - other); + if (other instanceof com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) { + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other) { - if (other - == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other) { + if (other == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance()) return this; if (other.getLine() != 0L) { setLine(other.getLine()); } @@ -1180,31 +1022,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - line_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - column_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - length_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + line_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + column_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + length_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1214,19 +1052,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long line_; + private long line_ ; /** - * - * *
          * The source code line number the current instruction was generated from.
          * 
* * int64 line = 1; - * * @return The line. */ @java.lang.Override @@ -1234,14 +1068,11 @@ public long getLine() { return line_; } /** - * - * *
          * The source code line number the current instruction was generated from.
          * 
* * int64 line = 1; - * * @param value The line to set. * @return This builder for chaining. */ @@ -1253,14 +1084,11 @@ public Builder setLine(long value) { return this; } /** - * - * *
          * The source code line number the current instruction was generated from.
          * 
* * int64 line = 1; - * * @return This builder for chaining. */ public Builder clearLine() { @@ -1270,17 +1098,14 @@ public Builder clearLine() { return this; } - private long column_; + private long column_ ; /** - * - * *
          * The source code column position (of the line) the current instruction
          * was generated from.
          * 
* * int64 column = 2; - * * @return The column. */ @java.lang.Override @@ -1288,15 +1113,12 @@ public long getColumn() { return column_; } /** - * - * *
          * The source code column position (of the line) the current instruction
          * was generated from.
          * 
* * int64 column = 2; - * * @param value The column to set. * @return This builder for chaining. */ @@ -1308,15 +1130,12 @@ public Builder setColumn(long value) { return this; } /** - * - * *
          * The source code column position (of the line) the current instruction
          * was generated from.
          * 
* * int64 column = 2; - * * @return This builder for chaining. */ public Builder clearColumn() { @@ -1326,16 +1145,13 @@ public Builder clearColumn() { return this; } - private long length_; + private long length_ ; /** - * - * *
          * The number of bytes of source code making up this stack trace element.
          * 
* * int64 length = 3; - * * @return The length. */ @java.lang.Override @@ -1343,14 +1159,11 @@ public long getLength() { return length_; } /** - * - * *
          * The number of bytes of source code making up this stack trace element.
          * 
* * int64 length = 3; - * * @param value The length to set. * @return This builder for chaining. */ @@ -1362,14 +1175,11 @@ public Builder setLength(long value) { return this; } /** - * - * *
          * The number of bytes of source code making up this stack trace element.
          * 
* * int64 length = 3; - * * @return This builder for chaining. */ public Builder clearLength() { @@ -1378,7 +1188,6 @@ public Builder clearLength() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1391,46 +1200,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) - private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .Position - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position(); + DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position(); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1442,25 +1246,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int STEP_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object step_ = ""; /** - * - * *
      * The step the error occurred at.
      * 
* * string step = 1; - * * @return The step. */ @java.lang.Override @@ -1469,29 +1269,29 @@ public java.lang.String getStep() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; } } /** - * - * *
      * The step the error occurred at.
      * 
* * string step = 1; - * * @return The bytes for step. */ @java.lang.Override - public com.google.protobuf.ByteString getStepBytes() { + public com.google.protobuf.ByteString + getStepBytes() { java.lang.Object ref = step_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); step_ = b; return b; } else { @@ -1500,18 +1300,14 @@ public com.google.protobuf.ByteString getStepBytes() { } public static final int ROUTINE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object routine_ = ""; /** - * - * *
      * The routine where the error occurred.
      * 
* * string routine = 2; - * * @return The routine. */ @java.lang.Override @@ -1520,29 +1316,29 @@ public java.lang.String getRoutine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; } } /** - * - * *
      * The routine where the error occurred.
      * 
* * string routine = 2; - * * @return The bytes for routine. */ @java.lang.Override - public com.google.protobuf.ByteString getRoutineBytes() { + public com.google.protobuf.ByteString + getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routine_ = b; return b; } else { @@ -1553,16 +1349,11 @@ public com.google.protobuf.ByteString getRoutineBytes() { public static final int POSITION_FIELD_NUMBER = 3; private com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position_; /** - * - * *
      * The source position information of the stack trace element.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; * @return Whether the position field is set. */ @java.lang.Override @@ -1570,48 +1361,30 @@ public boolean hasPosition() { return position_ != null; } /** - * - * *
      * The source position information of the stack trace element.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; * @return The position. */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - getPosition() { - return position_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .getDefaultInstance() - : position_; + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getPosition() { + return position_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; } /** - * - * *
      * The source position information of the stack trace element.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder - getPositionOrBuilder() { - return position_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .getDefaultInstance() - : position_; + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder getPositionOrBuilder() { + return position_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1623,7 +1396,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(step_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, step_); } @@ -1649,7 +1423,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routine_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPosition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1659,19 +1434,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.workflows.executions.v1.Execution.StackTraceElement)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other = - (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement) obj; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other = (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement) obj; - if (!getStep().equals(other.getStep())) return false; - if (!getRoutine().equals(other.getRoutine())) return false; + if (!getStep() + .equals(other.getStep())) return false; + if (!getRoutine() + .equals(other.getRoutine())) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition().equals(other.getPosition())) return false; + if (!getPosition() + .equals(other.getPosition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1698,95 +1475,89 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - 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.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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 @@ -1796,42 +1567,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A single stack element (frame) where an error occurred.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement} */ - 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.workflows.executions.v1.Execution.StackTraceElement) com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); } - // Construct using - // com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1847,22 +1615,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - getDefaultInstanceForType() { - return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .getDefaultInstance(); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getDefaultInstanceForType() { + return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement build() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = - buildPartial(); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1871,17 +1636,13 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement buil @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = - new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result) { + private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.step_ = step_; @@ -1890,7 +1651,9 @@ private void buildPartial0( result.routine_ = routine_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.position_ = positionBuilder_ == null ? position_ : positionBuilder_.build(); + result.position_ = positionBuilder_ == null + ? position_ + : positionBuilder_.build(); } } @@ -1898,53 +1661,46 @@ private void buildPartial0( 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.workflows.executions.v1.Execution.StackTraceElement) { - return mergeFrom( - (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement) other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTraceElement)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other) { - if (other - == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other) { + if (other == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance()) return this; if (!other.getStep().isEmpty()) { step_ = other.step_; bitField0_ |= 0x00000001; @@ -1984,31 +1740,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - step_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - routine_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getPositionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + routine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPositionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2018,25 +1772,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object step_ = ""; /** - * - * *
        * The step the error occurred at.
        * 
* * string step = 1; - * * @return The step. */ public java.lang.String getStep() { java.lang.Object ref = step_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; @@ -2045,21 +1796,20 @@ public java.lang.String getStep() { } } /** - * - * *
        * The step the error occurred at.
        * 
* * string step = 1; - * * @return The bytes for step. */ - public com.google.protobuf.ByteString getStepBytes() { + public com.google.protobuf.ByteString + getStepBytes() { java.lang.Object ref = step_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); step_ = b; return b; } else { @@ -2067,35 +1817,28 @@ public com.google.protobuf.ByteString getStepBytes() { } } /** - * - * *
        * The step the error occurred at.
        * 
* * string step = 1; - * * @param value The step to set. * @return This builder for chaining. */ - public Builder setStep(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStep( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } step_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The step the error occurred at.
        * 
* * string step = 1; - * * @return This builder for chaining. */ public Builder clearStep() { @@ -2105,21 +1848,17 @@ public Builder clearStep() { return this; } /** - * - * *
        * The step the error occurred at.
        * 
* * string step = 1; - * * @param value The bytes for step to set. * @return This builder for chaining. */ - public Builder setStepBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStepBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); step_ = value; bitField0_ |= 0x00000001; @@ -2129,20 +1868,18 @@ public Builder setStepBytes(com.google.protobuf.ByteString value) { private java.lang.Object routine_ = ""; /** - * - * *
        * The routine where the error occurred.
        * 
* * string routine = 2; - * * @return The routine. */ public java.lang.String getRoutine() { java.lang.Object ref = routine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; @@ -2151,21 +1888,20 @@ public java.lang.String getRoutine() { } } /** - * - * *
        * The routine where the error occurred.
        * 
* * string routine = 2; - * * @return The bytes for routine. */ - public com.google.protobuf.ByteString getRoutineBytes() { + public com.google.protobuf.ByteString + getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routine_ = b; return b; } else { @@ -2173,35 +1909,28 @@ public com.google.protobuf.ByteString getRoutineBytes() { } } /** - * - * *
        * The routine where the error occurred.
        * 
* * string routine = 2; - * * @param value The routine to set. * @return This builder for chaining. */ - public Builder setRoutine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoutine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } routine_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The routine where the error occurred.
        * 
* * string routine = 2; - * * @return This builder for chaining. */ public Builder clearRoutine() { @@ -2211,21 +1940,17 @@ public Builder clearRoutine() { return this; } /** - * - * *
        * The routine where the error occurred.
        * 
* * string routine = 2; - * * @param value The bytes for routine to set. * @return This builder for chaining. */ - public Builder setRoutineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoutineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); routine_ = value; bitField0_ |= 0x00000002; @@ -2233,67 +1958,43 @@ public Builder setRoutineBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - position_; + private com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .PositionOrBuilder> - positionBuilder_; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder> positionBuilder_; /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; * @return Whether the position field is set. */ public boolean hasPosition() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; * @return The position. */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - getPosition() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getPosition() { if (positionBuilder_ == null) { - return position_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .getDefaultInstance() - : position_; + return position_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; } else { return positionBuilder_.getMessage(); } } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ - public Builder setPosition( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { + public Builder setPosition(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { if (positionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2307,19 +2008,14 @@ public Builder setPosition( return this; } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ public Builder setPosition( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder - builderForValue) { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder builderForValue) { if (positionBuilder_ == null) { position_ = builderForValue.build(); } else { @@ -2330,24 +2026,17 @@ public Builder setPosition( return this; } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ - public Builder mergePosition( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { + public Builder mergePosition(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { if (positionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && position_ != null - && position_ - != com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + position_ != null && + position_ != com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance()) { getPositionBuilder().mergeFrom(value); } else { position_ = value; @@ -2360,15 +2049,11 @@ public Builder mergePosition( return this; } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ public Builder clearPosition() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2381,74 +2066,52 @@ public Builder clearPosition() { return this; } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder - getPositionBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder getPositionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPositionFieldBuilder().getBuilder(); } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder - getPositionOrBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder getPositionOrBuilder() { if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .getDefaultInstance() - : position_; + return position_ == null ? + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; } } /** - * - * *
        * The source position information of the stack trace element.
        * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; - * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .PositionOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position - .Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .PositionOrBuilder>(getPosition(), getParentForChildren(), isClean()); + positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder>( + getPosition(), + getParentForChildren(), + isClean()); position_ = null; } return positionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2461,44 +2124,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement) - private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement(); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StackTraceElement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StackTraceElement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2510,214 +2170,162 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface StackTraceOrBuilder - extends + public interface StackTraceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StackTrace) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - java.util.List + java.util.List getElementsList(); /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements(int index); /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ int getElementsCount(); /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - java.util.List< - ? extends com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> + java.util.List getElementsOrBuilderList(); /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder - getElementsOrBuilder(int index); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder getElementsOrBuilder( + int index); } /** - * - * *
    * A collection of stack elements (frames) where an error occurred.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTrace} */ - public static final class StackTrace extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StackTrace extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StackTrace) StackTraceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StackTrace.newBuilder() to construct. private StackTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StackTrace() { elements_ = 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 StackTrace(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, - com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); } public static final int ELEMENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - elements_; + private java.util.List elements_; /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ @java.lang.Override - public java.util.List - getElementsList() { + public java.util.List getElementsList() { return elements_; } /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> + public java.util.List getElementsOrBuilderList() { return elements_; } /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ @java.lang.Override public int getElementsCount() { return elements_.size(); } /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements(int index) { return elements_.get(index); } /** - * - * *
      * An array of stack elements.
      * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder - getElementsOrBuilder(int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder getElementsOrBuilder( + int index) { return elements_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2729,7 +2337,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 < elements_.size(); i++) { output.writeMessage(1, elements_.get(i)); } @@ -2743,7 +2352,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < elements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, elements_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, elements_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2753,15 +2363,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.workflows.executions.v1.Execution.StackTrace)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StackTrace other = - (com.google.cloud.workflows.executions.v1.Execution.StackTrace) obj; + com.google.cloud.workflows.executions.v1.Execution.StackTrace other = (com.google.cloud.workflows.executions.v1.Execution.StackTrace) obj; - if (!getElementsList().equals(other.getElementsList())) return false; + if (!getElementsList() + .equals(other.getElementsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2783,94 +2393,89 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.Execution.StackTrace 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 @@ -2880,41 +2485,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A collection of stack elements (frames) where an error occurred.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTrace} */ - 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.workflows.executions.v1.Execution.StackTrace) com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, - com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.StackTrace.newBuilder() - private Builder() {} + private Builder() { + + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + } @java.lang.Override public Builder clear() { super.clear(); @@ -2930,14 +2533,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTrace - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTrace getDefaultInstanceForType() { return com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance(); } @@ -2952,18 +2554,14 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTrace build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTrace buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StackTrace result = - new com.google.cloud.workflows.executions.v1.Execution.StackTrace(this); + com.google.cloud.workflows.executions.v1.Execution.StackTrace result = new com.google.cloud.workflows.executions.v1.Execution.StackTrace(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { + private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); @@ -2975,8 +2573,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { + private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { int from_bitField0_ = bitField0_; } @@ -2984,52 +2581,46 @@ private void buildPartial0( 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.workflows.executions.v1.Execution.StackTrace) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTrace) other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTrace)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workflows.executions.v1.Execution.StackTrace other) { - if (other - == com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StackTrace other) { + if (other == com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance()) return this; if (elementsBuilder_ == null) { if (!other.elements_.isEmpty()) { if (elements_.isEmpty()) { @@ -3048,10 +2639,9 @@ public Builder mergeFrom( elementsBuilder_ = null; elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); - elementsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getElementsFieldBuilder() - : null; + elementsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getElementsFieldBuilder() : null; } else { elementsBuilder_.addAllMessages(other.elements_); } @@ -3083,28 +2673,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement m = - input.readMessage( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .parser(), - extensionRegistry); - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - elements_.add(m); - } else { - elementsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement m = + input.readMessage( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.parser(), + extensionRegistry); + if (elementsBuilder_ == null) { + ensureElementsIsMutable(); + elements_.add(m); + } else { + elementsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3114,40 +2701,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - elements_ = java.util.Collections.emptyList(); - + private java.util.List elements_ = + java.util.Collections.emptyList(); private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - elements_ = - new java.util.ArrayList< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement>(elements_); + elements_ = new java.util.ArrayList(elements_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> - elementsBuilder_; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> elementsBuilder_; /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public java.util.List - getElementsList() { + public java.util.List getElementsList() { if (elementsBuilder_ == null) { return java.util.Collections.unmodifiableList(elements_); } else { @@ -3155,15 +2730,11 @@ private void ensureElementsIsMutable() { } } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public int getElementsCount() { if (elementsBuilder_ == null) { @@ -3173,18 +2744,13 @@ public int getElementsCount() { } } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements(int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { @@ -3192,15 +2758,11 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getE } } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder setElements( int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { @@ -3217,20 +2779,14 @@ public Builder setElements( return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder setElements( - int index, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder - builderForValue) { + int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.set(index, builderForValue.build()); @@ -3241,18 +2797,13 @@ public Builder setElements( return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public Builder addElements( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { + public Builder addElements(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3266,15 +2817,11 @@ public Builder addElements( return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder addElements( int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { @@ -3291,19 +2838,14 @@ public Builder addElements( return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder addElements( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder - builderForValue) { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(builderForValue.build()); @@ -3314,20 +2856,14 @@ public Builder addElements( return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder addElements( - int index, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder - builderForValue) { + int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(index, builderForValue.build()); @@ -3338,23 +2874,18 @@ public Builder addElements( return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder addAllElements( - java.lang.Iterable< - ? extends com.google.cloud.workflows.executions.v1.Execution.StackTraceElement> - values) { + java.lang.Iterable values) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, elements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, elements_); onChanged(); } else { elementsBuilder_.addAllMessages(values); @@ -3362,15 +2893,11 @@ public Builder addAllElements( return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder clearElements() { if (elementsBuilder_ == null) { @@ -3383,15 +2910,11 @@ public Builder clearElements() { return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ public Builder removeElements(int index) { if (elementsBuilder_ == null) { @@ -3404,54 +2927,39 @@ public Builder removeElements(int index) { return this; } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder - getElementsBuilder(int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder getElementsBuilder( + int index) { return getElementsFieldBuilder().getBuilder(index); } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder - getElementsOrBuilder(int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder getElementsOrBuilder( + int index) { if (elementsBuilder_ == null) { - return elements_.get(index); - } else { + return elements_.get(index); } else { return elementsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public java.util.List< - ? extends - com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> - getElementsOrBuilderList() { + public java.util.List + getElementsOrBuilderList() { if (elementsBuilder_ != null) { return elementsBuilder_.getMessageOrBuilderList(); } else { @@ -3459,76 +2967,53 @@ public Builder removeElements(int index) { } } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder - addElementsBuilder() { - return getElementsFieldBuilder() - .addBuilder( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder addElementsBuilder() { + return getElementsFieldBuilder().addBuilder( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance()); } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder - addElementsBuilder(int index) { - return getElementsFieldBuilder() - .addBuilder( - index, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement - .getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder addElementsBuilder( + int index) { + return getElementsFieldBuilder().addBuilder( + index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance()); } /** - * - * *
        * An array of stack elements.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; */ - public java.util.List< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder> - getElementsBuilderList() { + public java.util.List + getElementsBuilderList() { return getElementsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> getElementsFieldBuilder() { if (elementsBuilder_ == null) { - elementsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder>( - elements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder>( + elements_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); elements_ = null; } return elementsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3541,44 +3026,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StackTrace) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StackTrace) - private static final com.google.cloud.workflows.executions.v1.Execution.StackTrace - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.Execution.StackTrace DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StackTrace(); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTrace - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StackTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StackTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3590,94 +3072,75 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTrace - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ErrorOrBuilder - extends + public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.Error) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; - * * @return The payload. */ java.lang.String getPayload(); /** - * - * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; - * * @return The bytes for payload. */ - com.google.protobuf.ByteString getPayloadBytes(); + com.google.protobuf.ByteString + getPayloadBytes(); /** - * - * *
      * Human-readable stack trace string.
      * 
* * string context = 2; - * * @return The context. */ java.lang.String getContext(); /** - * - * *
      * Human-readable stack trace string.
      * 
* * string context = 2; - * * @return The bytes for context. */ - com.google.protobuf.ByteString getContextBytes(); + com.google.protobuf.ByteString + getContextBytes(); /** - * - * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; - * * @return Whether the stackTrace field is set. */ boolean hasStackTrace(); /** - * - * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; - * * @return The stackTrace. */ com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTrace(); /** - * - * *
      * Stack trace with detailed information of where error was generated.
      * 
@@ -3687,24 +3150,21 @@ public interface ErrorOrBuilder com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder getStackTraceOrBuilder(); } /** - * - * *
    * Error describes why the execution was abnormally terminated.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Error} */ - public static final class Error extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Error extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Error() { payload_ = ""; context_ = ""; @@ -3712,38 +3172,33 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Error(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Error.class, - com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Error.class, com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object payload_ = ""; /** - * - * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; - * * @return The payload. */ @java.lang.Override @@ -3752,29 +3207,29 @@ public java.lang.String getPayload() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; } } /** - * - * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; - * * @return The bytes for payload. */ @java.lang.Override - public com.google.protobuf.ByteString getPayloadBytes() { + public com.google.protobuf.ByteString + getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payload_ = b; return b; } else { @@ -3783,18 +3238,14 @@ public com.google.protobuf.ByteString getPayloadBytes() { } public static final int CONTEXT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object context_ = ""; /** - * - * *
      * Human-readable stack trace string.
      * 
* * string context = 2; - * * @return The context. */ @java.lang.Override @@ -3803,29 +3254,29 @@ public java.lang.String getContext() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } } /** - * - * *
      * Human-readable stack trace string.
      * 
* * string context = 2; - * * @return The bytes for context. */ @java.lang.Override - public com.google.protobuf.ByteString getContextBytes() { + public com.google.protobuf.ByteString + getContextBytes() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); context_ = b; return b; } else { @@ -3836,14 +3287,11 @@ public com.google.protobuf.ByteString getContextBytes() { public static final int STACK_TRACE_FIELD_NUMBER = 3; private com.google.cloud.workflows.executions.v1.Execution.StackTrace stackTrace_; /** - * - * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; - * * @return Whether the stackTrace field is set. */ @java.lang.Override @@ -3851,25 +3299,18 @@ public boolean hasStackTrace() { return stackTrace_ != null; } /** - * - * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; - * * @return The stackTrace. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTrace() { - return stackTrace_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() - : stackTrace_; + return stackTrace_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; } /** - * - * *
      * Stack trace with detailed information of where error was generated.
      * 
@@ -3877,15 +3318,11 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTra * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder - getStackTraceOrBuilder() { - return stackTrace_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() - : stackTrace_; + public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder getStackTraceOrBuilder() { + return stackTrace_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3897,7 +3334,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(payload_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payload_); } @@ -3923,7 +3361,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, context_); } if (stackTrace_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStackTrace()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStackTrace()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3933,19 +3372,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.workflows.executions.v1.Execution.Error)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.Error other = - (com.google.cloud.workflows.executions.v1.Execution.Error) obj; + com.google.cloud.workflows.executions.v1.Execution.Error other = (com.google.cloud.workflows.executions.v1.Execution.Error) obj; - if (!getPayload().equals(other.getPayload())) return false; - if (!getContext().equals(other.getContext())) return false; + if (!getPayload() + .equals(other.getPayload())) return false; + if (!getContext() + .equals(other.getContext())) return false; if (hasStackTrace() != other.hasStackTrace()) return false; if (hasStackTrace()) { - if (!getStackTrace().equals(other.getStackTrace())) return false; + if (!getStackTrace() + .equals(other.getStackTrace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3972,94 +3413,89 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.Execution.Error 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 @@ -4069,41 +3505,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Error describes why the execution was abnormally terminated.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Error} */ - 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.workflows.executions.v1.Execution.Error) com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Error.class, - com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Error.class, com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.Error.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4119,9 +3553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; } @java.lang.Override @@ -4140,11 +3574,8 @@ public com.google.cloud.workflows.executions.v1.Execution.Error build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Error buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.Error result = - new com.google.cloud.workflows.executions.v1.Execution.Error(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.executions.v1.Execution.Error result = new com.google.cloud.workflows.executions.v1.Execution.Error(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -4158,8 +3589,9 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.Er result.context_ = context_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.stackTrace_ = - stackTraceBuilder_ == null ? stackTrace_ : stackTraceBuilder_.build(); + result.stackTrace_ = stackTraceBuilder_ == null + ? stackTrace_ + : stackTraceBuilder_.build(); } } @@ -4167,41 +3599,38 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.Er 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.workflows.executions.v1.Execution.Error) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Error) other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Error)other); } else { super.mergeFrom(other); return this; @@ -4209,8 +3638,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Error other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) - return this; + if (other == com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) return this; if (!other.getPayload().isEmpty()) { payload_ = other.payload_; bitField0_ |= 0x00000001; @@ -4250,31 +3678,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - payload_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - context_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getStackTraceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + payload_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + context_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStackTraceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4284,25 +3710,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object payload_ = ""; /** - * - * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; - * * @return The payload. */ public java.lang.String getPayload() { java.lang.Object ref = payload_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; @@ -4311,21 +3734,20 @@ public java.lang.String getPayload() { } } /** - * - * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; - * * @return The bytes for payload. */ - public com.google.protobuf.ByteString getPayloadBytes() { + public com.google.protobuf.ByteString + getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payload_ = b; return b; } else { @@ -4333,35 +3755,28 @@ public com.google.protobuf.ByteString getPayloadBytes() { } } /** - * - * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; - * * @param value The payload to set. * @return This builder for chaining. */ - public Builder setPayload(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayload( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } payload_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; - * * @return This builder for chaining. */ public Builder clearPayload() { @@ -4371,21 +3786,17 @@ public Builder clearPayload() { return this; } /** - * - * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; - * * @param value The bytes for payload to set. * @return This builder for chaining. */ - public Builder setPayloadBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payload_ = value; bitField0_ |= 0x00000001; @@ -4395,20 +3806,18 @@ public Builder setPayloadBytes(com.google.protobuf.ByteString value) { private java.lang.Object context_ = ""; /** - * - * *
        * Human-readable stack trace string.
        * 
* * string context = 2; - * * @return The context. */ public java.lang.String getContext() { java.lang.Object ref = context_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; @@ -4417,21 +3826,20 @@ public java.lang.String getContext() { } } /** - * - * *
        * Human-readable stack trace string.
        * 
* * string context = 2; - * * @return The bytes for context. */ - public com.google.protobuf.ByteString getContextBytes() { + public com.google.protobuf.ByteString + getContextBytes() { java.lang.Object ref = context_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); context_ = b; return b; } else { @@ -4439,35 +3847,28 @@ public com.google.protobuf.ByteString getContextBytes() { } } /** - * - * *
        * Human-readable stack trace string.
        * 
* * string context = 2; - * * @param value The context to set. * @return This builder for chaining. */ - public Builder setContext(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContext( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Human-readable stack trace string.
        * 
* * string context = 2; - * * @return This builder for chaining. */ public Builder clearContext() { @@ -4477,21 +3878,17 @@ public Builder clearContext() { return this; } /** - * - * *
        * Human-readable stack trace string.
        * 
* * string context = 2; - * * @param value The bytes for context to set. * @return This builder for chaining. */ - public Builder setContextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); context_ = value; bitField0_ |= 0x00000002; @@ -4501,55 +3898,41 @@ public Builder setContextBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.executions.v1.Execution.StackTrace stackTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTrace, - com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> - stackTraceBuilder_; + com.google.cloud.workflows.executions.v1.Execution.StackTrace, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> stackTraceBuilder_; /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; - * * @return Whether the stackTrace field is set. */ public boolean hasStackTrace() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; - * * @return The stackTrace. */ public com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTrace() { if (stackTraceBuilder_ == null) { - return stackTrace_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() - : stackTrace_; + return stackTrace_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; } else { return stackTraceBuilder_.getMessage(); } } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public Builder setStackTrace( - com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { + public Builder setStackTrace(com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { if (stackTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4563,8 +3946,6 @@ public Builder setStackTrace( return this; } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
@@ -4583,22 +3964,17 @@ public Builder setStackTrace( return this; } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public Builder mergeStackTrace( - com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { + public Builder mergeStackTrace(com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { if (stackTraceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && stackTrace_ != null - && stackTrace_ - != com.google.cloud.workflows.executions.v1.Execution.StackTrace - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + stackTrace_ != null && + stackTrace_ != com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance()) { getStackTraceBuilder().mergeFrom(value); } else { stackTrace_ = value; @@ -4611,8 +3987,6 @@ public Builder mergeStackTrace( return this; } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
@@ -4630,42 +4004,33 @@ public Builder clearStackTrace() { return this; } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder - getStackTraceBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder getStackTraceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStackTraceFieldBuilder().getBuilder(); } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder - getStackTraceOrBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder getStackTraceOrBuilder() { if (stackTraceBuilder_ != null) { return stackTraceBuilder_.getMessageOrBuilder(); } else { - return stackTrace_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() - : stackTrace_; + return stackTrace_ == null ? + com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; } } /** - * - * *
        * Stack trace with detailed information of where error was generated.
        * 
@@ -4673,22 +4038,18 @@ public Builder clearStackTrace() { * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTrace, - com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StackTrace, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> getStackTraceFieldBuilder() { if (stackTraceBuilder_ == null) { - stackTraceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTrace, - com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, - com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder>( - getStackTrace(), getParentForChildren(), isClean()); + stackTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StackTrace, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder>( + getStackTrace(), + getParentForChildren(), + isClean()); stackTrace_ = null; } return stackTraceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4701,12 +4062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.Error) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.Error) private static final com.google.cloud.workflows.executions.v1.Execution.Error DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.Error(); } @@ -4715,28 +4076,27 @@ public static com.google.cloud.workflows.executions.v1.Execution.Error getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4751,16 +4111,14 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.Execution.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface StatusOrBuilder - extends + public interface StatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.Status) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4771,14 +4129,11 @@ public interface StatusOrBuilder
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - java.util.List + java.util.List getCurrentStepsList(); /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4789,13 +4144,10 @@ public interface StatusOrBuilder
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps(int index); /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4806,13 +4158,10 @@ public interface StatusOrBuilder
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ int getCurrentStepsCount(); /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4823,15 +4172,11 @@ public interface StatusOrBuilder
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - java.util.List< - ? extends com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> + java.util.List getCurrentStepsOrBuilderList(); /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4842,130 +4187,111 @@ public interface StatusOrBuilder
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder - getCurrentStepsOrBuilder(int index); + com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder getCurrentStepsOrBuilder( + int index); } /** - * - * *
    * Represents the current status of this execution.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status} */ - public static final class Status extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Status extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.Status) StatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Status.newBuilder() to construct. private Status(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Status() { currentSteps_ = 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 Status(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.class, - com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.class, com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); } - public interface StepOrBuilder - extends + public interface StepOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.Status.Step) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; - * * @return The routine. */ java.lang.String getRoutine(); /** - * - * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; - * * @return The bytes for routine. */ - com.google.protobuf.ByteString getRoutineBytes(); + com.google.protobuf.ByteString + getRoutineBytes(); /** - * - * *
        * Name of a step within the routine.
        * 
* * string step = 2; - * * @return The step. */ java.lang.String getStep(); /** - * - * *
        * Name of a step within the routine.
        * 
* * string step = 2; - * * @return The bytes for step. */ - com.google.protobuf.ByteString getStepBytes(); + com.google.protobuf.ByteString + getStepBytes(); } /** - * - * *
      * Represents a step of the workflow this execution is running.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status.Step} */ - public static final class Step extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Step extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.Status.Step) StepOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Step.newBuilder() to construct. private Step(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Step() { routine_ = ""; step_ = ""; @@ -4973,38 +4299,33 @@ private Step() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Step(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, - com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); } public static final int ROUTINE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object routine_ = ""; /** - * - * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; - * * @return The routine. */ @java.lang.Override @@ -5013,29 +4334,29 @@ public java.lang.String getRoutine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; } } /** - * - * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; - * * @return The bytes for routine. */ @java.lang.Override - public com.google.protobuf.ByteString getRoutineBytes() { + public com.google.protobuf.ByteString + getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routine_ = b; return b; } else { @@ -5044,18 +4365,14 @@ public com.google.protobuf.ByteString getRoutineBytes() { } public static final int STEP_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object step_ = ""; /** - * - * *
        * Name of a step within the routine.
        * 
* * string step = 2; - * * @return The step. */ @java.lang.Override @@ -5064,29 +4381,29 @@ public java.lang.String getStep() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; } } /** - * - * *
        * Name of a step within the routine.
        * 
* * string step = 2; - * * @return The bytes for step. */ @java.lang.Override - public com.google.protobuf.ByteString getStepBytes() { + public com.google.protobuf.ByteString + getStepBytes() { java.lang.Object ref = step_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); step_ = b; return b; } else { @@ -5095,7 +4412,6 @@ public com.google.protobuf.ByteString getStepBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5107,7 +4423,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(routine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routine_); } @@ -5137,16 +4454,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.workflows.executions.v1.Execution.Status.Step)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.Status.Step other = - (com.google.cloud.workflows.executions.v1.Execution.Status.Step) obj; + com.google.cloud.workflows.executions.v1.Execution.Status.Step other = (com.google.cloud.workflows.executions.v1.Execution.Status.Step) obj; - if (!getRoutine().equals(other.getRoutine())) return false; - if (!getStep().equals(other.getStep())) return false; + if (!getRoutine() + .equals(other.getRoutine())) return false; + if (!getStep() + .equals(other.getStep())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5168,96 +4486,89 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.Status.Step - 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.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.Execution.Status.Step 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 @@ -5267,42 +4578,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Represents a step of the workflow this execution is running.
        * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status.Step} */ - 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.workflows.executions.v1.Execution.Status.Step) com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, - com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); } - // Construct using - // com.google.cloud.workflows.executions.v1.Execution.Status.Step.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workflows.executions.v1.Execution.Status.Step.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5313,16 +4621,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.Step - getDefaultInstanceForType() { - return com.google.cloud.workflows.executions.v1.Execution.Status.Step - .getDefaultInstance(); + public com.google.cloud.workflows.executions.v1.Execution.Status.Step getDefaultInstanceForType() { + return com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance(); } @java.lang.Override @@ -5336,17 +4642,13 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Status.Step buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.Status.Step result = - new com.google.cloud.workflows.executions.v1.Execution.Status.Step(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.executions.v1.Execution.Status.Step result = new com.google.cloud.workflows.executions.v1.Execution.Status.Step(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workflows.executions.v1.Execution.Status.Step result) { + private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.Status.Step result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.routine_ = routine_; @@ -5360,53 +4662,46 @@ private void buildPartial0( 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.workflows.executions.v1.Execution.Status.Step) { - return mergeFrom( - (com.google.cloud.workflows.executions.v1.Execution.Status.Step) other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Status.Step)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workflows.executions.v1.Execution.Status.Step other) { - if (other - == com.google.cloud.workflows.executions.v1.Execution.Status.Step - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Status.Step other) { + if (other == com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance()) return this; if (!other.getRoutine().isEmpty()) { routine_ = other.routine_; bitField0_ |= 0x00000001; @@ -5443,25 +4738,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - routine_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - step_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + routine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5471,25 +4763,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object routine_ = ""; /** - * - * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; - * * @return The routine. */ public java.lang.String getRoutine() { java.lang.Object ref = routine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; @@ -5498,21 +4787,20 @@ public java.lang.String getRoutine() { } } /** - * - * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; - * * @return The bytes for routine. */ - public com.google.protobuf.ByteString getRoutineBytes() { + public com.google.protobuf.ByteString + getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routine_ = b; return b; } else { @@ -5520,35 +4808,28 @@ public com.google.protobuf.ByteString getRoutineBytes() { } } /** - * - * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; - * * @param value The routine to set. * @return This builder for chaining. */ - public Builder setRoutine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoutine( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } routine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; - * * @return This builder for chaining. */ public Builder clearRoutine() { @@ -5558,21 +4839,17 @@ public Builder clearRoutine() { return this; } /** - * - * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; - * * @param value The bytes for routine to set. * @return This builder for chaining. */ - public Builder setRoutineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRoutineBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); routine_ = value; bitField0_ |= 0x00000001; @@ -5582,20 +4859,18 @@ public Builder setRoutineBytes(com.google.protobuf.ByteString value) { private java.lang.Object step_ = ""; /** - * - * *
          * Name of a step within the routine.
          * 
* * string step = 2; - * * @return The step. */ public java.lang.String getStep() { java.lang.Object ref = step_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; @@ -5604,21 +4879,20 @@ public java.lang.String getStep() { } } /** - * - * *
          * Name of a step within the routine.
          * 
* * string step = 2; - * * @return The bytes for step. */ - public com.google.protobuf.ByteString getStepBytes() { + public com.google.protobuf.ByteString + getStepBytes() { java.lang.Object ref = step_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); step_ = b; return b; } else { @@ -5626,35 +4900,28 @@ public com.google.protobuf.ByteString getStepBytes() { } } /** - * - * *
          * Name of a step within the routine.
          * 
* * string step = 2; - * * @param value The step to set. * @return This builder for chaining. */ - public Builder setStep(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStep( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } step_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Name of a step within the routine.
          * 
* * string step = 2; - * * @return This builder for chaining. */ public Builder clearStep() { @@ -5664,28 +4931,23 @@ public Builder clearStep() { return this; } /** - * - * *
          * Name of a step within the routine.
          * 
* * string step = 2; - * * @param value The bytes for step to set. * @return This builder for chaining. */ - public Builder setStepBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStepBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); step_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5698,44 +4960,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.Status.Step) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.Status.Step) - private static final com.google.cloud.workflows.executions.v1.Execution.Status.Step - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.Execution.Status.Step DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.Status.Step(); } - public static com.google.cloud.workflows.executions.v1.Execution.Status.Step - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Step parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Step parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5747,20 +5006,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.Step - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int CURRENT_STEPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - currentSteps_; + private java.util.List currentSteps_; /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5771,17 +5026,13 @@ public com.google.protobuf.Parser getParserForType() {
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ @java.lang.Override - public java.util.List - getCurrentStepsList() { + public java.util.List getCurrentStepsList() { return currentSteps_; } /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5792,18 +5043,14 @@ public com.google.protobuf.Parser getParserForType() {
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> + public java.util.List getCurrentStepsOrBuilderList() { return currentSteps_; } /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5814,16 +5061,13 @@ public com.google.protobuf.Parser getParserForType() {
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ @java.lang.Override public int getCurrentStepsCount() { return currentSteps_.size(); } /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5834,17 +5078,13 @@ public int getCurrentStepsCount() {
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps(int index) { return currentSteps_.get(index); } /** - * - * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5855,17 +5095,15 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrent
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder - getCurrentStepsOrBuilder(int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder getCurrentStepsOrBuilder( + int index) { return currentSteps_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5877,7 +5115,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 < currentSteps_.size(); i++) { output.writeMessage(1, currentSteps_.get(i)); } @@ -5891,7 +5130,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < currentSteps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, currentSteps_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, currentSteps_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5901,15 +5141,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.workflows.executions.v1.Execution.Status)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.Status other = - (com.google.cloud.workflows.executions.v1.Execution.Status) obj; + com.google.cloud.workflows.executions.v1.Execution.Status other = (com.google.cloud.workflows.executions.v1.Execution.Status) obj; - if (!getCurrentStepsList().equals(other.getCurrentStepsList())) return false; + if (!getCurrentStepsList() + .equals(other.getCurrentStepsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5931,94 +5171,89 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Status parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Status parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.Execution.Status 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 @@ -6028,41 +5263,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Represents the current status of this execution.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status} */ - 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.workflows.executions.v1.Execution.Status) com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.class, - com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.class, com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.Status.newBuilder() - private Builder() {} + private Builder() { + + } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + } @java.lang.Override public Builder clear() { super.clear(); @@ -6078,9 +5311,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; } @java.lang.Override @@ -6099,18 +5332,14 @@ public com.google.cloud.workflows.executions.v1.Execution.Status build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Status buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.Status result = - new com.google.cloud.workflows.executions.v1.Execution.Status(this); + com.google.cloud.workflows.executions.v1.Execution.Status result = new com.google.cloud.workflows.executions.v1.Execution.Status(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workflows.executions.v1.Execution.Status result) { + private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1.Execution.Status result) { if (currentStepsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { currentSteps_ = java.util.Collections.unmodifiableList(currentSteps_); @@ -6130,41 +5359,38 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St 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.workflows.executions.v1.Execution.Status) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Status) other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Status)other); } else { super.mergeFrom(other); return this; @@ -6172,8 +5398,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Status other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) - return this; + if (other == com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) return this; if (currentStepsBuilder_ == null) { if (!other.currentSteps_.isEmpty()) { if (currentSteps_.isEmpty()) { @@ -6192,10 +5417,9 @@ public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Stat currentStepsBuilder_ = null; currentSteps_ = other.currentSteps_; bitField0_ = (bitField0_ & ~0x00000001); - currentStepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCurrentStepsFieldBuilder() - : null; + currentStepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCurrentStepsFieldBuilder() : null; } else { currentStepsBuilder_.addAllMessages(other.currentSteps_); } @@ -6227,27 +5451,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workflows.executions.v1.Execution.Status.Step m = - input.readMessage( - com.google.cloud.workflows.executions.v1.Execution.Status.Step.parser(), - extensionRegistry); - if (currentStepsBuilder_ == null) { - ensureCurrentStepsIsMutable(); - currentSteps_.add(m); - } else { - currentStepsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workflows.executions.v1.Execution.Status.Step m = + input.readMessage( + com.google.cloud.workflows.executions.v1.Execution.Status.Step.parser(), + extensionRegistry); + if (currentStepsBuilder_ == null) { + ensureCurrentStepsIsMutable(); + currentSteps_.add(m); + } else { + currentStepsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6257,30 +5479,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - currentSteps_ = java.util.Collections.emptyList(); - + private java.util.List currentSteps_ = + java.util.Collections.emptyList(); private void ensureCurrentStepsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - currentSteps_ = - new java.util.ArrayList< - com.google.cloud.workflows.executions.v1.Execution.Status.Step>(currentSteps_); + currentSteps_ = new java.util.ArrayList(currentSteps_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status.Step, - com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, - com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> - currentStepsBuilder_; + com.google.cloud.workflows.executions.v1.Execution.Status.Step, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> currentStepsBuilder_; /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6291,12 +5504,9 @@ private void ensureCurrentStepsIsMutable() {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public java.util.List - getCurrentStepsList() { + public java.util.List getCurrentStepsList() { if (currentStepsBuilder_ == null) { return java.util.Collections.unmodifiableList(currentSteps_); } else { @@ -6304,8 +5514,6 @@ private void ensureCurrentStepsIsMutable() { } } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6316,9 +5524,7 @@ private void ensureCurrentStepsIsMutable() {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public int getCurrentStepsCount() { if (currentStepsBuilder_ == null) { @@ -6328,8 +5534,6 @@ public int getCurrentStepsCount() { } } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6340,12 +5544,9 @@ public int getCurrentStepsCount() {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps(int index) { if (currentStepsBuilder_ == null) { return currentSteps_.get(index); } else { @@ -6353,8 +5554,6 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrent } } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6365,9 +5564,7 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrent
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder setCurrentSteps( int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { @@ -6384,8 +5581,6 @@ public Builder setCurrentSteps( return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6396,13 +5591,10 @@ public Builder setCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder setCurrentSteps( - int index, - com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { + int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { if (currentStepsBuilder_ == null) { ensureCurrentStepsIsMutable(); currentSteps_.set(index, builderForValue.build()); @@ -6413,8 +5605,6 @@ public Builder setCurrentSteps( return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6425,12 +5615,9 @@ public Builder setCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public Builder addCurrentSteps( - com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { + public Builder addCurrentSteps(com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { if (currentStepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6444,8 +5631,6 @@ public Builder addCurrentSteps( return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6456,9 +5641,7 @@ public Builder addCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder addCurrentSteps( int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { @@ -6475,8 +5658,6 @@ public Builder addCurrentSteps( return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6487,9 +5668,7 @@ public Builder addCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder addCurrentSteps( com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { @@ -6503,8 +5682,6 @@ public Builder addCurrentSteps( return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6515,13 +5692,10 @@ public Builder addCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder addCurrentSteps( - int index, - com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { + int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { if (currentStepsBuilder_ == null) { ensureCurrentStepsIsMutable(); currentSteps_.add(index, builderForValue.build()); @@ -6532,8 +5706,6 @@ public Builder addCurrentSteps( return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6544,17 +5716,14 @@ public Builder addCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder addAllCurrentSteps( - java.lang.Iterable< - ? extends com.google.cloud.workflows.executions.v1.Execution.Status.Step> - values) { + java.lang.Iterable values) { if (currentStepsBuilder_ == null) { ensureCurrentStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, currentSteps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, currentSteps_); onChanged(); } else { currentStepsBuilder_.addAllMessages(values); @@ -6562,8 +5731,6 @@ public Builder addAllCurrentSteps( return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6574,9 +5741,7 @@ public Builder addAllCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder clearCurrentSteps() { if (currentStepsBuilder_ == null) { @@ -6589,8 +5754,6 @@ public Builder clearCurrentSteps() { return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6601,9 +5764,7 @@ public Builder clearCurrentSteps() {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ public Builder removeCurrentSteps(int index) { if (currentStepsBuilder_ == null) { @@ -6616,8 +5777,6 @@ public Builder removeCurrentSteps(int index) { return this; } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6628,17 +5787,13 @@ public Builder removeCurrentSteps(int index) {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder - getCurrentStepsBuilder(int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder getCurrentStepsBuilder( + int index) { return getCurrentStepsFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6649,21 +5804,16 @@ public Builder removeCurrentSteps(int index) {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder - getCurrentStepsOrBuilder(int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder getCurrentStepsOrBuilder( + int index) { if (currentStepsBuilder_ == null) { - return currentSteps_.get(index); - } else { + return currentSteps_.get(index); } else { return currentStepsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6674,13 +5824,10 @@ public Builder removeCurrentSteps(int index) {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public java.util.List< - ? extends com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> - getCurrentStepsOrBuilderList() { + public java.util.List + getCurrentStepsOrBuilderList() { if (currentStepsBuilder_ != null) { return currentStepsBuilder_.getMessageOrBuilderList(); } else { @@ -6688,8 +5835,6 @@ public Builder removeCurrentSteps(int index) { } } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6700,20 +5845,13 @@ public Builder removeCurrentSteps(int index) {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder - addCurrentStepsBuilder() { - return getCurrentStepsFieldBuilder() - .addBuilder( - com.google.cloud.workflows.executions.v1.Execution.Status.Step - .getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder addCurrentStepsBuilder() { + return getCurrentStepsFieldBuilder().addBuilder( + com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance()); } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6724,21 +5862,14 @@ public Builder removeCurrentSteps(int index) {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder - addCurrentStepsBuilder(int index) { - return getCurrentStepsFieldBuilder() - .addBuilder( - index, - com.google.cloud.workflows.executions.v1.Execution.Status.Step - .getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder addCurrentStepsBuilder( + int index) { + return getCurrentStepsFieldBuilder().addBuilder( + index, com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance()); } /** - * - * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -6749,26 +5880,18 @@ public Builder removeCurrentSteps(int index) {
        * ending with the most deeply nested step.
        * 
* - * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; - * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; */ - public java.util.List - getCurrentStepsBuilderList() { + public java.util.List + getCurrentStepsBuilderList() { return getCurrentStepsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status.Step, - com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, - com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.Status.Step, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> getCurrentStepsFieldBuilder() { if (currentStepsBuilder_ == null) { - currentStepsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status.Step, - com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, - com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder>( + currentStepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.Status.Step, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder>( currentSteps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -6777,7 +5900,6 @@ public Builder removeCurrentSteps(int index) { } return currentStepsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6790,12 +5912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.Status) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.Status) private static final com.google.cloud.workflows.executions.v1.Execution.Status DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.Status(); } @@ -6804,28 +5926,27 @@ public static com.google.cloud.workflows.executions.v1.Execution.Status getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Status parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Status parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6840,82 +5961,68 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.Execution.Status getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface StateErrorOrBuilder - extends + public interface StateErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StateError) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The details. */ java.lang.String getDetails(); /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The bytes for details. */ - com.google.protobuf.ByteString getDetailsBytes(); + com.google.protobuf.ByteString + getDetailsBytes(); /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @return The type. */ com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType(); } /** - * - * *
    * Describes an error related to the current state of the Execution resource.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StateError} */ - public static final class StateError extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StateError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StateError) StateErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateError.newBuilder() to construct. private StateError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StateError() { details_ = ""; type_ = 0; @@ -6923,38 +6030,34 @@ private StateError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StateError(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StateError.class, - com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StateError.class, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); } /** - * - * *
      * Describes the possible types of a state error.
      * 
* * Protobuf enum {@code google.cloud.workflows.executions.v1.Execution.StateError.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * No type specified.
        * 
@@ -6963,8 +6066,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
        * Caused by an issue with KMS.
        * 
@@ -6976,8 +6077,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * No type specified.
        * 
@@ -6986,8 +6085,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Caused by an issue with KMS.
        * 
@@ -6996,6 +6093,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KMS_ERROR_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -7020,49 +6118,48 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return KMS_ERROR; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return KMS_ERROR; + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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.workflows.executions.v1.Execution.StateError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.Execution.StateError.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -7080,18 +6177,14 @@ private Type(int value) { } public static final int DETAILS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object details_ = ""; /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The details. */ @java.lang.Override @@ -7100,29 +6193,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -7133,42 +6226,30 @@ public com.google.protobuf.ByteString getDetailsBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType() { - com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = - com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); - return result == null - ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType() { + com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); + return result == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7180,13 +6261,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(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, details_); } - if (type_ - != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } getUnknownFields().writeTo(output); @@ -7201,10 +6281,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, details_); } - if (type_ - != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7214,15 +6293,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.workflows.executions.v1.Execution.StateError)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StateError other = - (com.google.cloud.workflows.executions.v1.Execution.StateError) obj; + com.google.cloud.workflows.executions.v1.Execution.StateError other = (com.google.cloud.workflows.executions.v1.Execution.StateError) obj; - if (!getDetails().equals(other.getDetails())) return false; + if (!getDetails() + .equals(other.getDetails())) return false; if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -7245,94 +6324,89 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StateError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StateError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StateError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.Execution.StateError 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 @@ -7342,41 +6416,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes an error related to the current state of the Execution resource.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StateError} */ - 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.workflows.executions.v1.Execution.StateError) com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StateError.class, - com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StateError.class, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.StateError.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -7387,14 +6459,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StateError - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StateError getDefaultInstanceForType() { return com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance(); } @@ -7409,17 +6480,13 @@ public com.google.cloud.workflows.executions.v1.Execution.StateError build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StateError result = - new com.google.cloud.workflows.executions.v1.Execution.StateError(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.executions.v1.Execution.StateError result = new com.google.cloud.workflows.executions.v1.Execution.StateError(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workflows.executions.v1.Execution.StateError result) { + private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StateError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.details_ = details_; @@ -7433,52 +6500,46 @@ private void buildPartial0( 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.workflows.executions.v1.Execution.StateError) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StateError) other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StateError)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workflows.executions.v1.Execution.StateError other) { - if (other - == com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StateError other) { + if (other == com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance()) return this; if (!other.getDetails().isEmpty()) { details_ = other.details_; bitField0_ |= 0x00000001; @@ -7513,25 +6574,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - details_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7541,25 +6599,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object details_ = ""; /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -7568,21 +6623,20 @@ public java.lang.String getDetails() { } } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @return The bytes for details. */ - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -7590,35 +6644,28 @@ public com.google.protobuf.ByteString getDetailsBytes() { } } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetails( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } details_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @return This builder for chaining. */ public Builder clearDetails() { @@ -7628,21 +6675,17 @@ public Builder clearDetails() { return this; } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetailsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); details_ = value; bitField0_ |= 0x00000001; @@ -7652,29 +6695,22 @@ public Builder setDetailsBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -7685,38 +6721,28 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @return The type. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType() { - com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = - com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); - return result == null - ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); + return result == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED : result; } /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - com.google.cloud.workflows.executions.v1.Execution.StateError.Type value) { + public Builder setType(com.google.cloud.workflows.executions.v1.Execution.StateError.Type value) { if (value == null) { throw new NullPointerException(); } @@ -7725,15 +6751,12 @@ public Builder setType( onChanged(); return this; } - /** - * - * + /** *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; - * * @return This builder for chaining. */ public Builder clearType() { @@ -7742,7 +6765,6 @@ public Builder clearType() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7755,44 +6777,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StateError) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StateError) - private static final com.google.cloud.workflows.executions.v1.Execution.StateError - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.Execution.StateError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StateError(); } - public static com.google.cloud.workflows.executions.v1.Execution.StateError - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StateError getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7804,19 +6823,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StateError - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StateError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the execution.
    * Format:
@@ -7824,7 +6840,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -7833,15 +6848,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 execution.
    * Format:
@@ -7849,15 +6863,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -7868,15 +6883,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -7884,15 +6895,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -7900,14 +6907,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -7917,15 +6921,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -7933,15 +6933,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -7949,14 +6945,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -7966,15 +6959,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 12; private com.google.protobuf.Duration duration_; /** - * - * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ @java.lang.Override @@ -7982,15 +6971,11 @@ public boolean hasDuration() { return duration_ != null; } /** - * - * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ @java.lang.Override @@ -7998,14 +6983,11 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** - * - * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -8015,51 +6997,33 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int STATE_FIELD_NUMBER = 4; private int state_ = 0; /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.State getState() { - com.google.cloud.workflows.executions.v1.Execution.State result = - com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); - return result == null - ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.State getState() { + com.google.cloud.workflows.executions.v1.Execution.State result = com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); + return result == null ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED : result; } public static final int ARGUMENT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object argument_ = ""; /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -8070,7 +7034,6 @@ public com.google.cloud.workflows.executions.v1.Execution.State getState() {
    * 
* * string argument = 5; - * * @return The argument. */ @java.lang.Override @@ -8079,15 +7042,14 @@ public java.lang.String getArgument() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; } } /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -8098,15 +7060,16 @@ public java.lang.String getArgument() {
    * 
* * string argument = 5; - * * @return The bytes for argument. */ @java.lang.Override - public com.google.protobuf.ByteString getArgumentBytes() { + public com.google.protobuf.ByteString + getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); argument_ = b; return b; } else { @@ -8115,19 +7078,15 @@ public com.google.protobuf.ByteString getArgumentBytes() { } public static final int RESULT_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object result_ = ""; /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The result. */ @java.lang.Override @@ -8136,30 +7095,30 @@ public java.lang.String getResult() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; } } /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for result. */ @java.lang.Override - public com.google.protobuf.ByteString getResultBytes() { + public com.google.protobuf.ByteString + getResultBytes() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); result_ = b; return b; } else { @@ -8170,18 +7129,13 @@ public com.google.protobuf.ByteString getResultBytes() { public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.workflows.executions.v1.Execution.Error error_; /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ @java.lang.Override @@ -8189,59 +7143,42 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Error getError() { - return error_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; } /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErrorOrBuilder() { - return error_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; } public static final int WORKFLOW_REVISION_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object workflowRevisionId_ = ""; /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workflowRevisionId. */ @java.lang.Override @@ -8250,29 +7187,29 @@ public java.lang.String getWorkflowRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; } } /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workflowRevisionId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString + getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -8283,54 +7220,38 @@ public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { public static final int CALL_LOG_LEVEL_FIELD_NUMBER = 9; private int callLogLevel_ = 0; /** - * - * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override - public int getCallLogLevelValue() { + @java.lang.Override public int getCallLogLevelValue() { return callLogLevel_; } /** - * - * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @return The callLogLevel. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = - com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); - return result == null - ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel() { + com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); + return result == null ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED : result; } public static final int STATUS_FIELD_NUMBER = 10; private com.google.cloud.workflows.executions.v1.Execution.Status status_; /** - * - * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ @java.lang.Override @@ -8338,73 +7259,58 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Status getStatus() { - return status_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; } /** - * - * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder getStatusOrBuilder() { - return status_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; } public static final int LABELS_FIELD_NUMBER = 11; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -8418,21 +7324,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 11;
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -8450,8 +7355,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -8465,19 +7368,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 11;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -8491,11 +7392,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 11;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -8505,18 +7406,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int STATE_ERROR_FIELD_NUMBER = 13;
   private com.google.cloud.workflows.executions.v1.Execution.StateError stateError_;
   /**
-   *
-   *
    * 
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateError field is set. */ @java.lang.Override @@ -8524,49 +7420,34 @@ public boolean hasStateError() { return stateError_ != null; } /** - * - * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateError. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError getStateError() { - return stateError_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() - : stateError_; + return stateError_ == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; } /** - * - * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder - getStateErrorOrBuilder() { - return stateError_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() - : stateError_; + public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder getStateErrorOrBuilder() { + return stateError_ == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8578,7 +7459,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_); } @@ -8588,8 +7470,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(3, getEndTime()); } - if (state_ - != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { @@ -8604,17 +7485,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowRevisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, workflowRevisionId_); } - if (callLogLevel_ - != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel - .CALL_LOG_LEVEL_UNSPECIFIED - .getNumber()) { + if (callLogLevel_ != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(9, callLogLevel_); } if (status_ != null) { output.writeMessage(10, getStatus()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 11); if (duration_ != null) { output.writeMessage(12, getDuration()); } @@ -8634,14 +7516,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } - if (state_ - != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + if (state_ != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, argument_); @@ -8650,35 +7534,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, result_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowRevisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, workflowRevisionId_); } - if (callLogLevel_ - != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel - .CALL_LOG_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, callLogLevel_); + if (callLogLevel_ != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, callLogLevel_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getStatus()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getStatus()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, labels__); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDuration()); } if (stateError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getStateError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getStateError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8688,44 +7574,54 @@ 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.workflows.executions.v1.Execution)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution other = - (com.google.cloud.workflows.executions.v1.Execution) obj; + com.google.cloud.workflows.executions.v1.Execution other = (com.google.cloud.workflows.executions.v1.Execution) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) 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 (!getEndTime() + .equals(other.getEndTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration().equals(other.getDuration())) return false; + if (!getDuration() + .equals(other.getDuration())) return false; } if (state_ != other.state_) return false; - if (!getArgument().equals(other.getArgument())) return false; - if (!getResult().equals(other.getResult())) return false; + if (!getArgument() + .equals(other.getArgument())) return false; + if (!getResult() + .equals(other.getResult())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } - if (!getWorkflowRevisionId().equals(other.getWorkflowRevisionId())) return false; + if (!getWorkflowRevisionId() + .equals(other.getWorkflowRevisionId())) return false; if (callLogLevel_ != other.callLogLevel_) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasStateError() != other.hasStateError()) return false; if (hasStateError()) { - if (!getStateError().equals(other.getStateError())) return false; + if (!getStateError() + .equals(other.getStateError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -8784,103 +7680,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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 running instance of a
    * [Workflow](/workflows/docs/reference/rest/v1/projects.locations.workflows).
@@ -8888,52 +7779,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.Execution}
    */
-  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.workflows.executions.v1.Execution)
       com.google.cloud.workflows.executions.v1.ExecutionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 11:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 11:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.Execution.class,
-              com.google.cloud.workflows.executions.v1.Execution.Builder.class);
+              com.google.cloud.workflows.executions.v1.Execution.class, com.google.cloud.workflows.executions.v1.Execution.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.Execution.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -8979,9 +7873,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
     }
 
     @java.lang.Override
@@ -9000,11 +7894,8 @@ public com.google.cloud.workflows.executions.v1.Execution build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.Execution buildPartial() {
-      com.google.cloud.workflows.executions.v1.Execution result =
-          new com.google.cloud.workflows.executions.v1.Execution(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1.Execution result = new com.google.cloud.workflows.executions.v1.Execution(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -9015,13 +7906,19 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null
+            ? startTime_
+            : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null
+            ? endTime_
+            : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
+        result.duration_ = durationBuilder_ == null
+            ? duration_
+            : durationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.state_ = state_;
@@ -9033,7 +7930,9 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
         result.result_ = result_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
         result.workflowRevisionId_ = workflowRevisionId_;
@@ -9042,14 +7941,18 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
         result.callLogLevel_ = callLogLevel_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
+        result.status_ = statusBuilder_ == null
+            ? status_
+            : statusBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.labels_ = internalGetLabels();
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.stateError_ = stateErrorBuilder_ == null ? stateError_ : stateErrorBuilder_.build();
+        result.stateError_ = stateErrorBuilder_ == null
+            ? stateError_
+            : stateErrorBuilder_.build();
       }
     }
 
@@ -9057,39 +7960,38 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
     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.workflows.executions.v1.Execution) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.Execution) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.Execution)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -9097,8 +7999,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution other) {
-      if (other == com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -9140,7 +8041,8 @@ public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution othe
       if (other.hasStatus()) {
         mergeStatus(other.getStatus());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000800;
       if (other.hasStateError()) {
         mergeStateError(other.getStateError());
@@ -9171,97 +8073,93 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 32
-            case 42:
-              {
-                argument_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 42
-            case 50:
-              {
-                result_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                workflowRevisionId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 72:
-              {
-                callLogLevel_ = input.readEnum();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 72
-            case 82:
-              {
-                input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 98
-            case 106:
-              {
-                input.readMessage(getStateErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 106
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getStartTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getEndTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 32
+            case 42: {
+              argument_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 42
+            case 50: {
+              result_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              workflowRevisionId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 72: {
+              callLogLevel_ = input.readEnum();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 72
+            case 82: {
+              input.readMessage(
+                  getStatusFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getDurationFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 98
+            case 106: {
+              input.readMessage(
+                  getStateErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 106
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9271,13 +8169,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource name of the execution.
      * Format:
@@ -9285,13 +8180,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -9300,8 +8195,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -9309,14 +8202,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -9324,8 +8218,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -9333,22 +8225,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -9356,7 +8244,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -9366,8 +8253,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -9375,14 +8260,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -9392,35 +8275,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -9431,14 +8303,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -9454,16 +8323,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -9474,20 +8341,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -9500,14 +8364,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -9520,14 +8381,11 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -9535,44 +8393,36 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -9580,35 +8430,24 @@ 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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -9619,14 +8458,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -9642,16 +8478,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -9662,20 +8496,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -9688,14 +8519,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -9708,14 +8536,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000004; @@ -9723,44 +8548,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -9768,35 +8585,24 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - durationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -9807,14 +8613,11 @@ public com.google.protobuf.Duration getDuration() { } } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -9830,16 +8633,14 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -9850,20 +8651,17 @@ public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && duration_ != null - && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + duration_ != null && + duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -9876,14 +8674,11 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000008); @@ -9896,14 +8691,11 @@ public Builder clearDuration() { return this; } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000008; @@ -9911,44 +8703,36 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** - * - * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDuration(), getParentForChildren(), isClean()); + durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getDuration(), + getParentForChildren(), + isClean()); duration_ = null; } return durationBuilder_; @@ -9956,33 +8740,22 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -9993,37 +8766,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.State getState() { - com.google.cloud.workflows.executions.v1.Execution.State result = - com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); - return result == null - ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1.Execution.State result = com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); + return result == null ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -10037,16 +8797,11 @@ public Builder setState(com.google.cloud.workflows.executions.v1.Execution.State return this; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -10058,8 +8813,6 @@ public Builder clearState() { private java.lang.Object argument_ = ""; /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -10070,13 +8823,13 @@ public Builder clearState() {
      * 
* * string argument = 5; - * * @return The argument. */ public java.lang.String getArgument() { java.lang.Object ref = argument_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; @@ -10085,8 +8838,6 @@ public java.lang.String getArgument() { } } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -10097,14 +8848,15 @@ public java.lang.String getArgument() {
      * 
* * string argument = 5; - * * @return The bytes for argument. */ - public com.google.protobuf.ByteString getArgumentBytes() { + public com.google.protobuf.ByteString + getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); argument_ = b; return b; } else { @@ -10112,8 +8864,6 @@ public com.google.protobuf.ByteString getArgumentBytes() { } } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -10124,22 +8874,18 @@ public com.google.protobuf.ByteString getArgumentBytes() {
      * 
* * string argument = 5; - * * @param value The argument to set. * @return This builder for chaining. */ - public Builder setArgument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setArgument( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } argument_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -10150,7 +8896,6 @@ public Builder setArgument(java.lang.String value) {
      * 
* * string argument = 5; - * * @return This builder for chaining. */ public Builder clearArgument() { @@ -10160,8 +8905,6 @@ public Builder clearArgument() { return this; } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -10172,14 +8915,12 @@ public Builder clearArgument() {
      * 
* * string argument = 5; - * * @param value The bytes for argument to set. * @return This builder for chaining. */ - public Builder setArgumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setArgumentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); argument_ = value; bitField0_ |= 0x00000020; @@ -10189,21 +8930,19 @@ public Builder setArgumentBytes(com.google.protobuf.ByteString value) { private java.lang.Object result_ = ""; /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The result. */ public java.lang.String getResult() { java.lang.Object ref = result_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; @@ -10212,22 +8951,21 @@ public java.lang.String getResult() { } } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for result. */ - public com.google.protobuf.ByteString getResultBytes() { + public com.google.protobuf.ByteString + getResultBytes() { java.lang.Object ref = result_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); result_ = b; return b; } else { @@ -10235,37 +8973,30 @@ public com.google.protobuf.ByteString getResultBytes() { } } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResult( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } result_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearResult() { @@ -10275,22 +9006,18 @@ public Builder clearResult() { return this; } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for result to set. * @return This builder for chaining. */ - public Builder setResultBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResultBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); result_ = value; bitField0_ |= 0x00000040; @@ -10300,64 +9027,45 @@ public Builder setResultBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.executions.v1.Execution.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Error, - com.google.cloud.workflows.executions.v1.Execution.Error.Builder, - com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> - errorBuilder_; + com.google.cloud.workflows.executions.v1.Execution.Error, com.google.cloud.workflows.executions.v1.Execution.Error.Builder, com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> errorBuilder_; /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ public com.google.cloud.workflows.executions.v1.Execution.Error getError() { if (errorBuilder_ == null) { - return error_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.cloud.workflows.executions.v1.Execution.Error value) { if (errorBuilder_ == null) { @@ -10373,17 +9081,13 @@ public Builder setError(com.google.cloud.workflows.executions.v1.Execution.Error return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError( com.google.cloud.workflows.executions.v1.Execution.Error.Builder builderForValue) { @@ -10397,24 +9101,19 @@ public Builder setError( return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.cloud.workflows.executions.v1.Execution.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && error_ != null - && error_ - != com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + error_ != null && + error_ != com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -10427,17 +9126,13 @@ public Builder mergeError(com.google.cloud.workflows.executions.v1.Execution.Err return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000080); @@ -10450,17 +9145,13 @@ public Builder clearError() { return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.workflows.executions.v1.Execution.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000080; @@ -10468,52 +9159,40 @@ public com.google.cloud.workflows.executions.v1.Execution.Error.Builder getError return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? + com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; } } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Error, - com.google.cloud.workflows.executions.v1.Execution.Error.Builder, - com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.Error, com.google.cloud.workflows.executions.v1.Execution.Error.Builder, com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Error, - com.google.cloud.workflows.executions.v1.Execution.Error.Builder, - com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder>( - getError(), getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.Error, com.google.cloud.workflows.executions.v1.Execution.Error.Builder, com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); error_ = null; } return errorBuilder_; @@ -10521,20 +9200,18 @@ public com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErro private java.lang.Object workflowRevisionId_ = ""; /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workflowRevisionId. */ public java.lang.String getWorkflowRevisionId() { java.lang.Object ref = workflowRevisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; @@ -10543,21 +9220,20 @@ public java.lang.String getWorkflowRevisionId() { } } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workflowRevisionId. */ - public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString + getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -10565,35 +9241,28 @@ public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { } } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowRevisionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workflowRevisionId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWorkflowRevisionId() { @@ -10603,21 +9272,17 @@ public Builder clearWorkflowRevisionId() { return this; } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowRevisionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workflowRevisionId_ = value; bitField0_ |= 0x00000100; @@ -10627,29 +9292,22 @@ public Builder setWorkflowRevisionIdBytes(com.google.protobuf.ByteString value) private int callLogLevel_ = 0; /** - * - * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override - public int getCallLogLevelValue() { + @java.lang.Override public int getCallLogLevelValue() { return callLogLevel_; } /** - * - * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @param value The enum numeric value on the wire for callLogLevel to set. * @return This builder for chaining. */ @@ -10660,38 +9318,28 @@ public Builder setCallLogLevelValue(int value) { return this; } /** - * - * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @return The callLogLevel. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = - com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); - return result == null - ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); + return result == null ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED : result; } /** - * - * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @param value The callLogLevel to set. * @return This builder for chaining. */ - public Builder setCallLogLevel( - com.google.cloud.workflows.executions.v1.Execution.CallLogLevel value) { + public Builder setCallLogLevel(com.google.cloud.workflows.executions.v1.Execution.CallLogLevel value) { if (value == null) { throw new NullPointerException(); } @@ -10701,14 +9349,11 @@ public Builder setCallLogLevel( return this; } /** - * - * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @return This builder for chaining. */ public Builder clearCallLogLevel() { @@ -10720,61 +9365,42 @@ public Builder clearCallLogLevel() { private com.google.cloud.workflows.executions.v1.Execution.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status, - com.google.cloud.workflows.executions.v1.Execution.Status.Builder, - com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> - statusBuilder_; + com.google.cloud.workflows.executions.v1.Execution.Status, com.google.cloud.workflows.executions.v1.Execution.Status.Builder, com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> statusBuilder_; /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ public com.google.cloud.workflows.executions.v1.Execution.Status getStatus() { if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus(com.google.cloud.workflows.executions.v1.Execution.Status value) { if (statusBuilder_ == null) { @@ -10790,16 +9416,12 @@ public Builder setStatus(com.google.cloud.workflows.executions.v1.Execution.Stat return this; } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStatus( com.google.cloud.workflows.executions.v1.Execution.Status.Builder builderForValue) { @@ -10813,23 +9435,18 @@ public Builder setStatus( return this; } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStatus(com.google.cloud.workflows.executions.v1.Execution.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && status_ != null - && status_ - != com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + status_ != null && + status_ != com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -10842,16 +9459,12 @@ public Builder mergeStatus(com.google.cloud.workflows.executions.v1.Execution.St return this; } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000400); @@ -10864,16 +9477,12 @@ public Builder clearStatus() { return this; } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.workflows.executions.v1.Execution.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000400; @@ -10881,68 +9490,58 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Builder getStat return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null - ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() - : status_; + return status_ == null ? + com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; } } /** - * - * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status, - com.google.cloud.workflows.executions.v1.Execution.Status.Builder, - com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.Status, com.google.cloud.workflows.executions.v1.Execution.Status.Builder, com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status, - com.google.cloud.workflows.executions.v1.Execution.Status.Builder, - com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.Status, com.google.cloud.workflows.executions.v1.Execution.Status.Builder, com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -10951,13 +9550,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -10971,21 +9567,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 11;
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -11003,8 +9598,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -11018,19 +9611,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 11;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -11044,25 +9635,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 11;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000800);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -11075,22 +9664,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 11;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000800;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -11103,20 +9693,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 11;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000800;
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -11129,75 +9716,57 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 11;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000800;
       return this;
     }
 
     private com.google.cloud.workflows.executions.v1.Execution.StateError stateError_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workflows.executions.v1.Execution.StateError,
-            com.google.cloud.workflows.executions.v1.Execution.StateError.Builder,
-            com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder>
-        stateErrorBuilder_;
+        com.google.cloud.workflows.executions.v1.Execution.StateError, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder> stateErrorBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateError field is set. */ public boolean hasStateError() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateError. */ public com.google.cloud.workflows.executions.v1.Execution.StateError getStateError() { if (stateErrorBuilder_ == null) { - return stateError_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() - : stateError_; + return stateError_ == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; } else { return stateErrorBuilder_.getMessage(); } } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStateError( - com.google.cloud.workflows.executions.v1.Execution.StateError value) { + public Builder setStateError(com.google.cloud.workflows.executions.v1.Execution.StateError value) { if (stateErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11211,17 +9780,13 @@ public Builder setStateError( return this; } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateError( com.google.cloud.workflows.executions.v1.Execution.StateError.Builder builderForValue) { @@ -11235,26 +9800,19 @@ public Builder setStateError( return this; } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeStateError( - com.google.cloud.workflows.executions.v1.Execution.StateError value) { + public Builder mergeStateError(com.google.cloud.workflows.executions.v1.Execution.StateError value) { if (stateErrorBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && stateError_ != null - && stateError_ - != com.google.cloud.workflows.executions.v1.Execution.StateError - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + stateError_ != null && + stateError_ != com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance()) { getStateErrorBuilder().mergeFrom(value); } else { stateError_ = value; @@ -11267,17 +9825,13 @@ public Builder mergeStateError( return this; } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateError() { bitField0_ = (bitField0_ & ~0x00001000); @@ -11290,79 +9844,61 @@ public Builder clearStateError() { return this; } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.workflows.executions.v1.Execution.StateError.Builder - getStateErrorBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StateError.Builder getStateErrorBuilder() { bitField0_ |= 0x00001000; onChanged(); return getStateErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder - getStateErrorOrBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder getStateErrorOrBuilder() { if (stateErrorBuilder_ != null) { return stateErrorBuilder_.getMessageOrBuilder(); } else { - return stateError_ == null - ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() - : stateError_; + return stateError_ == null ? + com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; } } /** - * - * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StateError, - com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, - com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StateError, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder> getStateErrorFieldBuilder() { if (stateErrorBuilder_ == null) { - stateErrorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StateError, - com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, - com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder>( - getStateError(), getParentForChildren(), isClean()); + stateErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StateError, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder>( + getStateError(), + getParentForChildren(), + isClean()); stateError_ = null; } return stateErrorBuilder_; } - @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); } @@ -11372,12 +9908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution) private static final com.google.cloud.workflows.executions.v1.Execution DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution(); } @@ -11386,27 +9922,27 @@ public static com.google.cloud.workflows.executions.v1.Execution getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11421,4 +9957,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.Execution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java similarity index 100% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java similarity index 75% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java index bf9ed7a5f057..8bc0fcfd6eb5 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface ExecutionOrBuilder - extends +public interface ExecutionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the execution.
    * Format:
@@ -33,13 +15,10 @@ public interface ExecutionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the execution.
    * Format:
@@ -47,157 +26,112 @@ public interface ExecutionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the duration field is set. */ boolean hasDuration(); /** - * - * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The duration. */ com.google.protobuf.Duration getDuration(); /** - * - * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.workflows.executions.v1.Execution.State getState(); /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -208,13 +142,10 @@ public interface ExecutionOrBuilder
    * 
* * string argument = 5; - * * @return The argument. */ java.lang.String getArgument(); /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -225,182 +156,136 @@ public interface ExecutionOrBuilder
    * 
* * string argument = 5; - * * @return The bytes for argument. */ - com.google.protobuf.ByteString getArgumentBytes(); + com.google.protobuf.ByteString + getArgumentBytes(); /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The result. */ java.lang.String getResult(); /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for result. */ - com.google.protobuf.ByteString getResultBytes(); + com.google.protobuf.ByteString + getResultBytes(); /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ com.google.cloud.workflows.executions.v1.Execution.Error getError(); /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErrorOrBuilder(); /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workflowRevisionId. */ java.lang.String getWorkflowRevisionId(); /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workflowRevisionId. */ - com.google.protobuf.ByteString getWorkflowRevisionIdBytes(); + com.google.protobuf.ByteString + getWorkflowRevisionIdBytes(); /** - * - * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @return The enum numeric value on the wire for callLogLevel. */ int getCallLogLevelValue(); /** - * - * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; - * * @return The callLogLevel. */ com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel(); /** - * - * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The status. */ com.google.cloud.workflows.executions.v1.Execution.Status getStatus(); /** - * - * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -415,8 +300,6 @@ public interface ExecutionOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -429,13 +312,15 @@ public interface ExecutionOrBuilder
    *
    * map<string, string> labels = 11;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -448,10 +333,9 @@ public interface ExecutionOrBuilder
    *
    * map<string, string> labels = 11;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -465,13 +349,11 @@ public interface ExecutionOrBuilder
    * map<string, string> labels = 11;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -484,52 +366,39 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 11;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateError field is set. */ boolean hasStateError(); /** - * - * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateError. */ com.google.cloud.workflows.executions.v1.Execution.StateError getStateError(); /** - * - * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder getStateErrorOrBuilder(); } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java similarity index 67% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java index 7b57514760e2..359bbdbd1a56 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java @@ -1,36 +1,18 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** - * - * *
  * Defines possible views for execution resource.
  * 
* * Protobuf enum {@code google.cloud.workflows.executions.v1.ExecutionView} */ -public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionView + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The default / unset value.
    * 
@@ -39,8 +21,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { */ EXECUTION_VIEW_UNSPECIFIED(0), /** - * - * *
    * Includes only basic metadata about the execution.
    * The following fields are returned: name, start_time, end_time, duration,
@@ -51,8 +31,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum {
    */
   BASIC(1),
   /**
-   *
-   *
    * 
    * Includes all data.
    * 
@@ -64,8 +42,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The default / unset value.
    * 
@@ -74,8 +50,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXECUTION_VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Includes only basic metadata about the execution.
    * The following fields are returned: name, start_time, end_time, duration,
@@ -86,8 +60,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int BASIC_VALUE = 1;
   /**
-   *
-   *
    * 
    * Includes all data.
    * 
@@ -96,6 +68,7 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -120,51 +93,49 @@ public static ExecutionView valueOf(int value) { */ public static ExecutionView forNumber(int value) { switch (value) { - case 0: - return EXECUTION_VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; + case 0: return EXECUTION_VIEW_UNSPECIFIED; + case 1: return BASIC; + case 2: return FULL; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionView findValueByNumber(int number) { - return ExecutionView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionView findValueByNumber(int number) { + return ExecutionView.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.workflows.executions.v1.ExecutionsProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.getDescriptor().getEnumTypes().get(0); } private static final ExecutionView[] VALUES = values(); - public static ExecutionView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionView 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; @@ -180,3 +151,4 @@ private ExecutionView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1.ExecutionView) } + diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java new file mode 100644 index 000000000000..5c1a45efb3d2 --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java @@ -0,0 +1,318 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1/executions.proto + +package com.google.cloud.workflows.executions.v1; + +public final class ExecutionsProto { + private ExecutionsProto() {} + 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_workflows_executions_v1_Execution_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_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/workflows/executions/v1/e" + + "xecutions.proto\022$google.cloud.workflows." + + "executions.v1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032\036google/protobuf/duration.proto" + + "\032\037google/protobuf/timestamp.proto\"\307\016\n\tEx" + + "ecution\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0224\n\nstart_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + + "\003\0222\n\010end_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\0221\n\010duration\030\014 \001(\0132\031.google" + + ".protobuf.DurationB\004\342A\001\003\022J\n\005state\030\004 \001(\0162" + + "5.google.cloud.workflows.executions.v1.E" + + "xecution.StateB\004\342A\001\003\022\020\n\010argument\030\005 \001(\t\022\024" + + "\n\006result\030\006 \001(\tB\004\342A\001\003\022J\n\005error\030\007 \001(\01325.go" + + "ogle.cloud.workflows.executions.v1.Execu" + + "tion.ErrorB\004\342A\001\003\022\"\n\024workflow_revision_id" + + "\030\010 \001(\tB\004\342A\001\003\022T\n\016call_log_level\030\t \001(\0162<.g" + + "oogle.cloud.workflows.executions.v1.Exec" + + "ution.CallLogLevel\022L\n\006status\030\n \001(\01326.goo" + + "gle.cloud.workflows.executions.v1.Execut" + + "ion.StatusB\004\342A\001\003\022K\n\006labels\030\013 \003(\0132;.googl" + + "e.cloud.workflows.executions.v1.Executio" + + "n.LabelsEntry\022U\n\013state_error\030\r \001(\0132:.goo" + + "gle.cloud.workflows.executions.v1.Execut" + + "ion.StateErrorB\004\342A\001\003\032\312\001\n\021StackTraceEleme" + + "nt\022\014\n\004step\030\001 \001(\t\022\017\n\007routine\030\002 \001(\t\022\\\n\010pos" + + "ition\030\003 \001(\0132J.google.cloud.workflows.exe" + + "cutions.v1.Execution.StackTraceElement.P" + + "osition\0328\n\010Position\022\014\n\004line\030\001 \001(\003\022\016\n\006col" + + "umn\030\002 \001(\003\022\016\n\006length\030\003 \001(\003\032a\n\nStackTrace\022" + + "S\n\010elements\030\001 \003(\0132A.google.cloud.workflo" + + "ws.executions.v1.Execution.StackTraceEle" + + "ment\032z\n\005Error\022\017\n\007payload\030\001 \001(\t\022\017\n\007contex" + + "t\030\002 \001(\t\022O\n\013stack_trace\030\003 \001(\0132:.google.cl" + + "oud.workflows.executions.v1.Execution.St" + + "ackTrace\032\203\001\n\006Status\022R\n\rcurrent_steps\030\001 \003" + + "(\0132;.google.cloud.workflows.executions.v" + + "1.Execution.Status.Step\032%\n\004Step\022\017\n\007routi" + + "ne\030\001 \001(\t\022\014\n\004step\030\002 \001(\t\032\231\001\n\nStateError\022\017\n" + + "\007details\030\001 \001(\t\022M\n\004type\030\002 \001(\0162?.google.cl" + + "oud.workflows.executions.v1.Execution.St" + + "ateError.Type\"+\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\r\n\tKMS_ERROR\020\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCCEED" + + "ED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004\022\017\n\013UNAVA" + + "ILABLE\020\005\022\n\n\006QUEUED\020\006\"d\n\014CallLogLevel\022\036\n\032" + + "CALL_LOG_LEVEL_UNSPECIFIED\020\000\022\021\n\rLOG_ALL_" + + "CALLS\020\001\022\023\n\017LOG_ERRORS_ONLY\020\002\022\014\n\010LOG_NONE" + + "\020\003:\206\001\352A\202\001\n+workflowexecutions.googleapis" + + ".com/Execution\022Sprojects/{project}/locat" + + "ions/{location}/workflows/{workflow}/exe" + + "cutions/{execution}\"\361\001\n\025ListExecutionsRe" + + "quest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflow" + + "s.googleapis.com/Workflow\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022G\n\004view\030\004 \001(\01623" + + ".google.cloud.workflows.executions.v1.Ex" + + "ecutionViewB\004\342A\001\001\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022" + + "\026\n\010order_by\030\006 \001(\tB\004\342A\001\001\"v\n\026ListExecution" + + "sResponse\022C\n\nexecutions\030\001 \003(\0132/.google.c" + + "loud.workflows.executions.v1.Execution\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\236\001\n\026CreateExecut" + + "ionRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!wor" + + "kflows.googleapis.com/Workflow\022H\n\texecut" + + "ion\030\002 \001(\0132/.google.cloud.workflows.execu" + + "tions.v1.ExecutionB\004\342A\001\002\"\242\001\n\023GetExecutio" + + "nRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflo" + + "wexecutions.googleapis.com/Execution\022G\n\004" + + "view\030\002 \001(\01623.google.cloud.workflows.exec" + + "utions.v1.ExecutionViewB\004\342A\001\001\"\\\n\026CancelE" + + "xecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+" + + "workflowexecutions.googleapis.com/Execut" + + "ion*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW_U" + + "NSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\303\007\n\nEx" + + "ecutions\022\330\001\n\016ListExecutions\022;.google.clo" + + "ud.workflows.executions.v1.ListExecution" + + "sRequest\032<.google.cloud.workflows.execut" + + "ions.v1.ListExecutionsResponse\"K\332A\006paren" + + "t\202\323\344\223\002<\022:/v1/{parent=projects/*/location" + + "s/*/workflows/*}/executions\022\342\001\n\017CreateEx" + + "ecution\022<.google.cloud.workflows.executi" + + "ons.v1.CreateExecutionRequest\032/.google.c" + + "loud.workflows.executions.v1.Execution\"`" + + "\332A\020parent,execution\202\323\344\223\002G\":/v1/{parent=p" + + "rojects/*/locations/*/workflows/*}/execu" + + "tions:\texecution\022\305\001\n\014GetExecution\0229.goog" + + "le.cloud.workflows.executions.v1.GetExec" + + "utionRequest\032/.google.cloud.workflows.ex" + + "ecutions.v1.Execution\"I\332A\004name\202\323\344\223\002<\022:/v" + + "1/{name=projects/*/locations/*/workflows" + + "/*/executions/*}\022\325\001\n\017CancelExecution\022<.g" + + "oogle.cloud.workflows.executions.v1.Canc" + + "elExecutionRequest\032/.google.cloud.workfl" + + "ows.executions.v1.Execution\"S\332A\004name\202\323\344\223" + + "\002F\"A/v1/{name=projects/*/locations/*/wor" + + "kflows/*/executions/*}:cancel:\001*\032U\312A!wor" + + "kflowexecutions.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\353\001\n(com.google.cloud.workflows.execution" + + "s.v1B\017ExecutionsProtoP\001ZHcloud.google.co" + + "m/go/workflows/executions/apiv1/executio" + + "nspb;executionspb\352Aa\n!workflows.googleap" + + "is.com/Workflow\022 * Request for the * [GetExecution][google.cloud.workflows.executions.v1.Executions.GetExecution] @@ -29,16 +12,15 @@ * * Protobuf type {@code google.cloud.workflows.executions.v1.GetExecutionRequest} */ -public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetExecutionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.GetExecutionRequest) GetExecutionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetExecutionRequest.newBuilder() to construct. private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetExecutionRequest() { name_ = ""; view_ = 0; @@ -46,42 +28,35 @@ private GetExecutionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetExecutionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, - com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class); + com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 @@ -90,33 +65,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. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 { @@ -127,48 +100,32 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = - com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { + com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,13 +137,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 (view_ - != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, view_); } getUnknownFields().writeTo(output); @@ -201,10 +157,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ - != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + if (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,15 +169,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.workflows.executions.v1.GetExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.GetExecutionRequest other = - (com.google.cloud.workflows.executions.v1.GetExecutionRequest) obj; + com.google.cloud.workflows.executions.v1.GetExecutionRequest other = (com.google.cloud.workflows.executions.v1.GetExecutionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -245,104 +200,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.GetExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.GetExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.GetExecutionRequest 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
    * [GetExecution][google.cloud.workflows.executions.v1.Executions.GetExecution]
@@ -351,32 +300,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.GetExecutionRequest}
    */
-  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.workflows.executions.v1.GetExecutionRequest)
       com.google.cloud.workflows.executions.v1.GetExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.GetExecutionRequest.class,
-              com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.GetExecutionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -387,14 +337,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.GetExecutionRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.GetExecutionRequest getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance();
     }
 
@@ -409,17 +358,13 @@ public com.google.cloud.workflows.executions.v1.GetExecutionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.GetExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.GetExecutionRequest result =
-          new com.google.cloud.workflows.executions.v1.GetExecutionRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1.GetExecutionRequest result = new com.google.cloud.workflows.executions.v1.GetExecutionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1.GetExecutionRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1.GetExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -433,39 +378,38 @@ private void buildPartial0(
     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.workflows.executions.v1.GetExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.GetExecutionRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.GetExecutionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,9 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.executions.v1.GetExecutionRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -510,25 +452,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                view_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              view_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -538,29 +477,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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; @@ -569,25 +503,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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 { @@ -595,43 +526,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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() { @@ -641,25 +561,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -669,35 +583,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -708,39 +611,26 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = - com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The view to set. * @return This builder for chaining. */ @@ -754,17 +644,12 @@ public Builder setView(com.google.cloud.workflows.executions.v1.ExecutionView va return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearView() { @@ -773,9 +658,9 @@ public Builder clearView() { 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); } @@ -785,13 +670,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.GetExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.GetExecutionRequest) - private static final com.google.cloud.workflows.executions.v1.GetExecutionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.GetExecutionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.GetExecutionRequest(); } @@ -800,27 +684,27 @@ public static com.google.cloud.workflows.executions.v1.GetExecutionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,4 +719,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.GetExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java similarity index 50% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java index adc7d29e5811..9784ca803040 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java @@ -1,88 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface GetExecutionRequestOrBuilder - extends +public interface GetExecutionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.GetExecutionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ com.google.cloud.workflows.executions.v1.ExecutionView getView(); diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java similarity index 71% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java index 0e4446f287c5..7a5bc7759dca 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** - * - * *
  * Request for the
  * [ListExecutions][]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsRequest}
  */
-public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListExecutionsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.ListExecutionsRequest)
     ListExecutionsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListExecutionsRequest.newBuilder() to construct.
   private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListExecutionsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -49,41 +31,34 @@ private ListExecutionsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListExecutionsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class,
-            com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 @@ -92,32 +67,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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 1000 for
@@ -139,7 +110,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -148,12 +118,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -166,7 +133,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -175,15 +141,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 page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -196,15 +161,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 { @@ -215,53 +181,35 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int VIEW_FIELD_NUMBER = 4; private int view_ = 0; /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = - com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { + com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; } public static final int FILTER_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -270,7 +218,6 @@ public com.google.cloud.workflows.executions.v1.ExecutionView getView() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -279,15 +226,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; } } /** - * - * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -296,15 +242,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -313,12 +260,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -327,7 +271,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -336,15 +279,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -353,15 +295,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -370,7 +313,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +324,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_); } @@ -392,9 +335,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (view_ - != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { @@ -416,15 +357,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (view_ - != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, view_); + if (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); @@ -440,20 +381,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.workflows.executions.v1.ListExecutionsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.ListExecutionsRequest other = - (com.google.cloud.workflows.executions.v1.ListExecutionsRequest) obj; + com.google.cloud.workflows.executions.v1.ListExecutionsRequest other = (com.google.cloud.workflows.executions.v1.ListExecutionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (view_ != other.view_) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -483,104 +428,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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
    * [ListExecutions][]
@@ -589,32 +528,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsRequest}
    */
-  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.workflows.executions.v1.ListExecutionsRequest)
       com.google.cloud.workflows.executions.v1.ListExecutionsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class,
-              com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.ListExecutionsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -629,14 +569,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.ListExecutionsRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.ListExecutionsRequest getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance();
     }
 
@@ -651,17 +590,13 @@ public com.google.cloud.workflows.executions.v1.ListExecutionsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.ListExecutionsRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.ListExecutionsRequest result =
-          new com.google.cloud.workflows.executions.v1.ListExecutionsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1.ListExecutionsRequest result = new com.google.cloud.workflows.executions.v1.ListExecutionsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1.ListExecutionsRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1.ListExecutionsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -687,39 +622,38 @@ private void buildPartial0(
     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.workflows.executions.v1.ListExecutionsRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -727,9 +661,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.executions.v1.ListExecutionsRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -782,49 +714,42 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                view_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              view_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              orderBy_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -834,28 +759,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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; @@ -864,24 +784,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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 { @@ -889,41 +806,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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() { @@ -933,24 +839,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -958,10 +858,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 1000 for
@@ -971,7 +869,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -979,8 +876,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 1000 for
@@ -990,7 +885,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1002,8 +896,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 1000 for
@@ -1013,7 +905,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1025,8 +916,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -1039,13 +928,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -1054,8 +943,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -1068,14 +955,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 { @@ -1083,8 +971,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -1097,22 +983,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -1125,7 +1007,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1135,8 +1016,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -1149,14 +1028,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1166,35 +1043,24 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1205,39 +1071,26 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = - com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The view to set. * @return This builder for chaining. */ @@ -1251,17 +1104,12 @@ public Builder setView(com.google.cloud.workflows.executions.v1.ExecutionView va return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearView() { @@ -1273,8 +1121,6 @@ public Builder clearView() { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1283,13 +1129,13 @@ public Builder clearView() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1298,8 +1144,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1308,14 +1152,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1323,8 +1168,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1333,22 +1176,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1357,7 +1196,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1367,8 +1205,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1377,14 +1213,12 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000010; @@ -1394,8 +1228,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1404,13 +1236,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1419,8 +1251,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1429,14 +1259,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1444,8 +1275,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1454,22 +1283,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1478,7 +1303,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1488,8 +1312,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1498,23 +1320,21 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000020; 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); } @@ -1524,43 +1344,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.ListExecutionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.ListExecutionsRequest) - private static final com.google.cloud.workflows.executions.v1.ListExecutionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.ListExecutionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.ListExecutionsRequest(); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1572,8 +1390,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.ListExecutionsRequest - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.ListExecutionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java similarity index 74% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java index ab050cf1886b..c26cb9c6832e 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface ListExecutionsRequestOrBuilder - extends +public interface ListExecutionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.ListExecutionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 1000 for
@@ -66,14 +39,11 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -86,13 +56,10 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -105,45 +72,33 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ com.google.cloud.workflows.executions.v1.ExecutionView getView(); /** - * - * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -152,13 +107,10 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -167,14 +119,12 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -183,13 +133,10 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -198,8 +145,8 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java similarity index 71% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java index 68a23774a034..7616bced18a6 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** - * - * *
  * Response for the
  * [ListExecutions][google.cloud.workflows.executions.v1.Executions.ListExecutions]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsResponse}
  */
-public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListExecutionsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.ListExecutionsResponse)
     ListExecutionsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListExecutionsResponse.newBuilder() to construct.
   private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListExecutionsResponse() {
     executions_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,32 +28,28 @@ private ListExecutionsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListExecutionsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class,
-            com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
+            com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
   }
 
   public static final int EXECUTIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List executions_;
   /**
-   *
-   *
    * 
    * The executions which match the request.
    * 
@@ -83,8 +61,6 @@ public java.util.List getExe return executions_; } /** - * - * *
    * The executions which match the request.
    * 
@@ -92,13 +68,11 @@ public java.util.List getExe * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExecutionsOrBuilderList() { return executions_; } /** - * - * *
    * The executions which match the request.
    * 
@@ -110,8 +84,6 @@ public int getExecutionsCount() { return executions_.size(); } /** - * - * *
    * The executions which match the request.
    * 
@@ -123,8 +95,6 @@ public com.google.cloud.workflows.executions.v1.Execution getExecutions(int inde return executions_.get(index); } /** - * - * *
    * The executions which match the request.
    * 
@@ -138,19 +108,15 @@ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutions } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,30 +125,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; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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 < executions_.size(); i++) { output.writeMessage(1, executions_.get(i)); } @@ -220,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +200,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.workflows.executions.v1.ListExecutionsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.ListExecutionsResponse other = - (com.google.cloud.workflows.executions.v1.ListExecutionsResponse) obj; + com.google.cloud.workflows.executions.v1.ListExecutionsResponse other = (com.google.cloud.workflows.executions.v1.ListExecutionsResponse) obj; - if (!getExecutionsList().equals(other.getExecutionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getExecutionsList() + .equals(other.getExecutionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,104 +234,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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
    * [ListExecutions][google.cloud.workflows.executions.v1.Executions.ListExecutions]
@@ -372,32 +334,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsResponse}
    */
-  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.workflows.executions.v1.ListExecutionsResponse)
       com.google.cloud.workflows.executions.v1.ListExecutionsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class,
-              com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
+              com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.ListExecutionsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,14 +377,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.ListExecutionsResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.ListExecutionsResponse getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance();
     }
 
@@ -436,18 +398,14 @@ public com.google.cloud.workflows.executions.v1.ListExecutionsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.ListExecutionsResponse buildPartial() {
-      com.google.cloud.workflows.executions.v1.ListExecutionsResponse result =
-          new com.google.cloud.workflows.executions.v1.ListExecutionsResponse(this);
+      com.google.cloud.workflows.executions.v1.ListExecutionsResponse result = new com.google.cloud.workflows.executions.v1.ListExecutionsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
       if (executionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           executions_ = java.util.Collections.unmodifiableList(executions_);
@@ -459,8 +417,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -471,50 +428,46 @@ private void buildPartial0(
     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.workflows.executions.v1.ListExecutionsResponse) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsResponse) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1.ListExecutionsResponse other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1.ListExecutionsResponse other) {
+      if (other == com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance()) return this;
       if (executionsBuilder_ == null) {
         if (!other.executions_.isEmpty()) {
           if (executions_.isEmpty()) {
@@ -533,10 +486,9 @@ public Builder mergeFrom(
             executionsBuilder_ = null;
             executions_ = other.executions_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            executionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getExecutionsFieldBuilder()
-                    : null;
+            executionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getExecutionsFieldBuilder() : null;
           } else {
             executionsBuilder_.addAllMessages(other.executions_);
           }
@@ -573,33 +525,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.workflows.executions.v1.Execution m =
-                    input.readMessage(
-                        com.google.cloud.workflows.executions.v1.Execution.parser(),
-                        extensionRegistry);
-                if (executionsBuilder_ == null) {
-                  ensureExecutionsIsMutable();
-                  executions_.add(m);
-                } else {
-                  executionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.workflows.executions.v1.Execution m =
+                  input.readMessage(
+                      com.google.cloud.workflows.executions.v1.Execution.parser(),
+                      extensionRegistry);
+              if (executionsBuilder_ == null) {
+                ensureExecutionsIsMutable();
+                executions_.add(m);
+              } else {
+                executionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -609,30 +558,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List executions_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureExecutionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        executions_ =
-            new java.util.ArrayList(
-                executions_);
+        executions_ = new java.util.ArrayList(executions_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.workflows.executions.v1.Execution,
-            com.google.cloud.workflows.executions.v1.Execution.Builder,
-            com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>
-        executionsBuilder_;
+        com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> executionsBuilder_;
 
     /**
-     *
-     *
      * 
      * The executions which match the request.
      * 
@@ -647,8 +587,6 @@ public java.util.List getExe } } /** - * - * *
      * The executions which match the request.
      * 
@@ -663,8 +601,6 @@ public int getExecutionsCount() { } } /** - * - * *
      * The executions which match the request.
      * 
@@ -679,8 +615,6 @@ public com.google.cloud.workflows.executions.v1.Execution getExecutions(int inde } } /** - * - * *
      * The executions which match the request.
      * 
@@ -702,8 +636,6 @@ public Builder setExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -722,8 +654,6 @@ public Builder setExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -744,8 +674,6 @@ public Builder addExecutions(com.google.cloud.workflows.executions.v1.Execution return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -767,8 +695,6 @@ public Builder addExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -787,8 +713,6 @@ public Builder addExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -807,8 +731,6 @@ public Builder addExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -819,7 +741,8 @@ public Builder addAllExecutions( java.lang.Iterable values) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); onChanged(); } else { executionsBuilder_.addAllMessages(values); @@ -827,8 +750,6 @@ public Builder addAllExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -846,8 +767,6 @@ public Builder clearExecutions() { return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -865,8 +784,6 @@ public Builder removeExecutions(int index) { return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -878,8 +795,6 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionsB return getExecutionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The executions which match the request.
      * 
@@ -889,22 +804,19 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionsB public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionsOrBuilder( int index) { if (executionsBuilder_ == null) { - return executions_.get(index); - } else { + return executions_.get(index); } else { return executionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - public java.util.List - getExecutionsOrBuilderList() { + public java.util.List + getExecutionsOrBuilderList() { if (executionsBuilder_ != null) { return executionsBuilder_.getMessageOrBuilderList(); } else { @@ -912,8 +824,6 @@ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutions } } /** - * - * *
      * The executions which match the request.
      * 
@@ -921,12 +831,10 @@ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutions * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder() - .addBuilder(com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder().addBuilder( + com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); } /** - * - * *
      * The executions which match the request.
      * 
@@ -935,36 +843,30 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsB */ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsBuilder( int index) { - return getExecutionsFieldBuilder() - .addBuilder( - index, com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder().addBuilder( + index, com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); } /** - * - * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - public java.util.List - getExecutionsBuilderList() { + public java.util.List + getExecutionsBuilderList() { return getExecutionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, - com.google.cloud.workflows.executions.v1.Execution.Builder, - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> getExecutionsFieldBuilder() { if (executionsBuilder_ == null) { - executionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, - com.google.cloud.workflows.executions.v1.Execution.Builder, - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( - executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); executions_ = null; } return executionsBuilder_; @@ -972,21 +874,19 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -995,22 +895,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -1018,37 +917,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1058,31 +950,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1092,43 +980,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.ListExecutionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.ListExecutionsResponse) - private static final com.google.cloud.workflows.executions.v1.ListExecutionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1.ListExecutionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.ListExecutionsResponse(); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1140,8 +1026,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.ListExecutionsResponse - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.ListExecutionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java similarity index 70% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java index a53b5426e0bd..af9b0b7305cc 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface ListExecutionsResponseOrBuilder - extends +public interface ListExecutionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.ListExecutionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - java.util.List getExecutionsList(); + java.util.List + getExecutionsList(); /** - * - * *
    * The executions which match the request.
    * 
@@ -44,8 +25,6 @@ public interface ListExecutionsResponseOrBuilder */ com.google.cloud.workflows.executions.v1.Execution getExecutions(int index); /** - * - * *
    * The executions which match the request.
    * 
@@ -54,51 +33,43 @@ public interface ListExecutionsResponseOrBuilder */ int getExecutionsCount(); /** - * - * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - java.util.List + java.util.List getExecutionsOrBuilderList(); /** - * - * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionsOrBuilder(int index); + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java similarity index 100% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto similarity index 100% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto rename to owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java similarity index 89% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java index 79883552ce3e..96676e7e8cf6 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java @@ -57,19 +57,90 @@ *

Note: close() needs to be called on the ExecutionsClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
ListExecutions

Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first).

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listExecutions(ListExecutionsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listExecutions(WorkflowName parent) + *
  • listExecutions(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listExecutionsPagedCallable() + *
  • listExecutionsCallable() + *
+ *
CreateExecution

Creates a new execution using the latest revision of the given workflow.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createExecution(CreateExecutionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createExecution(WorkflowName parent, Execution execution) + *
  • createExecution(String parent, Execution execution) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createExecutionCallable() + *
+ *
GetExecution

Returns an execution of the given name.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getExecution(GetExecutionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getExecution(ExecutionName name) + *
  • getExecution(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getExecutionCallable() + *
+ *
CancelExecution

Cancels an execution of the given name.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • cancelExecution(CancelExecutionRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • cancelExecution(ExecutionName name) + *
  • cancelExecution(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • cancelExecutionCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java similarity index 99% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java index 9f6375703eb4..77597b65e8fb 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java @@ -28,6 +28,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.workflows.executions.v1beta.stub.ExecutionsStubSettings; diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java similarity index 99% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java index e44d4390a790..3c3ad799eb4a 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java @@ -200,6 +200,12 @@ public ExecutionsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "workflowexecutions"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java similarity index 99% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java index 2a16e557f287..1c252af0d1a0 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java @@ -36,6 +36,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/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java b/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java similarity index 100% rename from java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java rename to owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java b/owl-bot-staging/java-workflow-executions/v1beta/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java new file mode 100644 index 000000000000..f3f06e0960b4 --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1beta/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java @@ -0,0 +1,599 @@ +package com.google.cloud.workflows.executions.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Executions is used to start and manage running instances of
+ * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workflows/executions/v1beta/executions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ExecutionsGrpc { + + private ExecutionsGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.executions.v1beta.Executions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListExecutionsMethod() { + io.grpc.MethodDescriptor getListExecutionsMethod; + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + ExecutionsGrpc.getListExecutionsMethod = getListExecutionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExecution", + requestType = com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateExecutionMethod() { + io.grpc.MethodDescriptor getCreateExecutionMethod; + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + ExecutionsGrpc.getCreateExecutionMethod = getCreateExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CreateExecution")) + .build(); + } + } + } + return getCreateExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetExecutionMethod() { + io.grpc.MethodDescriptor getGetExecutionMethod; + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + ExecutionsGrpc.getGetExecutionMethod = getGetExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCancelExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelExecution", + requestType = com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCancelExecutionMethod() { + io.grpc.MethodDescriptor getCancelExecutionMethod; + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + ExecutionsGrpc.getCancelExecutionMethod = getCancelExecutionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CancelExecution")) + .build(); + } + } + } + return getCancelExecutionMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static ExecutionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + }; + return ExecutionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ExecutionsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + }; + return ExecutionsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ExecutionsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + }; + return ExecutionsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + default void listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExecutionsMethod(), responseObserver); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + default void createExecution(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExecutionMethod(), responseObserver); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + default void getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExecutionMethod(), responseObserver); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + default void cancelExecution(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelExecutionMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public static abstract class ExecutionsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ExecutionsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsStub + extends io.grpc.stub.AbstractAsyncStub { + private ExecutionsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public void listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public void createExecution(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + public void getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public void cancelExecution(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ExecutionsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.Execution createExecution(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExecutionMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.Execution getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.Execution cancelExecution(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelExecutionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ExecutionsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listExecutions( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createExecution( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getExecution( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture cancelExecution( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EXECUTIONS = 0; + private static final int METHODID_CREATE_EXECUTION = 1; + private static final int METHODID_GET_EXECUTION = 2; + private static final int METHODID_CANCEL_EXECUTION = 3; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_LIST_EXECUTIONS: + serviceImpl.listExecutions((com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EXECUTION: + serviceImpl.createExecution((com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EXECUTION: + serviceImpl.getExecution((com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_EXECUTION: + serviceImpl.cancelExecution((com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse>( + service, METHODID_LIST_EXECUTIONS))) + .addMethod( + getCreateExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution>( + service, METHODID_CREATE_EXECUTION))) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution>( + service, METHODID_GET_EXECUTION))) + .addMethod( + getCancelExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution>( + service, METHODID_CANCEL_EXECUTION))) + .build(); + } + + private static abstract class ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ExecutionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Executions"); + } + } + + private static final class ExecutionsFileDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier { + ExecutionsFileDescriptorSupplier() {} + } + + private static final class ExecutionsMethodDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) + .addMethod(getListExecutionsMethod()) + .addMethod(getCreateExecutionMethod()) + .addMethod(getGetExecutionMethod()) + .addMethod(getCancelExecutionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java similarity index 60% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java index adf677a43caf..1c1fbc2e3c95 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** - * - * *
  * Request for the
  * [CancelExecution][google.cloud.workflows.executions.v1beta.Executions.CancelExecution]
@@ -29,58 +12,50 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.CancelExecutionRequest}
  */
-public final class CancelExecutionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CancelExecutionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.CancelExecutionRequest)
     CancelExecutionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CancelExecutionRequest.newBuilder() to construct.
   private CancelExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CancelExecutionRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CancelExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class,
-            com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 @@ -89,33 +64,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. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 { @@ -124,7 +97,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +108,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_); } @@ -160,15 +133,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.workflows.executions.v1beta.CancelExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other = - (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) obj; + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other = (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,105 +161,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest - 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.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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
    * [CancelExecution][google.cloud.workflows.executions.v1beta.Executions.CancelExecution]
@@ -295,33 +261,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.CancelExecutionRequest}
    */
-  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.workflows.executions.v1beta.CancelExecutionRequest)
       com.google.cloud.workflows.executions.v1beta.CancelExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class,
-              com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -331,16 +297,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest
-          .getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -354,17 +318,13 @@ public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest build
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result =
-          new com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result = new com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -375,51 +335,46 @@ private void buildPartial0(
     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.workflows.executions.v1beta.CancelExecutionRequest) {
-        return mergeFrom(
-            (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other) {
+      if (other == com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -451,19 +406,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -473,29 +426,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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; @@ -504,25 +452,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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 { @@ -530,43 +475,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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() { @@ -576,34 +510,28 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -613,43 +541,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.CancelExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.CancelExecutionRequest) - private static final com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,8 +587,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..aafcee78af00 --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1beta/executions.proto + +package com.google.cloud.workflows.executions.v1beta; + +public interface CancelExecutionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.CancelExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * 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/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java similarity index 59% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java index 2900df3baab0..533658e51730 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** - * - * *
  * Request for the
  * [CreateExecution][google.cloud.workflows.executions.v1beta.Executions.CreateExecution]
@@ -29,58 +12,50 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.CreateExecutionRequest}
  */
-public final class CreateExecutionRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateExecutionRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.CreateExecutionRequest)
     CreateExecutionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateExecutionRequest.newBuilder() to construct.
   private CreateExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateExecutionRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class,
-            com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * - * 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 @@ -89,33 +64,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. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * - * 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 { @@ -126,16 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int EXECUTION_FIELD_NUMBER = 2; private com.google.cloud.workflows.executions.v1beta.Execution execution_; /** - * - * *
    * Required. Execution to be created.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the execution field is set. */ @java.lang.Override @@ -143,44 +111,30 @@ public boolean hasExecution() { return execution_ != null; } /** - * - * *
    * Required. Execution to be created.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The execution. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution getExecution() { - return execution_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; } /** - * - * *
    * Required. Execution to be created.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder() { - return execution_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,7 +146,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_); } @@ -212,7 +167,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (execution_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecution()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExecution()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,18 +178,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.workflows.executions.v1beta.CreateExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other = - (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) obj; + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other = (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasExecution() != other.hasExecution()) return false; if (hasExecution()) { - if (!getExecution().equals(other.getExecution())) return false; + if (!getExecution() + .equals(other.getExecution())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -258,105 +215,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest - 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.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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
    * [CreateExecution][google.cloud.workflows.executions.v1beta.Executions.CreateExecution]
@@ -365,33 +315,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.CreateExecutionRequest}
    */
-  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.workflows.executions.v1beta.CreateExecutionRequest)
       com.google.cloud.workflows.executions.v1beta.CreateExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class,
-              com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -406,16 +356,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest
-          .getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -429,23 +377,21 @@ public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest build
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result =
-          new com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result = new com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build();
+        result.execution_ = executionBuilder_ == null
+            ? execution_
+            : executionBuilder_.build();
       }
     }
 
@@ -453,51 +399,46 @@ private void buildPartial0(
     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.workflows.executions.v1beta.CreateExecutionRequest) {
-        return mergeFrom(
-            (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other) {
+      if (other == com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -532,25 +473,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getExecutionFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -560,29 +500,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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; @@ -591,25 +526,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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 { @@ -617,43 +549,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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() { @@ -663,25 +584,19 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -691,58 +606,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.executions.v1beta.Execution execution_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, - com.google.cloud.workflows.executions.v1beta.Execution.Builder, - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> - executionBuilder_; + com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> executionBuilder_; /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the execution field is set. */ public boolean hasExecution() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The execution. */ public com.google.cloud.workflows.executions.v1beta.Execution getExecution() { if (executionBuilder_ == null) { - return execution_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; } else { return executionBuilder_.getMessage(); } } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExecution(com.google.cloud.workflows.executions.v1beta.Execution value) { if (executionBuilder_ == null) { @@ -758,15 +654,11 @@ public Builder setExecution(com.google.cloud.workflows.executions.v1beta.Executi return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setExecution( com.google.cloud.workflows.executions.v1beta.Execution.Builder builderForValue) { @@ -780,22 +672,17 @@ public Builder setExecution( return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeExecution(com.google.cloud.workflows.executions.v1beta.Execution value) { if (executionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && execution_ != null - && execution_ - != com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + execution_ != null && + execution_ != com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) { getExecutionBuilder().mergeFrom(value); } else { execution_ = value; @@ -808,15 +695,11 @@ public Builder mergeExecution(com.google.cloud.workflows.executions.v1beta.Execu return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearExecution() { bitField0_ = (bitField0_ & ~0x00000002); @@ -829,15 +712,11 @@ public Builder clearExecution() { return this; } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecutionBuilder() { bitField0_ |= 0x00000002; @@ -845,55 +724,43 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecuti return getExecutionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder() { if (executionBuilder_ != null) { return executionBuilder_.getMessageOrBuilder(); } else { - return execution_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() - : execution_; + return execution_ == null ? + com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; } } /** - * - * *
      * Required. Execution to be created.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, - com.google.cloud.workflows.executions.v1beta.Execution.Builder, - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> getExecutionFieldBuilder() { if (executionBuilder_ == null) { - executionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, - com.google.cloud.workflows.executions.v1beta.Execution.Builder, - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( - getExecution(), getParentForChildren(), isClean()); + executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( + getExecution(), + getParentForChildren(), + isClean()); execution_ = null; } return executionBuilder_; } - @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); } @@ -903,43 +770,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) - private static final com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,8 +816,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..94408fcf838e --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1beta/executions.proto + +package com.google.cloud.workflows.executions.v1beta; + +public interface CreateExecutionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Execution to be created.
+   * 
+ * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + *
+   * Required. Execution to be created.
+   * 
+ * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The execution. + */ + com.google.cloud.workflows.executions.v1beta.Execution getExecution(); + /** + *
+   * Required. Execution to be created.
+   * 
+ * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder(); +} diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java similarity index 70% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java index 3e6e8b27e9dd..41bab8b94d27 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** - * - * *
  * A running instance of a [Workflow][google.cloud.workflows.v1beta.Workflow].
  * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution} */ -public final class Execution extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Execution extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.Execution) ExecutionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Execution.newBuilder() to construct. private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Execution() { name_ = ""; state_ = 0; @@ -47,28 +29,25 @@ private Execution() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Execution(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.class, - com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.class, com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); } /** - * - * *
    * Describes the current state of the execution. More states may be added
    * in the future.
@@ -76,10 +55,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.workflows.executions.v1beta.Execution.State}
    */
-  public enum State implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid state.
      * 
@@ -88,8 +66,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The execution is in progress.
      * 
@@ -98,8 +74,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * The execution finished successfully.
      * 
@@ -108,8 +82,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ SUCCEEDED(2), /** - * - * *
      * The execution failed with an error.
      * 
@@ -118,8 +90,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * The execution was stopped intentionally.
      * 
@@ -131,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -141,8 +109,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The execution is in progress.
      * 
@@ -151,8 +117,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * The execution finished successfully.
      * 
@@ -161,8 +125,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 2; /** - * - * *
      * The execution failed with an error.
      * 
@@ -171,8 +133,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * The execution was stopped intentionally.
      * 
@@ -181,6 +141,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CANCELLED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -205,55 +166,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return SUCCEEDED; - case 3: - return FAILED; - case 4: - return CANCELLED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return SUCCEEDED; + case 3: return FAILED; + case 4: return CANCELLED; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.workflows.executions.v1beta.Execution.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.Execution.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -270,80 +227,66 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1beta.Execution.State) } - public interface ErrorOrBuilder - extends + public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.Execution.Error) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; - * * @return The payload. */ java.lang.String getPayload(); /** - * - * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; - * * @return The bytes for payload. */ - com.google.protobuf.ByteString getPayloadBytes(); + com.google.protobuf.ByteString + getPayloadBytes(); /** - * - * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; - * * @return The context. */ java.lang.String getContext(); /** - * - * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; - * * @return The bytes for context. */ - com.google.protobuf.ByteString getContextBytes(); + com.google.protobuf.ByteString + getContextBytes(); } /** - * - * *
    * Error describes why the execution was abnormally terminated.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution.Error} */ - public static final class Error extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Error extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.Execution.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Error() { payload_ = ""; context_ = ""; @@ -351,38 +294,33 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Error(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.Error.class, - com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.Error.class, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object payload_ = ""; /** - * - * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; - * * @return The payload. */ @java.lang.Override @@ -391,29 +329,29 @@ public java.lang.String getPayload() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; } } /** - * - * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; - * * @return The bytes for payload. */ @java.lang.Override - public com.google.protobuf.ByteString getPayloadBytes() { + public com.google.protobuf.ByteString + getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payload_ = b; return b; } else { @@ -422,18 +360,14 @@ public com.google.protobuf.ByteString getPayloadBytes() { } public static final int CONTEXT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object context_ = ""; /** - * - * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; - * * @return The context. */ @java.lang.Override @@ -442,29 +376,29 @@ public java.lang.String getContext() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } } /** - * - * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; - * * @return The bytes for context. */ @java.lang.Override - public com.google.protobuf.ByteString getContextBytes() { + public com.google.protobuf.ByteString + getContextBytes() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); context_ = b; return b; } else { @@ -473,7 +407,6 @@ public com.google.protobuf.ByteString getContextBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,7 +418,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(payload_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payload_); } @@ -515,16 +449,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.workflows.executions.v1beta.Execution.Error)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.Execution.Error other = - (com.google.cloud.workflows.executions.v1beta.Execution.Error) obj; + com.google.cloud.workflows.executions.v1beta.Execution.Error other = (com.google.cloud.workflows.executions.v1beta.Execution.Error) obj; - if (!getPayload().equals(other.getPayload())) return false; - if (!getContext().equals(other.getContext())) return false; + if (!getPayload() + .equals(other.getPayload())) return false; + if (!getContext() + .equals(other.getContext())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -546,94 +481,89 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1beta.Execution.Error parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.Execution.Error parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.Execution.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1beta.Execution.Error 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 @@ -643,41 +573,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Error describes why the execution was abnormally terminated.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution.Error} */ - 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.workflows.executions.v1beta.Execution.Error) com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.Error.class, - com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.Error.class, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1beta.Execution.Error.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -688,14 +616,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.Execution.Error - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.Execution.Error getDefaultInstanceForType() { return com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance(); } @@ -710,17 +637,13 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Error build() { @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.Error buildPartial() { - com.google.cloud.workflows.executions.v1beta.Execution.Error result = - new com.google.cloud.workflows.executions.v1beta.Execution.Error(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.executions.v1beta.Execution.Error result = new com.google.cloud.workflows.executions.v1beta.Execution.Error(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workflows.executions.v1beta.Execution.Error result) { + private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Execution.Error result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.payload_ = payload_; @@ -734,41 +657,38 @@ private void buildPartial0( 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.workflows.executions.v1beta.Execution.Error) { - return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution.Error) other); + return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution.Error)other); } else { super.mergeFrom(other); return this; @@ -776,9 +696,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.Execution.Error other) { - if (other - == com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance()) - return this; + if (other == com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance()) return this; if (!other.getPayload().isEmpty()) { payload_ = other.payload_; bitField0_ |= 0x00000001; @@ -815,25 +733,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - payload_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - context_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + payload_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + context_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -843,25 +758,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object payload_ = ""; /** - * - * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; - * * @return The payload. */ public java.lang.String getPayload() { java.lang.Object ref = payload_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; @@ -870,21 +782,20 @@ public java.lang.String getPayload() { } } /** - * - * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; - * * @return The bytes for payload. */ - public com.google.protobuf.ByteString getPayloadBytes() { + public com.google.protobuf.ByteString + getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); payload_ = b; return b; } else { @@ -892,35 +803,28 @@ public com.google.protobuf.ByteString getPayloadBytes() { } } /** - * - * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; - * * @param value The payload to set. * @return This builder for chaining. */ - public Builder setPayload(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayload( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } payload_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; - * * @return This builder for chaining. */ public Builder clearPayload() { @@ -930,21 +834,17 @@ public Builder clearPayload() { return this; } /** - * - * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; - * * @param value The bytes for payload to set. * @return This builder for chaining. */ - public Builder setPayloadBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPayloadBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); payload_ = value; bitField0_ |= 0x00000001; @@ -954,20 +854,18 @@ public Builder setPayloadBytes(com.google.protobuf.ByteString value) { private java.lang.Object context_ = ""; /** - * - * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; - * * @return The context. */ public java.lang.String getContext() { java.lang.Object ref = context_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; @@ -976,21 +874,20 @@ public java.lang.String getContext() { } } /** - * - * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; - * * @return The bytes for context. */ - public com.google.protobuf.ByteString getContextBytes() { + public com.google.protobuf.ByteString + getContextBytes() { java.lang.Object ref = context_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); context_ = b; return b; } else { @@ -998,35 +895,28 @@ public com.google.protobuf.ByteString getContextBytes() { } } /** - * - * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; - * * @param value The context to set. * @return This builder for chaining. */ - public Builder setContext(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContext( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; - * * @return This builder for chaining. */ public Builder clearContext() { @@ -1036,28 +926,23 @@ public Builder clearContext() { return this; } /** - * - * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; - * * @param value The bytes for context to set. * @return This builder for chaining. */ - public Builder setContextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setContextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1070,44 +955,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.Execution.Error) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.Execution.Error) - private static final com.google.cloud.workflows.executions.v1beta.Execution.Error - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1beta.Execution.Error DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.Execution.Error(); } - public static com.google.cloud.workflows.executions.v1beta.Execution.Error - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.Execution.Error getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,19 +1001,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.Execution.Error - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.Execution.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the execution.
    * Format:
@@ -1139,7 +1018,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -1148,15 +1026,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 execution.
    * Format:
@@ -1164,15 +1041,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -1183,15 +1061,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -1199,15 +1073,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -1215,14 +1085,11 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -1232,15 +1099,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -1248,15 +1111,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -1264,14 +1123,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1281,58 +1137,39 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 4; private int state_ = 0; /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.Execution.State getState() { - com.google.cloud.workflows.executions.v1beta.Execution.State result = - com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); - return result == null - ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.State getState() { + com.google.cloud.workflows.executions.v1beta.Execution.State result = com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); + return result == null ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED : result; } public static final int ARGUMENT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object argument_ = ""; /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; - * * @return The argument. */ @java.lang.Override @@ -1341,30 +1178,30 @@ public java.lang.String getArgument() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; } } /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; - * * @return The bytes for argument. */ @java.lang.Override - public com.google.protobuf.ByteString getArgumentBytes() { + public com.google.protobuf.ByteString + getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); argument_ = b; return b; } else { @@ -1373,19 +1210,15 @@ public com.google.protobuf.ByteString getArgumentBytes() { } public static final int RESULT_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object result_ = ""; /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The result. */ @java.lang.Override @@ -1394,30 +1227,30 @@ public java.lang.String getResult() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; } } /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for result. */ @java.lang.Override - public com.google.protobuf.ByteString getResultBytes() { + public com.google.protobuf.ByteString + getResultBytes() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); result_ = b; return b; } else { @@ -1428,18 +1261,13 @@ public com.google.protobuf.ByteString getResultBytes() { public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.workflows.executions.v1beta.Execution.Error error_; /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ @java.lang.Override @@ -1447,59 +1275,42 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.Error getError() { - return error_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; } /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder getErrorOrBuilder() { - return error_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; } public static final int WORKFLOW_REVISION_ID_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object workflowRevisionId_ = ""; /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workflowRevisionId. */ @java.lang.Override @@ -1508,29 +1319,29 @@ public java.lang.String getWorkflowRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; } } /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workflowRevisionId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString + getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -1539,7 +1350,6 @@ public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1551,7 +1361,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_); } @@ -1561,9 +1372,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(3, getEndTime()); } - if (state_ - != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { @@ -1591,15 +1400,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEndTime()); } - if (state_ - != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + if (state_ != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, argument_); @@ -1608,7 +1418,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, result_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowRevisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, workflowRevisionId_); @@ -1621,31 +1432,37 @@ 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.workflows.executions.v1beta.Execution)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.Execution other = - (com.google.cloud.workflows.executions.v1beta.Execution) obj; + com.google.cloud.workflows.executions.v1beta.Execution other = (com.google.cloud.workflows.executions.v1beta.Execution) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) 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 (!getEndTime() + .equals(other.getEndTime())) return false; } if (state_ != other.state_) return false; - if (!getArgument().equals(other.getArgument())) return false; - if (!getResult().equals(other.getResult())) return false; + if (!getArgument() + .equals(other.getArgument())) return false; + if (!getResult() + .equals(other.getResult())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } - if (!getWorkflowRevisionId().equals(other.getWorkflowRevisionId())) return false; + if (!getWorkflowRevisionId() + .equals(other.getWorkflowRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1685,136 +1502,131 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.Execution parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.Execution parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1beta.Execution 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 running instance of a [Workflow][google.cloud.workflows.v1beta.Workflow].
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution} */ - 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.workflows.executions.v1beta.Execution) com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.class, - com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.class, com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1beta.Execution.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1843,9 +1655,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; } @java.lang.Override @@ -1864,11 +1676,8 @@ public com.google.cloud.workflows.executions.v1beta.Execution build() { @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution buildPartial() { - com.google.cloud.workflows.executions.v1beta.Execution result = - new com.google.cloud.workflows.executions.v1beta.Execution(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.executions.v1beta.Execution result = new com.google.cloud.workflows.executions.v1beta.Execution(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1879,10 +1688,14 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Executio result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.state_ = state_; @@ -1894,7 +1707,9 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Executio result.result_ = result_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + result.error_ = errorBuilder_ == null + ? error_ + : errorBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.workflowRevisionId_ = workflowRevisionId_; @@ -1905,39 +1720,38 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Executio 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.workflows.executions.v1beta.Execution) { - return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution) other); + return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution)other); } else { super.mergeFrom(other); return this; @@ -1945,8 +1759,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.Execution other) { - if (other == com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) - return this; + if (other == com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -2005,61 +1818,58 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - argument_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - result_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - workflowRevisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + argument_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + result_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + workflowRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2069,13 +1879,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -2083,13 +1890,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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; @@ -2098,8 +1905,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -2107,14 +1912,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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 { @@ -2122,8 +1928,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -2131,22 +1935,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -2154,7 +1954,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -2164,8 +1963,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the execution.
      * Format:
@@ -2173,14 +1970,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2190,35 +1985,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2229,14 +2013,11 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2252,16 +2033,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -2272,20 +2051,17 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -2298,14 +2074,11 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2318,14 +2091,11 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -2333,44 +2103,36 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -2378,35 +2140,24 @@ 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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2417,14 +2168,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2440,16 +2188,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -2460,20 +2206,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -2486,14 +2229,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2506,14 +2246,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000004; @@ -2521,44 +2258,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -2566,33 +2295,22 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2603,37 +2321,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.State getState() { - com.google.cloud.workflows.executions.v1beta.Execution.State result = - com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); - return result == null - ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1beta.Execution.State result = com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); + return result == null ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2647,16 +2352,11 @@ public Builder setState(com.google.cloud.workflows.executions.v1beta.Execution.S return this; } /** - * - * *
      * Output only. Current state of the execution.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2668,21 +2368,19 @@ public Builder clearState() { private java.lang.Object argument_ = ""; /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; - * * @return The argument. */ public java.lang.String getArgument() { java.lang.Object ref = argument_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; @@ -2691,22 +2389,21 @@ public java.lang.String getArgument() { } } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; - * * @return The bytes for argument. */ - public com.google.protobuf.ByteString getArgumentBytes() { + public com.google.protobuf.ByteString + getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); argument_ = b; return b; } else { @@ -2714,37 +2411,30 @@ public com.google.protobuf.ByteString getArgumentBytes() { } } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; - * * @param value The argument to set. * @return This builder for chaining. */ - public Builder setArgument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setArgument( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } argument_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; - * * @return This builder for chaining. */ public Builder clearArgument() { @@ -2754,22 +2444,18 @@ public Builder clearArgument() { return this; } /** - * - * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; - * * @param value The bytes for argument to set. * @return This builder for chaining. */ - public Builder setArgumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setArgumentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); argument_ = value; bitField0_ |= 0x00000010; @@ -2779,21 +2465,19 @@ public Builder setArgumentBytes(com.google.protobuf.ByteString value) { private java.lang.Object result_ = ""; /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The result. */ public java.lang.String getResult() { java.lang.Object ref = result_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; @@ -2802,22 +2486,21 @@ public java.lang.String getResult() { } } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for result. */ - public com.google.protobuf.ByteString getResultBytes() { + public com.google.protobuf.ByteString + getResultBytes() { java.lang.Object ref = result_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); result_ = b; return b; } else { @@ -2825,37 +2508,30 @@ public com.google.protobuf.ByteString getResultBytes() { } } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResult( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } result_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearResult() { @@ -2865,22 +2541,18 @@ public Builder clearResult() { return this; } /** - * - * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for result to set. * @return This builder for chaining. */ - public Builder setResultBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setResultBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); result_ = value; bitField0_ |= 0x00000020; @@ -2890,64 +2562,45 @@ public Builder setResultBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.executions.v1beta.Execution.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution.Error, - com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, - com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> - errorBuilder_; + com.google.cloud.workflows.executions.v1beta.Execution.Error, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> errorBuilder_; /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ public com.google.cloud.workflows.executions.v1beta.Execution.Error getError() { if (errorBuilder_ == null) { - return error_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.cloud.workflows.executions.v1beta.Execution.Error value) { if (errorBuilder_ == null) { @@ -2963,17 +2616,13 @@ public Builder setError(com.google.cloud.workflows.executions.v1beta.Execution.E return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError( com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder builderForValue) { @@ -2987,25 +2636,19 @@ public Builder setError( return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.cloud.workflows.executions.v1beta.Execution.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && error_ != null - && error_ - != com.google.cloud.workflows.executions.v1beta.Execution.Error - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + error_ != null && + error_ != com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -3018,17 +2661,13 @@ public Builder mergeError(com.google.cloud.workflows.executions.v1beta.Execution return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3041,17 +2680,13 @@ public Builder clearError() { return this; } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000040; @@ -3059,53 +2694,40 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder getE return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder - getErrorOrBuilder() { + public com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null - ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() - : error_; + return error_ == null ? + com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; } } /** - * - * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution.Error, - com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, - com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> + com.google.cloud.workflows.executions.v1beta.Execution.Error, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution.Error, - com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, - com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder>( - getError(), getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1beta.Execution.Error, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); error_ = null; } return errorBuilder_; @@ -3113,20 +2735,18 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder getE private java.lang.Object workflowRevisionId_ = ""; /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workflowRevisionId. */ public java.lang.String getWorkflowRevisionId() { java.lang.Object ref = workflowRevisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; @@ -3135,21 +2755,20 @@ public java.lang.String getWorkflowRevisionId() { } } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workflowRevisionId. */ - public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString + getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -3157,35 +2776,28 @@ public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { } } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowRevisionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workflowRevisionId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWorkflowRevisionId() { @@ -3195,30 +2807,26 @@ public Builder clearWorkflowRevisionId() { return this; } /** - * - * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowRevisionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workflowRevisionId_ = value; bitField0_ |= 0x00000080; 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); } @@ -3228,12 +2836,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.Execution) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.Execution) private static final com.google.cloud.workflows.executions.v1beta.Execution DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.Execution(); } @@ -3242,27 +2850,27 @@ public static com.google.cloud.workflows.executions.v1beta.Execution getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3277,4 +2885,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1beta.Execution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java similarity index 100% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java similarity index 71% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java index 5415f4729861..cbf20e318fa0 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface ExecutionOrBuilder - extends +public interface ExecutionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.Execution) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource name of the execution.
    * Format:
@@ -33,13 +15,10 @@ public interface ExecutionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the execution.
    * Format:
@@ -47,239 +26,178 @@ public interface ExecutionOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. Current state of the execution.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.workflows.executions.v1beta.Execution.State getState(); /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; - * * @return The argument. */ java.lang.String getArgument(); /** - * - * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; - * * @return The bytes for argument. */ - com.google.protobuf.ByteString getArgumentBytes(); + com.google.protobuf.ByteString + getArgumentBytes(); /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The result. */ java.lang.String getResult(); /** - * - * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for result. */ - com.google.protobuf.ByteString getResultBytes(); + com.google.protobuf.ByteString + getResultBytes(); /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ com.google.cloud.workflows.executions.v1beta.Execution.Error getError(); /** - * - * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder getErrorOrBuilder(); /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workflowRevisionId. */ java.lang.String getWorkflowRevisionId(); /** - * - * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workflowRevisionId. */ - com.google.protobuf.ByteString getWorkflowRevisionIdBytes(); + com.google.protobuf.ByteString + getWorkflowRevisionIdBytes(); } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java similarity index 67% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java index edbb22998b7d..a64347385c88 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java @@ -1,36 +1,18 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** - * - * *
  * Defines possible views for execution resource.
  * 
* * Protobuf enum {@code google.cloud.workflows.executions.v1beta.ExecutionView} */ -public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionView + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * The default / unset value.
    * 
@@ -39,8 +21,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { */ EXECUTION_VIEW_UNSPECIFIED(0), /** - * - * *
    * Includes only basic metadata about the execution.
    * Following fields are returned: name, start_time, end_time, state
@@ -51,8 +31,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum {
    */
   BASIC(1),
   /**
-   *
-   *
    * 
    * Includes all data.
    * 
@@ -64,8 +42,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The default / unset value.
    * 
@@ -74,8 +50,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXECUTION_VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Includes only basic metadata about the execution.
    * Following fields are returned: name, start_time, end_time, state
@@ -86,8 +60,6 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int BASIC_VALUE = 1;
   /**
-   *
-   *
    * 
    * Includes all data.
    * 
@@ -96,6 +68,7 @@ public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -120,51 +93,49 @@ public static ExecutionView valueOf(int value) { */ public static ExecutionView forNumber(int value) { switch (value) { - case 0: - return EXECUTION_VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; + case 0: return EXECUTION_VIEW_UNSPECIFIED; + case 1: return BASIC; + case 2: return FULL; + 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 internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionView findValueByNumber(int number) { - return ExecutionView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + ExecutionView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExecutionView findValueByNumber(int number) { + return ExecutionView.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.workflows.executions.v1beta.ExecutionsProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.getDescriptor().getEnumTypes().get(0); } private static final ExecutionView[] VALUES = values(); - public static ExecutionView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionView 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; @@ -180,3 +151,4 @@ private ExecutionView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1beta.ExecutionView) } + diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java new file mode 100644 index 000000000000..def14827cac7 --- /dev/null +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java @@ -0,0 +1,208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1beta/executions.proto + +package com.google.cloud.workflows.executions.v1beta; + +public final class ExecutionsProto { + private ExecutionsProto() {} + 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_workflows_executions_v1beta_Execution_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_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/workflows/executions/v1be" + + "ta/executions.proto\022(google.cloud.workfl" + + "ows.executions.v1beta\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032\037google/protobuf/timest" + + "amp.proto\"\377\004\n\tExecution\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\003\0224\n\nstart_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\0222\n\010end_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\022N\n\005state\030\004" + + " \001(\01629.google.cloud.workflows.executions" + + ".v1beta.Execution.StateB\004\342A\001\003\022\020\n\010argumen" + + "t\030\005 \001(\t\022\024\n\006result\030\006 \001(\tB\004\342A\001\003\022N\n\005error\030\007" + + " \001(\01329.google.cloud.workflows.executions" + + ".v1beta.Execution.ErrorB\004\342A\001\003\022\"\n\024workflo" + + "w_revision_id\030\010 \001(\tB\004\342A\001\003\032)\n\005Error\022\017\n\007pa" + + "yload\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\"T\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCC" + + "EEDED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004:\206\001\352A\202" + + "\001\n+workflowexecutions.googleapis.com/Exe" + + "cution\022Sprojects/{project}/locations/{lo" + + "cation}/workflows/{workflow}/executions/" + + "{execution}\"\307\001\n\025ListExecutionsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows.google" + + "apis.com/Workflow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022K\n\004view\030\004 \001(\01627.google." + + "cloud.workflows.executions.v1beta.Execut" + + "ionViewB\004\342A\001\001\"z\n\026ListExecutionsResponse\022" + + "G\n\nexecutions\030\001 \003(\01323.google.cloud.workf" + + "lows.executions.v1beta.Execution\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\242\001\n\026CreateExecutionReq" + + "uest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows" + + ".googleapis.com/Workflow\022L\n\texecution\030\002 " + + "\001(\01323.google.cloud.workflows.executions." + + "v1beta.ExecutionB\004\342A\001\002\"\246\001\n\023GetExecutionR" + + "equest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflowe" + + "xecutions.googleapis.com/Execution\022K\n\004vi" + + "ew\030\002 \001(\01627.google.cloud.workflows.execut" + + "ions.v1beta.ExecutionViewB\004\342A\001\001\"\\\n\026Cance" + + "lExecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-" + + "\n+workflowexecutions.googleapis.com/Exec" + + "ution*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW" + + "_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\363\007\n\n" + + "Executions\022\344\001\n\016ListExecutions\022?.google.c" + + "loud.workflows.executions.v1beta.ListExe" + + "cutionsRequest\032@.google.cloud.workflows." + + "executions.v1beta.ListExecutionsResponse" + + "\"O\332A\006parent\202\323\344\223\002@\022>/v1beta/{parent=proje" + + "cts/*/locations/*/workflows/*}/execution" + + "s\022\356\001\n\017CreateExecution\022@.google.cloud.wor" + + "kflows.executions.v1beta.CreateExecution" + + "Request\0323.google.cloud.workflows.executi" + + "ons.v1beta.Execution\"d\332A\020parent,executio" + + "n\202\323\344\223\002K\">/v1beta/{parent=projects/*/loca" + + "tions/*/workflows/*}/executions:\texecuti" + + "on\022\321\001\n\014GetExecution\022=.google.cloud.workf" + + "lows.executions.v1beta.GetExecutionReque" + + "st\0323.google.cloud.workflows.executions.v" + + "1beta.Execution\"M\332A\004name\202\323\344\223\002@\022>/v1beta/" + + "{name=projects/*/locations/*/workflows/*" + + "/executions/*}\022\341\001\n\017CancelExecution\022@.goo" + + "gle.cloud.workflows.executions.v1beta.Ca" + + "ncelExecutionRequest\0323.google.cloud.work" + + "flows.executions.v1beta.Execution\"W\332A\004na" + + "me\202\323\344\223\002J\"E/v1beta/{name=projects/*/locat" + + "ions/*/workflows/*/executions/*}:cancel:" + + "\001*\032U\312A!workflowexecutions.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\363\001\n,com.google.cloud.workflows" + + ".executions.v1betaB\017ExecutionsProtoP\001ZLc" + + "loud.google.com/go/workflows/executions/" + + "apiv1beta/executionspb;executionspb\352Aa\n!" + + "workflows.googleapis.com/Workflow\022 * Request for the * [GetExecution][google.cloud.workflows.executions.v1beta.Executions.GetExecution] @@ -29,16 +12,15 @@ * * Protobuf type {@code google.cloud.workflows.executions.v1beta.GetExecutionRequest} */ -public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetExecutionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.GetExecutionRequest) GetExecutionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetExecutionRequest.newBuilder() to construct. private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetExecutionRequest() { name_ = ""; view_ = 0; @@ -46,42 +28,35 @@ private GetExecutionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetExecutionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto - .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class); + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 @@ -90,33 +65,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. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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 { @@ -127,48 +100,32 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** - * - * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = - com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { + com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,13 +137,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 (view_ - != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, view_); } getUnknownFields().writeTo(output); @@ -201,10 +157,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ - != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); + if (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -214,15 +169,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.workflows.executions.v1beta.GetExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other = - (com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) obj; + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other = (com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -245,104 +200,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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
    * [GetExecution][google.cloud.workflows.executions.v1beta.Executions.GetExecution]
@@ -351,32 +300,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.GetExecutionRequest}
    */
-  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.workflows.executions.v1beta.GetExecutionRequest)
       com.google.cloud.workflows.executions.v1beta.GetExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class,
-              com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -387,14 +337,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance();
     }
 
@@ -409,17 +358,13 @@ public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest build()
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result =
-          new com.google.cloud.workflows.executions.v1beta.GetExecutionRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result = new com.google.cloud.workflows.executions.v1beta.GetExecutionRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -433,50 +378,46 @@ private void buildPartial0(
     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.workflows.executions.v1beta.GetExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1beta.GetExecutionRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other) {
+      if (other == com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -511,25 +452,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                view_ = input.readEnum();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              view_ = input.readEnum();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -539,29 +477,24 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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; @@ -570,25 +503,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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 { @@ -596,43 +526,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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() { @@ -642,25 +561,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -670,35 +583,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -709,39 +611,26 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = - com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param value The view to set. * @return This builder for chaining. */ @@ -755,17 +644,12 @@ public Builder setView(com.google.cloud.workflows.executions.v1beta.ExecutionVie return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearView() { @@ -774,9 +658,9 @@ public Builder clearView() { 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); } @@ -786,43 +670,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.GetExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.GetExecutionRequest) - private static final com.google.cloud.workflows.executions.v1beta.GetExecutionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1beta.GetExecutionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.GetExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,8 +716,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java similarity index 50% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java index 1a7e902f4010..02246254fe5e 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java @@ -1,88 +1,53 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface GetExecutionRequestOrBuilder - extends +public interface GetExecutionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.GetExecutionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ com.google.cloud.workflows.executions.v1beta.ExecutionView getView(); diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java similarity index 65% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java index f80a3b52c464..88ea31f981dc 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** - * - * *
  * Request for the
  * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsRequest}
  */
-public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListExecutionsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.ListExecutionsRequest)
     ListExecutionsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListExecutionsRequest.newBuilder() to construct.
   private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListExecutionsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -47,41 +29,34 @@ private ListExecutionsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListExecutionsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class,
-            com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 @@ -90,32 +65,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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 { @@ -126,8 +99,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 10000 for
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -161,7 +128,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -170,15 +136,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 page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -188,15 +153,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 { @@ -207,48 +173,32 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int VIEW_FIELD_NUMBER = 4; private int view_ = 0; /** - * - * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ - @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = - com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { + com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +210,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_); } @@ -270,9 +221,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (view_ - != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, view_); } getUnknownFields().writeTo(output); @@ -288,15 +237,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (view_ - != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, view_); + if (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -306,17 +255,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.workflows.executions.v1beta.ListExecutionsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other = - (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) obj; + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other = (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -343,105 +294,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest - 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.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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
    * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -450,33 +394,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsRequest}
    */
-  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.workflows.executions.v1beta.ListExecutionsRequest)
       com.google.cloud.workflows.executions.v1beta.ListExecutionsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class,
-              com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,16 +433,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest
-        getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest
-          .getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -512,17 +454,13 @@ public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest build(
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result =
-          new com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result = new com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -542,51 +480,46 @@ private void buildPartial0(
     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.workflows.executions.v1beta.ListExecutionsRequest) {
-        return mergeFrom(
-            (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other) {
+      if (other == com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -629,37 +562,32 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                view_ = input.readEnum();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              view_ = input.readEnum();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -669,28 +597,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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; @@ -699,24 +622,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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 { @@ -724,41 +644,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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() { @@ -768,24 +677,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -793,10 +696,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 10000 for
@@ -806,7 +707,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -814,8 +714,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 10000 for
@@ -825,7 +723,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -837,8 +734,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 10000 for
@@ -848,7 +743,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -860,8 +754,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -871,13 +763,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -886,8 +778,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -897,14 +787,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 { @@ -912,8 +803,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -923,22 +812,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -948,7 +833,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -958,8 +842,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -969,14 +851,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -986,35 +866,24 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1025,39 +894,26 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = - com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null - ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED - : result; + com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The view to set. * @return This builder for chaining. */ @@ -1071,17 +927,12 @@ public Builder setView(com.google.cloud.workflows.executions.v1beta.ExecutionVie return this; } /** - * - * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearView() { @@ -1090,9 +941,9 @@ public Builder clearView() { 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); } @@ -1102,43 +953,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.ListExecutionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.ListExecutionsRequest) - private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest(); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1150,8 +999,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java similarity index 64% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java index f24ebbb5f093..f135cef4a047 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface ListExecutionsRequestOrBuilder - extends +public interface ListExecutionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.ListExecutionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 10000 for
@@ -66,14 +39,11 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -83,13 +53,10 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -99,38 +66,28 @@ public interface ListExecutionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The view. */ com.google.cloud.workflows.executions.v1beta.ExecutionView getView(); diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java similarity index 70% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java index 6914bd5be8b0..92365635a1fa 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** - * - * *
  * Response for the
  * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsResponse}
  */
-public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListExecutionsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.ListExecutionsResponse)
     ListExecutionsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListExecutionsResponse.newBuilder() to construct.
   private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListExecutionsResponse() {
     executions_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -46,32 +28,28 @@ private ListExecutionsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListExecutionsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class,
-            com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
   }
 
   public static final int EXECUTIONS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List executions_;
   /**
-   *
-   *
    * 
    * The executions which match the request.
    * 
@@ -79,13 +57,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ @java.lang.Override - public java.util.List - getExecutionsList() { + public java.util.List getExecutionsList() { return executions_; } /** - * - * *
    * The executions which match the request.
    * 
@@ -93,13 +68,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExecutionsOrBuilderList() { return executions_; } /** - * - * *
    * The executions which match the request.
    * 
@@ -111,8 +84,6 @@ public int getExecutionsCount() { return executions_.size(); } /** - * - * *
    * The executions which match the request.
    * 
@@ -124,8 +95,6 @@ public com.google.cloud.workflows.executions.v1beta.Execution getExecutions(int return executions_.get(index); } /** - * - * *
    * The executions which match the request.
    * 
@@ -139,19 +108,15 @@ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecut } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,30 +125,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; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -192,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +168,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 < executions_.size(); i++) { output.writeMessage(1, executions_.get(i)); } @@ -221,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, executions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -234,16 +200,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.workflows.executions.v1beta.ListExecutionsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other = - (com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse) obj; + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other = (com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse) obj; - if (!getExecutionsList().equals(other.getExecutionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getExecutionsList() + .equals(other.getExecutionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,105 +234,98 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse - 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.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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
    * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -374,33 +334,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsResponse}
    */
-  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.workflows.executions.v1beta.ListExecutionsResponse)
       com.google.cloud.workflows.executions.v1beta.ListExecutionsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class,
-              com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -417,16 +377,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
-          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse
-        getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse
-          .getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.getDefaultInstance();
     }
 
     @java.lang.Override
@@ -440,18 +398,14 @@ public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse build
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result =
-          new com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse(this);
+      com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result = new com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
       if (executionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           executions_ = java.util.Collections.unmodifiableList(executions_);
@@ -463,8 +417,7 @@ private void buildPartialRepeatedFields(
       }
     }
 
-    private void buildPartial0(
-        com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
+    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -475,51 +428,46 @@ private void buildPartial0(
     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.workflows.executions.v1beta.ListExecutionsResponse) {
-        return mergeFrom(
-            (com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse) other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other) {
-      if (other
-          == com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse
-              .getDefaultInstance()) return this;
+    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other) {
+      if (other == com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.getDefaultInstance()) return this;
       if (executionsBuilder_ == null) {
         if (!other.executions_.isEmpty()) {
           if (executions_.isEmpty()) {
@@ -538,10 +486,9 @@ public Builder mergeFrom(
             executionsBuilder_ = null;
             executions_ = other.executions_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            executionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getExecutionsFieldBuilder()
-                    : null;
+            executionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getExecutionsFieldBuilder() : null;
           } else {
             executionsBuilder_.addAllMessages(other.executions_);
           }
@@ -578,33 +525,30 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.workflows.executions.v1beta.Execution m =
-                    input.readMessage(
-                        com.google.cloud.workflows.executions.v1beta.Execution.parser(),
-                        extensionRegistry);
-                if (executionsBuilder_ == null) {
-                  ensureExecutionsIsMutable();
-                  executions_.add(m);
-                } else {
-                  executionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.workflows.executions.v1beta.Execution m =
+                  input.readMessage(
+                      com.google.cloud.workflows.executions.v1beta.Execution.parser(),
+                      extensionRegistry);
+              if (executionsBuilder_ == null) {
+                ensureExecutionsIsMutable();
+                executions_.add(m);
+              } else {
+                executionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -614,38 +558,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List executions_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureExecutionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        executions_ =
-            new java.util.ArrayList(
-                executions_);
+        executions_ = new java.util.ArrayList(executions_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.workflows.executions.v1beta.Execution,
-            com.google.cloud.workflows.executions.v1beta.Execution.Builder,
-            com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>
-        executionsBuilder_;
+        com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> executionsBuilder_;
 
     /**
-     *
-     *
      * 
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - public java.util.List - getExecutionsList() { + public java.util.List getExecutionsList() { if (executionsBuilder_ == null) { return java.util.Collections.unmodifiableList(executions_); } else { @@ -653,8 +587,6 @@ private void ensureExecutionsIsMutable() { } } /** - * - * *
      * The executions which match the request.
      * 
@@ -669,8 +601,6 @@ public int getExecutionsCount() { } } /** - * - * *
      * The executions which match the request.
      * 
@@ -685,8 +615,6 @@ public com.google.cloud.workflows.executions.v1beta.Execution getExecutions(int } } /** - * - * *
      * The executions which match the request.
      * 
@@ -708,8 +636,6 @@ public Builder setExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -728,8 +654,6 @@ public Builder setExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -750,8 +674,6 @@ public Builder addExecutions(com.google.cloud.workflows.executions.v1beta.Execut return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -773,8 +695,6 @@ public Builder addExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -793,8 +713,6 @@ public Builder addExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -813,8 +731,6 @@ public Builder addExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -822,11 +738,11 @@ public Builder addExecutions( * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ public Builder addAllExecutions( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, executions_); onChanged(); } else { executionsBuilder_.addAllMessages(values); @@ -834,8 +750,6 @@ public Builder addAllExecutions( return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -853,8 +767,6 @@ public Builder clearExecutions() { return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -872,8 +784,6 @@ public Builder removeExecutions(int index) { return this; } /** - * - * *
      * The executions which match the request.
      * 
@@ -885,8 +795,6 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecuti return getExecutionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The executions which match the request.
      * 
@@ -896,22 +804,19 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecuti public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionsOrBuilder( int index) { if (executionsBuilder_ == null) { - return executions_.get(index); - } else { + return executions_.get(index); } else { return executionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - public java.util.List - getExecutionsOrBuilderList() { + public java.util.List + getExecutionsOrBuilderList() { if (executionsBuilder_ != null) { return executionsBuilder_.getMessageOrBuilderList(); } else { @@ -919,8 +824,6 @@ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecut } } /** - * - * *
      * The executions which match the request.
      * 
@@ -928,12 +831,10 @@ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecut * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder() - .addBuilder(com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder().addBuilder( + com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); } /** - * - * *
      * The executions which match the request.
      * 
@@ -942,36 +843,30 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecuti */ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecutionsBuilder( int index) { - return getExecutionsFieldBuilder() - .addBuilder( - index, com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder().addBuilder( + index, com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); } /** - * - * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - public java.util.List - getExecutionsBuilderList() { + public java.util.List + getExecutionsBuilderList() { return getExecutionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, - com.google.cloud.workflows.executions.v1beta.Execution.Builder, - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> getExecutionsFieldBuilder() { if (executionsBuilder_ == null) { - executionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, - com.google.cloud.workflows.executions.v1beta.Execution.Builder, - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( - executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( + executions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); executions_ = null; } return executionsBuilder_; @@ -979,21 +874,19 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecuti private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -1002,22 +895,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -1025,37 +917,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1065,31 +950,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -1099,43 +980,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.ListExecutionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.ListExecutionsResponse) - private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse(); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse - getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,8 +1026,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse - getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java similarity index 70% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java index 46d1ab9af93f..79c065a484ba 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java +++ b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface ListExecutionsResponseOrBuilder - extends +public interface ListExecutionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.ListExecutionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - java.util.List getExecutionsList(); + java.util.List + getExecutionsList(); /** - * - * *
    * The executions which match the request.
    * 
@@ -44,8 +25,6 @@ public interface ListExecutionsResponseOrBuilder */ com.google.cloud.workflows.executions.v1beta.Execution getExecutions(int index); /** - * - * *
    * The executions which match the request.
    * 
@@ -54,51 +33,43 @@ public interface ListExecutionsResponseOrBuilder */ int getExecutionsCount(); /** - * - * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - java.util.List + java.util.List getExecutionsOrBuilderList(); /** - * - * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionsOrBuilder(int index); + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java similarity index 100% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto similarity index 100% rename from java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto rename to owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java diff --git a/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java b/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java similarity index 100% rename from java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java rename to owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java similarity index 89% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java index 7e57775b4fbc..13e3f5bc95bf 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java +++ b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java @@ -66,19 +66,140 @@ *

Note: close() needs to be called on the WorkflowsClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
ListWorkflows

Lists workflows in a given project and location. The default order is not specified.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkflows(ListWorkflowsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkflows(LocationName parent) + *
  • listWorkflows(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkflowsPagedCallable() + *
  • listWorkflowsCallable() + *
+ *
GetWorkflow

Gets details of a single workflow.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkflow(GetWorkflowRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkflow(WorkflowName name) + *
  • getWorkflow(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkflowCallable() + *
+ *
CreateWorkflow

Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkflowAsync(CreateWorkflowRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkflowAsync(LocationName parent, Workflow workflow, String workflowId) + *
  • createWorkflowAsync(String parent, Workflow workflow, String workflowId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkflowOperationCallable() + *
  • createWorkflowCallable() + *
+ *
DeleteWorkflow

Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkflowAsync(DeleteWorkflowRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkflowAsync(WorkflowName name) + *
  • deleteWorkflowAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkflowOperationCallable() + *
  • deleteWorkflowCallable() + *
+ *
UpdateWorkflow

Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkflowAsync(UpdateWorkflowRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkflowAsync(Workflow workflow, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkflowOperationCallable() + *
  • updateWorkflowCallable() + *
+ *
ListLocations

Lists information about the supported locations for this service.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLocations(ListLocationsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLocationsPagedCallable() + *
  • listLocationsCallable() + *
+ *
GetLocation

Gets information about a location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLocation(GetLocationRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLocationCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java index c9c5752028bb..1da8f8d15835 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java +++ b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java @@ -30,6 +30,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.location.GetLocationRequest; diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java index ebfe0392fa3c..e45db03d639c 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java +++ b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java @@ -45,6 +45,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/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java index 392ac83de0e2..a3888ea74d74 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java +++ b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java @@ -32,6 +32,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java index 91590e467e63..e2ad6dcd5332 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java +++ b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java @@ -308,6 +308,12 @@ public WorkflowsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "workflows"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java b/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java rename to owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java diff --git a/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java b/owl-bot-staging/java-workflows/v1/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java similarity index 50% rename from java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java rename to owl-bot-staging/java-workflows/v1/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java index 3917fb51b245..dfdad66e7239 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java +++ b/owl-bot-staging/java-workflows/v1/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.workflows.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Workflows is used to deploy and execute workflow programs.
  * Workflows makes sure the program executes reliably, despite hardware and
@@ -37,264 +20,206 @@ private WorkflowsGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.v1.Workflows";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.ListWorkflowsRequest,
-          com.google.cloud.workflows.v1.ListWorkflowsResponse>
-      getListWorkflowsMethod;
+  private static volatile io.grpc.MethodDescriptor getListWorkflowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListWorkflows",
       requestType = com.google.cloud.workflows.v1.ListWorkflowsRequest.class,
       responseType = com.google.cloud.workflows.v1.ListWorkflowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.ListWorkflowsRequest,
-          com.google.cloud.workflows.v1.ListWorkflowsResponse>
-      getListWorkflowsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1.ListWorkflowsRequest,
-            com.google.cloud.workflows.v1.ListWorkflowsResponse>
-        getListWorkflowsMethod;
+  public static io.grpc.MethodDescriptor getListWorkflowsMethod() {
+    io.grpc.MethodDescriptor getListWorkflowsMethod;
     if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
-          WorkflowsGrpc.getListWorkflowsMethod =
-              getListWorkflowsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1.ListWorkflowsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1.ListWorkflowsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
-                      .build();
+          WorkflowsGrpc.getListWorkflowsMethod = getListWorkflowsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1.ListWorkflowsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1.ListWorkflowsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
+              .build();
         }
       }
     }
     return getListWorkflowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.GetWorkflowRequest, com.google.cloud.workflows.v1.Workflow>
-      getGetWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getGetWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetWorkflow",
       requestType = com.google.cloud.workflows.v1.GetWorkflowRequest.class,
       responseType = com.google.cloud.workflows.v1.Workflow.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.GetWorkflowRequest, com.google.cloud.workflows.v1.Workflow>
-      getGetWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1.GetWorkflowRequest,
-            com.google.cloud.workflows.v1.Workflow>
-        getGetWorkflowMethod;
+  public static io.grpc.MethodDescriptor getGetWorkflowMethod() {
+    io.grpc.MethodDescriptor getGetWorkflowMethod;
     if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
-          WorkflowsGrpc.getGetWorkflowMethod =
-              getGetWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1.GetWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1.Workflow.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
-                      .build();
+          WorkflowsGrpc.getGetWorkflowMethod = getGetWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1.GetWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1.Workflow.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
+              .build();
         }
       }
     }
     return getGetWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.CreateWorkflowRequest, com.google.longrunning.Operation>
-      getCreateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateWorkflow",
       requestType = com.google.cloud.workflows.v1.CreateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.CreateWorkflowRequest, com.google.longrunning.Operation>
-      getCreateWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1.CreateWorkflowRequest, com.google.longrunning.Operation>
-        getCreateWorkflowMethod;
+  public static io.grpc.MethodDescriptor getCreateWorkflowMethod() {
+    io.grpc.MethodDescriptor getCreateWorkflowMethod;
     if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
-          WorkflowsGrpc.getCreateWorkflowMethod =
-              getCreateWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1.CreateWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
-                      .build();
+          WorkflowsGrpc.getCreateWorkflowMethod = getCreateWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1.CreateWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
+              .build();
         }
       }
     }
     return getCreateWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.DeleteWorkflowRequest, com.google.longrunning.Operation>
-      getDeleteWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflow",
       requestType = com.google.cloud.workflows.v1.DeleteWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.DeleteWorkflowRequest, com.google.longrunning.Operation>
-      getDeleteWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1.DeleteWorkflowRequest, com.google.longrunning.Operation>
-        getDeleteWorkflowMethod;
+  public static io.grpc.MethodDescriptor getDeleteWorkflowMethod() {
+    io.grpc.MethodDescriptor getDeleteWorkflowMethod;
     if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
-          WorkflowsGrpc.getDeleteWorkflowMethod =
-              getDeleteWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1.DeleteWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
-                      .build();
+          WorkflowsGrpc.getDeleteWorkflowMethod = getDeleteWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1.DeleteWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
+              .build();
         }
       }
     }
     return getDeleteWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.UpdateWorkflowRequest, com.google.longrunning.Operation>
-      getUpdateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflow",
       requestType = com.google.cloud.workflows.v1.UpdateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1.UpdateWorkflowRequest, com.google.longrunning.Operation>
-      getUpdateWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1.UpdateWorkflowRequest, com.google.longrunning.Operation>
-        getUpdateWorkflowMethod;
+  public static io.grpc.MethodDescriptor getUpdateWorkflowMethod() {
+    io.grpc.MethodDescriptor getUpdateWorkflowMethod;
     if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
-          WorkflowsGrpc.getUpdateWorkflowMethod =
-              getUpdateWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1.UpdateWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
-                      .build();
+          WorkflowsGrpc.getUpdateWorkflowMethod = getUpdateWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1.UpdateWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
+              .build();
         }
       }
     }
     return getUpdateWorkflowMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static WorkflowsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowsStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowsStub(channel, callOptions);
+        }
+      };
     return WorkflowsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static WorkflowsBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static WorkflowsBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowsBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowsBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowsBlockingStub(channel, callOptions);
+        }
+      };
     return WorkflowsBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static WorkflowsFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static WorkflowsFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowsFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowsFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowsFutureStub(channel, callOptions);
+        }
+      };
     return WorkflowsFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -304,70 +229,51 @@ public WorkflowsFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - default void listWorkflows( - com.google.cloud.workflows.v1.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkflowsMethod(), responseObserver); + default void listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkflowsMethod(), responseObserver); } /** - * - * *
      * Gets details of a single workflow.
      * 
*/ - default void getWorkflow( - com.google.cloud.workflows.v1.GetWorkflowRequest request, + default void getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkflowMethod(), responseObserver); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - default void createWorkflow( - com.google.cloud.workflows.v1.CreateWorkflowRequest request, + default void createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkflowMethod(), responseObserver); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - default void deleteWorkflow( - com.google.cloud.workflows.v1.DeleteWorkflowRequest request, + default void deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkflowMethod(), responseObserver); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -376,123 +282,99 @@ default void deleteWorkflow(
      * in new workflow executions.
      * 
*/ - default void updateWorkflow( - com.google.cloud.workflows.v1.UpdateWorkflowRequest request, + default void updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkflowMethod(), responseObserver); } } /** * Base class for the server implementation of the service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public abstract static class WorkflowsImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class WorkflowsImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return WorkflowsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public static final class WorkflowsStub extends io.grpc.stub.AbstractAsyncStub { - private WorkflowsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class WorkflowsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkflowsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected WorkflowsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected WorkflowsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new WorkflowsStub(channel, callOptions); } /** - * - * *
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public void listWorkflows( - com.google.cloud.workflows.v1.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets details of a single workflow.
      * 
*/ - public void getWorkflow( - com.google.cloud.workflows.v1.GetWorkflowRequest request, + public void getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public void createWorkflow( - com.google.cloud.workflows.v1.CreateWorkflowRequest request, + public void createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public void deleteWorkflow( - com.google.cloud.workflows.v1.DeleteWorkflowRequest request, + public void deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -501,19 +383,15 @@ public void deleteWorkflow(
      * in new workflow executions.
      * 
*/ - public void updateWorkflow( - com.google.cloud.workflows.v1.UpdateWorkflowRequest request, + public void updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -522,7 +400,8 @@ public void updateWorkflow(
    */
   public static final class WorkflowsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private WorkflowsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -533,65 +412,51 @@ protected WorkflowsBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.cloud.workflows.v1.ListWorkflowsResponse listWorkflows( - com.google.cloud.workflows.v1.ListWorkflowsRequest request) { + public com.google.cloud.workflows.v1.ListWorkflowsResponse listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets details of a single workflow.
      * 
*/ - public com.google.cloud.workflows.v1.Workflow getWorkflow( - com.google.cloud.workflows.v1.GetWorkflowRequest request) { + public com.google.cloud.workflows.v1.Workflow getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.longrunning.Operation createWorkflow( - com.google.cloud.workflows.v1.CreateWorkflowRequest request) { + public com.google.longrunning.Operation createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.longrunning.Operation deleteWorkflow( - com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { + public com.google.longrunning.Operation deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowMethod(), getCallOptions(), request); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -600,8 +465,7 @@ public com.google.longrunning.Operation deleteWorkflow(
      * in new workflow executions.
      * 
*/ - public com.google.longrunning.Operation updateWorkflow( - com.google.cloud.workflows.v1.UpdateWorkflowRequest request) { + public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowMethod(), getCallOptions(), request); } @@ -609,7 +473,6 @@ public com.google.longrunning.Operation updateWorkflow( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -618,77 +481,67 @@ public com.google.longrunning.Operation updateWorkflow(
    */
   public static final class WorkflowsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private WorkflowsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected WorkflowsFutureStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new WorkflowsFutureStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.v1.ListWorkflowsResponse> - listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listWorkflows( + com.google.cloud.workflows.v1.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets details of a single workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.v1.Workflow> - getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture getWorkflow( + com.google.cloud.workflows.v1.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture createWorkflow( + com.google.cloud.workflows.v1.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteWorkflow( + com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -697,8 +550,8 @@ protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * in new workflow executions.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateWorkflow( + com.google.cloud.workflows.v1.UpdateWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request); } @@ -710,11 +563,11 @@ protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_DELETE_WORKFLOW = 3; private static final int METHODID_UPDATE_WORKFLOW = 4; - 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 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 AsyncService serviceImpl; private final int methodId; @@ -728,30 +581,23 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_WORKFLOWS: - serviceImpl.listWorkflows( - (com.google.cloud.workflows.v1.ListWorkflowsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listWorkflows((com.google.cloud.workflows.v1.ListWorkflowsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_WORKFLOW: - serviceImpl.getWorkflow( - (com.google.cloud.workflows.v1.GetWorkflowRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getWorkflow((com.google.cloud.workflows.v1.GetWorkflowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_WORKFLOW: - serviceImpl.createWorkflow( - (com.google.cloud.workflows.v1.CreateWorkflowRequest) request, + serviceImpl.createWorkflow((com.google.cloud.workflows.v1.CreateWorkflowRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_WORKFLOW: - serviceImpl.deleteWorkflow( - (com.google.cloud.workflows.v1.DeleteWorkflowRequest) request, + serviceImpl.deleteWorkflow((com.google.cloud.workflows.v1.DeleteWorkflowRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_WORKFLOW: - serviceImpl.updateWorkflow( - (com.google.cloud.workflows.v1.UpdateWorkflowRequest) request, + serviceImpl.updateWorkflow((com.google.cloud.workflows.v1.UpdateWorkflowRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -773,42 +619,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListWorkflowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1.ListWorkflowsRequest, - com.google.cloud.workflows.v1.ListWorkflowsResponse>( - service, METHODID_LIST_WORKFLOWS))) + getListWorkflowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1.ListWorkflowsRequest, + com.google.cloud.workflows.v1.ListWorkflowsResponse>( + service, METHODID_LIST_WORKFLOWS))) .addMethod( - getGetWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1.GetWorkflowRequest, - com.google.cloud.workflows.v1.Workflow>(service, METHODID_GET_WORKFLOW))) + getGetWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1.GetWorkflowRequest, + com.google.cloud.workflows.v1.Workflow>( + service, METHODID_GET_WORKFLOW))) .addMethod( - getCreateWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1.CreateWorkflowRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKFLOW))) + getCreateWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1.CreateWorkflowRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKFLOW))) .addMethod( - getDeleteWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1.DeleteWorkflowRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKFLOW))) + getDeleteWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1.DeleteWorkflowRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKFLOW))) .addMethod( - getUpdateWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1.UpdateWorkflowRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKFLOW))) + getUpdateWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1.UpdateWorkflowRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKFLOW))) .build(); } - private abstract static class WorkflowsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class WorkflowsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { WorkflowsBaseDescriptorSupplier() {} @java.lang.Override @@ -850,16 +699,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (WorkflowsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier()) - .addMethod(getListWorkflowsMethod()) - .addMethod(getGetWorkflowMethod()) - .addMethod(getCreateWorkflowMethod()) - .addMethod(getDeleteWorkflowMethod()) - .addMethod(getUpdateWorkflowMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier()) + .addMethod(getListWorkflowsMethod()) + .addMethod(getGetWorkflowMethod()) + .addMethod(getCreateWorkflowMethod()) + .addMethod(getDeleteWorkflowMethod()) + .addMethod(getUpdateWorkflowMethod()) + .build(); } } } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java similarity index 65% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java index 9d23ea4edcdf..de663e061a43 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** - * - * *
  * Request for the
  * [CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.CreateWorkflowRequest}
  */
-public final class CreateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.CreateWorkflowRequest)
     CreateWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateWorkflowRequest.newBuilder() to construct.
   private CreateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateWorkflowRequest() {
     parent_ = "";
     workflowId_ = "";
@@ -46,41 +28,34 @@ private CreateWorkflowRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.CreateWorkflowRequest.class,
-            com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.CreateWorkflowRequest.class, com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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 @@ -89,32 +64,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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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 { @@ -125,16 +98,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int WORKFLOW_FIELD_NUMBER = 2; private com.google.cloud.workflows.v1.Workflow workflow_; /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ @java.lang.Override @@ -142,49 +110,33 @@ public boolean hasWorkflow() { return workflow_ != null; } /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow getWorkflow() { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } public static final int WORKFLOW_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object workflowId_ = ""; /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -197,7 +149,6 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() {
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workflowId. */ @java.lang.Override @@ -206,15 +157,14 @@ public java.lang.String getWorkflowId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; } } /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -227,15 +177,16 @@ public java.lang.String getWorkflowId() {
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workflowId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkflowIdBytes() { + public com.google.protobuf.ByteString + getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowId_ = b; return b; } else { @@ -244,7 +195,6 @@ public com.google.protobuf.ByteString getWorkflowIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +206,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_); } @@ -279,7 +230,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workflow_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflow()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkflow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); @@ -292,20 +244,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.workflows.v1.CreateWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.CreateWorkflowRequest other = - (com.google.cloud.workflows.v1.CreateWorkflowRequest) obj; + com.google.cloud.workflows.v1.CreateWorkflowRequest other = (com.google.cloud.workflows.v1.CreateWorkflowRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasWorkflow() != other.hasWorkflow()) return false; if (hasWorkflow()) { - if (!getWorkflow().equals(other.getWorkflow())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; } - if (!getWorkflowId().equals(other.getWorkflowId())) return false; + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,103 +285,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.CreateWorkflowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.CreateWorkflowRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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
    * [CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow]
@@ -436,32 +385,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1.CreateWorkflowRequest}
    */
-  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.workflows.v1.CreateWorkflowRequest)
       com.google.cloud.workflows.v1.CreateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.CreateWorkflowRequest.class,
-              com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.CreateWorkflowRequest.class, com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.CreateWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +427,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -498,11 +448,8 @@ public com.google.cloud.workflows.v1.CreateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.CreateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.CreateWorkflowRequest result =
-          new com.google.cloud.workflows.v1.CreateWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1.CreateWorkflowRequest result = new com.google.cloud.workflows.v1.CreateWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -513,7 +460,9 @@ private void buildPartial0(com.google.cloud.workflows.v1.CreateWorkflowRequest r
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null
+            ? workflow_
+            : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.workflowId_ = workflowId_;
@@ -524,39 +473,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.CreateWorkflowRequest r
     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.workflows.v1.CreateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.CreateWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1.CreateWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -564,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.CreateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.CreateWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1.CreateWorkflowRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -605,31 +552,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                workflowId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getWorkflowFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              workflowId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -639,28 +584,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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; @@ -669,24 +609,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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 { @@ -694,41 +631,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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() { @@ -738,24 +664,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -765,58 +685,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.v1.Workflow workflow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, - com.google.cloud.workflows.v1.Workflow.Builder, - com.google.cloud.workflows.v1.WorkflowOrBuilder> - workflowBuilder_; + com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> workflowBuilder_; /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ public com.google.cloud.workflows.v1.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } else { return workflowBuilder_.getMessage(); } } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { @@ -832,17 +733,14 @@ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { + public Builder setWorkflow( + com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -853,21 +751,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow.Builder builde return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && workflow_ != null - && workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + workflow_ != null && + workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -880,15 +774,11 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000002); @@ -901,15 +791,11 @@ public Builder clearWorkflow() { return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000002; @@ -917,48 +803,36 @@ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? + com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, - com.google.cloud.workflows.v1.Workflow.Builder, - com.google.cloud.workflows.v1.WorkflowOrBuilder> + com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, - com.google.cloud.workflows.v1.Workflow.Builder, - com.google.cloud.workflows.v1.WorkflowOrBuilder>( - getWorkflow(), getParentForChildren(), isClean()); + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); workflow_ = null; } return workflowBuilder_; @@ -966,8 +840,6 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { private java.lang.Object workflowId_ = ""; /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -980,13 +852,13 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workflowId. */ public java.lang.String getWorkflowId() { java.lang.Object ref = workflowId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; @@ -995,8 +867,6 @@ public java.lang.String getWorkflowId() { } } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1009,14 +879,15 @@ public java.lang.String getWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workflowId. */ - public com.google.protobuf.ByteString getWorkflowIdBytes() { + public com.google.protobuf.ByteString + getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowId_ = b; return b; } else { @@ -1024,8 +895,6 @@ public com.google.protobuf.ByteString getWorkflowIdBytes() { } } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1038,22 +907,18 @@ public com.google.protobuf.ByteString getWorkflowIdBytes() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workflowId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1066,7 +931,6 @@ public Builder setWorkflowId(java.lang.String value) {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkflowId() { @@ -1076,8 +940,6 @@ public Builder clearWorkflowId() { return this; } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1090,23 +952,21 @@ public Builder clearWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workflowId_ = value; bitField0_ |= 0x00000004; 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); } @@ -1116,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.CreateWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.CreateWorkflowRequest) private static final com.google.cloud.workflows.v1.CreateWorkflowRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.CreateWorkflowRequest(); } @@ -1130,27 +990,27 @@ public static com.google.cloud.workflows.v1.CreateWorkflowRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1165,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.CreateWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java similarity index 60% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java index a4930c6c5d53..e068e398eb8f 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface CreateWorkflowRequestOrBuilder - extends +public interface CreateWorkflowRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.CreateWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ com.google.cloud.workflows.v1.Workflow getWorkflow(); /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder(); /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -110,13 +69,10 @@ public interface CreateWorkflowRequestOrBuilder
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workflowId. */ java.lang.String getWorkflowId(); /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -129,8 +85,8 @@ public interface CreateWorkflowRequestOrBuilder
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workflowId. */ - com.google.protobuf.ByteString getWorkflowIdBytes(); + com.google.protobuf.ByteString + getWorkflowIdBytes(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java similarity index 62% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java index f36fc9d585eb..81aed7fbbc30 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** - * - * *
  * Request for the
  * [DeleteWorkflow][google.cloud.workflows.v1.Workflows.DeleteWorkflow]
@@ -29,57 +12,49 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.DeleteWorkflowRequest}
  */
-public final class DeleteWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.DeleteWorkflowRequest)
     DeleteWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteWorkflowRequest.newBuilder() to construct.
   private DeleteWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteWorkflowRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.DeleteWorkflowRequest.class,
-            com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 @@ -88,32 +63,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. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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.workflows.v1.DeleteWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.DeleteWorkflowRequest other = - (com.google.cloud.workflows.v1.DeleteWorkflowRequest) obj; + com.google.cloud.workflows.v1.DeleteWorkflowRequest other = (com.google.cloud.workflows.v1.DeleteWorkflowRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,103 +159,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.DeleteWorkflowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.DeleteWorkflowRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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
    * [DeleteWorkflow][google.cloud.workflows.v1.Workflows.DeleteWorkflow]
@@ -291,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1.DeleteWorkflowRequest}
    */
-  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.workflows.v1.DeleteWorkflowRequest)
       com.google.cloud.workflows.v1.DeleteWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.DeleteWorkflowRequest.class,
-              com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.DeleteWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -326,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -347,11 +316,8 @@ public com.google.cloud.workflows.v1.DeleteWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.DeleteWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.DeleteWorkflowRequest result =
-          new com.google.cloud.workflows.v1.DeleteWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1.DeleteWorkflowRequest result = new com.google.cloud.workflows.v1.DeleteWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -367,39 +333,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.DeleteWorkflowRequest r
     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.workflows.v1.DeleteWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.DeleteWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1.DeleteWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -407,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.DeleteWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.DeleteWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1.DeleteWorkflowRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -440,19 +404,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -462,28 +424,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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; @@ -492,24 +449,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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 { @@ -517,41 +471,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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() { @@ -561,33 +504,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -597,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.DeleteWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.DeleteWorkflowRequest) private static final com.google.cloud.workflows.v1.DeleteWorkflowRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.DeleteWorkflowRequest(); } @@ -611,27 +548,27 @@ public static com.google.cloud.workflows.v1.DeleteWorkflowRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.DeleteWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java new file mode 100644 index 000000000000..8514df782250 --- /dev/null +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1/workflows.proto + +package com.google.cloud.workflows.v1; + +public interface DeleteWorkflowRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.DeleteWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * 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/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java similarity index 68% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java index b294b9b69f7b..9826fd6c8f7f 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** - * - * *
  * Request for the
  * [GetWorkflow][google.cloud.workflows.v1.Workflows.GetWorkflow] method.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.GetWorkflowRequest}
  */
-public final class GetWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.GetWorkflowRequest)
     GetWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetWorkflowRequest.newBuilder() to construct.
   private GetWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetWorkflowRequest() {
     name_ = "";
     revisionId_ = "";
@@ -45,41 +27,34 @@ private GetWorkflowRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.GetWorkflowRequest.class,
-            com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.GetWorkflowRequest.class, com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 @@ -88,32 +63,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. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 { @@ -122,12 +95,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REVISION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** - * - * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -137,7 +107,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The revisionId. */ @java.lang.Override @@ -146,15 +115,14 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** - * - * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -164,15 +132,16 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -181,7 +150,6 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +161,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_); } @@ -223,16 +192,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.workflows.v1.GetWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.GetWorkflowRequest other = - (com.google.cloud.workflows.v1.GetWorkflowRequest) obj; + com.google.cloud.workflows.v1.GetWorkflowRequest other = (com.google.cloud.workflows.v1.GetWorkflowRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRevisionId() + .equals(other.getRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,104 +223,99 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1.GetWorkflowRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1.GetWorkflowRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.GetWorkflowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.GetWorkflowRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest 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
    * [GetWorkflow][google.cloud.workflows.v1.Workflows.GetWorkflow] method.
@@ -358,32 +323,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1.GetWorkflowRequest}
    */
-  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.workflows.v1.GetWorkflowRequest)
       com.google.cloud.workflows.v1.GetWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.GetWorkflowRequest.class,
-              com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.GetWorkflowRequest.class, com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.GetWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -394,9 +360,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -415,11 +381,8 @@ public com.google.cloud.workflows.v1.GetWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.GetWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.GetWorkflowRequest result =
-          new com.google.cloud.workflows.v1.GetWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1.GetWorkflowRequest result = new com.google.cloud.workflows.v1.GetWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -438,39 +401,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.GetWorkflowRequest resu
     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.workflows.v1.GetWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.GetWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1.GetWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -478,8 +440,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.GetWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.GetWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1.GetWorkflowRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -516,25 +477,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                revisionId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              revisionId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -544,28 +502,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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; @@ -574,24 +527,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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 { @@ -599,41 +549,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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() { @@ -643,24 +582,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -670,8 +603,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object revisionId_ = ""; /** - * - * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -681,13 +612,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -696,8 +627,6 @@ public java.lang.String getRevisionId() { } } /** - * - * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -707,14 +636,15 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -722,8 +652,6 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { } } /** - * - * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -733,22 +661,18 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRevisionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } revisionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -758,7 +682,6 @@ public Builder setRevisionId(java.lang.String value) {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -768,8 +691,6 @@ public Builder clearRevisionId() { return this; } /** - * - * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -779,23 +700,21 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRevisionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000002; 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); } @@ -805,12 +724,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.GetWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.GetWorkflowRequest) private static final com.google.cloud.workflows.v1.GetWorkflowRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.GetWorkflowRequest(); } @@ -819,27 +738,27 @@ public static com.google.cloud.workflows.v1.GetWorkflowRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,4 +773,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.GetWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java similarity index 61% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java index 4745573c3fcf..e624e6471e29 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface GetWorkflowRequestOrBuilder - extends +public interface GetWorkflowRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.GetWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -66,13 +39,10 @@ public interface GetWorkflowRequestOrBuilder
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The revisionId. */ java.lang.String getRevisionId(); /** - * - * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -82,8 +52,8 @@ public interface GetWorkflowRequestOrBuilder
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString getRevisionIdBytes(); + com.google.protobuf.ByteString + getRevisionIdBytes(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java similarity index 71% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java index 63b1bfe1f818..8bf7e2143f82 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** - * - * *
  * Request for the
  * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsRequest}
  */
-public final class ListWorkflowsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListWorkflowsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.ListWorkflowsRequest)
     ListWorkflowsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListWorkflowsRequest.newBuilder() to construct.
   private ListWorkflowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListWorkflowsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,41 +30,34 @@ private ListWorkflowsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListWorkflowsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.ListWorkflowsRequest.class,
-            com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
+            com.google.cloud.workflows.v1.ListWorkflowsRequest.class, com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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 @@ -91,32 +66,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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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 { @@ -127,8 +100,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of workflows to return per call. The service might return
    * fewer than this value even if not at the end of the collection. If a value
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -161,7 +128,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -170,15 +136,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 page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -188,15 +153,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 { @@ -205,18 +171,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -225,29 +187,29 @@ 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; } } /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @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 { @@ -256,12 +218,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -270,7 +229,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -279,15 +237,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -296,15 +253,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -313,7 +271,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +282,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_); } @@ -354,7 +312,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -373,19 +332,23 @@ 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.workflows.v1.ListWorkflowsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.ListWorkflowsRequest other = - (com.google.cloud.workflows.v1.ListWorkflowsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.workflows.v1.ListWorkflowsRequest other = (com.google.cloud.workflows.v1.ListWorkflowsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,103 +376,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.ListWorkflowsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.ListWorkflowsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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
    * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -518,32 +476,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsRequest}
    */
-  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.workflows.v1.ListWorkflowsRequest)
       com.google.cloud.workflows.v1.ListWorkflowsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.ListWorkflowsRequest.class,
-              com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
+              com.google.cloud.workflows.v1.ListWorkflowsRequest.class, com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.ListWorkflowsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -557,9 +516,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -578,11 +537,8 @@ public com.google.cloud.workflows.v1.ListWorkflowsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.ListWorkflowsRequest buildPartial() {
-      com.google.cloud.workflows.v1.ListWorkflowsRequest result =
-          new com.google.cloud.workflows.v1.ListWorkflowsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1.ListWorkflowsRequest result = new com.google.cloud.workflows.v1.ListWorkflowsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -610,39 +566,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.ListWorkflowsRequest re
     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.workflows.v1.ListWorkflowsRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -650,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.ListWorkflowsRequest other) {
-      if (other == com.google.cloud.workflows.v1.ListWorkflowsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1.ListWorkflowsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -701,43 +655,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              orderBy_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -747,28 +695,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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; @@ -777,24 +720,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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 { @@ -802,41 +742,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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() { @@ -846,24 +775,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -871,10 +794,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of workflows to return per call. The service might return
      * fewer than this value even if not at the end of the collection. If a value
@@ -883,7 +804,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -891,8 +811,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of workflows to return per call. The service might return
      * fewer than this value even if not at the end of the collection. If a value
@@ -901,7 +819,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -913,8 +830,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of workflows to return per call. The service might return
      * fewer than this value even if not at the end of the collection. If a value
@@ -923,7 +838,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -935,8 +849,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -946,13 +858,13 @@ public Builder clearPageSize() {
      * 
* * 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 +873,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -972,14 +882,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 { @@ -987,8 +898,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -998,22 +907,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -1023,7 +928,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1033,8 +937,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -1044,14 +946,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1061,20 +961,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @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; @@ -1083,21 +981,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @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 { @@ -1105,35 +1002,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1143,21 +1033,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1167,8 +1053,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1177,13 +1061,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1192,8 +1076,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1202,14 +1084,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1217,8 +1100,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1227,22 +1108,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1251,7 +1128,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1261,8 +1137,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1271,23 +1145,21 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; 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); } @@ -1297,12 +1169,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.ListWorkflowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.ListWorkflowsRequest) private static final com.google.cloud.workflows.v1.ListWorkflowsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.ListWorkflowsRequest(); } @@ -1311,27 +1183,27 @@ public static com.google.cloud.workflows.v1.ListWorkflowsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1346,4 +1218,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.ListWorkflowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java similarity index 70% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java index c806db4891d8..083715e7382f 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface ListWorkflowsRequestOrBuilder - extends +public interface ListWorkflowsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.ListWorkflowsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of workflows to return per call. The service might return
    * fewer than this value even if not at the end of the collection. If a value
@@ -65,14 +38,11 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -98,39 +65,32 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -139,13 +99,10 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -154,8 +111,8 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java similarity index 72% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java index 16c0aabedad0..f3ce3be76a22 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** - * - * *
  * Response for the
  * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -29,50 +12,46 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsResponse}
  */
-public final class ListWorkflowsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListWorkflowsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.ListWorkflowsResponse)
     ListWorkflowsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListWorkflowsResponse.newBuilder() to construct.
   private ListWorkflowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListWorkflowsResponse() {
     workflows_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
-    unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    unreachable_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListWorkflowsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.ListWorkflowsResponse.class,
-            com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
+            com.google.cloud.workflows.v1.ListWorkflowsResponse.class, com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
   }
 
   public static final int WORKFLOWS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List workflows_;
   /**
-   *
-   *
    * 
    * The workflows that match the request.
    * 
@@ -84,8 +63,6 @@ public java.util.List getWorkflowsList() return workflows_; } /** - * - * *
    * The workflows that match the request.
    * 
@@ -93,13 +70,11 @@ public java.util.List getWorkflowsList() * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkflowsOrBuilderList() { return workflows_; } /** - * - * *
    * The workflows that match the request.
    * 
@@ -111,8 +86,6 @@ public int getWorkflowsCount() { return workflows_.size(); } /** - * - * *
    * The workflows that match the request.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.workflows.v1.Workflow getWorkflows(int index) { return workflows_.get(index); } /** - * - * *
    * The workflows that match the request.
    * 
@@ -133,24 +104,21 @@ public com.google.cloud.workflows.v1.Workflow getWorkflows(int index) { * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ @java.lang.Override - public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { + public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { return workflows_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,30 +127,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; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -191,47 +159,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -239,23 +198,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +223,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 < workflows_.size(); i++) { output.writeMessage(1, workflows_.get(i)); } @@ -287,7 +244,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workflows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -308,17 +266,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.workflows.v1.ListWorkflowsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.v1.ListWorkflowsResponse other = - (com.google.cloud.workflows.v1.ListWorkflowsResponse) obj; + com.google.cloud.workflows.v1.ListWorkflowsResponse other = (com.google.cloud.workflows.v1.ListWorkflowsResponse) obj; - if (!getWorkflowsList().equals(other.getWorkflowsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkflowsList() + .equals(other.getWorkflowsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,103 +306,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.ListWorkflowsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.ListWorkflowsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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
    * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -451,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsResponse}
    */
-  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.workflows.v1.ListWorkflowsResponse)
       com.google.cloud.workflows.v1.ListWorkflowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.ListWorkflowsResponse.class,
-              com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
+              com.google.cloud.workflows.v1.ListWorkflowsResponse.class, com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.ListWorkflowsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -489,14 +445,15 @@ public Builder clear() {
       }
       bitField0_ = (bitField0_ & ~0x00000001);
       nextPageToken_ = "";
-      unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      unreachable_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -515,18 +472,14 @@ public com.google.cloud.workflows.v1.ListWorkflowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.ListWorkflowsResponse buildPartial() {
-      com.google.cloud.workflows.v1.ListWorkflowsResponse result =
-          new com.google.cloud.workflows.v1.ListWorkflowsResponse(this);
+      com.google.cloud.workflows.v1.ListWorkflowsResponse result = new com.google.cloud.workflows.v1.ListWorkflowsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workflows.v1.ListWorkflowsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workflows.v1.ListWorkflowsResponse result) {
       if (workflowsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           workflows_ = java.util.Collections.unmodifiableList(workflows_);
@@ -553,39 +506,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.ListWorkflowsResponse r
     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.workflows.v1.ListWorkflowsResponse) {
-        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsResponse) other);
+        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -593,8 +545,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.ListWorkflowsResponse other) {
-      if (other == com.google.cloud.workflows.v1.ListWorkflowsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1.ListWorkflowsResponse.getDefaultInstance()) return this;
       if (workflowsBuilder_ == null) {
         if (!other.workflows_.isEmpty()) {
           if (workflows_.isEmpty()) {
@@ -613,10 +564,9 @@ public Builder mergeFrom(com.google.cloud.workflows.v1.ListWorkflowsResponse oth
             workflowsBuilder_ = null;
             workflows_ = other.workflows_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            workflowsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWorkflowsFieldBuilder()
-                    : null;
+            workflowsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWorkflowsFieldBuilder() : null;
           } else {
             workflowsBuilder_.addAllMessages(other.workflows_);
           }
@@ -663,39 +613,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.workflows.v1.Workflow m =
-                    input.readMessage(
-                        com.google.cloud.workflows.v1.Workflow.parser(), extensionRegistry);
-                if (workflowsBuilder_ == null) {
-                  ensureWorkflowsIsMutable();
-                  workflows_.add(m);
-                } else {
-                  workflowsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUnreachableIsMutable();
-                unreachable_.add(s);
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.workflows.v1.Workflow m =
+                  input.readMessage(
+                      com.google.cloud.workflows.v1.Workflow.parser(),
+                      extensionRegistry);
+              if (workflowsBuilder_ == null) {
+                ensureWorkflowsIsMutable();
+                workflows_.add(m);
+              } else {
+                workflowsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUnreachableIsMutable();
+              unreachable_.add(s);
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -705,28 +652,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List workflows_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureWorkflowsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         workflows_ = new java.util.ArrayList(workflows_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.workflows.v1.Workflow,
-            com.google.cloud.workflows.v1.Workflow.Builder,
-            com.google.cloud.workflows.v1.WorkflowOrBuilder>
-        workflowsBuilder_;
+        com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> workflowsBuilder_;
 
     /**
-     *
-     *
      * 
      * The workflows that match the request.
      * 
@@ -741,8 +681,6 @@ public java.util.List getWorkflowsList() } } /** - * - * *
      * The workflows that match the request.
      * 
@@ -757,8 +695,6 @@ public int getWorkflowsCount() { } } /** - * - * *
      * The workflows that match the request.
      * 
@@ -773,15 +709,14 @@ public com.google.cloud.workflows.v1.Workflow getWorkflows(int index) { } } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public Builder setWorkflows(int index, com.google.cloud.workflows.v1.Workflow value) { + public Builder setWorkflows( + int index, com.google.cloud.workflows.v1.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -795,8 +730,6 @@ public Builder setWorkflows(int index, com.google.cloud.workflows.v1.Workflow va return this; } /** - * - * *
      * The workflows that match the request.
      * 
@@ -815,8 +748,6 @@ public Builder setWorkflows( return this; } /** - * - * *
      * The workflows that match the request.
      * 
@@ -837,15 +768,14 @@ public Builder addWorkflows(com.google.cloud.workflows.v1.Workflow value) { return this; } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public Builder addWorkflows(int index, com.google.cloud.workflows.v1.Workflow value) { + public Builder addWorkflows( + int index, com.google.cloud.workflows.v1.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -859,15 +789,14 @@ public Builder addWorkflows(int index, com.google.cloud.workflows.v1.Workflow va return this; } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public Builder addWorkflows(com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { + public Builder addWorkflows( + com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.add(builderForValue.build()); @@ -878,8 +807,6 @@ public Builder addWorkflows(com.google.cloud.workflows.v1.Workflow.Builder build return this; } /** - * - * *
      * The workflows that match the request.
      * 
@@ -898,8 +825,6 @@ public Builder addWorkflows( return this; } /** - * - * *
      * The workflows that match the request.
      * 
@@ -910,7 +835,8 @@ public Builder addAllWorkflows( java.lang.Iterable values) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workflows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workflows_); onChanged(); } else { workflowsBuilder_.addAllMessages(values); @@ -918,8 +844,6 @@ public Builder addAllWorkflows( return this; } /** - * - * *
      * The workflows that match the request.
      * 
@@ -937,8 +861,6 @@ public Builder clearWorkflows() { return this; } /** - * - * *
      * The workflows that match the request.
      * 
@@ -956,44 +878,39 @@ public Builder removeWorkflows(int index) { return this; } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowsBuilder(int index) { + public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowsBuilder( + int index) { return getWorkflowsFieldBuilder().getBuilder(index); } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { + public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { if (workflowsBuilder_ == null) { - return workflows_.get(index); - } else { + return workflows_.get(index); } else { return workflowsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public java.util.List - getWorkflowsOrBuilderList() { + public java.util.List + getWorkflowsOrBuilderList() { if (workflowsBuilder_ != null) { return workflowsBuilder_.getMessageOrBuilderList(); } else { @@ -1001,8 +918,6 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int } } /** - * - * *
      * The workflows that match the request.
      * 
@@ -1010,48 +925,42 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder() { - return getWorkflowsFieldBuilder() - .addBuilder(com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); + return getWorkflowsFieldBuilder().addBuilder( + com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder(int index) { - return getWorkflowsFieldBuilder() - .addBuilder(index, com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); + public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().addBuilder( + index, com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); } /** - * - * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public java.util.List - getWorkflowsBuilderList() { + public java.util.List + getWorkflowsBuilderList() { return getWorkflowsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, - com.google.cloud.workflows.v1.Workflow.Builder, - com.google.cloud.workflows.v1.WorkflowOrBuilder> + com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> getWorkflowsFieldBuilder() { if (workflowsBuilder_ == null) { - workflowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, - com.google.cloud.workflows.v1.Workflow.Builder, - com.google.cloud.workflows.v1.WorkflowOrBuilder>( - workflows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder>( + workflows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workflows_ = null; } return workflowsBuilder_; @@ -1059,21 +968,19 @@ public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder(int in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -1082,22 +989,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -1105,37 +1011,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1145,22 +1044,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1170,7 +1065,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1178,43 +1072,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1222,37 +1108,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1260,21 +1140,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1282,58 +1158,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1341,9 +1209,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1353,12 +1221,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.ListWorkflowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.ListWorkflowsResponse) private static final com.google.cloud.workflows.v1.ListWorkflowsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.ListWorkflowsResponse(); } @@ -1367,27 +1235,27 @@ public static com.google.cloud.workflows.v1.ListWorkflowsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,4 +1270,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.ListWorkflowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java similarity index 71% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java index 5fbaf8c67349..1375747ad6de 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface ListWorkflowsResponseOrBuilder - extends +public interface ListWorkflowsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.ListWorkflowsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The workflows that match the request.
    * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - java.util.List getWorkflowsList(); + java.util.List + getWorkflowsList(); /** - * - * *
    * The workflows that match the request.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkflowsResponseOrBuilder */ com.google.cloud.workflows.v1.Workflow getWorkflows(int index); /** - * - * *
    * The workflows that match the request.
    * 
@@ -54,102 +33,84 @@ public interface ListWorkflowsResponseOrBuilder */ int getWorkflowsCount(); /** - * - * *
    * The workflows that match the request.
    * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - java.util.List + java.util.List getWorkflowsOrBuilderList(); /** - * - * *
    * The workflows that match the request.
    * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int index); + com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java similarity index 100% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java similarity index 71% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java index 2c0ebc708d5f..90c95269e6fd 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.workflows.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -45,36 +27,32 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.OperationMetadata.class, - com.google.cloud.workflows.v1.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1.OperationMetadata.class, com.google.cloud.workflows.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -82,14 +60,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -97,8 +72,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -113,14 +86,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -128,14 +98,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -143,8 +110,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running.
    * 
@@ -157,18 +122,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The target. */ @java.lang.Override @@ -177,29 +138,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -208,18 +169,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -228,29 +185,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -259,18 +216,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int API_VERSION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The apiVersion. */ @java.lang.Override @@ -279,29 +232,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -310,7 +263,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,7 +274,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -348,10 +301,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -370,25 +325,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.workflows.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workflows.v1.OperationMetadata other = - (com.google.cloud.workflows.v1.OperationMetadata) obj; + com.google.cloud.workflows.v1.OperationMetadata other = (com.google.cloud.workflows.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -419,136 +378,132 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.workflows.v1.OperationMetadata} */ - 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.workflows.v1.OperationMetadata) com.google.cloud.workflows.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.OperationMetadata.class, - com.google.cloud.workflows.v1.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1.OperationMetadata.class, com.google.cloud.workflows.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workflows.v1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +525,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -591,11 +546,8 @@ public com.google.cloud.workflows.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.workflows.v1.OperationMetadata buildPartial() { - com.google.cloud.workflows.v1.OperationMetadata result = - new com.google.cloud.workflows.v1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.v1.OperationMetadata result = new com.google.cloud.workflows.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -603,10 +555,14 @@ public com.google.cloud.workflows.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workflows.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -623,39 +579,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.OperationMetadata resul 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.workflows.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.workflows.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.workflows.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -663,8 +618,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.v1.OperationMetadata other) { - if (other == com.google.cloud.workflows.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.workflows.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -712,43 +666,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,52 +710,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
@@ -824,15 +762,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -843,8 +780,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -853,9 +788,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -868,8 +803,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -887,8 +820,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -901,8 +832,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -913,14 +842,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
@@ -928,17 +854,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -946,33 +869,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -983,8 +897,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1005,15 +917,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1024,8 +935,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1034,9 +943,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1049,8 +958,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1068,8 +975,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1082,8 +987,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1094,12 +997,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 the operation finished running.
      * 
@@ -1107,17 +1009,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1125,20 +1024,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1147,21 +1044,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1169,35 +1065,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1207,21 +1096,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1231,20 +1116,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,21 +1136,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1275,35 +1157,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1313,21 +1188,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1337,20 +1208,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1359,21 +1228,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1381,35 +1249,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1419,30 +1280,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000010; 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); } @@ -1452,12 +1309,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.OperationMetadata) private static final com.google.cloud.workflows.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.OperationMetadata(); } @@ -1466,27 +1323,27 @@ public static com.google.cloud.workflows.v1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1501,4 +1358,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java similarity index 73% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java index 232967d464c3..2d43df877d00 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
@@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
@@ -94,77 +62,62 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java similarity index 64% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java index 7525ed6e46d1..03f64952c06b 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** - * - * *
  * Request for the
  * [UpdateWorkflow][google.cloud.workflows.v1.Workflows.UpdateWorkflow]
@@ -29,52 +12,46 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.UpdateWorkflowRequest}
  */
-public final class UpdateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.UpdateWorkflowRequest)
     UpdateWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateWorkflowRequest.newBuilder() to construct.
   private UpdateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateWorkflowRequest() {}
+  private UpdateWorkflowRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.UpdateWorkflowRequest.class,
-            com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
   }
 
   public static final int WORKFLOW_FIELD_NUMBER = 1;
   private com.google.cloud.workflows.v1.Workflow workflow_;
   /**
-   *
-   *
    * 
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ @java.lang.Override @@ -82,54 +59,38 @@ public boolean hasWorkflow() { return workflow_ != null; } /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow getWorkflow() { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -137,15 +98,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -153,8 +111,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
@@ -168,7 +124,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -180,7 +135,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 (workflow_ != null) {
       output.writeMessage(1, getWorkflow());
     }
@@ -197,10 +153,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (workflow_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkflow());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getWorkflow());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -210,21 +168,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.workflows.v1.UpdateWorkflowRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.workflows.v1.UpdateWorkflowRequest other =
-        (com.google.cloud.workflows.v1.UpdateWorkflowRequest) obj;
+    com.google.cloud.workflows.v1.UpdateWorkflowRequest other = (com.google.cloud.workflows.v1.UpdateWorkflowRequest) obj;
 
     if (hasWorkflow() != other.hasWorkflow()) return false;
     if (hasWorkflow()) {
-      if (!getWorkflow().equals(other.getWorkflow())) return false;
+      if (!getWorkflow()
+          .equals(other.getWorkflow())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -251,103 +210,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.workflows.v1.UpdateWorkflowRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.workflows.v1.UpdateWorkflowRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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
    * [UpdateWorkflow][google.cloud.workflows.v1.Workflows.UpdateWorkflow]
@@ -356,32 +310,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1.UpdateWorkflowRequest}
    */
-  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.workflows.v1.UpdateWorkflowRequest)
       com.google.cloud.workflows.v1.UpdateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.UpdateWorkflowRequest.class,
-              com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.UpdateWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -400,9 +355,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -421,11 +376,8 @@ public com.google.cloud.workflows.v1.UpdateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.UpdateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.UpdateWorkflowRequest result =
-          new com.google.cloud.workflows.v1.UpdateWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1.UpdateWorkflowRequest result = new com.google.cloud.workflows.v1.UpdateWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -433,10 +385,14 @@ public com.google.cloud.workflows.v1.UpdateWorkflowRequest buildPartial() {
     private void buildPartial0(com.google.cloud.workflows.v1.UpdateWorkflowRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null
+            ? workflow_
+            : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -444,39 +400,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.UpdateWorkflowRequest r
     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.workflows.v1.UpdateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.UpdateWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1.UpdateWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -484,8 +439,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.UpdateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.UpdateWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1.UpdateWorkflowRequest.getDefaultInstance()) return this;
       if (other.hasWorkflow()) {
         mergeWorkflow(other.getWorkflow());
       }
@@ -518,25 +472,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getWorkflowFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -546,63 +501,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.workflows.v1.Workflow workflow_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workflows.v1.Workflow,
-            com.google.cloud.workflows.v1.Workflow.Builder,
-            com.google.cloud.workflows.v1.WorkflowOrBuilder>
-        workflowBuilder_;
+        com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> workflowBuilder_;
     /**
-     *
-     *
      * 
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ public com.google.cloud.workflows.v1.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } else { return workflowBuilder_.getMessage(); } } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { @@ -618,17 +553,14 @@ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { + public Builder setWorkflow( + com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -639,21 +571,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow.Builder builde return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workflow_ != null - && workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workflow_ != null && + workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -666,15 +594,11 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000001); @@ -687,15 +611,11 @@ public Builder clearWorkflow() { return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000001; @@ -703,48 +623,36 @@ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null - ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? + com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; } } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, - com.google.cloud.workflows.v1.Workflow.Builder, - com.google.cloud.workflows.v1.WorkflowOrBuilder> + com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, - com.google.cloud.workflows.v1.Workflow.Builder, - com.google.cloud.workflows.v1.WorkflowOrBuilder>( - getWorkflow(), getParentForChildren(), isClean()); + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); workflow_ = null; } return workflowBuilder_; @@ -752,49 +660,36 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { 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_; /** - * - * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -816,8 +711,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -825,7 +718,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -836,8 +730,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -847,9 +739,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -862,8 +754,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -882,8 +772,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -897,8 +785,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -910,14 +796,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_;
       }
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -926,24 +809,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -953,12 +833,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.UpdateWorkflowRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.UpdateWorkflowRequest)
   private static final com.google.cloud.workflows.v1.UpdateWorkflowRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.UpdateWorkflowRequest();
   }
@@ -967,27 +847,27 @@ public static com.google.cloud.workflows.v1.UpdateWorkflowRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateWorkflowRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateWorkflowRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1002,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.workflows.v1.UpdateWorkflowRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
similarity index 58%
rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
index cddb8670e660..95a9290d0661 100644
--- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
+++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1/workflows.proto
 
 package com.google.cloud.workflows.v1;
 
-public interface UpdateWorkflowRequestOrBuilder
-    extends
+public interface UpdateWorkflowRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.UpdateWorkflowRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ com.google.cloud.workflows.v1.Workflow getWorkflow(); /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder(); /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
similarity index 69%
rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
index 490dc76b7f81..b5f3d19806ce 100644
--- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
+++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1/workflows.proto
 
 package com.google.cloud.workflows.v1;
 
 /**
- *
- *
  * 
  * Workflow program to be executed by Workflows.
  * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow} */ -public final class Workflow extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Workflow extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.Workflow) WorkflowOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Workflow.newBuilder() to construct. private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Workflow() { name_ = ""; description_ = ""; @@ -49,51 +31,48 @@ private Workflow() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Workflow(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); case 14: return internalGetUserEnvVars(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.class, - com.google.cloud.workflows.v1.Workflow.Builder.class); + com.google.cloud.workflows.v1.Workflow.class, com.google.cloud.workflows.v1.Workflow.Builder.class); } /** - * - * *
    * Describes the current state of workflow deployment.
    * 
* * Protobuf enum {@code google.cloud.workflows.v1.Workflow.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid state.
      * 
@@ -102,8 +81,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -112,8 +89,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
      * Workflow data is unavailable. See the `state_error` field.
      * 
@@ -125,8 +100,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -135,8 +108,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -145,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
      * Workflow data is unavailable. See the `state_error` field.
      * 
@@ -155,6 +124,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNAVAILABLE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -179,49 +149,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - case 2: - return UNAVAILABLE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return UNAVAILABLE; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.workflows.v1.Workflow.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -239,8 +209,6 @@ private State(int value) { } /** - * - * *
    * Describes the level of platform logging to apply to calls and call
    * responses during workflow executions.
@@ -248,10 +216,9 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.workflows.v1.Workflow.CallLogLevel}
    */
-  public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CallLogLevel
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No call logging level specified.
      * 
@@ -260,8 +227,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ CALL_LOG_LEVEL_UNSPECIFIED(0), /** - * - * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -271,8 +236,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
      */
     LOG_ALL_CALLS(1),
     /**
-     *
-     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -281,8 +244,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ LOG_ERRORS_ONLY(2), /** - * - * *
      * Explicitly log nothing.
      * 
@@ -294,8 +255,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * No call logging level specified.
      * 
@@ -304,8 +263,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CALL_LOG_LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -315,8 +272,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int LOG_ALL_CALLS_VALUE = 1;
     /**
-     *
-     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -325,8 +280,6 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOG_ERRORS_ONLY_VALUE = 2; /** - * - * *
      * Explicitly log nothing.
      * 
@@ -335,6 +288,7 @@ public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LOG_NONE_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -359,51 +313,50 @@ public static CallLogLevel valueOf(int value) { */ public static CallLogLevel forNumber(int value) { switch (value) { - case 0: - return CALL_LOG_LEVEL_UNSPECIFIED; - case 1: - return LOG_ALL_CALLS; - case 2: - return LOG_ERRORS_ONLY; - case 3: - return LOG_NONE; - default: - return null; + case 0: return CALL_LOG_LEVEL_UNSPECIFIED; + case 1: return LOG_ALL_CALLS; + case 2: return LOG_ERRORS_ONLY; + case 3: return LOG_NONE; + 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< + CallLogLevel> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CallLogLevel findValueByNumber(int number) { + return CallLogLevel.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CallLogLevel findValueByNumber(int number) { - return CallLogLevel.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.workflows.v1.Workflow.getDescriptor().getEnumTypes().get(1); } private static final CallLogLevel[] VALUES = values(); - public static CallLogLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CallLogLevel 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; @@ -420,80 +373,65 @@ private CallLogLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.v1.Workflow.CallLogLevel) } - public interface StateErrorOrBuilder - extends + public interface StateErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.Workflow.StateError) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The details. */ java.lang.String getDetails(); /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The bytes for details. */ - com.google.protobuf.ByteString getDetailsBytes(); + com.google.protobuf.ByteString + getDetailsBytes(); /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @return The type. */ com.google.cloud.workflows.v1.Workflow.StateError.Type getType(); } /** - * - * *
    * Describes an error related to the current state of the workflow.
    * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow.StateError} */ - public static final class StateError extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StateError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.Workflow.StateError) StateErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateError.newBuilder() to construct. private StateError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StateError() { details_ = ""; type_ = 0; @@ -501,38 +439,34 @@ private StateError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StateError(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.StateError.class, - com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); + com.google.cloud.workflows.v1.Workflow.StateError.class, com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); } /** - * - * *
      * Describes the possibled types of a state error.
      * 
* * Protobuf enum {@code google.cloud.workflows.v1.Workflow.StateError.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
        * No type specified.
        * 
@@ -541,8 +475,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
        * Caused by an issue with KMS.
        * 
@@ -554,8 +486,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
        * No type specified.
        * 
@@ -564,8 +494,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
        * Caused by an issue with KMS.
        * 
@@ -574,6 +502,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KMS_ERROR_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -598,49 +527,48 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return KMS_ERROR; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return KMS_ERROR; + 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< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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.workflows.v1.Workflow.StateError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.workflows.v1.Workflow.StateError.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -658,18 +586,14 @@ private Type(int value) { } public static final int DETAILS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object details_ = ""; /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The details. */ @java.lang.Override @@ -678,29 +602,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** - * - * *
      * Provides specifics about the error.
      * 
* * string details = 1; - * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -711,42 +635,30 @@ public com.google.protobuf.ByteString getDetailsBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @return The type. */ - @java.lang.Override - public com.google.cloud.workflows.v1.Workflow.StateError.Type getType() { - com.google.cloud.workflows.v1.Workflow.StateError.Type result = - com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); - return result == null - ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError.Type getType() { + com.google.cloud.workflows.v1.Workflow.StateError.Type result = com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); + return result == null ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -758,12 +670,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(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, details_); } - if (type_ - != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } getUnknownFields().writeTo(output); @@ -778,9 +690,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, details_); } - if (type_ - != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -790,15 +702,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.workflows.v1.Workflow.StateError)) { return super.equals(obj); } - com.google.cloud.workflows.v1.Workflow.StateError other = - (com.google.cloud.workflows.v1.Workflow.StateError) obj; + com.google.cloud.workflows.v1.Workflow.StateError other = (com.google.cloud.workflows.v1.Workflow.StateError) obj; - if (!getDetails().equals(other.getDetails())) return false; + if (!getDetails() + .equals(other.getDetails())) return false; if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -821,93 +733,89 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.Workflow.StateError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.Workflow.StateError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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 @@ -917,41 +825,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Describes an error related to the current state of the workflow.
      * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow.StateError} */ - 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.workflows.v1.Workflow.StateError) com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.StateError.class, - com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); + com.google.cloud.workflows.v1.Workflow.StateError.class, com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); } // Construct using com.google.cloud.workflows.v1.Workflow.StateError.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -962,9 +868,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; } @java.lang.Override @@ -983,11 +889,8 @@ public com.google.cloud.workflows.v1.Workflow.StateError build() { @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError buildPartial() { - com.google.cloud.workflows.v1.Workflow.StateError result = - new com.google.cloud.workflows.v1.Workflow.StateError(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.v1.Workflow.StateError result = new com.google.cloud.workflows.v1.Workflow.StateError(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1006,41 +909,38 @@ private void buildPartial0(com.google.cloud.workflows.v1.Workflow.StateError res 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.workflows.v1.Workflow.StateError) { - return mergeFrom((com.google.cloud.workflows.v1.Workflow.StateError) other); + return mergeFrom((com.google.cloud.workflows.v1.Workflow.StateError)other); } else { super.mergeFrom(other); return this; @@ -1048,8 +948,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.v1.Workflow.StateError other) { - if (other == com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) - return this; + if (other == com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) return this; if (!other.getDetails().isEmpty()) { details_ = other.details_; bitField0_ |= 0x00000001; @@ -1084,25 +983,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - details_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1112,25 +1008,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object details_ = ""; /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1139,21 +1032,20 @@ public java.lang.String getDetails() { } } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @return The bytes for details. */ - public com.google.protobuf.ByteString getDetailsBytes() { + public com.google.protobuf.ByteString + getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); details_ = b; return b; } else { @@ -1161,35 +1053,28 @@ public com.google.protobuf.ByteString getDetailsBytes() { } } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetails( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } details_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @return This builder for chaining. */ public Builder clearDetails() { @@ -1199,21 +1084,17 @@ public Builder clearDetails() { return this; } /** - * - * *
        * Provides specifics about the error.
        * 
* * string details = 1; - * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDetailsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); details_ = value; bitField0_ |= 0x00000001; @@ -1223,29 +1104,22 @@ public Builder setDetailsBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1256,33 +1130,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @return The type. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError.Type getType() { - com.google.cloud.workflows.v1.Workflow.StateError.Type result = - com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); - return result == null - ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED - : result; + com.google.cloud.workflows.v1.Workflow.StateError.Type result = com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); + return result == null ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED : result; } /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @param value The type to set. * @return This builder for chaining. */ @@ -1296,14 +1161,11 @@ public Builder setType(com.google.cloud.workflows.v1.Workflow.StateError.Type va return this; } /** - * - * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; - * * @return This builder for chaining. */ public Builder clearType() { @@ -1312,7 +1174,6 @@ public Builder clearType() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1325,12 +1186,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.Workflow.StateError) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.Workflow.StateError) private static final com.google.cloud.workflows.v1.Workflow.StateError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.Workflow.StateError(); } @@ -1339,28 +1200,27 @@ public static com.google.cloud.workflows.v1.Workflow.StateError getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1375,21 +1235,18 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.Workflow.StateError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceCodeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object sourceCode_; - public enum SourceCodeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_CONTENTS(10), SOURCECODE_NOT_SET(0); private final int value; - private SourceCodeCase(int value) { this.value = value; } @@ -1405,38 +1262,32 @@ public static SourceCodeCase valueOf(int value) { public static SourceCodeCase forNumber(int value) { switch (value) { - case 10: - return SOURCE_CONTENTS; - case 0: - return SOURCECODE_NOT_SET; - default: - return null; + case 10: return SOURCE_CONTENTS; + case 0: return SOURCECODE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCodeCase getSourceCodeCase() { - return SourceCodeCase.forNumber(sourceCodeCase_); + public SourceCodeCase + getSourceCodeCase() { + return SourceCodeCase.forNumber( + sourceCodeCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1445,30 +1296,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; } } /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * 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 { @@ -1477,19 +1328,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -1498,30 +1345,30 @@ 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; } } /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @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 { @@ -1532,49 +1379,33 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.workflows.v1.Workflow.State getState() { - com.google.cloud.workflows.v1.Workflow.State result = - com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); + @java.lang.Override public com.google.cloud.workflows.v1.Workflow.State getState() { + com.google.cloud.workflows.v1.Workflow.State result = com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); return result == null ? com.google.cloud.workflows.v1.Workflow.State.UNRECOGNIZED : result; } public static final int REVISION_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -1590,7 +1421,6 @@ public com.google.cloud.workflows.v1.Workflow.State getState() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ @java.lang.Override @@ -1599,15 +1429,14 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -1623,15 +1452,16 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -1642,15 +1472,11 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1658,15 +1484,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1674,14 +1496,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1691,15 +1510,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1707,15 +1522,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1723,14 +1534,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1740,17 +1548,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp revisionCreateTime_; /** - * - * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revisionCreateTime field is set. */ @java.lang.Override @@ -1758,73 +1561,58 @@ public boolean hasRevisionCreateTime() { return revisionCreateTime_ != null; } /** - * - * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revisionCreateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevisionCreateTime() { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } /** - * - * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1836,21 +1624,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1866,8 +1653,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1879,19 +1664,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1903,11 +1686,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1915,12 +1698,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object serviceAccount_ = "";
   /**
-   *
-   *
    * 
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -1937,7 +1717,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ @java.lang.Override @@ -1946,15 +1725,14 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -1971,15 +1749,16 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1989,28 +1768,22 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int SOURCE_CONTENTS_FIELD_NUMBER = 10; /** - * - * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; - * * @return Whether the sourceContents field is set. */ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** - * - * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; - * * @return The sourceContents. */ public java.lang.String getSourceContents() { @@ -2021,7 +1794,8 @@ public java.lang.String getSourceContents() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -2030,24 +1804,23 @@ public java.lang.String getSourceContents() { } } /** - * - * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; - * * @return The bytes for sourceContents. */ - public com.google.protobuf.ByteString getSourceContentsBytes() { + public com.google.protobuf.ByteString + getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -2058,12 +1831,9 @@ public com.google.protobuf.ByteString getSourceContentsBytes() { } public static final int CRYPTO_KEY_NAME_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object cryptoKeyName_ = ""; /** - * - * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -2078,10 +1848,7 @@ public com.google.protobuf.ByteString getSourceContentsBytes() {
    * CMEK-encrypted.
    * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The cryptoKeyName. */ @java.lang.Override @@ -2090,15 +1857,14 @@ public java.lang.String getCryptoKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyName_ = s; return s; } } /** - * - * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -2113,18 +1879,17 @@ public java.lang.String getCryptoKeyName() {
    * CMEK-encrypted.
    * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + public com.google.protobuf.ByteString + getCryptoKeyNameBytes() { java.lang.Object ref = cryptoKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyName_ = b; return b; } else { @@ -2135,18 +1900,13 @@ public com.google.protobuf.ByteString getCryptoKeyNameBytes() { public static final int STATE_ERROR_FIELD_NUMBER = 12; private com.google.cloud.workflows.v1.Workflow.StateError stateError_; /** - * - * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateError field is set. */ @java.lang.Override @@ -2154,51 +1914,36 @@ public boolean hasStateError() { return stateError_ != null; } /** - * - * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateError. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError getStateError() { - return stateError_ == null - ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() - : stateError_; + return stateError_ == null ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; } /** - * - * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorOrBuilder() { - return stateError_ == null - ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() - : stateError_; + return stateError_ == null ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; } public static final int CALL_LOG_LEVEL_FIELD_NUMBER = 13; private int callLogLevel_ = 0; /** - * - * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -2206,19 +1951,13 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO
    * precedence.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override - public int getCallLogLevelValue() { + @java.lang.Override public int getCallLogLevelValue() { return callLogLevel_; } /** - * - * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -2226,51 +1965,41 @@ public int getCallLogLevelValue() {
    * precedence.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The callLogLevel. */ - @java.lang.Override - public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.v1.Workflow.CallLogLevel result = - com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); - return result == null - ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() { + com.google.cloud.workflows.v1.Workflow.CallLogLevel result = com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); + return result == null ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED : result; } public static final int USER_ENV_VARS_FIELD_NUMBER = 14; - private static final class UserEnvVarsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField userEnvVars_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userEnvVars_; private com.google.protobuf.MapField - internalGetUserEnvVars() { + internalGetUserEnvVars() { if (userEnvVars_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserEnvVarsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + UserEnvVarsDefaultEntryHolder.defaultEntry); } return userEnvVars_; } - public int getUserEnvVarsCount() { return internalGetUserEnvVars().getMap().size(); } /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2278,25 +2007,23 @@ public int getUserEnvVarsCount() {
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsUserEnvVars(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsUserEnvVars( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetUserEnvVars().getMap().containsKey(key); } - /** Use {@link #getUserEnvVarsMap()} instead. */ + /** + * Use {@link #getUserEnvVarsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserEnvVars() { return getUserEnvVarsMap(); } /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2304,16 +2031,13 @@ public java.util.Map getUserEnvVars() {
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getUserEnvVarsMap() { return internalGetUserEnvVars().getMap(); } /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2321,23 +2045,20 @@ public java.util.Map getUserEnvVarsMap() {
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getUserEnvVarsOrDefault( + public /* nullable */ +java.lang.String getUserEnvVarsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserEnvVars().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserEnvVars().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2345,15 +2066,14 @@ public java.util.Map getUserEnvVarsMap() {
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getUserEnvVarsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserEnvVars().getMap(); + public java.lang.String getUserEnvVarsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserEnvVars().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2361,7 +2081,6 @@ public java.lang.String getUserEnvVarsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2373,7 +2092,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_); } @@ -2395,8 +2115,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (revisionCreateTime_ != null) { output.writeMessage(7, getRevisionCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); } @@ -2409,13 +2133,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stateError_ != null) { output.writeMessage(12, getStateError()); } - if (callLogLevel_ - != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED - .getNumber()) { + if (callLogLevel_ != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(13, callLogLevel_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetUserEnvVars(), UserEnvVarsDefaultEntryHolder.defaultEntry, 14); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetUserEnvVars(), + UserEnvVarsDefaultEntryHolder.defaultEntry, + 14); getUnknownFields().writeTo(output); } @@ -2432,29 +2158,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.workflows.v1.Workflow.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } if (revisionCreateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRevisionCreateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getRevisionCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); @@ -2466,22 +2196,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cryptoKeyName_); } if (stateError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStateError()); - } - if (callLogLevel_ - != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, callLogLevel_); - } - for (java.util.Map.Entry entry : - internalGetUserEnvVars().getMap().entrySet()) { - com.google.protobuf.MapEntry userEnvVars__ = - UserEnvVarsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, userEnvVars__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getStateError()); + } + if (callLogLevel_ != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, callLogLevel_); + } + for (java.util.Map.Entry entry + : internalGetUserEnvVars().getMap().entrySet()) { + com.google.protobuf.MapEntry + userEnvVars__ = UserEnvVarsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, userEnvVars__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2491,42 +2221,54 @@ 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.workflows.v1.Workflow)) { return super.equals(obj); } com.google.cloud.workflows.v1.Workflow other = (com.google.cloud.workflows.v1.Workflow) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getRevisionId() + .equals(other.getRevisionId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; if (hasRevisionCreateTime()) { - if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getCryptoKeyName().equals(other.getCryptoKeyName())) return false; + if (!getRevisionCreateTime() + .equals(other.getRevisionCreateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getCryptoKeyName() + .equals(other.getCryptoKeyName())) return false; if (hasStateError() != other.hasStateError()) return false; if (hasStateError()) { - if (!getStateError().equals(other.getStateError())) return false; + if (!getStateError() + .equals(other.getStateError())) return false; } if (callLogLevel_ != other.callLogLevel_) return false; - if (!internalGetUserEnvVars().equals(other.internalGetUserEnvVars())) return false; + if (!internalGetUserEnvVars().equals( + other.internalGetUserEnvVars())) return false; if (!getSourceCodeCase().equals(other.getSourceCodeCase())) return false; switch (sourceCodeCase_) { case 10: - if (!getSourceContents().equals(other.getSourceContents())) return false; + if (!getSourceContents() + .equals(other.getSourceContents())) return false; break; case 0: default: @@ -2593,160 +2335,158 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1.Workflow parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1.Workflow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow 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; } /** - * - * *
    * Workflow program to be executed by Workflows.
    * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow} */ - 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.workflows.v1.Workflow) com.google.cloud.workflows.v1.WorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); case 14: return internalGetUserEnvVars(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); case 14: return internalGetMutableUserEnvVars(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.class, - com.google.cloud.workflows.v1.Workflow.Builder.class); + com.google.cloud.workflows.v1.Workflow.class, com.google.cloud.workflows.v1.Workflow.Builder.class); } // Construct using com.google.cloud.workflows.v1.Workflow.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2786,9 +2526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.v1.WorkflowsProto - .internal_static_google_cloud_workflows_v1_Workflow_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_descriptor; } @java.lang.Override @@ -2807,11 +2547,8 @@ public com.google.cloud.workflows.v1.Workflow build() { @java.lang.Override public com.google.cloud.workflows.v1.Workflow buildPartial() { - com.google.cloud.workflows.v1.Workflow result = - new com.google.cloud.workflows.v1.Workflow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.v1.Workflow result = new com.google.cloud.workflows.v1.Workflow(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -2832,16 +2569,19 @@ private void buildPartial0(com.google.cloud.workflows.v1.Workflow result) { result.revisionId_ = revisionId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.revisionCreateTime_ = - revisionCreateTimeBuilder_ == null - ? revisionCreateTime_ - : revisionCreateTimeBuilder_.build(); + result.revisionCreateTime_ = revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -2854,7 +2594,9 @@ private void buildPartial0(com.google.cloud.workflows.v1.Workflow result) { result.cryptoKeyName_ = cryptoKeyName_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.stateError_ = stateErrorBuilder_ == null ? stateError_ : stateErrorBuilder_.build(); + result.stateError_ = stateErrorBuilder_ == null + ? stateError_ + : stateErrorBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.callLogLevel_ = callLogLevel_; @@ -2874,39 +2616,38 @@ private void buildPartialOneofs(com.google.cloud.workflows.v1.Workflow result) { 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.workflows.v1.Workflow) { - return mergeFrom((com.google.cloud.workflows.v1.Workflow) other); + return mergeFrom((com.google.cloud.workflows.v1.Workflow)other); } else { super.mergeFrom(other); return this; @@ -2942,7 +2683,8 @@ public Builder mergeFrom(com.google.cloud.workflows.v1.Workflow other) { if (other.hasRevisionCreateTime()) { mergeRevisionCreateTime(other.getRevisionCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; @@ -2960,20 +2702,19 @@ public Builder mergeFrom(com.google.cloud.workflows.v1.Workflow other) { if (other.callLogLevel_ != 0) { setCallLogLevelValue(other.getCallLogLevelValue()); } - internalGetMutableUserEnvVars().mergeFrom(other.internalGetUserEnvVars()); + internalGetMutableUserEnvVars().mergeFrom( + other.internalGetUserEnvVars()); bitField0_ |= 0x00002000; switch (other.getSourceCodeCase()) { - case SOURCE_CONTENTS: - { - sourceCodeCase_ = 10; - sourceCode_ = other.sourceCode_; - onChanged(); - break; - } - case SOURCECODE_NOT_SET: - { - break; - } + case SOURCE_CONTENTS: { + sourceCodeCase_ = 10; + sourceCode_ = other.sourceCode_; + onChanged(); + break; + } + case SOURCECODE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3001,111 +2742,99 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - revisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage( - getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCodeCase_ = 10; - sourceCode_ = s; - break; - } // case 82 - case 90: - { - cryptoKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: - { - input.readMessage(getStateErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 104: - { - callLogLevel_ = input.readEnum(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 114: - { - com.google.protobuf.MapEntry userEnvVars__ = - input.readMessage( - UserEnvVarsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableUserEnvVars() - .getMutableMap() - .put(userEnvVars__.getKey(), userEnvVars__.getValue()); - bitField0_ |= 0x00002000; - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCodeCase_ = 10; + sourceCode_ = s; + break; + } // case 82 + case 90: { + cryptoKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + input.readMessage( + getStateErrorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: { + callLogLevel_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: { + com.google.protobuf.MapEntry + userEnvVars__ = input.readMessage( + UserEnvVarsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableUserEnvVars().getMutableMap().put( + userEnvVars__.getKey(), userEnvVars__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3115,12 +2844,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCodeCase_ = 0; private java.lang.Object sourceCode_; - - public SourceCodeCase getSourceCodeCase() { - return SourceCodeCase.forNumber(sourceCodeCase_); + public SourceCodeCase + getSourceCodeCase() { + return SourceCodeCase.forNumber( + sourceCodeCase_); } public Builder clearSourceCode() { @@ -3134,21 +2863,19 @@ public Builder clearSourceCode() { private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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; @@ -3157,22 +2884,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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 { @@ -3180,37 +2906,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3220,22 +2939,18 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3245,21 +2960,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @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; @@ -3268,22 +2981,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @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 { @@ -3291,37 +3003,30 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -3331,22 +3036,18 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -3356,33 +3057,22 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3393,35 +3083,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.State getState() { - com.google.cloud.workflows.v1.Workflow.State result = - com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); + com.google.cloud.workflows.v1.Workflow.State result = com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); return result == null ? com.google.cloud.workflows.v1.Workflow.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3435,16 +3114,11 @@ public Builder setState(com.google.cloud.workflows.v1.Workflow.State value) { return this; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3456,8 +3130,6 @@ public Builder clearState() { private java.lang.Object revisionId_ = ""; /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3473,13 +3145,13 @@ public Builder clearState() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -3488,8 +3160,6 @@ public java.lang.String getRevisionId() { } } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3505,14 +3175,15 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -3520,8 +3191,6 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { } } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3537,22 +3206,18 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRevisionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } revisionId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3568,7 +3233,6 @@ public Builder setRevisionId(java.lang.String value) {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -3578,8 +3242,6 @@ public Builder clearRevisionId() { return this; } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3595,14 +3257,12 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRevisionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000008; @@ -3612,58 +3272,39 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3679,17 +3320,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3700,21 +3338,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3727,15 +3361,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -3748,15 +3378,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -3764,48 +3390,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3813,58 +3427,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3880,17 +3475,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3901,21 +3493,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3928,15 +3516,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3949,15 +3533,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -3965,48 +3545,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4014,61 +3582,42 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp revisionCreateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - revisionCreateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revisionCreateTimeBuilder_; /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revisionCreateTime field is set. */ public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revisionCreateTime. */ public com.google.protobuf.Timestamp getRevisionCreateTime() { if (revisionCreateTimeBuilder_ == null) { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } else { return revisionCreateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { @@ -4084,18 +3633,15 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevisionCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (revisionCreateTimeBuilder_ == null) { revisionCreateTime_ = builderForValue.build(); } else { @@ -4106,22 +3652,18 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && revisionCreateTime_ != null - && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + revisionCreateTime_ != null && + revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getRevisionCreateTimeBuilder().mergeFrom(value); } else { revisionCreateTime_ = value; @@ -4134,16 +3676,12 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRevisionCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4156,16 +3694,12 @@ public Builder clearRevisionCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -4173,68 +3707,58 @@ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { return getRevisionCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { if (revisionCreateTimeBuilder_ != null) { return revisionCreateTimeBuilder_.getMessageOrBuilder(); } else { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } } /** - * - * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getRevisionCreateTimeFieldBuilder() { if (revisionCreateTimeBuilder_ == null) { - revisionCreateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), + getParentForChildren(), + isClean()); revisionCreateTime_ = null; } return revisionCreateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4243,13 +3767,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -4261,21 +3782,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -4291,8 +3811,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -4304,19 +3822,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -4328,25 +3844,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -4357,22 +3871,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -4383,20 +3898,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -4407,16 +3919,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object serviceAccount_ = "";
     /**
-     *
-     *
      * 
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4433,13 +3945,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string service_account = 9; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -4448,8 +3960,6 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4466,14 +3976,15 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -4481,8 +3992,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4499,22 +4008,18 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      * 
* * string service_account = 9; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccount_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4531,7 +4036,6 @@ public Builder setServiceAccount(java.lang.String value) {
      * 
* * string service_account = 9; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -4541,8 +4045,6 @@ public Builder clearServiceAccount() { return this; } /** - * - * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4559,14 +4061,12 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 9; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000100; @@ -4575,14 +4075,11 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; - * * @return Whether the sourceContents field is set. */ @java.lang.Override @@ -4590,14 +4087,11 @@ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** - * - * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; - * * @return The sourceContents. */ @java.lang.Override @@ -4607,7 +4101,8 @@ public java.lang.String getSourceContents() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -4618,25 +4113,24 @@ public java.lang.String getSourceContents() { } } /** - * - * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; - * * @return The bytes for sourceContents. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceContentsBytes() { + public com.google.protobuf.ByteString + getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -4646,35 +4140,28 @@ public com.google.protobuf.ByteString getSourceContentsBytes() { } } /** - * - * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; - * * @param value The sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceContents( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCodeCase_ = 10; sourceCode_ = value; onChanged(); return this; } /** - * - * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; - * * @return This builder for chaining. */ public Builder clearSourceContents() { @@ -4686,21 +4173,17 @@ public Builder clearSourceContents() { return this; } /** - * - * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; - * * @param value The bytes for sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceContentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCodeCase_ = 10; sourceCode_ = value; @@ -4710,8 +4193,6 @@ public Builder setSourceContentsBytes(com.google.protobuf.ByteString value) { private java.lang.Object cryptoKeyName_ = ""; /** - * - * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4726,16 +4207,14 @@ public Builder setSourceContentsBytes(com.google.protobuf.ByteString value) {
      * CMEK-encrypted.
      * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The cryptoKeyName. */ public java.lang.String getCryptoKeyName() { java.lang.Object ref = cryptoKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyName_ = s; return s; @@ -4744,8 +4223,6 @@ public java.lang.String getCryptoKeyName() { } } /** - * - * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4760,17 +4237,16 @@ public java.lang.String getCryptoKeyName() {
      * CMEK-encrypted.
      * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyName. */ - public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + public com.google.protobuf.ByteString + getCryptoKeyNameBytes() { java.lang.Object ref = cryptoKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); cryptoKeyName_ = b; return b; } else { @@ -4778,8 +4254,6 @@ public com.google.protobuf.ByteString getCryptoKeyNameBytes() { } } /** - * - * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4794,25 +4268,19 @@ public com.google.protobuf.ByteString getCryptoKeyNameBytes() {
      * CMEK-encrypted.
      * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The cryptoKeyName to set. * @return This builder for chaining. */ - public Builder setCryptoKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCryptoKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } cryptoKeyName_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4827,10 +4295,7 @@ public Builder setCryptoKeyName(java.lang.String value) {
      * CMEK-encrypted.
      * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearCryptoKeyName() { @@ -4840,8 +4305,6 @@ public Builder clearCryptoKeyName() { return this; } /** - * - * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4856,17 +4319,13 @@ public Builder clearCryptoKeyName() {
      * CMEK-encrypted.
      * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @param value The bytes for cryptoKeyName to set. * @return This builder for chaining. */ - public Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCryptoKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cryptoKeyName_ = value; bitField0_ |= 0x00000400; @@ -4876,64 +4335,45 @@ public Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.v1.Workflow.StateError stateError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow.StateError, - com.google.cloud.workflows.v1.Workflow.StateError.Builder, - com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> - stateErrorBuilder_; + com.google.cloud.workflows.v1.Workflow.StateError, com.google.cloud.workflows.v1.Workflow.StateError.Builder, com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> stateErrorBuilder_; /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateError field is set. */ public boolean hasStateError() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateError. */ public com.google.cloud.workflows.v1.Workflow.StateError getStateError() { if (stateErrorBuilder_ == null) { - return stateError_ == null - ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() - : stateError_; + return stateError_ == null ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; } else { return stateErrorBuilder_.getMessage(); } } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateError(com.google.cloud.workflows.v1.Workflow.StateError value) { if (stateErrorBuilder_ == null) { @@ -4949,17 +4389,13 @@ public Builder setStateError(com.google.cloud.workflows.v1.Workflow.StateError v return this; } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStateError( com.google.cloud.workflows.v1.Workflow.StateError.Builder builderForValue) { @@ -4973,24 +4409,19 @@ public Builder setStateError( return this; } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStateError(com.google.cloud.workflows.v1.Workflow.StateError value) { if (stateErrorBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && stateError_ != null - && stateError_ - != com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + stateError_ != null && + stateError_ != com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) { getStateErrorBuilder().mergeFrom(value); } else { stateError_ = value; @@ -5003,17 +4434,13 @@ public Builder mergeStateError(com.google.cloud.workflows.v1.Workflow.StateError return this; } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStateError() { bitField0_ = (bitField0_ & ~0x00000800); @@ -5026,17 +4453,13 @@ public Builder clearStateError() { return this; } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.workflows.v1.Workflow.StateError.Builder getStateErrorBuilder() { bitField0_ |= 0x00000800; @@ -5044,52 +4467,40 @@ public com.google.cloud.workflows.v1.Workflow.StateError.Builder getStateErrorBu return getStateErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorOrBuilder() { if (stateErrorBuilder_ != null) { return stateErrorBuilder_.getMessageOrBuilder(); } else { - return stateError_ == null - ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() - : stateError_; + return stateError_ == null ? + com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; } } /** - * - * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow.StateError, - com.google.cloud.workflows.v1.Workflow.StateError.Builder, - com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> + com.google.cloud.workflows.v1.Workflow.StateError, com.google.cloud.workflows.v1.Workflow.StateError.Builder, com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> getStateErrorFieldBuilder() { if (stateErrorBuilder_ == null) { - stateErrorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow.StateError, - com.google.cloud.workflows.v1.Workflow.StateError.Builder, - com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder>( - getStateError(), getParentForChildren(), isClean()); + stateErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow.StateError, com.google.cloud.workflows.v1.Workflow.StateError.Builder, com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder>( + getStateError(), + getParentForChildren(), + isClean()); stateError_ = null; } return stateErrorBuilder_; @@ -5097,8 +4508,6 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO private int callLogLevel_ = 0; /** - * - * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -5106,19 +4515,13 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO
      * precedence.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override - public int getCallLogLevelValue() { + @java.lang.Override public int getCallLogLevelValue() { return callLogLevel_; } /** - * - * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -5126,10 +4529,7 @@ public int getCallLogLevelValue() {
      * precedence.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for callLogLevel to set. * @return This builder for chaining. */ @@ -5140,8 +4540,6 @@ public Builder setCallLogLevelValue(int value) { return this; } /** - * - * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -5149,23 +4547,15 @@ public Builder setCallLogLevelValue(int value) {
      * precedence.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The callLogLevel. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.v1.Workflow.CallLogLevel result = - com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); - return result == null - ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED - : result; + com.google.cloud.workflows.v1.Workflow.CallLogLevel result = com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); + return result == null ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED : result; } /** - * - * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -5173,10 +4563,7 @@ public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() {
      * precedence.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param value The callLogLevel to set. * @return This builder for chaining. */ @@ -5190,8 +4577,6 @@ public Builder setCallLogLevel(com.google.cloud.workflows.v1.Workflow.CallLogLev return this; } /** - * - * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -5199,10 +4584,7 @@ public Builder setCallLogLevel(com.google.cloud.workflows.v1.Workflow.CallLogLev
      * precedence.
      * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearCallLogLevel() { @@ -5212,8 +4594,8 @@ public Builder clearCallLogLevel() { return this; } - private com.google.protobuf.MapField userEnvVars_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> userEnvVars_; private com.google.protobuf.MapField internalGetUserEnvVars() { if (userEnvVars_ == null) { @@ -5222,12 +4604,11 @@ public Builder clearCallLogLevel() { } return userEnvVars_; } - private com.google.protobuf.MapField internalGetMutableUserEnvVars() { if (userEnvVars_ == null) { - userEnvVars_ = - com.google.protobuf.MapField.newMapField(UserEnvVarsDefaultEntryHolder.defaultEntry); + userEnvVars_ = com.google.protobuf.MapField.newMapField( + UserEnvVarsDefaultEntryHolder.defaultEntry); } if (!userEnvVars_.isMutable()) { userEnvVars_ = userEnvVars_.copy(); @@ -5236,13 +4617,10 @@ public Builder clearCallLogLevel() { onChanged(); return userEnvVars_; } - public int getUserEnvVarsCount() { return internalGetUserEnvVars().getMap().size(); } /** - * - * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -5250,25 +4628,23 @@ public int getUserEnvVarsCount() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsUserEnvVars(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsUserEnvVars( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetUserEnvVars().getMap().containsKey(key); } - /** Use {@link #getUserEnvVarsMap()} instead. */ + /** + * Use {@link #getUserEnvVarsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserEnvVars() { return getUserEnvVarsMap(); } /** - * - * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -5276,16 +4652,13 @@ public java.util.Map getUserEnvVars() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getUserEnvVarsMap() { return internalGetUserEnvVars().getMap(); } /** - * - * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -5293,23 +4666,20 @@ public java.util.Map getUserEnvVarsMap() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getUserEnvVarsOrDefault( + public /* nullable */ +java.lang.String getUserEnvVarsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserEnvVars().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserEnvVars().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -5317,29 +4687,26 @@ public java.util.Map getUserEnvVarsMap() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getUserEnvVarsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetUserEnvVars().getMap(); + public java.lang.String getUserEnvVarsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetUserEnvVars().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearUserEnvVars() { bitField0_ = (bitField0_ & ~0x00002000); - internalGetMutableUserEnvVars().getMutableMap().clear(); + internalGetMutableUserEnvVars().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -5347,25 +4714,25 @@ public Builder clearUserEnvVars() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeUserEnvVars(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableUserEnvVars().getMutableMap().remove(key); + public Builder removeUserEnvVars( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableUserEnvVars().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableUserEnvVars() { + public java.util.Map + getMutableUserEnvVars() { bitField0_ |= 0x00002000; return internalGetMutableUserEnvVars().getMutableMap(); } /** - * - * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -5373,23 +4740,19 @@ public java.util.Map getMutableUserEnvVars()
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putUserEnvVars(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableUserEnvVars().getMutableMap().put(key, value); + public Builder putUserEnvVars( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableUserEnvVars().getMutableMap() + .put(key, value); bitField0_ |= 0x00002000; return this; } /** - * - * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -5397,17 +4760,18 @@ public Builder putUserEnvVars(java.lang.String key, java.lang.String value) {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllUserEnvVars(java.util.Map values) { - internalGetMutableUserEnvVars().getMutableMap().putAll(values); + public Builder putAllUserEnvVars( + java.util.Map values) { + internalGetMutableUserEnvVars().getMutableMap() + .putAll(values); bitField0_ |= 0x00002000; 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); } @@ -5417,12 +4781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.Workflow) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.Workflow) private static final com.google.cloud.workflows.v1.Workflow DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.Workflow(); } @@ -5431,27 +4795,27 @@ public static com.google.cloud.workflows.v1.Workflow getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5466,4 +4830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.Workflow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java similarity index 100% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java similarity index 76% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java index 77a98e462f8a..463e69d4636c 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java @@ -1,114 +1,76 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface WorkflowOrBuilder - extends +public interface WorkflowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.Workflow) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.workflows.v1.Workflow.State getState(); /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -124,13 +86,10 @@ public interface WorkflowOrBuilder
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ java.lang.String getRevisionId(); /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -146,134 +105,96 @@ public interface WorkflowOrBuilder
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString getRevisionIdBytes(); + com.google.protobuf.ByteString + getRevisionIdBytes(); /** - * - * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revisionCreateTime field is set. */ boolean hasRevisionCreateTime(); /** - * - * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revisionCreateTime. */ com.google.protobuf.Timestamp getRevisionCreateTime(); /** - * - * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); /** - * - * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -286,8 +207,6 @@ public interface WorkflowOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -298,13 +217,15 @@ public interface WorkflowOrBuilder
    *
    * map<string, string> labels = 8;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -315,10 +236,9 @@ public interface WorkflowOrBuilder
    *
    * map<string, string> labels = 8;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -330,13 +250,11 @@ public interface WorkflowOrBuilder
    * map<string, string> labels = 8;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -347,11 +265,10 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -368,13 +285,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -391,51 +305,41 @@ java.lang.String getLabelsOrDefault(
    * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; - * * @return Whether the sourceContents field is set. */ boolean hasSourceContents(); /** - * - * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; - * * @return The sourceContents. */ java.lang.String getSourceContents(); /** - * - * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; - * * @return The bytes for sourceContents. */ - com.google.protobuf.ByteString getSourceContentsBytes(); + com.google.protobuf.ByteString + getSourceContentsBytes(); /** - * - * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -450,16 +354,11 @@ java.lang.String getLabelsOrDefault(
    * CMEK-encrypted.
    * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The cryptoKeyName. */ java.lang.String getCryptoKeyName(); /** - * - * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -474,64 +373,46 @@ java.lang.String getLabelsOrDefault(
    * CMEK-encrypted.
    * 
* - * - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * - * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return The bytes for cryptoKeyName. */ - com.google.protobuf.ByteString getCryptoKeyNameBytes(); + com.google.protobuf.ByteString + getCryptoKeyNameBytes(); /** - * - * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the stateError field is set. */ boolean hasStateError(); /** - * - * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The stateError. */ com.google.cloud.workflows.v1.Workflow.StateError getStateError(); /** - * - * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorOrBuilder(); /** - * - * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -539,16 +420,11 @@ java.lang.String getLabelsOrDefault(
    * precedence.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for callLogLevel. */ int getCallLogLevelValue(); /** - * - * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -556,17 +432,12 @@ java.lang.String getLabelsOrDefault(
    * precedence.
    * 
* - * - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The callLogLevel. */ com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel(); /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -574,13 +445,10 @@ java.lang.String getLabelsOrDefault(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ int getUserEnvVarsCount(); /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -588,16 +456,17 @@ java.lang.String getLabelsOrDefault(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsUserEnvVars( + java.lang.String key); + /** + * Use {@link #getUserEnvVarsMap()} instead. */ - boolean containsUserEnvVars(java.lang.String key); - /** Use {@link #getUserEnvVarsMap()} instead. */ @java.lang.Deprecated - java.util.Map getUserEnvVars(); + java.util.Map + getUserEnvVars(); /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -605,13 +474,11 @@ java.lang.String getLabelsOrDefault(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getUserEnvVarsMap(); + java.util.Map + getUserEnvVarsMap(); /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -619,17 +486,14 @@ java.lang.String getLabelsOrDefault(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getUserEnvVarsOrDefault( +java.lang.String getUserEnvVarsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -637,10 +501,10 @@ java.lang.String getUserEnvVarsOrDefault(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getUserEnvVarsOrThrow(java.lang.String key); + java.lang.String getUserEnvVarsOrThrow( + java.lang.String key); com.google.cloud.workflows.v1.Workflow.SourceCodeCase getSourceCodeCase(); } diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java new file mode 100644 index 000000000000..05a183a3c48e --- /dev/null +++ b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java @@ -0,0 +1,281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1/workflows.proto + +package com.google.cloud.workflows.v1; + +public final class WorkflowsProto { + private WorkflowsProto() {} + 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_workflows_v1_Workflow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_OperationMetadata_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/workflows/v1/workflows.pr" + + "oto\022\031google.cloud.workflows.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032#google/longru" + + "nning/operations.proto\032\033google/protobuf/" + + "empty.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\"\351" + + "\t\n\010Workflow\022\014\n\004name\030\001 \001(\t\022\023\n\013description" + + "\030\002 \001(\t\022>\n\005state\030\003 \001(\0162).google.cloud.wor" + + "kflows.v1.Workflow.StateB\004\342A\001\003\022\031\n\013revisi" + + "on_id\030\004 \001(\tB\004\342A\001\003\0225\n\013create_time\030\005 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\0225\n\013upda" + + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\022>\n\024revision_create_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\004\342A\001\003\022?\n\006label" + + "s\030\010 \003(\0132/.google.cloud.workflows.v1.Work" + + "flow.LabelsEntry\022\027\n\017service_account\030\t \001(" + + "\t\022\031\n\017source_contents\030\n \001(\tH\000\022C\n\017crypto_k" + + "ey_name\030\013 \001(\tB*\342A\001\001\372A#\n!cloudkms.googlea" + + "pis.com/CryptoKey\022I\n\013state_error\030\014 \001(\0132." + + ".google.cloud.workflows.v1.Workflow.Stat" + + "eErrorB\004\342A\001\003\022N\n\016call_log_level\030\r \001(\01620.g" + + "oogle.cloud.workflows.v1.Workflow.CallLo" + + "gLevelB\004\342A\001\001\022Q\n\ruser_env_vars\030\016 \003(\01324.go" + + "ogle.cloud.workflows.v1.Workflow.UserEnv" + + "VarsEntryB\004\342A\001\001\032\215\001\n\nStateError\022\017\n\007detail" + + "s\030\001 \001(\t\022A\n\004type\030\002 \001(\01623.google.cloud.wor" + + "kflows.v1.Workflow.StateError.Type\"+\n\004Ty" + + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tKMS_ERROR\020\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\0322\n\020UserEnvVarsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\";\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\017\n\013UNAVAILABLE\020\002\"" + + "d\n\014CallLogLevel\022\036\n\032CALL_LOG_LEVEL_UNSPEC" + + "IFIED\020\000\022\021\n\rLOG_ALL_CALLS\020\001\022\023\n\017LOG_ERRORS" + + "_ONLY\020\002\022\014\n\010LOG_NONE\020\003:d\352Aa\n!workflows.go" + + "ogleapis.com/Workflow\022\332A\006parent\202\323\344\223\002/\022" + + "-/v1/{parent=projects/*/locations/*}/wor" + + "kflows\022\237\001\n\013GetWorkflow\022-.google.cloud.wo" + + "rkflows.v1.GetWorkflowRequest\032#.google.c" + + "loud.workflows.v1.Workflow\"<\332A\004name\202\323\344\223\002" + + "/\022-/v1/{name=projects/*/locations/*/work" + + "flows/*}\022\340\001\n\016CreateWorkflow\0220.google.clo" + + "ud.workflows.v1.CreateWorkflowRequest\032\035." + + "google.longrunning.Operation\"}\312A\035\n\010Workf" + + "low\022\021OperationMetadata\332A\033parent,workflow" + + ",workflow_id\202\323\344\223\0029\"-/v1/{parent=projects" + + "/*/locations/*}/workflows:\010workflow\022\314\001\n\016" + + "DeleteWorkflow\0220.google.cloud.workflows." + + "v1.DeleteWorkflowRequest\032\035.google.longru" + + "nning.Operation\"i\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1" + + "/{name=projects/*/locations/*/workflows/" + + "*}\022\342\001\n\016UpdateWorkflow\0220.google.cloud.wor" + + "kflows.v1.UpdateWorkflowRequest\032\035.google" + + ".longrunning.Operation\"\177\312A\035\n\010Workflow\022\021O" + + "perationMetadata\332A\024workflow,update_mask\202" + + "\323\344\223\002B26/v1/{workflow.name=projects/*/loc" + + "ations/*/workflows/*}:\010workflow\032L\312A\030work" + + "flows.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\347\001\n\035com.go" + + "ogle.cloud.workflows.v1B\016WorkflowsProtoP" + + "\001Z;cloud.google.com/go/workflows/apiv1/w" + + "orkflowspb;workflowspb\352Av\n!cloudkms.goog" + + "leapis.com/CryptoKey\022Qprojects/{project}" + + "/locations/{location}/keyRings/{keyRing}" + + "/cryptoKeys/{cryptoKey}b\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_workflows_v1_Workflow_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_descriptor, + new java.lang.String[] { "Name", "Description", "State", "RevisionId", "CreateTime", "UpdateTime", "RevisionCreateTime", "Labels", "ServiceAccount", "SourceContents", "CryptoKeyName", "StateError", "CallLogLevel", "UserEnvVars", "SourceCode", }); + internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor = + internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor, + new java.lang.String[] { "Details", "Type", }); + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor = + internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor = + internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor, + new java.lang.String[] { "Workflows", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor, + new java.lang.String[] { "Name", "RevisionId", }); + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor, + new java.lang.String[] { "Parent", "Workflow", "WorkflowId", }); + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor, + new java.lang.String[] { "Workflow", "UpdateMask", }); + internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "ApiVersion", }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto similarity index 100% rename from java-workflows/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto rename to owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetEndpoint.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflowLRO.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflowLRO.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflowLRO.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflowLRO.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowString.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowString.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowString.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowString.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/AsyncGetLocation.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/AsyncGetLocation.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/SyncGetLocation.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/SyncGetLocation.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/SyncGetLocation.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/AsyncGetWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/AsyncGetWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/AsyncGetWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/AsyncGetWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowString.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowString.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowString.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowString.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowWorkflowname.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowWorkflowname.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowWorkflowname.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowWorkflowname.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocations.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocations.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocations.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocationsPaged.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/SyncListLocations.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/SyncListLocations.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/SyncListLocations.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/SyncListLocations.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflows.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflows.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflows.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflows.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflowsPaged.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflowsPaged.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflowsPaged.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflowsPaged.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflows.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflows.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflows.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflows.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsLocationname.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsLocationname.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsLocationname.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsLocationname.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsString.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsString.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsString.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsString.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflow.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java diff --git a/java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflowssettings/getworkflow/SyncGetWorkflow.java b/owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflowssettings/getworkflow/SyncGetWorkflow.java similarity index 100% rename from java-workflows/samples/snippets/generated/com/google/cloud/workflows/v1/workflowssettings/getworkflow/SyncGetWorkflow.java rename to owl-bot-staging/java-workflows/v1/samples/snippets/generated/com/google/cloud/workflows/v1/workflowssettings/getworkflow/SyncGetWorkflow.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java similarity index 89% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java index ad022e24ffe4..e0aabdd3b400 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java +++ b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java @@ -62,19 +62,111 @@ *

Note: close() needs to be called on the WorkflowsClient object to clean up resources such as * threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
ListWorkflows

Lists Workflows in a given project and location. The default order is not specified.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkflows(ListWorkflowsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkflows(LocationName parent) + *
  • listWorkflows(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkflowsPagedCallable() + *
  • listWorkflowsCallable() + *
+ *
GetWorkflow

Gets details of a single Workflow.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkflow(GetWorkflowRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkflow(WorkflowName name) + *
  • getWorkflow(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkflowCallable() + *
+ *
CreateWorkflow

Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkflowAsync(CreateWorkflowRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkflowAsync(LocationName parent, Workflow workflow, String workflowId) + *
  • createWorkflowAsync(String parent, Workflow workflow, String workflowId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkflowOperationCallable() + *
  • createWorkflowCallable() + *
+ *
DeleteWorkflow

Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkflowAsync(DeleteWorkflowRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkflowAsync(WorkflowName name) + *
  • deleteWorkflowAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkflowOperationCallable() + *
  • deleteWorkflowCallable() + *
+ *
UpdateWorkflow

Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a successful update operation. In that case, such revision will be used in new workflow executions.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkflowAsync(UpdateWorkflowRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkflowAsync(Workflow workflow, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkflowOperationCallable() + *
  • updateWorkflowCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java index 06be6fc24c8f..16d61dd50068 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java +++ b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.workflows.v1beta.stub.WorkflowsStubSettings; diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java index f37ab94028c7..d16964ea11de 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java +++ b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java @@ -41,6 +41,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/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java index d9f2ef1b8254..9f78c74eae1c 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java +++ b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java similarity index 99% rename from java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java index 271834605aad..0ec034ed5c8a 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java +++ b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java @@ -236,6 +236,12 @@ public WorkflowsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "workflows"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json similarity index 100% rename from java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java diff --git a/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java b/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java similarity index 100% rename from java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java rename to owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java diff --git a/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java b/owl-bot-staging/java-workflows/v1beta/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java similarity index 50% rename from java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java rename to owl-bot-staging/java-workflows/v1beta/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java index 83a37fdc0d53..a6b50cb34b1d 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java +++ b/owl-bot-staging/java-workflows/v1beta/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.workflows.v1beta; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Workflows is used to deploy and execute workflow programs.
  * Workflows makes sure the program executes reliably, despite hardware and
@@ -37,269 +20,206 @@ private WorkflowsGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.v1beta.Workflows";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
-          com.google.cloud.workflows.v1beta.ListWorkflowsResponse>
-      getListWorkflowsMethod;
+  private static volatile io.grpc.MethodDescriptor getListWorkflowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListWorkflows",
       requestType = com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class,
       responseType = com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
-          com.google.cloud.workflows.v1beta.ListWorkflowsResponse>
-      getListWorkflowsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
-            com.google.cloud.workflows.v1beta.ListWorkflowsResponse>
-        getListWorkflowsMethod;
+  public static io.grpc.MethodDescriptor getListWorkflowsMethod() {
+    io.grpc.MethodDescriptor getListWorkflowsMethod;
     if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
-          WorkflowsGrpc.getListWorkflowsMethod =
-              getListWorkflowsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1beta.ListWorkflowsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1beta.ListWorkflowsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
-                      .build();
+          WorkflowsGrpc.getListWorkflowsMethod = getListWorkflowsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1beta.ListWorkflowsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1beta.ListWorkflowsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
+              .build();
         }
       }
     }
     return getListWorkflowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.GetWorkflowRequest,
-          com.google.cloud.workflows.v1beta.Workflow>
-      getGetWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getGetWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetWorkflow",
       requestType = com.google.cloud.workflows.v1beta.GetWorkflowRequest.class,
       responseType = com.google.cloud.workflows.v1beta.Workflow.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.GetWorkflowRequest,
-          com.google.cloud.workflows.v1beta.Workflow>
-      getGetWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1beta.GetWorkflowRequest,
-            com.google.cloud.workflows.v1beta.Workflow>
-        getGetWorkflowMethod;
+  public static io.grpc.MethodDescriptor getGetWorkflowMethod() {
+    io.grpc.MethodDescriptor getGetWorkflowMethod;
     if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
-          WorkflowsGrpc.getGetWorkflowMethod =
-              getGetWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1beta.GetWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
-                      .build();
+          WorkflowsGrpc.getGetWorkflowMethod = getGetWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1beta.GetWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
+              .build();
         }
       }
     }
     return getGetWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.CreateWorkflowRequest, com.google.longrunning.Operation>
-      getCreateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateWorkflow",
       requestType = com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.CreateWorkflowRequest, com.google.longrunning.Operation>
-      getCreateWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1beta.CreateWorkflowRequest,
-            com.google.longrunning.Operation>
-        getCreateWorkflowMethod;
+  public static io.grpc.MethodDescriptor getCreateWorkflowMethod() {
+    io.grpc.MethodDescriptor getCreateWorkflowMethod;
     if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
-          WorkflowsGrpc.getCreateWorkflowMethod =
-              getCreateWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1beta.CreateWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
-                      .build();
+          WorkflowsGrpc.getCreateWorkflowMethod = getCreateWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1beta.CreateWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
+              .build();
         }
       }
     }
     return getCreateWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.DeleteWorkflowRequest, com.google.longrunning.Operation>
-      getDeleteWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getDeleteWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflow",
       requestType = com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.DeleteWorkflowRequest, com.google.longrunning.Operation>
-      getDeleteWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest,
-            com.google.longrunning.Operation>
-        getDeleteWorkflowMethod;
+  public static io.grpc.MethodDescriptor getDeleteWorkflowMethod() {
+    io.grpc.MethodDescriptor getDeleteWorkflowMethod;
     if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
-          WorkflowsGrpc.getDeleteWorkflowMethod =
-              getDeleteWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
-                      .build();
+          WorkflowsGrpc.getDeleteWorkflowMethod = getDeleteWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
+              .build();
         }
       }
     }
     return getDeleteWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.UpdateWorkflowRequest, com.google.longrunning.Operation>
-      getUpdateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor getUpdateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflow",
       requestType = com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.workflows.v1beta.UpdateWorkflowRequest, com.google.longrunning.Operation>
-      getUpdateWorkflowMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest,
-            com.google.longrunning.Operation>
-        getUpdateWorkflowMethod;
+  public static io.grpc.MethodDescriptor getUpdateWorkflowMethod() {
+    io.grpc.MethodDescriptor getUpdateWorkflowMethod;
     if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
-          WorkflowsGrpc.getUpdateWorkflowMethod =
-              getUpdateWorkflowMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.longrunning.Operation.getDefaultInstance()))
-                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
-                      .build();
+          WorkflowsGrpc.getUpdateWorkflowMethod = getUpdateWorkflowMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.longrunning.Operation.getDefaultInstance()))
+              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
+              .build();
         }
       }
     }
     return getUpdateWorkflowMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static WorkflowsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowsStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowsStub(channel, callOptions);
+        }
+      };
     return WorkflowsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static WorkflowsBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static WorkflowsBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowsBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowsBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowsBlockingStub(channel, callOptions);
+        }
+      };
     return WorkflowsBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static WorkflowsFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static WorkflowsFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public WorkflowsFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new WorkflowsFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public WorkflowsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new WorkflowsFutureStub(channel, callOptions);
+        }
+      };
     return WorkflowsFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -309,70 +229,51 @@ public WorkflowsFutureStub newStub(
   public interface AsyncService {
 
     /**
-     *
-     *
      * 
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - default void listWorkflows( - com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWorkflowsMethod(), responseObserver); + default void listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkflowsMethod(), responseObserver); } /** - * - * *
      * Gets details of a single Workflow.
      * 
*/ - default void getWorkflow( - com.google.cloud.workflows.v1beta.GetWorkflowRequest request, + default void getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkflowMethod(), responseObserver); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - default void createWorkflow( - com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, + default void createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkflowMethod(), responseObserver); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - default void deleteWorkflow( - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, + default void deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkflowMethod(), responseObserver); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -381,123 +282,99 @@ default void deleteWorkflow(
      * in new workflow executions.
      * 
*/ - default void updateWorkflow( - com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, + default void updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkflowMethod(), responseObserver); } } /** * Base class for the server implementation of the service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public abstract static class WorkflowsImplBase implements io.grpc.BindableService, AsyncService { + public static abstract class WorkflowsImplBase + implements io.grpc.BindableService, AsyncService { - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return WorkflowsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public static final class WorkflowsStub extends io.grpc.stub.AbstractAsyncStub { - private WorkflowsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class WorkflowsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkflowsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected WorkflowsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected WorkflowsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new WorkflowsStub(channel, callOptions); } /** - * - * *
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public void listWorkflows( - com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Gets details of a single Workflow.
      * 
*/ - public void getWorkflow( - com.google.cloud.workflows.v1beta.GetWorkflowRequest request, + public void getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public void createWorkflow( - com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, + public void createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public void deleteWorkflow( - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, + public void deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -506,19 +383,15 @@ public void deleteWorkflow(
      * in new workflow executions.
      * 
*/ - public void updateWorkflow( - com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, + public void updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -527,7 +400,8 @@ public void updateWorkflow(
    */
   public static final class WorkflowsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private WorkflowsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsBlockingStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -538,65 +412,51 @@ protected WorkflowsBlockingStub build(
     }
 
     /**
-     *
-     *
      * 
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.cloud.workflows.v1beta.ListWorkflowsResponse listWorkflows( - com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { + public com.google.cloud.workflows.v1beta.ListWorkflowsResponse listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowsMethod(), getCallOptions(), request); } /** - * - * *
      * Gets details of a single Workflow.
      * 
*/ - public com.google.cloud.workflows.v1beta.Workflow getWorkflow( - com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { + public com.google.cloud.workflows.v1beta.Workflow getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowMethod(), getCallOptions(), request); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.longrunning.Operation createWorkflow( - com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { + public com.google.longrunning.Operation createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowMethod(), getCallOptions(), request); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.longrunning.Operation deleteWorkflow( - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { + public com.google.longrunning.Operation deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowMethod(), getCallOptions(), request); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -605,8 +465,7 @@ public com.google.longrunning.Operation deleteWorkflow(
      * in new workflow executions.
      * 
*/ - public com.google.longrunning.Operation updateWorkflow( - com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) { + public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowMethod(), getCallOptions(), request); } @@ -614,7 +473,6 @@ public com.google.longrunning.Operation updateWorkflow( /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Workflows. - * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -623,77 +481,67 @@ public com.google.longrunning.Operation updateWorkflow(
    */
   public static final class WorkflowsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private WorkflowsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsFutureStub(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected WorkflowsFutureStub build(
+        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new WorkflowsFutureStub(channel, callOptions);
     }
 
     /**
-     *
-     *
      * 
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.v1beta.ListWorkflowsResponse> - listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listWorkflows( + com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request); } /** - * - * *
      * Gets details of a single Workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.workflows.v1beta.Workflow> - getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture getWorkflow( + com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request); } /** - * - * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture createWorkflow( + com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request); } /** - * - * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture deleteWorkflow( + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request); } /** - * - * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -702,8 +550,8 @@ protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * in new workflow executions.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateWorkflow( + com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request); } @@ -715,11 +563,11 @@ protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_DELETE_WORKFLOW = 3; private static final int METHODID_UPDATE_WORKFLOW = 4; - 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 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 AsyncService serviceImpl; private final int methodId; @@ -733,30 +581,23 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_WORKFLOWS: - serviceImpl.listWorkflows( - (com.google.cloud.workflows.v1beta.ListWorkflowsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.listWorkflows((com.google.cloud.workflows.v1beta.ListWorkflowsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_WORKFLOW: - serviceImpl.getWorkflow( - (com.google.cloud.workflows.v1beta.GetWorkflowRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.getWorkflow((com.google.cloud.workflows.v1beta.GetWorkflowRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_WORKFLOW: - serviceImpl.createWorkflow( - (com.google.cloud.workflows.v1beta.CreateWorkflowRequest) request, + serviceImpl.createWorkflow((com.google.cloud.workflows.v1beta.CreateWorkflowRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_WORKFLOW: - serviceImpl.deleteWorkflow( - (com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) request, + serviceImpl.deleteWorkflow((com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_WORKFLOW: - serviceImpl.updateWorkflow( - (com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) request, + serviceImpl.updateWorkflow((com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -778,42 +619,45 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListWorkflowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1beta.ListWorkflowsRequest, - com.google.cloud.workflows.v1beta.ListWorkflowsResponse>( - service, METHODID_LIST_WORKFLOWS))) + getListWorkflowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1beta.ListWorkflowsRequest, + com.google.cloud.workflows.v1beta.ListWorkflowsResponse>( + service, METHODID_LIST_WORKFLOWS))) .addMethod( - getGetWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1beta.GetWorkflowRequest, - com.google.cloud.workflows.v1beta.Workflow>(service, METHODID_GET_WORKFLOW))) + getGetWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1beta.GetWorkflowRequest, + com.google.cloud.workflows.v1beta.Workflow>( + service, METHODID_GET_WORKFLOW))) .addMethod( - getCreateWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1beta.CreateWorkflowRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_WORKFLOW))) + getCreateWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1beta.CreateWorkflowRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKFLOW))) .addMethod( - getDeleteWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_WORKFLOW))) + getDeleteWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKFLOW))) .addMethod( - getUpdateWorkflowMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.v1beta.UpdateWorkflowRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKFLOW))) + getUpdateWorkflowMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.v1beta.UpdateWorkflowRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKFLOW))) .build(); } - private abstract static class WorkflowsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class WorkflowsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { WorkflowsBaseDescriptorSupplier() {} @java.lang.Override @@ -855,16 +699,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (WorkflowsGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier()) - .addMethod(getListWorkflowsMethod()) - .addMethod(getGetWorkflowMethod()) - .addMethod(getCreateWorkflowMethod()) - .addMethod(getDeleteWorkflowMethod()) - .addMethod(getUpdateWorkflowMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier()) + .addMethod(getListWorkflowsMethod()) + .addMethod(getGetWorkflowMethod()) + .addMethod(getCreateWorkflowMethod()) + .addMethod(getDeleteWorkflowMethod()) + .addMethod(getUpdateWorkflowMethod()) + .build(); } } } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java similarity index 65% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java index 04d1a387137c..d8775cc748f0 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** - * - * *
  * Request for the
  * [CreateWorkflow][google.cloud.workflows.v1beta.Workflows.CreateWorkflow]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.CreateWorkflowRequest}
  */
-public final class CreateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CreateWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.CreateWorkflowRequest)
     CreateWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CreateWorkflowRequest.newBuilder() to construct.
   private CreateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CreateWorkflowRequest() {
     parent_ = "";
     workflowId_ = "";
@@ -46,41 +28,34 @@ private CreateWorkflowRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CreateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class,
-            com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class, com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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 @@ -89,32 +64,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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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 { @@ -125,16 +98,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int WORKFLOW_FIELD_NUMBER = 2; private com.google.cloud.workflows.v1beta.Workflow workflow_; /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ @java.lang.Override @@ -142,49 +110,33 @@ public boolean hasWorkflow() { return workflow_ != null; } /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } public static final int WORKFLOW_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object workflowId_ = ""; /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -197,7 +149,6 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workflowId. */ @java.lang.Override @@ -206,15 +157,14 @@ public java.lang.String getWorkflowId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; } } /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -227,15 +177,16 @@ public java.lang.String getWorkflowId() {
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workflowId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkflowIdBytes() { + public com.google.protobuf.ByteString + getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowId_ = b; return b; } else { @@ -244,7 +195,6 @@ public com.google.protobuf.ByteString getWorkflowIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +206,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_); } @@ -279,7 +230,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workflow_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflow()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWorkflow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); @@ -292,20 +244,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.workflows.v1beta.CreateWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.CreateWorkflowRequest other = - (com.google.cloud.workflows.v1beta.CreateWorkflowRequest) obj; + com.google.cloud.workflows.v1beta.CreateWorkflowRequest other = (com.google.cloud.workflows.v1beta.CreateWorkflowRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasWorkflow() != other.hasWorkflow()) return false; if (hasWorkflow()) { - if (!getWorkflow().equals(other.getWorkflow())) return false; + if (!getWorkflow() + .equals(other.getWorkflow())) return false; } - if (!getWorkflowId().equals(other.getWorkflowId())) return false; + if (!getWorkflowId() + .equals(other.getWorkflowId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -331,104 +285,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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
    * [CreateWorkflow][google.cloud.workflows.v1beta.Workflows.CreateWorkflow]
@@ -437,32 +385,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.CreateWorkflowRequest}
    */
-  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.workflows.v1beta.CreateWorkflowRequest)
       com.google.cloud.workflows.v1beta.CreateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class,
-              com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class, com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.CreateWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -478,9 +427,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -499,11 +448,8 @@ public com.google.cloud.workflows.v1beta.CreateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.CreateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.CreateWorkflowRequest result =
-          new com.google.cloud.workflows.v1beta.CreateWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1beta.CreateWorkflowRequest result = new com.google.cloud.workflows.v1beta.CreateWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -514,7 +460,9 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.CreateWorkflowReque
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null
+            ? workflow_
+            : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.workflowId_ = workflowId_;
@@ -525,39 +473,38 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.CreateWorkflowReque
     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.workflows.v1beta.CreateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.CreateWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.CreateWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -565,8 +512,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.CreateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.CreateWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1beta.CreateWorkflowRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -606,31 +552,29 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                workflowId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getWorkflowFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              workflowId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -640,28 +584,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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; @@ -670,24 +609,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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 { @@ -695,41 +631,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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() { @@ -739,24 +664,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -766,58 +685,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workflows.v1beta.Workflow workflow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, - com.google.cloud.workflows.v1beta.Workflow.Builder, - com.google.cloud.workflows.v1beta.WorkflowOrBuilder> - workflowBuilder_; + com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> workflowBuilder_; /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } else { return workflowBuilder_.getMessage(); } } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { @@ -833,17 +733,14 @@ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { + public Builder setWorkflow( + com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -854,21 +751,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow.Builder bu return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && workflow_ != null - && workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + workflow_ != null && + workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -881,15 +774,11 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000002); @@ -902,15 +791,11 @@ public Builder clearWorkflow() { return this; } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000002; @@ -918,48 +803,36 @@ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? + com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } } /** - * - * *
      * Required. Workflow to be created.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, - com.google.cloud.workflows.v1beta.Workflow.Builder, - com.google.cloud.workflows.v1beta.WorkflowOrBuilder> + com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, - com.google.cloud.workflows.v1beta.Workflow.Builder, - com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( - getWorkflow(), getParentForChildren(), isClean()); + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); workflow_ = null; } return workflowBuilder_; @@ -967,8 +840,6 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder( private java.lang.Object workflowId_ = ""; /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -981,13 +852,13 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workflowId. */ public java.lang.String getWorkflowId() { java.lang.Object ref = workflowId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; @@ -996,8 +867,6 @@ public java.lang.String getWorkflowId() { } } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1010,14 +879,15 @@ public java.lang.String getWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workflowId. */ - public com.google.protobuf.ByteString getWorkflowIdBytes() { + public com.google.protobuf.ByteString + getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workflowId_ = b; return b; } else { @@ -1025,8 +895,6 @@ public com.google.protobuf.ByteString getWorkflowIdBytes() { } } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1039,22 +907,18 @@ public com.google.protobuf.ByteString getWorkflowIdBytes() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workflowId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1067,7 +931,6 @@ public Builder setWorkflowId(java.lang.String value) {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkflowId() { @@ -1077,8 +940,6 @@ public Builder clearWorkflowId() { return this; } /** - * - * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -1091,23 +952,21 @@ public Builder clearWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkflowIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workflowId_ = value; bitField0_ |= 0x00000004; 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); } @@ -1117,12 +976,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.CreateWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.CreateWorkflowRequest) private static final com.google.cloud.workflows.v1beta.CreateWorkflowRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.CreateWorkflowRequest(); } @@ -1131,27 +990,27 @@ public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1166,4 +1025,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.CreateWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java similarity index 60% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java index d923af27a558..4766a2180dc6 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface CreateWorkflowRequestOrBuilder - extends +public interface CreateWorkflowRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.CreateWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * - * 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. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ com.google.cloud.workflows.v1beta.Workflow getWorkflow(); /** - * - * *
    * Required. Workflow to be created.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(); /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -110,13 +69,10 @@ public interface CreateWorkflowRequestOrBuilder
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workflowId. */ java.lang.String getWorkflowId(); /** - * - * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -129,8 +85,8 @@ public interface CreateWorkflowRequestOrBuilder
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workflowId. */ - com.google.protobuf.ByteString getWorkflowIdBytes(); + com.google.protobuf.ByteString + getWorkflowIdBytes(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java similarity index 62% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java index 6689737a88d0..a6c148580bf0 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** - * - * *
  * Request for the
  * [DeleteWorkflow][google.cloud.workflows.v1beta.Workflows.DeleteWorkflow]
@@ -29,57 +12,49 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.DeleteWorkflowRequest}
  */
-public final class DeleteWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class DeleteWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.DeleteWorkflowRequest)
     DeleteWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use DeleteWorkflowRequest.newBuilder() to construct.
   private DeleteWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private DeleteWorkflowRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new DeleteWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class,
-            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 @@ -88,32 +63,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. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,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_); } @@ -158,15 +131,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.workflows.v1beta.DeleteWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest other = - (com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) obj; + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest other = (com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,104 +159,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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
    * [DeleteWorkflow][google.cloud.workflows.v1beta.Workflows.DeleteWorkflow]
@@ -292,32 +259,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.DeleteWorkflowRequest}
    */
-  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.workflows.v1beta.DeleteWorkflowRequest)
       com.google.cloud.workflows.v1beta.DeleteWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class,
-              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +295,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -348,11 +316,8 @@ public com.google.cloud.workflows.v1beta.DeleteWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.DeleteWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.DeleteWorkflowRequest result =
-          new com.google.cloud.workflows.v1beta.DeleteWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1beta.DeleteWorkflowRequest result = new com.google.cloud.workflows.v1beta.DeleteWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -368,39 +333,38 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.DeleteWorkflowReque
     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.workflows.v1beta.DeleteWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.DeleteWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -408,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -441,19 +404,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -463,28 +424,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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; @@ -493,24 +449,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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 { @@ -518,41 +471,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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() { @@ -562,33 +504,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -598,12 +534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.DeleteWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.DeleteWorkflowRequest) private static final com.google.cloud.workflows.v1beta.DeleteWorkflowRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.DeleteWorkflowRequest(); } @@ -612,27 +548,27 @@ public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +583,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.DeleteWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java new file mode 100644 index 000000000000..e2ec1e0b13c5 --- /dev/null +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1beta/workflows.proto + +package com.google.cloud.workflows.v1beta; + +public interface DeleteWorkflowRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.DeleteWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * 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/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java similarity index 63% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java index 804c188f6fd3..62241df4ce92 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** - * - * *
  * Request for the
  * [GetWorkflow][google.cloud.workflows.v1beta.Workflows.GetWorkflow] method.
@@ -28,57 +11,49 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.GetWorkflowRequest}
  */
-public final class GetWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GetWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.GetWorkflowRequest)
     GetWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GetWorkflowRequest.newBuilder() to construct.
   private GetWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GetWorkflowRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GetWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.GetWorkflowRequest.class,
-            com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.GetWorkflowRequest.class, com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workflow which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 @@ -87,32 +62,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. Name of the workflow which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * - * 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 { @@ -121,7 +94,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +105,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_); } @@ -157,15 +130,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.workflows.v1beta.GetWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.GetWorkflowRequest other = - (com.google.cloud.workflows.v1beta.GetWorkflowRequest) obj; + com.google.cloud.workflows.v1beta.GetWorkflowRequest other = (com.google.cloud.workflows.v1beta.GetWorkflowRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,103 +158,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.GetWorkflowRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.GetWorkflowRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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
    * [GetWorkflow][google.cloud.workflows.v1beta.Workflows.GetWorkflow] method.
@@ -289,32 +257,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.GetWorkflowRequest}
    */
-  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.workflows.v1beta.GetWorkflowRequest)
       com.google.cloud.workflows.v1beta.GetWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.GetWorkflowRequest.class,
-              com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.GetWorkflowRequest.class, com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.GetWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -324,9 +293,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -345,11 +314,8 @@ public com.google.cloud.workflows.v1beta.GetWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.GetWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.GetWorkflowRequest result =
-          new com.google.cloud.workflows.v1beta.GetWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1beta.GetWorkflowRequest result = new com.google.cloud.workflows.v1beta.GetWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -365,39 +331,38 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.GetWorkflowRequest
     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.workflows.v1beta.GetWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.GetWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.GetWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -405,8 +370,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.GetWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.GetWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1beta.GetWorkflowRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -438,19 +402,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -460,28 +422,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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; @@ -490,24 +447,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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 { @@ -515,41 +469,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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() { @@ -559,33 +502,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -595,12 +532,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.GetWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.GetWorkflowRequest) private static final com.google.cloud.workflows.v1beta.GetWorkflowRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.GetWorkflowRequest(); } @@ -609,27 +546,27 @@ public static com.google.cloud.workflows.v1beta.GetWorkflowRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -644,4 +581,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.GetWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java new file mode 100644 index 000000000000..06f345fe8456 --- /dev/null +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1beta/workflows.proto + +package com.google.cloud.workflows.v1beta; + +public interface GetWorkflowRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.GetWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the workflow which information should be retrieved.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the workflow which information should be retrieved.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * 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/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java similarity index 71% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java index 0807d8440298..3128c51d7399 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** - * - * *
  * Request for the
  * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsRequest}
  */
-public final class ListWorkflowsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListWorkflowsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.ListWorkflowsRequest)
     ListWorkflowsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListWorkflowsRequest.newBuilder() to construct.
   private ListWorkflowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListWorkflowsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -48,41 +30,34 @@ private ListWorkflowsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListWorkflowsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class,
-            com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class, com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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 @@ -91,32 +66,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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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 { @@ -127,8 +100,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of workflows to return per call. The service may return
    * fewer than this value. If the value is not specified, a default value of
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -161,7 +128,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -170,15 +136,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 page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -188,15 +153,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 { @@ -205,18 +171,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -225,29 +187,29 @@ 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; } } /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @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 { @@ -256,12 +218,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -270,7 +229,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -279,15 +237,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -296,15 +253,16 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -313,7 +271,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +282,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_); } @@ -354,7 +312,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -373,19 +332,23 @@ 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.workflows.v1beta.ListWorkflowsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.ListWorkflowsRequest other = - (com.google.cloud.workflows.v1beta.ListWorkflowsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.workflows.v1beta.ListWorkflowsRequest other = (com.google.cloud.workflows.v1beta.ListWorkflowsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,104 +376,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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
    * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -519,32 +476,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsRequest}
    */
-  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.workflows.v1beta.ListWorkflowsRequest)
       com.google.cloud.workflows.v1beta.ListWorkflowsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class,
-              com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class, com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.ListWorkflowsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -558,9 +516,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -579,11 +537,8 @@ public com.google.cloud.workflows.v1beta.ListWorkflowsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.ListWorkflowsRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.ListWorkflowsRequest result =
-          new com.google.cloud.workflows.v1beta.ListWorkflowsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1beta.ListWorkflowsRequest result = new com.google.cloud.workflows.v1beta.ListWorkflowsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -611,39 +566,38 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.ListWorkflowsReques
     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.workflows.v1beta.ListWorkflowsRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -651,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.ListWorkflowsRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -702,43 +655,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 16:
-              {
-                pageSize_ = input.readInt32();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 16
-            case 26:
-              {
-                pageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                filter_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                orderBy_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 16: {
+              pageSize_ = input.readInt32();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 16
+            case 26: {
+              pageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              filter_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              orderBy_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -748,28 +695,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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; @@ -778,24 +720,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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 { @@ -803,41 +742,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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() { @@ -847,24 +775,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -872,10 +794,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of workflows to return per call. The service may return
      * fewer than this value. If the value is not specified, a default value of
@@ -884,7 +804,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -892,8 +811,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of workflows to return per call. The service may return
      * fewer than this value. If the value is not specified, a default value of
@@ -902,7 +819,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -914,8 +830,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Maximum number of workflows to return per call. The service may return
      * fewer than this value. If the value is not specified, a default value of
@@ -924,7 +838,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -936,8 +849,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -947,13 +858,13 @@ public Builder clearPageSize() {
      * 
* * 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 +873,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -973,14 +882,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 { @@ -988,8 +898,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -999,22 +907,18 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -1024,7 +928,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1034,8 +937,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -1045,14 +946,12 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1062,20 +961,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @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; @@ -1084,21 +981,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @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 { @@ -1106,35 +1002,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1144,21 +1033,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1168,8 +1053,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1178,13 +1061,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1193,8 +1076,6 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1203,14 +1084,15 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1218,8 +1100,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1228,22 +1108,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1252,7 +1128,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1262,8 +1137,6 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1272,23 +1145,21 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; 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); } @@ -1298,12 +1169,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.ListWorkflowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.ListWorkflowsRequest) private static final com.google.cloud.workflows.v1beta.ListWorkflowsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.ListWorkflowsRequest(); } @@ -1312,27 +1183,27 @@ public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1347,4 +1218,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.ListWorkflowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java similarity index 70% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java index e24e5837d8b9..51cae8559982 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface ListWorkflowsRequestOrBuilder - extends +public interface ListWorkflowsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.ListWorkflowsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * - * 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(); /** - * - * *
    * Maximum number of workflows to return per call. The service may return
    * fewer than this value. If the value is not specified, a default value of
@@ -65,14 +38,11 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -82,13 +52,10 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -98,39 +65,32 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -139,13 +99,10 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -154,8 +111,8 @@ public interface ListWorkflowsRequestOrBuilder
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java similarity index 72% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java index b90d59271db4..70043b7371e9 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** - * - * *
  * Response for the
  * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -29,50 +12,46 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsResponse}
  */
-public final class ListWorkflowsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListWorkflowsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.ListWorkflowsResponse)
     ListWorkflowsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListWorkflowsResponse.newBuilder() to construct.
   private ListWorkflowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListWorkflowsResponse() {
     workflows_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
-    unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    unreachable_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListWorkflowsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class,
-            com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
+            com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class, com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
   }
 
   public static final int WORKFLOWS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List workflows_;
   /**
-   *
-   *
    * 
    * The workflows which match the request.
    * 
@@ -84,8 +63,6 @@ public java.util.List getWorkflowsLi return workflows_; } /** - * - * *
    * The workflows which match the request.
    * 
@@ -93,13 +70,11 @@ public java.util.List getWorkflowsLi * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkflowsOrBuilderList() { return workflows_; } /** - * - * *
    * The workflows which match the request.
    * 
@@ -111,8 +86,6 @@ public int getWorkflowsCount() { return workflows_.size(); } /** - * - * *
    * The workflows which match the request.
    * 
@@ -124,8 +97,6 @@ public com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index) { return workflows_.get(index); } /** - * - * *
    * The workflows which match the request.
    * 
@@ -133,24 +104,21 @@ public com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index) { * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ @java.lang.Override - public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { + public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { return workflows_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -159,30 +127,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; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -191,47 +159,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -239,23 +198,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +223,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 < workflows_.size(); i++) { output.writeMessage(1, workflows_.get(i)); } @@ -287,7 +244,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflows_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workflows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -308,17 +266,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.workflows.v1beta.ListWorkflowsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.ListWorkflowsResponse other = - (com.google.cloud.workflows.v1beta.ListWorkflowsResponse) obj; + com.google.cloud.workflows.v1beta.ListWorkflowsResponse other = (com.google.cloud.workflows.v1beta.ListWorkflowsResponse) obj; - if (!getWorkflowsList().equals(other.getWorkflowsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkflowsList() + .equals(other.getWorkflowsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,104 +306,98 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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
    * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -452,32 +406,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsResponse}
    */
-  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.workflows.v1beta.ListWorkflowsResponse)
       com.google.cloud.workflows.v1beta.ListWorkflowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class,
-              com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
+              com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class, com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.ListWorkflowsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -490,14 +445,15 @@ public Builder clear() {
       }
       bitField0_ = (bitField0_ & ~0x00000001);
       nextPageToken_ = "";
-      unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      unreachable_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -516,18 +472,14 @@ public com.google.cloud.workflows.v1beta.ListWorkflowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.ListWorkflowsResponse buildPartial() {
-      com.google.cloud.workflows.v1beta.ListWorkflowsResponse result =
-          new com.google.cloud.workflows.v1beta.ListWorkflowsResponse(this);
+      com.google.cloud.workflows.v1beta.ListWorkflowsResponse result = new com.google.cloud.workflows.v1beta.ListWorkflowsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workflows.v1beta.ListWorkflowsResponse result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workflows.v1beta.ListWorkflowsResponse result) {
       if (workflowsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           workflows_ = java.util.Collections.unmodifiableList(workflows_);
@@ -554,39 +506,38 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.ListWorkflowsRespon
     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.workflows.v1beta.ListWorkflowsResponse) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsResponse) other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -594,8 +545,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.ListWorkflowsResponse other) {
-      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsResponse.getDefaultInstance()) return this;
       if (workflowsBuilder_ == null) {
         if (!other.workflows_.isEmpty()) {
           if (workflows_.isEmpty()) {
@@ -614,10 +564,9 @@ public Builder mergeFrom(com.google.cloud.workflows.v1beta.ListWorkflowsResponse
             workflowsBuilder_ = null;
             workflows_ = other.workflows_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            workflowsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getWorkflowsFieldBuilder()
-                    : null;
+            workflowsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getWorkflowsFieldBuilder() : null;
           } else {
             workflowsBuilder_.addAllMessages(other.workflows_);
           }
@@ -664,39 +613,36 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.workflows.v1beta.Workflow m =
-                    input.readMessage(
-                        com.google.cloud.workflows.v1beta.Workflow.parser(), extensionRegistry);
-                if (workflowsBuilder_ == null) {
-                  ensureWorkflowsIsMutable();
-                  workflows_.add(m);
-                } else {
-                  workflowsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            case 18:
-              {
-                nextPageToken_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureUnreachableIsMutable();
-                unreachable_.add(s);
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.workflows.v1beta.Workflow m =
+                  input.readMessage(
+                      com.google.cloud.workflows.v1beta.Workflow.parser(),
+                      extensionRegistry);
+              if (workflowsBuilder_ == null) {
+                ensureWorkflowsIsMutable();
+                workflows_.add(m);
+              } else {
+                workflowsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            case 18: {
+              nextPageToken_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureUnreachableIsMutable();
+              unreachable_.add(s);
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -706,29 +652,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List workflows_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureWorkflowsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        workflows_ =
-            new java.util.ArrayList(workflows_);
+        workflows_ = new java.util.ArrayList(workflows_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.workflows.v1beta.Workflow,
-            com.google.cloud.workflows.v1beta.Workflow.Builder,
-            com.google.cloud.workflows.v1beta.WorkflowOrBuilder>
-        workflowsBuilder_;
+        com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> workflowsBuilder_;
 
     /**
-     *
-     *
      * 
      * The workflows which match the request.
      * 
@@ -743,8 +681,6 @@ public java.util.List getWorkflowsLi } } /** - * - * *
      * The workflows which match the request.
      * 
@@ -759,8 +695,6 @@ public int getWorkflowsCount() { } } /** - * - * *
      * The workflows which match the request.
      * 
@@ -775,15 +709,14 @@ public com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index) { } } /** - * - * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public Builder setWorkflows(int index, com.google.cloud.workflows.v1beta.Workflow value) { + public Builder setWorkflows( + int index, com.google.cloud.workflows.v1beta.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -797,8 +730,6 @@ public Builder setWorkflows(int index, com.google.cloud.workflows.v1beta.Workflo return this; } /** - * - * *
      * The workflows which match the request.
      * 
@@ -817,8 +748,6 @@ public Builder setWorkflows( return this; } /** - * - * *
      * The workflows which match the request.
      * 
@@ -839,15 +768,14 @@ public Builder addWorkflows(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** - * - * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public Builder addWorkflows(int index, com.google.cloud.workflows.v1beta.Workflow value) { + public Builder addWorkflows( + int index, com.google.cloud.workflows.v1beta.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -861,8 +789,6 @@ public Builder addWorkflows(int index, com.google.cloud.workflows.v1beta.Workflo return this; } /** - * - * *
      * The workflows which match the request.
      * 
@@ -881,8 +807,6 @@ public Builder addWorkflows( return this; } /** - * - * *
      * The workflows which match the request.
      * 
@@ -901,8 +825,6 @@ public Builder addWorkflows( return this; } /** - * - * *
      * The workflows which match the request.
      * 
@@ -913,7 +835,8 @@ public Builder addAllWorkflows( java.lang.Iterable values) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workflows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workflows_); onChanged(); } else { workflowsBuilder_.addAllMessages(values); @@ -921,8 +844,6 @@ public Builder addAllWorkflows( return this; } /** - * - * *
      * The workflows which match the request.
      * 
@@ -940,8 +861,6 @@ public Builder clearWorkflows() { return this; } /** - * - * *
      * The workflows which match the request.
      * 
@@ -959,44 +878,39 @@ public Builder removeWorkflows(int index) { return this; } /** - * - * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowsBuilder(int index) { + public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowsBuilder( + int index) { return getWorkflowsFieldBuilder().getBuilder(index); } /** - * - * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { + public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder( + int index) { if (workflowsBuilder_ == null) { - return workflows_.get(index); - } else { + return workflows_.get(index); } else { return workflowsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public java.util.List - getWorkflowsOrBuilderList() { + public java.util.List + getWorkflowsOrBuilderList() { if (workflowsBuilder_ != null) { return workflowsBuilder_.getMessageOrBuilderList(); } else { @@ -1004,8 +918,6 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder } } /** - * - * *
      * The workflows which match the request.
      * 
@@ -1013,48 +925,42 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder() { - return getWorkflowsFieldBuilder() - .addBuilder(com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); + return getWorkflowsFieldBuilder().addBuilder( + com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); } /** - * - * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder(int index) { - return getWorkflowsFieldBuilder() - .addBuilder(index, com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); + public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder( + int index) { + return getWorkflowsFieldBuilder().addBuilder( + index, com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); } /** - * - * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public java.util.List - getWorkflowsBuilderList() { + public java.util.List + getWorkflowsBuilderList() { return getWorkflowsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, - com.google.cloud.workflows.v1beta.Workflow.Builder, - com.google.cloud.workflows.v1beta.WorkflowOrBuilder> + com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> getWorkflowsFieldBuilder() { if (workflowsBuilder_ == null) { - workflowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, - com.google.cloud.workflows.v1beta.Workflow.Builder, - com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( - workflows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( + workflows_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workflows_ = null; } return workflowsBuilder_; @@ -1062,21 +968,19 @@ public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -1085,22 +989,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -1108,37 +1011,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1148,22 +1044,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1173,7 +1065,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1181,43 +1072,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1225,37 +1108,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1263,21 +1140,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1285,58 +1158,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1344,9 +1209,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1356,12 +1221,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.ListWorkflowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.ListWorkflowsResponse) private static final com.google.cloud.workflows.v1beta.ListWorkflowsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.ListWorkflowsResponse(); } @@ -1370,27 +1235,27 @@ public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1405,4 +1270,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.ListWorkflowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java similarity index 71% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java index d3e958da9577..9b7b89cbe5ed 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface ListWorkflowsResponseOrBuilder - extends +public interface ListWorkflowsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.ListWorkflowsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The workflows which match the request.
    * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - java.util.List getWorkflowsList(); + java.util.List + getWorkflowsList(); /** - * - * *
    * The workflows which match the request.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkflowsResponseOrBuilder */ com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index); /** - * - * *
    * The workflows which match the request.
    * 
@@ -54,102 +33,84 @@ public interface ListWorkflowsResponseOrBuilder */ int getWorkflowsCount(); /** - * - * *
    * The workflows which match the request.
    * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - java.util.List + java.util.List getWorkflowsOrBuilderList(); /** - * - * *
    * The workflows which match the request.
    * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder(int index); + com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java similarity index 100% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java similarity index 70% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java index 95379909bc81..874ca7105a37 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.workflows.v1beta.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -45,36 +27,32 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.OperationMetadata.class, - com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1beta.OperationMetadata.class, com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -82,14 +60,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ @java.lang.Override @@ -97,8 +72,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The time the operation was created.
    * 
@@ -113,14 +86,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -128,14 +98,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -143,8 +110,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The time the operation finished running.
    * 
@@ -157,18 +122,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The target. */ @java.lang.Override @@ -177,29 +138,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -208,18 +169,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ @java.lang.Override @@ -228,29 +185,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -259,18 +216,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int API_VERSION_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The apiVersion. */ @java.lang.Override @@ -279,29 +232,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -310,7 +263,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,7 +274,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -348,10 +301,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -370,25 +325,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.workflows.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.OperationMetadata other = - (com.google.cloud.workflows.v1beta.OperationMetadata) obj; + com.google.cloud.workflows.v1beta.OperationMetadata other = (com.google.cloud.workflows.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -420,135 +379,131 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.workflows.v1beta.OperationMetadata} */ - 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.workflows.v1beta.OperationMetadata) com.google.cloud.workflows.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.OperationMetadata.class, - com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1beta.OperationMetadata.class, com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workflows.v1beta.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +525,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -591,11 +546,8 @@ public com.google.cloud.workflows.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.workflows.v1beta.OperationMetadata buildPartial() { - com.google.cloud.workflows.v1beta.OperationMetadata result = - new com.google.cloud.workflows.v1beta.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.v1beta.OperationMetadata result = new com.google.cloud.workflows.v1beta.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -603,10 +555,14 @@ public com.google.cloud.workflows.v1beta.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workflows.v1beta.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -623,39 +579,38 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.OperationMetadata r 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.workflows.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.workflows.v1beta.OperationMetadata) other); + return mergeFrom((com.google.cloud.workflows.v1beta.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -663,8 +618,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.v1beta.OperationMetadata other) { - if (other == com.google.cloud.workflows.v1beta.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.workflows.v1beta.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -712,43 +666,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,52 +710,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The time the operation was created.
      * 
@@ -824,15 +762,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -843,8 +780,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -853,9 +788,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -868,8 +803,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -887,8 +820,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The time the operation was created.
      * 
@@ -901,8 +832,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation was created.
      * 
@@ -913,14 +842,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The time the operation was created.
      * 
@@ -928,17 +854,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -946,33 +869,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -983,8 +897,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1005,15 +917,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1024,8 +935,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1034,9 +943,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1049,8 +958,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1068,8 +975,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1082,8 +987,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time the operation finished running.
      * 
@@ -1094,12 +997,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 the operation finished running.
      * 
@@ -1107,17 +1009,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1125,20 +1024,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1147,21 +1044,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1169,35 +1065,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1207,21 +1096,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1231,20 +1116,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1253,21 +1136,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1275,35 +1157,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1313,21 +1188,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1337,20 +1208,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1359,21 +1228,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1381,35 +1249,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1419,30 +1280,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * API version used to start the operation.
      * 
* * string api_version = 5; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000010; 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); } @@ -1452,12 +1309,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.OperationMetadata) private static final com.google.cloud.workflows.v1beta.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.OperationMetadata(); } @@ -1466,27 +1323,27 @@ public static com.google.cloud.workflows.v1beta.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1501,4 +1358,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java similarity index 73% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java index c5db845293a0..40dfadbdb465 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The time the operation was created.
    * 
@@ -59,32 +35,24 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * The time the operation finished running.
    * 
@@ -94,77 +62,62 @@ public interface OperationMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * API version used to start the operation.
    * 
* * string api_version = 5; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java similarity index 63% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java index 151cfd9bf0be..61ee81a9af93 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** - * - * *
  * Request for the
  * [UpdateWorkflow][google.cloud.workflows.v1beta.Workflows.UpdateWorkflow]
@@ -29,52 +12,46 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.UpdateWorkflowRequest}
  */
-public final class UpdateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class UpdateWorkflowRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
     UpdateWorkflowRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use UpdateWorkflowRequest.newBuilder() to construct.
   private UpdateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private UpdateWorkflowRequest() {}
+  private UpdateWorkflowRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new UpdateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto
-        .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class,
-            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
   }
 
   public static final int WORKFLOW_FIELD_NUMBER = 1;
   private com.google.cloud.workflows.v1beta.Workflow workflow_;
   /**
-   *
-   *
    * 
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ @java.lang.Override @@ -82,54 +59,38 @@ public boolean hasWorkflow() { return workflow_ != null; } /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -137,15 +98,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -153,8 +111,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
@@ -168,7 +124,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -180,7 +135,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 (workflow_ != null) {
       output.writeMessage(1, getWorkflow());
     }
@@ -197,10 +153,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (workflow_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkflow());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getWorkflow());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -210,21 +168,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.workflows.v1beta.UpdateWorkflowRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.workflows.v1beta.UpdateWorkflowRequest other =
-        (com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) obj;
+    com.google.cloud.workflows.v1beta.UpdateWorkflowRequest other = (com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) obj;
 
     if (hasWorkflow() != other.hasWorkflow()) return false;
     if (hasWorkflow()) {
-      if (!getWorkflow().equals(other.getWorkflow())) return false;
+      if (!getWorkflow()
+          .equals(other.getWorkflow())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -251,104 +210,98 @@ public int hashCode() {
   }
 
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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
    * [UpdateWorkflow][google.cloud.workflows.v1beta.Workflows.UpdateWorkflow]
@@ -357,32 +310,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.UpdateWorkflowRequest}
    */
-  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.workflows.v1beta.UpdateWorkflowRequest)
       com.google.cloud.workflows.v1beta.UpdateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class,
-              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -401,9 +355,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto
-          .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -422,11 +376,8 @@ public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.UpdateWorkflowRequest result =
-          new com.google.cloud.workflows.v1beta.UpdateWorkflowRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.workflows.v1beta.UpdateWorkflowRequest result = new com.google.cloud.workflows.v1beta.UpdateWorkflowRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -434,10 +385,14 @@ public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest buildPartial() {
     private void buildPartial0(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null
+            ? workflow_
+            : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -445,39 +400,38 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.UpdateWorkflowReque
     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.workflows.v1beta.UpdateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.UpdateWorkflowRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -485,8 +439,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.getDefaultInstance()) return this;
       if (other.hasWorkflow()) {
         mergeWorkflow(other.getWorkflow());
       }
@@ -519,25 +472,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getWorkflowFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getUpdateMaskFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -547,63 +501,43 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.workflows.v1beta.Workflow workflow_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.workflows.v1beta.Workflow,
-            com.google.cloud.workflows.v1beta.Workflow.Builder,
-            com.google.cloud.workflows.v1beta.WorkflowOrBuilder>
-        workflowBuilder_;
+        com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> workflowBuilder_;
     /**
-     *
-     *
      * 
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } else { return workflowBuilder_.getMessage(); } } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { @@ -619,17 +553,14 @@ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { + public Builder setWorkflow( + com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -640,21 +571,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow.Builder bu return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workflow_ != null - && workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workflow_ != null && + workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -667,15 +594,11 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,15 +611,11 @@ public Builder clearWorkflow() { return this; } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000001; @@ -704,48 +623,36 @@ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null - ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() - : workflow_; + return workflow_ == null ? + com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; } } /** - * - * *
      * Required. Workflow to be updated.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, - com.google.cloud.workflows.v1beta.Workflow.Builder, - com.google.cloud.workflows.v1beta.WorkflowOrBuilder> + com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, - com.google.cloud.workflows.v1beta.Workflow.Builder, - com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( - getWorkflow(), getParentForChildren(), isClean()); + workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( + getWorkflow(), + getParentForChildren(), + isClean()); workflow_ = null; } return workflowBuilder_; @@ -753,49 +660,36 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder( 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_; /** - * - * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @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(); } } /** - * - * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -817,8 +711,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -826,7 +718,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(
+        com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -837,8 +730,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -848,9 +739,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && updateMask_ != null
-            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          updateMask_ != null &&
+          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -863,8 +754,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -883,8 +772,6 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -898,8 +785,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -911,14 +796,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_;
       }
     }
     /**
-     *
-     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -927,24 +809,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -954,12 +833,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
   private static final com.google.cloud.workflows.v1beta.UpdateWorkflowRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.UpdateWorkflowRequest();
   }
@@ -968,27 +847,27 @@ public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public UpdateWorkflowRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public UpdateWorkflowRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1003,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
similarity index 58%
rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
index 2464c3d2d22c..6ae7319b3c17 100644
--- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
+++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
@@ -1,98 +1,60 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1beta/workflows.proto
 
 package com.google.cloud.workflows.v1beta;
 
-public interface UpdateWorkflowRequestOrBuilder
-    extends
+public interface UpdateWorkflowRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workflow. */ com.google.cloud.workflows.v1beta.Workflow getWorkflow(); /** - * - * *
    * Required. Workflow to be updated.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(); /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
similarity index 69%
rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
index 1c12f37cc9f5..a4a4a399e541 100644
--- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
+++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1beta/workflows.proto
 
 package com.google.cloud.workflows.v1beta;
 
 /**
- *
- *
  * 
  * Workflow program to be executed by Workflows.
  * 
* * Protobuf type {@code google.cloud.workflows.v1beta.Workflow} */ -public final class Workflow extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Workflow extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.Workflow) WorkflowOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Workflow.newBuilder() to construct. private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Workflow() { name_ = ""; description_ = ""; @@ -47,39 +29,37 @@ private Workflow() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Workflow(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.Workflow.class, - com.google.cloud.workflows.v1beta.Workflow.Builder.class); + com.google.cloud.workflows.v1beta.Workflow.class, com.google.cloud.workflows.v1beta.Workflow.Builder.class); } /** - * - * *
    * Describes the current state of workflow deployment. More states may be
    * added in the future.
@@ -87,10 +67,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.workflows.v1beta.Workflow.State}
    */
-  public enum State implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Invalid state.
      * 
@@ -99,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -112,8 +89,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Invalid state.
      * 
@@ -122,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -132,6 +105,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -156,47 +130,48 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ACTIVE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ACTIVE; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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.workflows.v1beta.Workflow.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -214,18 +189,14 @@ private State(int value) { } private int sourceCodeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object sourceCode_; - public enum SourceCodeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_CONTENTS(10), SOURCECODE_NOT_SET(0); private final int value; - private SourceCodeCase(int value) { this.value = value; } @@ -241,38 +212,32 @@ public static SourceCodeCase valueOf(int value) { public static SourceCodeCase forNumber(int value) { switch (value) { - case 10: - return SOURCE_CONTENTS; - case 0: - return SOURCECODE_NOT_SET; - default: - return null; + case 10: return SOURCE_CONTENTS; + case 0: return SOURCECODE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceCodeCase getSourceCodeCase() { - return SourceCodeCase.forNumber(sourceCodeCase_); + public SourceCodeCase + getSourceCodeCase() { + return SourceCodeCase.forNumber( + sourceCodeCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -281,30 +246,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; } } /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * 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 { @@ -313,19 +278,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -334,30 +295,30 @@ 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; } } /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @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 { @@ -368,49 +329,33 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.workflows.v1beta.Workflow.State getState() { - com.google.cloud.workflows.v1beta.Workflow.State result = - com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); + @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow.State getState() { + com.google.cloud.workflows.v1beta.Workflow.State result = com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); return result == null ? com.google.cloud.workflows.v1beta.Workflow.State.UNRECOGNIZED : result; } public static final int REVISION_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -423,7 +368,6 @@ public com.google.cloud.workflows.v1beta.Workflow.State getState() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ @java.lang.Override @@ -432,15 +376,14 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -453,15 +396,16 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -472,15 +416,11 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -488,15 +428,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -504,14 +440,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -521,15 +454,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -537,15 +466,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -553,14 +478,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -570,17 +492,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp revisionCreateTime_; /** - * - * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revisionCreateTime field is set. */ @java.lang.Override @@ -588,73 +505,58 @@ public boolean hasRevisionCreateTime() { return revisionCreateTime_ != null; } /** - * - * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revisionCreateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevisionCreateTime() { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } /** - * - * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } public static final int LABELS_FIELD_NUMBER = 8; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -666,21 +568,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -696,8 +597,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -709,19 +608,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -733,11 +630,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -745,12 +642,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object serviceAccount_ = "";
   /**
-   *
-   *
    * 
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -767,7 +661,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ @java.lang.Override @@ -776,15 +669,14 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -801,15 +693,16 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -819,28 +712,22 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { public static final int SOURCE_CONTENTS_FIELD_NUMBER = 10; /** - * - * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; - * * @return Whether the sourceContents field is set. */ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** - * - * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; - * * @return The sourceContents. */ public java.lang.String getSourceContents() { @@ -851,7 +738,8 @@ public java.lang.String getSourceContents() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -860,24 +748,23 @@ public java.lang.String getSourceContents() { } } /** - * - * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; - * * @return The bytes for sourceContents. */ - public com.google.protobuf.ByteString getSourceContentsBytes() { + public com.google.protobuf.ByteString + getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -888,7 +775,6 @@ public com.google.protobuf.ByteString getSourceContentsBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -900,7 +786,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_); } @@ -922,8 +809,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (revisionCreateTime_ != null) { output.writeMessage(7, getRevisionCreateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); } @@ -946,29 +837,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.workflows.v1beta.Workflow.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } if (revisionCreateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRevisionCreateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getRevisionCreateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); @@ -984,36 +879,44 @@ 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.workflows.v1beta.Workflow)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.Workflow other = - (com.google.cloud.workflows.v1beta.Workflow) obj; + com.google.cloud.workflows.v1beta.Workflow other = (com.google.cloud.workflows.v1beta.Workflow) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getRevisionId() + .equals(other.getRevisionId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; if (hasRevisionCreateTime()) { - if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + if (!getRevisionCreateTime() + .equals(other.getRevisionCreateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; if (!getSourceCodeCase().equals(other.getSourceCodeCase())) return false; switch (sourceCodeCase_) { case 10: - if (!getSourceContents().equals(other.getSourceContents())) return false; + if (!getSourceContents() + .equals(other.getSourceContents())) return false; break; case 0: default: @@ -1068,156 +971,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1beta.Workflow parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1beta.Workflow parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.Workflow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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; } /** - * - * *
    * Workflow program to be executed by Workflows.
    * 
* * Protobuf type {@code google.cloud.workflows.v1beta.Workflow} */ - 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.workflows.v1beta.Workflow) com.google.cloud.workflows.v1beta.WorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.Workflow.class, - com.google.cloud.workflows.v1beta.Workflow.Builder.class); + com.google.cloud.workflows.v1beta.Workflow.class, com.google.cloud.workflows.v1beta.Workflow.Builder.class); } // Construct using com.google.cloud.workflows.v1beta.Workflow.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1249,9 +1150,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workflows.v1beta.WorkflowsProto - .internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; } @java.lang.Override @@ -1270,11 +1171,8 @@ public com.google.cloud.workflows.v1beta.Workflow build() { @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow buildPartial() { - com.google.cloud.workflows.v1beta.Workflow result = - new com.google.cloud.workflows.v1beta.Workflow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workflows.v1beta.Workflow result = new com.google.cloud.workflows.v1beta.Workflow(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1295,16 +1193,19 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.Workflow result) { result.revisionId_ = revisionId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.revisionCreateTime_ = - revisionCreateTimeBuilder_ == null - ? revisionCreateTime_ - : revisionCreateTimeBuilder_.build(); + result.revisionCreateTime_ = revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1324,39 +1225,38 @@ private void buildPartialOneofs(com.google.cloud.workflows.v1beta.Workflow resul 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.workflows.v1beta.Workflow) { - return mergeFrom((com.google.cloud.workflows.v1beta.Workflow) other); + return mergeFrom((com.google.cloud.workflows.v1beta.Workflow)other); } else { super.mergeFrom(other); return this; @@ -1392,7 +1292,8 @@ public Builder mergeFrom(com.google.cloud.workflows.v1beta.Workflow other) { if (other.hasRevisionCreateTime()) { mergeRevisionCreateTime(other.getRevisionCreateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; @@ -1400,17 +1301,15 @@ public Builder mergeFrom(com.google.cloud.workflows.v1beta.Workflow other) { onChanged(); } switch (other.getSourceCodeCase()) { - case SOURCE_CONTENTS: - { - sourceCodeCase_ = 10; - sourceCode_ = other.sourceCode_; - onChanged(); - break; - } - case SOURCECODE_NOT_SET: - { - break; - } + case SOURCE_CONTENTS: { + sourceCodeCase_ = 10; + sourceCode_ = other.sourceCode_; + onChanged(); + break; + } + case SOURCECODE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1438,81 +1337,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - revisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage( - getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCodeCase_ = 10; - sourceCode_ = s; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + sourceCodeCase_ = 10; + sourceCode_ = s; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1522,12 +1413,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceCodeCase_ = 0; private java.lang.Object sourceCode_; - - public SourceCodeCase getSourceCodeCase() { - return SourceCodeCase.forNumber(sourceCodeCase_); + public SourceCodeCase + getSourceCodeCase() { + return SourceCodeCase.forNumber( + sourceCodeCase_); } public Builder clearSourceCode() { @@ -1541,21 +1432,19 @@ public Builder clearSourceCode() { private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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; @@ -1564,22 +1453,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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 { @@ -1587,37 +1475,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1627,22 +1508,18 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1652,21 +1529,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @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; @@ -1675,22 +1550,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @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 { @@ -1698,37 +1572,30 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1738,22 +1605,18 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1763,33 +1626,22 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1800,37 +1652,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow.State getState() { - com.google.cloud.workflows.v1beta.Workflow.State result = - com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); - return result == null - ? com.google.cloud.workflows.v1beta.Workflow.State.UNRECOGNIZED - : result; + com.google.cloud.workflows.v1beta.Workflow.State result = com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); + return result == null ? com.google.cloud.workflows.v1beta.Workflow.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -1844,16 +1683,11 @@ public Builder setState(com.google.cloud.workflows.v1beta.Workflow.State value) return this; } /** - * - * *
      * Output only. State of the workflow deployment.
      * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -1865,8 +1699,6 @@ public Builder clearState() { private java.lang.Object revisionId_ = ""; /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1879,13 +1711,13 @@ public Builder clearState() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -1894,8 +1726,6 @@ public java.lang.String getRevisionId() { } } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1908,14 +1738,15 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString getRevisionIdBytes() { + public com.google.protobuf.ByteString + getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); revisionId_ = b; return b; } else { @@ -1923,8 +1754,6 @@ public com.google.protobuf.ByteString getRevisionIdBytes() { } } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1937,22 +1766,18 @@ public com.google.protobuf.ByteString getRevisionIdBytes() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRevisionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } revisionId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1965,7 +1790,6 @@ public Builder setRevisionId(java.lang.String value) {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -1975,8 +1799,6 @@ public Builder clearRevisionId() { return this; } /** - * - * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1989,14 +1811,12 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRevisionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000008; @@ -2006,58 +1826,39 @@ public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2073,17 +1874,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2094,21 +1892,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2121,15 +1915,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2142,15 +1932,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -2158,48 +1944,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2207,58 +1981,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2274,17 +2029,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2295,21 +2047,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2322,15 +2070,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2343,15 +2087,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -2359,48 +2099,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2408,61 +2136,42 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp revisionCreateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - revisionCreateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revisionCreateTimeBuilder_; /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revisionCreateTime field is set. */ public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revisionCreateTime. */ public com.google.protobuf.Timestamp getRevisionCreateTime() { if (revisionCreateTimeBuilder_ == null) { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } else { return revisionCreateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { @@ -2478,18 +2187,15 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevisionCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (revisionCreateTimeBuilder_ == null) { revisionCreateTime_ = builderForValue.build(); } else { @@ -2500,22 +2206,18 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && revisionCreateTime_ != null - && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + revisionCreateTime_ != null && + revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getRevisionCreateTimeBuilder().mergeFrom(value); } else { revisionCreateTime_ = value; @@ -2528,16 +2230,12 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearRevisionCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2550,16 +2248,12 @@ public Builder clearRevisionCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2567,68 +2261,58 @@ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { return getRevisionCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { if (revisionCreateTimeBuilder_ != null) { return revisionCreateTimeBuilder_.getMessageOrBuilder(); } else { - return revisionCreateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : revisionCreateTime_; + return revisionCreateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; } } /** - * - * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getRevisionCreateTimeFieldBuilder() { if (revisionCreateTimeBuilder_ == null) { - revisionCreateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getRevisionCreateTime(), getParentForChildren(), isClean()); + revisionCreateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), + getParentForChildren(), + isClean()); revisionCreateTime_ = null; } return revisionCreateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2637,13 +2321,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2655,21 +2336,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2685,8 +2365,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2698,19 +2376,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2722,25 +2398,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2751,22 +2425,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2777,20 +2452,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
-     *
-     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2801,16 +2473,16 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 8;
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object serviceAccount_ = "";
     /**
-     *
-     *
      * 
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2827,13 +2499,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * string service_account = 9; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2842,8 +2514,6 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2860,14 +2530,15 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2875,8 +2546,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2893,22 +2562,18 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
      * 
* * string service_account = 9; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccount_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2925,7 +2590,6 @@ public Builder setServiceAccount(java.lang.String value) {
      * 
* * string service_account = 9; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -2935,8 +2599,6 @@ public Builder clearServiceAccount() { return this; } /** - * - * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2953,14 +2615,12 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 9; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000100; @@ -2969,14 +2629,11 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; - * * @return Whether the sourceContents field is set. */ @java.lang.Override @@ -2984,14 +2641,11 @@ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** - * - * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; - * * @return The sourceContents. */ @java.lang.Override @@ -3001,7 +2655,8 @@ public java.lang.String getSourceContents() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -3012,25 +2667,24 @@ public java.lang.String getSourceContents() { } } /** - * - * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; - * * @return The bytes for sourceContents. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceContentsBytes() { + public com.google.protobuf.ByteString + getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -3040,35 +2694,28 @@ public com.google.protobuf.ByteString getSourceContentsBytes() { } } /** - * - * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; - * * @param value The sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContents(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceContents( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceCodeCase_ = 10; sourceCode_ = value; onChanged(); return this; } /** - * - * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; - * * @return This builder for chaining. */ public Builder clearSourceContents() { @@ -3080,30 +2727,26 @@ public Builder clearSourceContents() { return this; } /** - * - * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; - * * @param value The bytes for sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContentsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceContentsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceCodeCase_ = 10; sourceCode_ = 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); } @@ -3113,12 +2756,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.Workflow) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.Workflow) private static final com.google.cloud.workflows.v1beta.Workflow DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.Workflow(); } @@ -3127,27 +2770,27 @@ public static com.google.cloud.workflows.v1beta.Workflow getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3162,4 +2805,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.Workflow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java similarity index 100% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java similarity index 78% rename from java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java rename to owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java index 9e16e08a562a..ce47962f1a29 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java @@ -1,114 +1,76 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface WorkflowOrBuilder - extends +public interface WorkflowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.Workflow) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. State of the workflow deployment.
    * 
* - * - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.workflows.v1beta.Workflow.State getState(); /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -121,13 +83,10 @@ public interface WorkflowOrBuilder
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The revisionId. */ java.lang.String getRevisionId(); /** - * - * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -140,134 +99,96 @@ public interface WorkflowOrBuilder
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString getRevisionIdBytes(); + com.google.protobuf.ByteString + getRevisionIdBytes(); /** - * - * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the revisionCreateTime field is set. */ boolean hasRevisionCreateTime(); /** - * - * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The revisionCreateTime. */ com.google.protobuf.Timestamp getRevisionCreateTime(); /** - * - * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); /** - * - * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -280,8 +201,6 @@ public interface WorkflowOrBuilder
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -292,13 +211,15 @@ public interface WorkflowOrBuilder
    *
    * map<string, string> labels = 8;
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -309,10 +230,9 @@ public interface WorkflowOrBuilder
    *
    * map<string, string> labels = 8;
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -324,13 +244,11 @@ public interface WorkflowOrBuilder
    * map<string, string> labels = 8;
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -341,11 +259,10 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8;
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -362,13 +279,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string service_account = 9; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -385,47 +299,39 @@ java.lang.String getLabelsOrDefault(
    * 
* * string service_account = 9; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; - * * @return Whether the sourceContents field is set. */ boolean hasSourceContents(); /** - * - * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; - * * @return The sourceContents. */ java.lang.String getSourceContents(); /** - * - * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; - * * @return The bytes for sourceContents. */ - com.google.protobuf.ByteString getSourceContentsBytes(); + com.google.protobuf.ByteString + getSourceContentsBytes(); com.google.cloud.workflows.v1beta.Workflow.SourceCodeCase getSourceCodeCase(); } diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java new file mode 100644 index 000000000000..18d7cd34f40e --- /dev/null +++ b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java @@ -0,0 +1,238 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1beta/workflows.proto + +package com.google.cloud.workflows.v1beta; + +public final class WorkflowsProto { + private WorkflowsProto() {} + 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_workflows_v1beta_Workflow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_OperationMetadata_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/workflows/v1beta/workflow" + + "s.proto\022\035google.cloud.workflows.v1beta\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/client.proto\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032#googl" + + "e/longrunning/operations.proto\032 google/p" + + "rotobuf/field_mask.proto\032\037google/protobu" + + "f/timestamp.proto\"\203\005\n\010Workflow\022\014\n\004name\030\001" + + " \001(\t\022\023\n\013description\030\002 \001(\t\022B\n\005state\030\003 \001(\016" + + "2-.google.cloud.workflows.v1beta.Workflo" + + "w.StateB\004\342A\001\003\022\031\n\013revision_id\030\004 \001(\tB\004\342A\001\003" + + "\0225\n\013create_time\030\005 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003\022>\n\024revisi" + + "on_create_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\022C\n\006labels\030\010 \003(\01323.google." + + "cloud.workflows.v1beta.Workflow.LabelsEn" + + "try\022\027\n\017service_account\030\t \001(\t\022\031\n\017source_c" + + "ontents\030\n \001(\tH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"*\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001:d\352Aa\n!workflo" + + "ws.googleapis.com/Workflow\022Note: close() needs to be called on the WorkstationsClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
GetWorkstationCluster

Returns the requested workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkstationCluster(GetWorkstationClusterRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkstationCluster(WorkstationClusterName name) + *
  • getWorkstationCluster(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkstationClusterCallable() + *
+ *
ListWorkstationClusters

Returns all workstation clusters in the specified location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkstationClusters(ListWorkstationClustersRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkstationClusters(LocationName parent) + *
  • listWorkstationClusters(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkstationClustersPagedCallable() + *
  • listWorkstationClustersCallable() + *
+ *
CreateWorkstationCluster

Creates a new workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkstationClusterAsync(CreateWorkstationClusterRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkstationClusterAsync(LocationName parent, WorkstationCluster workstationCluster, String workstationClusterId) + *
  • createWorkstationClusterAsync(String parent, WorkstationCluster workstationCluster, String workstationClusterId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkstationClusterOperationCallable() + *
  • createWorkstationClusterCallable() + *
+ *
UpdateWorkstationCluster

Updates an existing workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkstationClusterAsync(UpdateWorkstationClusterRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkstationClusterAsync(WorkstationCluster workstationCluster, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkstationClusterOperationCallable() + *
  • updateWorkstationClusterCallable() + *
+ *
DeleteWorkstationCluster

Deletes the specified workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkstationClusterAsync(DeleteWorkstationClusterRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkstationClusterAsync(WorkstationClusterName name) + *
  • deleteWorkstationClusterAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkstationClusterOperationCallable() + *
  • deleteWorkstationClusterCallable() + *
+ *
GetWorkstationConfig

Returns the requested workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkstationConfig(GetWorkstationConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkstationConfig(WorkstationConfigName name) + *
  • getWorkstationConfig(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkstationConfigCallable() + *
+ *
ListWorkstationConfigs

Returns all workstation configurations in the specified cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkstationConfigs(ListWorkstationConfigsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkstationConfigs(WorkstationClusterName parent) + *
  • listWorkstationConfigs(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkstationConfigsPagedCallable() + *
  • listWorkstationConfigsCallable() + *
+ *
ListUsableWorkstationConfigs

Returns all workstation configurations in the specified cluster on which the caller has the "workstations.workstation.create" permission.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listUsableWorkstationConfigs(WorkstationClusterName parent) + *
  • listUsableWorkstationConfigs(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listUsableWorkstationConfigsPagedCallable() + *
  • listUsableWorkstationConfigsCallable() + *
+ *
CreateWorkstationConfig

Creates a new workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkstationConfigAsync(CreateWorkstationConfigRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkstationConfigAsync(WorkstationClusterName parent, WorkstationConfig workstationConfig, String workstationConfigId) + *
  • createWorkstationConfigAsync(String parent, WorkstationConfig workstationConfig, String workstationConfigId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkstationConfigOperationCallable() + *
  • createWorkstationConfigCallable() + *
+ *
UpdateWorkstationConfig

Updates an existing workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkstationConfigAsync(UpdateWorkstationConfigRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkstationConfigAsync(WorkstationConfig workstationConfig, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkstationConfigOperationCallable() + *
  • updateWorkstationConfigCallable() + *
+ *
DeleteWorkstationConfig

Deletes the specified workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkstationConfigAsync(DeleteWorkstationConfigRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkstationConfigAsync(WorkstationConfigName name) + *
  • deleteWorkstationConfigAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkstationConfigOperationCallable() + *
  • deleteWorkstationConfigCallable() + *
+ *
GetWorkstation

Returns the requested workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkstation(GetWorkstationRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkstation(WorkstationName name) + *
  • getWorkstation(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkstationCallable() + *
+ *
ListWorkstations

Returns all Workstations using the specified workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkstations(ListWorkstationsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkstations(WorkstationConfigName parent) + *
  • listWorkstations(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkstationsPagedCallable() + *
  • listWorkstationsCallable() + *
+ *
ListUsableWorkstations

Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listUsableWorkstations(ListUsableWorkstationsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listUsableWorkstations(WorkstationConfigName parent) + *
  • listUsableWorkstations(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listUsableWorkstationsPagedCallable() + *
  • listUsableWorkstationsCallable() + *
+ *
CreateWorkstation

Creates a new workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkstationAsync(CreateWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkstationAsync(WorkstationConfigName parent, Workstation workstation, String workstationId) + *
  • createWorkstationAsync(String parent, Workstation workstation, String workstationId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkstationOperationCallable() + *
  • createWorkstationCallable() + *
+ *
UpdateWorkstation

Updates an existing workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkstationAsync(UpdateWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkstationAsync(Workstation workstation, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkstationOperationCallable() + *
  • updateWorkstationCallable() + *
+ *
DeleteWorkstation

Deletes the specified workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkstationAsync(DeleteWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkstationAsync(WorkstationName name) + *
  • deleteWorkstationAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkstationOperationCallable() + *
  • deleteWorkstationCallable() + *
+ *
StartWorkstation

Starts running a workstation so that users can connect to it.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • startWorkstationAsync(StartWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • startWorkstationAsync(WorkstationName name) + *
  • startWorkstationAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • startWorkstationOperationCallable() + *
  • startWorkstationCallable() + *
+ *
StopWorkstation

Stops running a workstation, reducing costs.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • stopWorkstationAsync(StopWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • stopWorkstationAsync(WorkstationName name) + *
  • stopWorkstationAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • stopWorkstationOperationCallable() + *
  • stopWorkstationCallable() + *
+ *
GenerateAccessToken

Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateAccessToken(GenerateAccessTokenRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • generateAccessToken(WorkstationName workstation) + *
  • generateAccessToken(String workstation) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateAccessTokenCallable() + *
+ *
SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • setIamPolicyCallable() + *
+ *
GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getIamPolicyCallable() + *
+ *
TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • testIamPermissionsCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java index 453c78db372f..60753ca0edfc 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.workstations.v1.stub.WorkstationsStubSettings; diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java index 5bafe32f9500..f5d0a2e7fe6d 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java @@ -70,6 +70,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/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java index bf256cb594fd..2f4f1a364d6d 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java @@ -35,6 +35,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java index fe8c98338e11..ca8378d7dabc 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java +++ b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java @@ -796,6 +796,12 @@ public WorkstationsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "workstations"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java b/owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java rename to owl-bot-staging/java-workstations/v1/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java diff --git a/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java b/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java new file mode 100644 index 000000000000..3a7c2462cd06 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java @@ -0,0 +1,1969 @@ +package com.google.cloud.workstations.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service for interacting with Cloud Workstations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.workstations.v1.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationMethod() { + io.grpc.MethodDescriptor getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationsMethod() { + io.grpc.MethodDescriptor getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { + io.grpc.MethodDescriptor getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartWorkstationMethod() { + io.grpc.MethodDescriptor getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopWorkstationMethod() { + io.grpc.MethodDescriptor getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WorkstationsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + default void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static abstract class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.Workstation getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation((com.google.cloud.workstations.v1.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations((com.google.cloud.workstations.v1.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation((com.google.cloud.workstations.v1.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation((com.google.cloud.workstations.v1.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation((com.google.cloud.workstations.v1.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation((com.google.cloud.workstations.v1.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken((com.google.cloud.workstations.v1.GenerateAccessTokenRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StopWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private static abstract class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java index 2a614abc84ef..19ec0f3f0404 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Message for creating a CreateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} */ -public final class CreateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationClusterRequest) CreateWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationClusterRequest.newBuilder() to construct. - private CreateWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationClusterRequest() { parent_ = ""; workstationClusterId_ = ""; @@ -45,40 +26,33 @@ private CreateWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -87,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationClusterId_ = ""; /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getWorkstationClusterId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -173,16 +141,11 @@ public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -190,55 +153,38 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -247,7 +193,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,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_); } @@ -288,10 +234,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); } if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationCluster()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -301,21 +249,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.workstations.v1.CreateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other = - (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationClusterId().equals(other.getWorkstationClusterId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationClusterId() + .equals(other.getWorkstationClusterId())) return false; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,143 +287,139 @@ public int hashCode() { hash = (53 * hash) + getWorkstationCluster().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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; } /** - * - * *
    * Message for creating a CreateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} */ - 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.workstations.v1.CreateWorkstationClusterRequest) com.google.cloud.workstations.v1.CreateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +436,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance(); } @@ -511,17 +457,13 @@ public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = - new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -530,10 +472,9 @@ private void buildPartial0( result.workstationClusterId_ = workstationClusterId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationCluster_ = - workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -544,50 +485,46 @@ private void buildPartial0( 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.workstations.v1.CreateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -630,38 +567,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationClusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -671,27 +604,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -700,23 +628,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -724,39 +649,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -766,23 +680,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -792,20 +700,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationClusterId_ = ""; /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ public java.lang.String getWorkstationClusterId() { java.lang.Object ref = workstationClusterId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; @@ -814,21 +720,20 @@ public java.lang.String getWorkstationClusterId() { } } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ - public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -836,35 +741,28 @@ public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationClusterId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationClusterId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationClusterId() { @@ -874,21 +772,17 @@ public Builder clearWorkstationClusterId() { return this; } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationClusterId_ = value; bitField0_ |= 0x00000002; @@ -898,61 +792,41 @@ public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> - workstationClusterBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationCluster( - com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -966,15 +840,11 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -988,23 +858,17 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationCluster( - com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstationCluster_ != null - && workstationCluster_ - != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -1017,15 +881,11 @@ public Builder mergeWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1038,82 +898,61 @@ public Builder clearWorkstationCluster() { return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder - getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( - getWorkstationCluster(), getParentForChildren(), isClean()); + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1121,15 +960,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1141,15 +977,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1158,9 +991,9 @@ public Builder clearValidateOnly() { 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); } @@ -1170,43 +1003,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.CreateWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.CreateWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1218,8 +1049,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java index ff29214ed206..1d9dbdb665c2 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationClusterRequestOrBuilder - extends +public interface CreateWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ java.lang.String getWorkstationClusterId(); /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ - com.google.protobuf.ByteString getWorkstationClusterIdBytes(); + com.google.protobuf.ByteString + getWorkstationClusterIdBytes(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java index c8f48b71855b..4bf2e023f380 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Message for creating a CreateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} */ -public final class CreateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationConfigRequest) CreateWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationConfigRequest.newBuilder() to construct. - private CreateWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationConfigRequest() { parent_ = ""; workstationConfigId_ = ""; @@ -45,40 +26,33 @@ private CreateWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -87,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationConfigId_ = ""; /** - * - * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getWorkstationConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -173,16 +141,11 @@ public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -190,55 +153,38 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -247,7 +193,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,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_); } @@ -288,10 +234,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); } if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -301,21 +249,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.workstations.v1.CreateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other = - (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationConfigId().equals(other.getWorkstationConfigId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationConfigId() + .equals(other.getWorkstationConfigId())) return false; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,143 +287,139 @@ public int hashCode() { hash = (53 * hash) + getWorkstationConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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; } /** - * - * *
    * Message for creating a CreateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} */ - 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.workstations.v1.CreateWorkstationConfigRequest) com.google.cloud.workstations.v1.CreateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -489,14 +436,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance(); } @@ -511,17 +457,13 @@ public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = - new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -530,10 +472,9 @@ private void buildPartial0( result.workstationConfigId_ = workstationConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationConfig_ = - workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -544,50 +485,46 @@ private void buildPartial0( 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.workstations.v1.CreateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -630,38 +567,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -671,27 +604,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -700,23 +628,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -724,39 +649,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -766,23 +680,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -792,20 +700,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationConfigId_ = ""; /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ public java.lang.String getWorkstationConfigId() { java.lang.Object ref = workstationConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; @@ -814,21 +720,20 @@ public java.lang.String getWorkstationConfigId() { } } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ - public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -836,35 +741,28 @@ public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationConfigId() { @@ -874,21 +772,17 @@ public Builder clearWorkstationConfigId() { return this; } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationConfigId_ = value; bitField0_ |= 0x00000002; @@ -898,58 +792,39 @@ public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> - workstationConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { @@ -965,15 +840,11 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.Workstation return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -987,23 +858,17 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationConfig( - com.google.cloud.workstations.v1.WorkstationConfig value) { + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstationConfig_ != null - && workstationConfig_ - != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -1016,15 +881,11 @@ public Builder mergeWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1037,82 +898,61 @@ public Builder clearWorkstationConfig() { return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder - getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( - getWorkstationConfig(), getParentForChildren(), isClean()); + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1120,15 +960,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1140,15 +977,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1157,9 +991,9 @@ public Builder clearValidateOnly() { 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); } @@ -1169,43 +1003,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.CreateWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.CreateWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1217,8 +1049,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java index 35bd57b14bb9..4ebd4cb0bbd7 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationConfigRequestOrBuilder - extends +public interface CreateWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ java.lang.String getWorkstationConfigId(); /** - * - * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ - com.google.protobuf.ByteString getWorkstationConfigIdBytes(); + com.google.protobuf.ByteString + getWorkstationConfigIdBytes(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java index aa9a085b4c07..e55b12408051 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Message for creating a CreateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} */ -public final class CreateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationRequest) CreateWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationRequest.newBuilder() to construct. private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationRequest() { parent_ = ""; workstationId_ = ""; @@ -44,40 +26,33 @@ private CreateWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationRequest.class, - com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -119,18 +92,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationId_ = ""; /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ @java.lang.Override @@ -139,29 +108,29 @@ public java.lang.String getWorkstationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationIdBytes() { + public com.google.protobuf.ByteString + getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationId_ = b; return b; } else { @@ -172,16 +141,11 @@ public com.google.protobuf.ByteString getWorkstationIdBytes() { public static final int WORKSTATION_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.Workstation workstation_; /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ @java.lang.Override @@ -189,54 +153,38 @@ public boolean hasWorkstation() { return workstation_ != null; } /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation getWorkstation() { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -245,7 +193,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,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_); } @@ -286,10 +234,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); } if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstation()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,21 +249,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.workstations.v1.CreateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationRequest other = - (com.google.cloud.workstations.v1.CreateWorkstationRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationRequest other = (com.google.cloud.workstations.v1.CreateWorkstationRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationId().equals(other.getWorkstationId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationId() + .equals(other.getWorkstationId())) return false; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,143 +287,139 @@ public int hashCode() { hash = (53 * hash) + getWorkstation().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.CreateWorkstationRequest 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; } /** - * - * *
    * Message for creating a CreateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} */ - 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.workstations.v1.CreateWorkstationRequest) com.google.cloud.workstations.v1.CreateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationRequest.class, - com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +436,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override @@ -508,11 +457,8 @@ public com.google.cloud.workstations.v1.CreateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationRequest result = - new com.google.cloud.workstations.v1.CreateWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.CreateWorkstationRequest result = new com.google.cloud.workstations.v1.CreateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -526,8 +472,9 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationReq result.workstationId_ = workstationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstation_ = - workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -538,39 +485,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationReq 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.workstations.v1.CreateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -578,8 +524,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,37 +567,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -662,27 +604,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -691,23 +628,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -715,39 +649,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -757,23 +680,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -783,20 +700,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationId_ = ""; /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ public java.lang.String getWorkstationId() { java.lang.Object ref = workstationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; @@ -805,21 +720,20 @@ public java.lang.String getWorkstationId() { } } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ - public com.google.protobuf.ByteString getWorkstationIdBytes() { + public com.google.protobuf.ByteString + getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationId_ = b; return b; } else { @@ -827,35 +741,28 @@ public com.google.protobuf.ByteString getWorkstationIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationId() { @@ -865,21 +772,17 @@ public Builder clearWorkstationId() { return this; } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationId_ = value; bitField0_ |= 0x00000002; @@ -889,58 +792,39 @@ public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workstations.v1.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> - workstationBuilder_; + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ public com.google.cloud.workstations.v1.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } else { return workstationBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { @@ -956,15 +840,11 @@ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation( com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { @@ -978,21 +858,17 @@ public Builder setWorkstation( return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstation_ != null - && workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -1005,15 +881,11 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation val return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1026,15 +898,11 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000004; @@ -1042,64 +910,49 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilde return getWorkstationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? + com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder>( - getWorkstation(), getParentForChildren(), isClean()); + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); workstation_ = null; } return workstationBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1107,15 +960,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1127,15 +977,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1144,9 +991,9 @@ public Builder clearValidateOnly() { 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); } @@ -1156,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationRequest) private static final com.google.cloud.workstations.v1.CreateWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationRequest(); } @@ -1170,27 +1017,27 @@ public static com.google.cloud.workstations.v1.CreateWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1205,4 +1052,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.CreateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java similarity index 53% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java index 477a40e448fb..9790e3a3f1d1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationRequestOrBuilder - extends +public interface CreateWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ java.lang.String getWorkstationId(); /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ - com.google.protobuf.ByteString getWorkstationIdBytes(); + com.google.protobuf.ByteString + getWorkstationIdBytes(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ com.google.cloud.workstations.v1.Workstation getWorkstation(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java index acd774c4ce43..e042865e14c7 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Message for deleting a workstation cluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} */ -public final class DeleteWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) DeleteWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationClusterRequest.newBuilder() to construct. - private DeleteWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationClusterRequest() { name_ = ""; etag_ = ""; @@ -45,40 +26,33 @@ private DeleteWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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 @@ -87,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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 { @@ -122,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -139,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -160,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -194,8 +159,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** - * - * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -203,7 +166,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -212,7 +174,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +185,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_); } @@ -250,13 +212,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -266,18 +230,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.workstations.v1.DeleteWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other = - (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,147 +259,144 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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; } /** - * - * *
    * Message for deleting a workstation cluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} */ - 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.workstations.v1.DeleteWorkstationClusterRequest) com.google.cloud.workstations.v1.DeleteWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -445,14 +409,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance(); } @@ -467,17 +430,13 @@ public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = - new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -497,50 +456,46 @@ private void buildPartial0( 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.workstations.v1.DeleteWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -583,37 +538,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,27 +573,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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; @@ -652,23 +597,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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 { @@ -676,39 +618,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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() { @@ -718,23 +649,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -742,17 +667,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -760,15 +682,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -780,15 +699,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -800,21 +716,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -823,22 +737,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -846,37 +759,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -886,22 +792,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -909,10 +811,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -920,7 +820,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -928,8 +827,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -937,7 +834,6 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ @@ -949,8 +845,6 @@ public Builder setForce(boolean value) { return this; } /** - * - * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -958,7 +852,6 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -967,9 +860,9 @@ public Builder clearForce() { 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); } @@ -979,43 +872,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,8 +918,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java index 58b14e245933..5022d126ebf1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationClusterRequestOrBuilder - extends +public interface DeleteWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -103,7 +68,6 @@ public interface DeleteWorkstationClusterRequestOrBuilder
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java index 13b0c9567591..3f49f213c613 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Message for deleting a workstation configuration.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} */ -public final class DeleteWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) DeleteWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationConfigRequest.newBuilder() to construct. - private DeleteWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationConfigRequest() { name_ = ""; etag_ = ""; @@ -45,40 +26,33 @@ private DeleteWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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 @@ -87,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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 { @@ -122,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -139,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -160,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -194,8 +159,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** - * - * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -203,7 +166,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -212,7 +174,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +185,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_); } @@ -250,13 +212,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -266,18 +230,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.workstations.v1.DeleteWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other = - (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,147 +259,144 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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; } /** - * - * *
    * Message for deleting a workstation configuration.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} */ - 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.workstations.v1.DeleteWorkstationConfigRequest) com.google.cloud.workstations.v1.DeleteWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -445,14 +409,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance(); } @@ -467,17 +430,13 @@ public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = - new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -497,50 +456,46 @@ private void buildPartial0( 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.workstations.v1.DeleteWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -583,37 +538,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -623,27 +573,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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; @@ -652,23 +597,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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 { @@ -676,39 +618,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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() { @@ -718,23 +649,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -742,17 +667,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -760,15 +682,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -780,15 +699,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -800,21 +716,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -823,22 +737,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -846,37 +759,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -886,22 +792,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -909,10 +811,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -920,7 +820,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -928,8 +827,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -937,7 +834,6 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ @@ -949,8 +845,6 @@ public Builder setForce(boolean value) { return this; } /** - * - * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -958,7 +852,6 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -967,9 +860,9 @@ public Builder clearForce() { 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); } @@ -979,43 +872,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,8 +918,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java index 25c45d84e96e..062216b81199 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationConfigRequestOrBuilder - extends +public interface DeleteWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -103,7 +68,6 @@ public interface DeleteWorkstationConfigRequestOrBuilder
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java index 77f4a5789a86..237ae69cf4e7 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for DeleteWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} */ -public final class DeleteWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationRequest) DeleteWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationRequest.newBuilder() to construct. private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,40 +26,33 @@ private DeleteWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, - com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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 @@ -86,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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 { @@ -121,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -138,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -159,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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_); } @@ -226,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -239,17 +206,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.workstations.v1.DeleteWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationRequest other = - (com.google.cloud.workstations.v1.DeleteWorkstationRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,7 +233,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -273,136 +243,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.DeleteWorkstationRequest 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 message for DeleteWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} */ - 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.workstations.v1.DeleteWorkstationRequest) com.google.cloud.workstations.v1.DeleteWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, - com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override @@ -435,11 +400,8 @@ public com.google.cloud.workstations.v1.DeleteWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationRequest result = - new com.google.cloud.workstations.v1.DeleteWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -461,39 +423,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationReq 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.workstations.v1.DeleteWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -501,8 +462,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -542,31 +502,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,27 +532,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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; @@ -605,23 +556,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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 { @@ -629,39 +577,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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() { @@ -671,23 +608,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -695,17 +626,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -713,15 +641,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -733,15 +658,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -753,21 +675,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -776,22 +696,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -799,37 +718,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -839,31 +751,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -873,12 +781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) private static final com.google.cloud.workstations.v1.DeleteWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(); } @@ -887,27 +795,27 @@ public static com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java similarity index 57% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java index 4986c6a20462..c17e8ff9fb92 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationRequestOrBuilder - extends +public interface DeleteWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java similarity index 70% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java index eacc458f4a38..aa97a59e196b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} */ -public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateAccessTokenRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenRequest) GenerateAccessTokenRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateAccessTokenRequest.newBuilder() to construct. private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateAccessTokenRequest() { workstation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateAccessTokenRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); } private int expirationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object expiration_; - public enum ExpirationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(2), TTL(3), EXPIRATION_NOT_SET(0); private final int value; - private ExpirationCase(int value) { this.value = value; } @@ -91,30 +68,25 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 2: - return EXPIRE_TIME; - case 3: - return TTL; - case 0: - return EXPIRATION_NOT_SET; - default: - return null; + case 2: return EXPIRE_TIME; + case 3: return TTL; + case 0: return EXPIRATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public static final int EXPIRE_TIME_FIELD_NUMBER = 2; /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -123,7 +95,6 @@ public ExpirationCase getExpirationCase() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -131,8 +102,6 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -141,19 +110,16 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 2) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -166,15 +132,13 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 2) {
-      return (com.google.protobuf.Timestamp) expiration_;
+       return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -182,7 +146,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -190,8 +153,6 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -199,19 +160,16 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 3) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -223,27 +181,21 @@ public com.google.protobuf.Duration getTtl() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
     if (expirationCase_ == 3) {
-      return (com.google.protobuf.Duration) expiration_;
+       return (com.google.protobuf.Duration) expiration_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   public static final int WORKSTATION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object workstation_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ @java.lang.Override @@ -252,32 +204,30 @@ public java.lang.String getWorkstation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; } } /** - * - * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationBytes() { + public com.google.protobuf.ByteString + getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstation_ = b; return b; } else { @@ -286,7 +236,6 @@ public com.google.protobuf.ByteString getWorkstationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,7 +247,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(workstation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_); } @@ -321,14 +271,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_); } if (expirationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Timestamp) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.protobuf.Duration) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.protobuf.Duration) expiration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -338,22 +286,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.workstations.v1.GenerateAccessTokenRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GenerateAccessTokenRequest other = - (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) obj; + com.google.cloud.workstations.v1.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) obj; - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 2: - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; break; case 3: - if (!getTtl().equals(other.getTtl())) return false; + if (!getTtl() + .equals(other.getTtl())) return false; break; case 0: default: @@ -389,136 +339,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} */ - 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.workstations.v1.GenerateAccessTokenRequest) com.google.cloud.workstations.v1.GenerateAccessTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override @@ -557,11 +502,8 @@ public com.google.cloud.workstations.v1.GenerateAccessTokenRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GenerateAccessTokenRequest buildPartial() { - com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = - new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -574,14 +516,15 @@ private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenR } } - private void buildPartialOneofs( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { result.expirationCase_ = expirationCase_; result.expiration_ = this.expiration_; - if (expirationCase_ == 2 && expireTimeBuilder_ != null) { + if (expirationCase_ == 2 && + expireTimeBuilder_ != null) { result.expiration_ = expireTimeBuilder_.build(); } - if (expirationCase_ == 3 && ttlBuilder_ != null) { + if (expirationCase_ == 3 && + ttlBuilder_ != null) { result.expiration_ = ttlBuilder_.build(); } } @@ -590,39 +533,38 @@ private void buildPartialOneofs( 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.workstations.v1.GenerateAccessTokenRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenRequest)other); } else { super.mergeFrom(other); return this; @@ -630,28 +572,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenRequest other) { - if (other == com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance()) return this; if (!other.getWorkstation().isEmpty()) { workstation_ = other.workstation_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: - { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: - { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: - { - break; - } + case EXPIRE_TIME: { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -679,31 +617,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - workstation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - expirationCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); - expirationCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getTtlFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,12 +651,12 @@ public Builder mergeFrom( } // finally return this; } - private int expirationCase_ = 0; private java.lang.Object expiration_; - - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public Builder clearExpiration() { @@ -731,13 +669,8 @@ public Builder clearExpiration() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -746,7 +679,6 @@ public Builder clearExpiration() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -754,8 +686,6 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -764,7 +694,6 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -782,8 +711,6 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -807,8 +734,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -818,7 +743,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -829,8 +755,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -842,12 +766,10 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 2
-            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (expirationCase_ == 2 &&
+            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+              .mergeFrom(value).buildPartial();
         } else {
           expiration_ = value;
         }
@@ -863,8 +785,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -891,8 +811,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -906,8 +824,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -929,8 +845,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -941,20 +855,17 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     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> 
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 2)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
+        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_,
+                getParentForChildren(),
+                isClean());
         expiration_ = null;
       }
       expirationCase_ = 2;
@@ -963,13 +874,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        ttlBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -977,7 +883,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -985,8 +890,6 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** - * - * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -994,7 +897,6 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ @java.lang.Override @@ -1012,8 +914,6 @@ public com.google.protobuf.Duration getTtl() { } } /** - * - * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1036,8 +936,6 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1046,7 +944,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 3;
      */
-    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -1057,8 +956,6 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1069,12 +966,10 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (expirationCase_ == 3
-            && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          expiration_ =
-              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (expirationCase_ == 3 &&
+            expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+              .mergeFrom(value).buildPartial();
         } else {
           expiration_ = value;
         }
@@ -1090,8 +985,6 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1117,8 +1010,6 @@ public Builder clearTtl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1131,8 +1022,6 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1153,8 +1042,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1164,20 +1051,17 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
         if (!(expirationCase_ == 3)) {
           expiration_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        ttlBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
+        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) expiration_,
+                getParentForChildren(),
+                isClean());
         expiration_ = null;
       }
       expirationCase_ = 3;
@@ -1187,23 +1071,19 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
 
     private java.lang.Object workstation_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ public java.lang.String getWorkstation() { java.lang.Object ref = workstation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; @@ -1212,24 +1092,21 @@ public java.lang.String getWorkstation() { } } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ - public com.google.protobuf.ByteString getWorkstationBytes() { + public com.google.protobuf.ByteString + getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstation_ = b; return b; } else { @@ -1237,41 +1114,30 @@ public com.google.protobuf.ByteString getWorkstationBytes() { } } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The workstation to set. * @return This builder for chaining. */ - public Builder setWorkstation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstation_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearWorkstation() { @@ -1281,33 +1147,27 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for workstation to set. * @return This builder for chaining. */ - public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstation_ = value; bitField0_ |= 0x00000004; 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); } @@ -1317,12 +1177,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) private static final com.google.cloud.workstations.v1.GenerateAccessTokenRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(); } @@ -1331,27 +1191,27 @@ public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,4 +1226,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java similarity index 73% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java index 0dfc57c77b87..8f6b38778b6b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface GenerateAccessTokenRequestOrBuilder - extends +public interface GenerateAccessTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -34,13 +16,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -49,13 +28,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -68,8 +44,6 @@ public interface GenerateAccessTokenRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -77,13 +51,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ boolean hasTtl(); /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -91,13 +62,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -109,35 +77,26 @@ public interface GenerateAccessTokenRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ java.lang.String getWorkstation(); /** - * - * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ - com.google.protobuf.ByteString getWorkstationBytes(); + com.google.protobuf.ByteString + getWorkstationBytes(); com.google.cloud.workstations.v1.GenerateAccessTokenRequest.ExpirationCase getExpirationCase(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java index 0840fc42c59e..c5d46fc07268 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Response message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} */ -public final class GenerateAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateAccessTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenResponse) GenerateAccessTokenResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateAccessTokenResponse.newBuilder() to construct. private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateAccessTokenResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateAccessTokenResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object accessToken_ = ""; /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -77,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string access_token = 1; - * * @return The accessToken. */ @java.lang.Override @@ -86,15 +63,14 @@ public java.lang.String getAccessToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; } } /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -103,15 +79,16 @@ public java.lang.String getAccessToken() {
    * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessTokenBytes() { + public com.google.protobuf.ByteString + getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessToken_ = b; return b; } else { @@ -122,14 +99,11 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -137,14 +111,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -152,8 +123,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Time at which the generated token will expire.
    * 
@@ -166,7 +135,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +146,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(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -198,7 +167,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,18 +178,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.workstations.v1.GenerateAccessTokenResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GenerateAccessTokenResponse other = - (com.google.cloud.workstations.v1.GenerateAccessTokenResponse) obj; + com.google.cloud.workstations.v1.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1.GenerateAccessTokenResponse) obj; - if (!getAccessToken().equals(other.getAccessToken())) return false; + if (!getAccessToken() + .equals(other.getAccessToken())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -244,136 +215,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} */ - 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.workstations.v1.GenerateAccessTokenResponse) com.google.cloud.workstations.v1.GenerateAccessTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -388,14 +354,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GenerateAccessTokenResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance(); } @@ -410,23 +375,21 @@ public com.google.cloud.workstations.v1.GenerateAccessTokenResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.GenerateAccessTokenResponse buildPartial() { - com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = - new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accessToken_ = accessToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } } @@ -434,39 +397,38 @@ private void buildPartial0( 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.workstations.v1.GenerateAccessTokenResponse) { - return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenResponse) other); + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenResponse)other); } else { super.mergeFrom(other); return this; @@ -474,9 +436,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenResponse other) { - if (other - == com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance()) return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; bitField0_ |= 0x00000001; @@ -511,25 +471,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - accessToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -539,13 +498,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accessToken_ = ""; /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -554,13 +510,13 @@ public Builder mergeFrom(
      * 
* * string access_token = 1; - * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; @@ -569,8 +525,6 @@ public java.lang.String getAccessToken() { } } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -579,14 +533,15 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString getAccessTokenBytes() { + public com.google.protobuf.ByteString + getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessToken_ = b; return b; } else { @@ -594,8 +549,6 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { } } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -604,22 +557,18 @@ public com.google.protobuf.ByteString getAccessTokenBytes() {
      * 
* * string access_token = 1; - * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -628,7 +577,6 @@ public Builder setAccessToken(java.lang.String value) {
      * 
* * string access_token = 1; - * * @return This builder for chaining. */ public Builder clearAccessToken() { @@ -638,8 +586,6 @@ public Builder clearAccessToken() { return this; } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -648,14 +594,12 @@ public Builder clearAccessToken() {
      * 
* * string access_token = 1; - * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessToken_ = value; bitField0_ |= 0x00000001; @@ -665,47 +609,34 @@ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -726,15 +657,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -745,8 +675,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -755,9 +683,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -770,8 +698,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -789,8 +715,6 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -803,8 +727,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -815,14 +737,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -830,24 +749,21 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_time = 2; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - @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); } @@ -857,13 +773,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GenerateAccessTokenResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenResponse) - private static final com.google.cloud.workstations.v1.GenerateAccessTokenResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.GenerateAccessTokenResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(); } @@ -872,27 +787,27 @@ public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -907,4 +822,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java index 36a22f58c3e1..981ec55c5cf2 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface GenerateAccessTokenResponseOrBuilder - extends +public interface GenerateAccessTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -34,13 +16,10 @@ public interface GenerateAccessTokenResponseOrBuilder
    * 
* * string access_token = 1; - * * @return The accessToken. */ java.lang.String getAccessToken(); /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -49,38 +28,30 @@ public interface GenerateAccessTokenResponseOrBuilder
    * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString getAccessTokenBytes(); + com.google.protobuf.ByteString + getAccessTokenBytes(); /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Time at which the generated token will expire.
    * 
diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java similarity index 60% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java index cb3d1e15416a..6d7cb204ec0d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for GetWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} */ -public final class GetWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationClusterRequest) GetWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationClusterRequest.newBuilder() to construct. private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationClusterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -85,31 +60,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; } } /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.workstations.v1.GetWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationClusterRequest other = - (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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 message for GetWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} */ - 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.workstations.v1.GetWorkstationClusterRequest) com.google.cloud.workstations.v1.GetWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,14 +289,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GetWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance(); } @@ -343,17 +310,13 @@ public com.google.cloud.workstations.v1.GetWorkstationClusterRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = - new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -364,39 +327,38 @@ private void buildPartial0( 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.workstations.v1.GetWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; @@ -404,9 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -438,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -489,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -513,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -555,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -590,13 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.GetWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.GetWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(); } @@ -605,27 +537,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +572,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..de5face476b3 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java similarity index 60% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java index a67c482bf8cc..32651e977e52 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for GetWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} */ -public final class GetWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationConfigRequest) GetWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationConfigRequest.newBuilder() to construct. private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -85,31 +60,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; } } /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.workstations.v1.GetWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationConfigRequest other = - (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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 message for GetWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} */ - 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.workstations.v1.GetWorkstationConfigRequest) com.google.cloud.workstations.v1.GetWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,14 +289,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GetWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance(); } @@ -343,17 +310,13 @@ public com.google.cloud.workstations.v1.GetWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = - new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -364,39 +327,38 @@ private void buildPartial0( 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.workstations.v1.GetWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; @@ -404,9 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -438,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -489,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -513,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -555,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -590,13 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.GetWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.GetWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(); } @@ -605,27 +537,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +572,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..82930ab5dfad --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java index 326aa9708e83..eb8e03a55b2f 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for GetWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} */ -public final class GetWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationRequest) GetWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationRequest.newBuilder() to construct. private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationRequest.class, - com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -85,31 +60,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; } } /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.workstations.v1.GetWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationRequest other = - (com.google.cloud.workstations.v1.GetWorkstationRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationRequest other = (com.google.cloud.workstations.v1.GetWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.GetWorkstationRequest 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 message for GetWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} */ - 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.workstations.v1.GetWorkstationRequest) com.google.cloud.workstations.v1.GetWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationRequest.class, - com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.cloud.workstations.v1.GetWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationRequest result = - new com.google.cloud.workstations.v1.GetWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.GetWorkstationRequest result = new com.google.cloud.workstations.v1.GetWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +327,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationReques 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.workstations.v1.GetWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -486,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -510,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -552,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -587,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationRequest) private static final com.google.cloud.workstations.v1.GetWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationRequest(); } @@ -601,27 +537,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..83c5b482bd3f --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java index 9549d02a5d1d..993fb0c79e83 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java @@ -1,44 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} */ -public final class ListUsableWorkstationConfigsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) ListUsableWorkstationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. - private ListUsableWorkstationConfigsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,40 +26,33 @@ private ListUsableWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -88,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -123,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -139,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -160,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -192,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +167,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_); } @@ -227,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -240,17 +205,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.workstations.v1.ListUsableWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other = - (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -274,138 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - 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.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} */ - 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.workstations.v1.ListUsableWorkstationConfigsRequest) com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -417,16 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance(); } @java.lang.Override @@ -440,17 +398,13 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest buil @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = - new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -467,51 +421,46 @@ private void buildPartial0( 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.workstations.v1.ListUsableWorkstationConfigsRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other) { - if (other - == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other) { + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -551,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -614,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -638,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -680,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -704,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -721,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -740,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -759,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -782,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -805,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -845,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -879,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -927,8 +822,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java index 09685e4d0219..6c72875a9192 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationConfigsRequestOrBuilder - extends +public interface ListUsableWorkstationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java index 98e0a7cf598a..647dbcf1f902 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java @@ -1,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Response message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} */ -public final class ListUsableWorkstationConfigsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) ListUsableWorkstationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. - private ListUsableWorkstationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstationConfigs_; /** - * - * *
    * The requested configs.
    * 
@@ -80,13 +57,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
@@ -94,13 +68,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
@@ -112,8 +84,6 @@ public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** - * - * *
    * The requested configs.
    * 
@@ -125,8 +95,6 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( return workstationConfigs_.get(index); } /** - * - * *
    * The requested configs.
    * 
@@ -140,19 +108,15 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -161,30 +125,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 { @@ -193,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -241,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +221,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -289,8 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -311,17 +264,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.workstations.v1.ListUsableWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other = - (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,138 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - 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.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} */ - 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.workstations.v1.ListUsableWorkstationConfigsResponse) com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -493,21 +441,20 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -521,18 +468,14 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse bui @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = - new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -544,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -560,51 +502,46 @@ private void buildPartial0( 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.workstations.v1.ListUsableWorkstationConfigsResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other) { - if (other - == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -623,10 +560,9 @@ public Builder mergeFrom( workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationConfigsFieldBuilder() - : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -673,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -716,39 +648,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = - new java.util.ArrayList( - workstationConfigs_); + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> - workstationConfigsBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -756,14 +677,11 @@ private void ensureWorkstationConfigsIsMutable() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -773,14 +691,11 @@ public int getWorkstationConfigsCount() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -790,14 +705,11 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -814,14 +726,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -835,14 +744,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { @@ -858,14 +764,11 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.Workstatio return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -882,14 +785,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -903,14 +803,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -924,20 +821,18 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addAllWorkstationConfigs( java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -945,14 +840,11 @@ public Builder addAllWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -965,14 +857,11 @@ public Builder clearWorkstationConfigs() { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -985,49 +874,39 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); - } else { + return workstationConfigs_.get(index); } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1035,62 +914,45 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstation } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder - addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( int index) { - return getWorkstationConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1102,21 +964,19 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstation 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; @@ -1125,22 +985,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 { @@ -1148,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1188,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1213,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1221,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1265,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1303,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1325,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1384,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1396,43 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1444,8 +1263,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java similarity index 73% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java index 343defcdca12..edba880d6698 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationConfigsResponseOrBuilder - extends +public interface ListUsableWorkstationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List getWorkstationConfigsList(); + java.util.List + getWorkstationConfigsList(); /** - * - * *
    * The requested configs.
    * 
@@ -44,8 +25,6 @@ public interface ListUsableWorkstationConfigsResponseOrBuilder */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); /** - * - * *
    * The requested configs.
    * 
@@ -54,19 +33,15 @@ public interface ListUsableWorkstationConfigsResponseOrBuilder */ int getWorkstationConfigsCount(); /** - * - * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** - * - * *
    * The requested configs.
    * 
@@ -77,80 +52,65 @@ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfig 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java similarity index 64% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java index 53f3a63d0696..6dc344027dc1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} */ -public final class ListUsableWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsRequest) ListUsableWorkstationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsRequest.newBuilder() to construct. private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,40 +26,33 @@ private ListUsableWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -121,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -137,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,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_); } @@ -225,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -238,17 +205,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.workstations.v1.ListUsableWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other = - (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,136 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} */ - 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.workstations.v1.ListUsableWorkstationsRequest) com.google.cloud.workstations.v1.ListUsableWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,14 +377,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance(); } @@ -435,17 +398,13 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = - new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -462,39 +421,38 @@ private void buildPartial0( 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.workstations.v1.ListUsableWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest)other); } else { super.mergeFrom(other); return this; @@ -502,9 +460,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other) { - if (other - == com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -544,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -607,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -631,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -673,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -697,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -714,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -733,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -752,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -775,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -798,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -838,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -872,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,8 +822,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java index 40dd9fe367bf..08013e36d027 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationsRequestOrBuilder - extends +public interface ListUsableWorkstationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java similarity index 70% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java index e62334e7a6af..6da899b1d4fe 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java @@ -1,77 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Response message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} */ -public final class ListUsableWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsResponse) ListUsableWorkstationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsResponse.newBuilder() to construct. - private ListUsableWorkstationsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstations_; /** - * - * *
    * The requested workstations.
    * 
@@ -83,8 +61,6 @@ public java.util.List getWorkstati return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -92,13 +68,11 @@ public java.util.List getWorkstati * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -110,8 +84,6 @@ public int getWorkstationsCount() { return workstations_.size(); } /** - * - * *
    * The requested workstations.
    * 
@@ -123,8 +95,6 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { return workstations_.get(index); } /** - * - * *
    * The requested workstations.
    * 
@@ -132,24 +102,21 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index) { return workstations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -158,30 +125,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 { @@ -190,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -238,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +221,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -286,7 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -307,17 +264,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.workstations.v1.ListUsableWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other = - (com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) obj; - if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -345,136 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} */ - 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.workstations.v1.ListUsableWorkstationsResponse) com.google.cloud.workstations.v1.ListUsableWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -487,19 +441,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance(); } @@ -514,18 +468,14 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = - new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(this); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -537,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -553,50 +502,46 @@ private void buildPartial0( 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.workstations.v1.ListUsableWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other) { - if (other - == com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other) { + if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -615,10 +560,9 @@ public Builder mergeFrom( workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationsFieldBuilder() - : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -665,39 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1.Workstation.parser(), extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -707,29 +648,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = - new java.util.ArrayList(workstations_); + workstations_ = new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> - workstationsBuilder_; + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; /** - * - * *
      * The requested workstations.
      * 
@@ -744,8 +677,6 @@ public java.util.List getWorkstati } } /** - * - * *
      * The requested workstations.
      * 
@@ -760,8 +691,6 @@ public int getWorkstationsCount() { } } /** - * - * *
      * The requested workstations.
      * 
@@ -776,15 +705,14 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder setWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -798,8 +726,6 @@ public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Works return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -818,8 +744,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -840,15 +764,14 @@ public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation valu return this; } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder addWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -862,8 +785,6 @@ public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Works return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -882,8 +803,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -902,8 +821,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -914,7 +831,8 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -922,8 +840,6 @@ public Builder addAllWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -941,8 +857,6 @@ public Builder clearWorkstations() { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -960,20 +874,17 @@ public Builder removeWorkstations(int index) { return this; } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder(int index) { + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( + int index) { return getWorkstationsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstations.
      * 
@@ -983,22 +894,19 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuild public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); - } else { + return workstations_.get(index); } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -1006,8 +914,6 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu } } /** - * - * *
      * The requested workstations.
      * 
@@ -1015,48 +921,42 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder(int index) { - return getWorkstationsFieldBuilder() - .addBuilder(index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( + int index) { + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder>( - workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workstations_ = null; } return workstationsBuilder_; @@ -1064,21 +964,19 @@ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuild 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; @@ -1087,22 +985,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 { @@ -1110,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1150,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1175,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1183,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1227,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1265,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1287,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1346,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1358,43 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1406,8 +1263,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java similarity index 71% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java index 571b94ec213d..cd01e585b84e 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationsResponseOrBuilder - extends +public interface ListUsableWorkstationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List getWorkstationsList(); + java.util.List + getWorkstationsList(); /** - * - * *
    * The requested workstations.
    * 
@@ -44,8 +25,6 @@ public interface ListUsableWorkstationsResponseOrBuilder */ com.google.cloud.workstations.v1.Workstation getWorkstations(int index); /** - * - * *
    * The requested workstations.
    * 
@@ -54,102 +33,84 @@ public interface ListUsableWorkstationsResponseOrBuilder */ int getWorkstationsCount(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index); + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java index 717db770ed21..08725290ac7e 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} */ -public final class ListWorkstationClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersRequest) ListWorkstationClustersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationClustersRequest.newBuilder() to construct. - private ListWorkstationClustersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationClustersRequest() { parent_ = ""; pageToken_ = ""; @@ -45,40 +26,33 @@ private ListWorkstationClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationClustersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -87,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -122,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -138,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -159,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -191,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +167,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_); } @@ -226,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -239,17 +205,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.workstations.v1.ListWorkstationClustersRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationClustersRequest other = - (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,136 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} */ - 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.workstations.v1.ListWorkstationClustersRequest) com.google.cloud.workstations.v1.ListWorkstationClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +377,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance(); } @@ -436,17 +398,13 @@ public com.google.cloud.workstations.v1.ListWorkstationClustersRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationClustersRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = - new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -463,50 +421,46 @@ private void buildPartial0( 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.workstations.v1.ListWorkstationClustersRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest other) { - if (other - == com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersRequest other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -546,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -580,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -609,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -633,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -675,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -699,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -716,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -735,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -754,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -777,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -800,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -840,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -874,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) - private static final com.google.cloud.workstations.v1.ListWorkstationClustersRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListWorkstationClustersRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,8 +822,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java index bd71a096bdc7..e7210f22b7eb 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationClustersRequestOrBuilder - extends +public interface ListWorkstationClustersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java index 96b9adf4f8e5..45e513c64c67 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java @@ -1,162 +1,122 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Response message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} */ -public final class ListWorkstationClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersResponse) ListWorkstationClustersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationClustersResponse.newBuilder() to construct. - private ListWorkstationClustersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationClustersResponse() { workstationClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationClustersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); } public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstationClusters_; /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public java.util.List - getWorkstationClustersList() { + public java.util.List getWorkstationClustersList() { return workstationClusters_; } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationClustersOrBuilderList() { return workstationClusters_; } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override public int getWorkstationClustersCount() { return workstationClusters_.size(); } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { return workstationClusters_.get(index); } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder - getWorkstationClustersOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { return workstationClusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -165,30 +125,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 { @@ -197,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -245,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +221,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 < workstationClusters_.size(); i++) { output.writeMessage(1, workstationClusters_.get(i)); } @@ -293,8 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationClusters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationClusters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationClusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -315,17 +264,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.workstations.v1.ListWorkstationClustersResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationClustersResponse other = - (com.google.cloud.workstations.v1.ListWorkstationClustersResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1.ListWorkstationClustersResponse) obj; - if (!getWorkstationClustersList().equals(other.getWorkstationClustersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationClustersList() + .equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,136 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} */ - 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.workstations.v1.ListWorkstationClustersResponse) com.google.cloud.workstations.v1.ListWorkstationClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -495,19 +441,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance(); } @@ -522,18 +468,14 @@ public com.google.cloud.workstations.v1.ListWorkstationClustersResponse build() @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationClustersResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = - new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(this); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { if (workstationClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); @@ -545,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -561,50 +502,46 @@ private void buildPartial0( 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.workstations.v1.ListWorkstationClustersResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersResponse) other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse other) { - if (other - == com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersResponse other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance()) return this; if (workstationClustersBuilder_ == null) { if (!other.workstationClusters_.isEmpty()) { if (workstationClusters_.isEmpty()) { @@ -623,10 +560,9 @@ public Builder mergeFrom( workstationClustersBuilder_ = null; workstationClusters_ = other.workstationClusters_; bitField0_ = (bitField0_ & ~0x00000001); - workstationClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationClustersFieldBuilder() - : null; + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationClustersFieldBuilder() : null; } else { workstationClustersBuilder_.addAllMessages(other.workstationClusters_); } @@ -673,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1.WorkstationCluster m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationCluster.parser(), - extensionRegistry); - if (workstationClustersBuilder_ == null) { - ensureWorkstationClustersIsMutable(); - workstationClusters_.add(m); - } else { - workstationClustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -716,39 +648,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - workstationClusters_ = java.util.Collections.emptyList(); - + private java.util.List workstationClusters_ = + java.util.Collections.emptyList(); private void ensureWorkstationClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationClusters_ = - new java.util.ArrayList( - workstationClusters_); + workstationClusters_ = new java.util.ArrayList(workstationClusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> - workstationClustersBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClustersBuilder_; /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public java.util.List - getWorkstationClustersList() { + public java.util.List getWorkstationClustersList() { if (workstationClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationClusters_); } else { @@ -756,14 +677,11 @@ private void ensureWorkstationClustersIsMutable() { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public int getWorkstationClustersCount() { if (workstationClustersBuilder_ == null) { @@ -773,14 +691,11 @@ public int getWorkstationClustersCount() { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -790,14 +705,11 @@ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster value) { @@ -814,14 +726,11 @@ public Builder setWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -835,17 +744,13 @@ public Builder setWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public Builder addWorkstationClusters( - com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder addWorkstationClusters(com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -859,14 +764,11 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster value) { @@ -883,14 +785,11 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -904,14 +803,11 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -925,20 +821,18 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder addAllWorkstationClusters( java.lang.Iterable values) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationClusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationClusters_); onChanged(); } else { workstationClustersBuilder_.addAllMessages(values); @@ -946,14 +840,11 @@ public Builder addAllWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder clearWorkstationClusters() { if (workstationClustersBuilder_ == null) { @@ -966,14 +857,11 @@ public Builder clearWorkstationClusters() { return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ public Builder removeWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -986,49 +874,39 @@ public Builder removeWorkstationClusters(int index) { return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder - getWorkstationClustersBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClustersBuilder( + int index) { return getWorkstationClustersFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder - getWorkstationClustersOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { if (workstationClustersBuilder_ == null) { - return workstationClusters_.get(index); - } else { + return workstationClusters_.get(index); } else { return workstationClustersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public java.util.List - getWorkstationClustersOrBuilderList() { + public java.util.List + getWorkstationClustersOrBuilderList() { if (workstationClustersBuilder_ != null) { return workstationClustersBuilder_.getMessageOrBuilderList(); } else { @@ -1036,62 +914,45 @@ public Builder removeWorkstationClusters(int index) { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder - addWorkstationClustersBuilder() { - return getWorkstationClustersFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder - addWorkstationClustersBuilder(int index) { - return getWorkstationClustersFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder( + int index) { + return getWorkstationClustersFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - public java.util.List - getWorkstationClustersBuilderList() { + public java.util.List + getWorkstationClustersBuilderList() { return getWorkstationClustersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClustersFieldBuilder() { if (workstationClustersBuilder_ == null) { - workstationClustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( workstationClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1103,21 +964,19 @@ public Builder removeWorkstationClusters(int index) { 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; @@ -1126,22 +985,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 { @@ -1149,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1189,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1214,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1222,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1266,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1304,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1326,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1385,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1397,43 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) - private static final com.google.cloud.workstations.v1.ListWorkstationClustersResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListWorkstationClustersResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1445,8 +1263,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java index ed0722da132f..532e1a47c5b1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java @@ -1,161 +1,116 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationClustersResponseOrBuilder - extends +public interface ListWorkstationClustersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - java.util.List getWorkstationClustersList(); + java.util.List + getWorkstationClustersList(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ int getWorkstationClustersCount(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ - java.util.List + java.util.List getWorkstationClustersOrBuilderList(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java similarity index 64% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java index f320e3f00f80..e7b416aed8a7 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} */ -public final class ListWorkstationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsRequest) ListWorkstationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsRequest.newBuilder() to construct. private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,40 +26,33 @@ private ListWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -121,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -137,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,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_); } @@ -225,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -238,17 +205,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.workstations.v1.ListWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other = - (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,136 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} */ - 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.workstations.v1.ListWorkstationConfigsRequest) com.google.cloud.workstations.v1.ListWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,14 +377,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance(); } @@ -435,17 +398,13 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = - new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -462,39 +421,38 @@ private void buildPartial0( 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.workstations.v1.ListWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest)other); } else { super.mergeFrom(other); return this; @@ -502,9 +460,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other) { - if (other - == com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -544,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -607,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -631,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -673,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -697,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -714,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -733,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -752,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -775,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -798,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -838,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -872,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1.ListWorkstationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,8 +822,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java index b34b74f46cf5..c03e8992cb56 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationConfigsRequestOrBuilder - extends +public interface ListWorkstationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java index 58250a4a0502..9b15badd2a50 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java @@ -1,77 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Response message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} */ -public final class ListWorkstationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsResponse) ListWorkstationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsResponse.newBuilder() to construct. - private ListWorkstationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstationConfigs_; /** - * - * *
    * The requested configs.
    * 
@@ -79,13 +57,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
@@ -93,13 +68,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
@@ -111,8 +84,6 @@ public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** - * - * *
    * The requested configs.
    * 
@@ -124,8 +95,6 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( return workstationConfigs_.get(index); } /** - * - * *
    * The requested configs.
    * 
@@ -139,19 +108,15 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -160,30 +125,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 { @@ -192,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -240,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,7 +221,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -288,8 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +264,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.workstations.v1.ListWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other = - (com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} */ - 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.workstations.v1.ListWorkstationConfigsResponse) com.google.cloud.workstations.v1.ListWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -490,19 +441,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance(); } @@ -517,18 +468,14 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = - new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -540,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -556,50 +502,46 @@ private void buildPartial0( 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.workstations.v1.ListWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other) { - if (other - == com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -618,10 +560,9 @@ public Builder mergeFrom( workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationConfigsFieldBuilder() - : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -668,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -711,39 +648,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = - new java.util.ArrayList( - workstationConfigs_); + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> - workstationConfigsBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -751,14 +677,11 @@ private void ensureWorkstationConfigsIsMutable() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -768,14 +691,11 @@ public int getWorkstationConfigsCount() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -785,14 +705,11 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -809,14 +726,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -830,14 +744,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { @@ -853,14 +764,11 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.Workstatio return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -877,14 +785,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -898,14 +803,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -919,20 +821,18 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder addAllWorkstationConfigs( java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -940,14 +840,11 @@ public Builder addAllWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -960,14 +857,11 @@ public Builder clearWorkstationConfigs() { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -980,49 +874,39 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); - } else { + return workstationConfigs_.get(index); } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1030,62 +914,45 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstation } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder - addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( int index) { - return getWorkstationConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1097,21 +964,19 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstation 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; @@ -1120,22 +985,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 { @@ -1143,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1183,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1208,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1216,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1260,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1298,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1320,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1379,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1391,43 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1.ListWorkstationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1439,8 +1263,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java similarity index 73% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java index f740012db441..2aebefd737b5 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationConfigsResponseOrBuilder - extends +public interface ListWorkstationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List getWorkstationConfigsList(); + java.util.List + getWorkstationConfigsList(); /** - * - * *
    * The requested configs.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkstationConfigsResponseOrBuilder */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); /** - * - * *
    * The requested configs.
    * 
@@ -54,19 +33,15 @@ public interface ListWorkstationConfigsResponseOrBuilder */ int getWorkstationConfigsCount(); /** - * - * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** - * - * *
    * The requested configs.
    * 
@@ -77,80 +52,65 @@ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfig 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java index 0bdfb788638e..68a2561bffa4 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} */ -public final class ListWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsRequest) ListWorkstationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationsRequest.newBuilder() to construct. private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,40 +26,33 @@ private ListWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsRequest.class, - com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -121,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -137,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,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_); } @@ -225,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -238,17 +205,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.workstations.v1.ListWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationsRequest other = - (com.google.cloud.workstations.v1.ListWorkstationsRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationsRequest other = (com.google.cloud.workstations.v1.ListWorkstationsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,136 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationsRequest 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} */ - 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.workstations.v1.ListWorkstationsRequest) com.google.cloud.workstations.v1.ListWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsRequest.class, - com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override @@ -434,11 +398,8 @@ public com.google.cloud.workstations.v1.ListWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationsRequest result = - new com.google.cloud.workstations.v1.ListWorkstationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.ListWorkstationsRequest result = new com.google.cloud.workstations.v1.ListWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -460,39 +421,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsRequ 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.workstations.v1.ListWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsRequest)other); } else { super.mergeFrom(other); return this; @@ -500,8 +460,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -541,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -575,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -604,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -628,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -670,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -694,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -711,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -730,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -749,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -772,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -795,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -835,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -869,12 +776,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsRequest) private static final com.google.cloud.workstations.v1.ListWorkstationsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsRequest(); } @@ -883,27 +790,27 @@ public static com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,4 +825,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java index 9538b641ce8a..99fdb26bcb97 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationsRequestOrBuilder - extends +public interface ListWorkstationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java similarity index 72% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java index 42c5d28c0e2b..d9466cba32a0 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Response message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} */ -public final class ListWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsResponse) ListWorkstationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationsResponse.newBuilder() to construct. private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsResponse.class, - com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstations_; /** - * - * *
    * The requested workstations.
    * 
@@ -82,8 +61,6 @@ public java.util.List getWorkstati return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -91,13 +68,11 @@ public java.util.List getWorkstati * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -109,8 +84,6 @@ public int getWorkstationsCount() { return workstations_.size(); } /** - * - * *
    * The requested workstations.
    * 
@@ -122,8 +95,6 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { return workstations_.get(index); } /** - * - * *
    * The requested workstations.
    * 
@@ -131,24 +102,21 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index) { return workstations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,30 +125,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; } } /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -189,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -237,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +221,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -285,7 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -306,17 +264,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.workstations.v1.ListWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationsResponse other = - (com.google.cloud.workstations.v1.ListWorkstationsResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationsResponse other = (com.google.cloud.workstations.v1.ListWorkstationsResponse) obj; - if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,136 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.ListWorkstationsResponse 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} */ - 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.workstations.v1.ListWorkstationsResponse) com.google.cloud.workstations.v1.ListWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsResponse.class, - com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -486,14 +441,15 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override @@ -512,18 +468,14 @@ public com.google.cloud.workstations.v1.ListWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationsResponse result = - new com.google.cloud.workstations.v1.ListWorkstationsResponse(this); + com.google.cloud.workstations.v1.ListWorkstationsResponse result = new com.google.cloud.workstations.v1.ListWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1.ListWorkstationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -550,39 +502,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsResp 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.workstations.v1.ListWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsResponse)other); } else { super.mergeFrom(other); return this; @@ -590,8 +541,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -610,10 +560,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsRespon workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationsFieldBuilder() - : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -660,39 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1.Workstation.parser(), extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -702,29 +648,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = - new java.util.ArrayList(workstations_); + workstations_ = new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> - workstationsBuilder_; + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; /** - * - * *
      * The requested workstations.
      * 
@@ -739,8 +677,6 @@ public java.util.List getWorkstati } } /** - * - * *
      * The requested workstations.
      * 
@@ -755,8 +691,6 @@ public int getWorkstationsCount() { } } /** - * - * *
      * The requested workstations.
      * 
@@ -771,15 +705,14 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder setWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -793,8 +726,6 @@ public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Works return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -813,8 +744,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -835,15 +764,14 @@ public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation valu return this; } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder addWorkstations( + int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -857,8 +785,6 @@ public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Works return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -877,8 +803,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -897,8 +821,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -909,7 +831,8 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -917,8 +840,6 @@ public Builder addAllWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -936,8 +857,6 @@ public Builder clearWorkstations() { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -955,20 +874,17 @@ public Builder removeWorkstations(int index) { return this; } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder(int index) { + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( + int index) { return getWorkstationsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstations.
      * 
@@ -978,22 +894,19 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuild public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); - } else { + return workstations_.get(index); } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -1001,8 +914,6 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu } } /** - * - * *
      * The requested workstations.
      * 
@@ -1010,48 +921,42 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder(int index) { - return getWorkstationsFieldBuilder() - .addBuilder(index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( + int index) { + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder>( - workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workstations_ = null; } return workstationsBuilder_; @@ -1059,21 +964,19 @@ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuild private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1082,22 +985,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1105,37 +1007,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1145,22 +1040,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1170,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1178,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1222,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1260,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1282,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1341,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1353,12 +1217,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsResponse) private static final com.google.cloud.workstations.v1.ListWorkstationsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsResponse(); } @@ -1367,27 +1231,27 @@ public static com.google.cloud.workstations.v1.ListWorkstationsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1402,4 +1266,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.ListWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java similarity index 73% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java index 9f7560126ae8..55bf12dadd38 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationsResponseOrBuilder - extends +public interface ListWorkstationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List getWorkstationsList(); + java.util.List + getWorkstationsList(); /** - * - * *
    * The requested workstations.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkstationsResponseOrBuilder */ com.google.cloud.workstations.v1.Workstation getWorkstations(int index); /** - * - * *
    * The requested workstations.
    * 
@@ -54,102 +33,84 @@ public interface ListWorkstationsResponseOrBuilder */ int getWorkstationsCount(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index); + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( + int index); /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java similarity index 70% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java index 083bed938f22..7ce390ca879c 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Metadata for long-running operations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,37 +28,32 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.OperationMetadata.class, - com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -84,15 +61,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -100,14 +73,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -117,15 +87,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -133,15 +99,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -149,14 +111,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -164,18 +123,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -184,29 +139,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -215,18 +170,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -235,29 +186,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -266,18 +217,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -286,29 +233,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -319,15 +266,12 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -336,18 +280,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -356,29 +296,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -387,7 +327,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +338,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -431,10 +371,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -446,7 +388,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -459,27 +402,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.workstations.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workstations.v1.OperationMetadata other = - (com.google.cloud.workstations.v1.OperationMetadata) obj; + com.google.cloud.workstations.v1.OperationMetadata other = (com.google.cloud.workstations.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -506,7 +455,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -515,135 +465,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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; } /** - * - * *
    * Metadata for long-running operations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} */ - 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.workstations.v1.OperationMetadata) com.google.cloud.workstations.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.OperationMetadata.class, - com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workstations.v1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -667,9 +613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -688,11 +634,8 @@ public com.google.cloud.workstations.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.workstations.v1.OperationMetadata buildPartial() { - com.google.cloud.workstations.v1.OperationMetadata result = - new com.google.cloud.workstations.v1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.OperationMetadata result = new com.google.cloud.workstations.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -700,10 +643,14 @@ public com.google.cloud.workstations.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workstations.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -726,39 +673,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.OperationMetadata re 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.workstations.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.workstations.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.workstations.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -766,8 +712,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.OperationMetadata other) { - if (other == com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -823,55 +768,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -881,63 +822,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -953,17 +874,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -974,21 +892,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1001,15 +915,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1022,15 +932,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1038,48 +944,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1087,35 +981,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1126,14 +1009,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1149,16 +1029,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1169,20 +1047,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1195,14 +1070,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1215,14 +1087,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1230,44 +1099,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -1275,20 +1136,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1297,21 +1156,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1319,35 +1177,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1357,21 +1208,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1381,20 +1228,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1403,21 +1248,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1425,35 +1269,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1463,21 +1300,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1487,20 +1320,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1509,21 +1340,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1531,35 +1361,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1569,21 +1392,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1591,17 +1410,14 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1609,15 +1425,12 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1629,15 +1442,12 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1649,20 +1459,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1671,21 +1479,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1693,35 +1500,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1731,30 +1531,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; 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); } @@ -1764,12 +1560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.OperationMetadata) private static final com.google.cloud.workstations.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.OperationMetadata(); } @@ -1778,27 +1574,27 @@ public static com.google.cloud.workstations.v1.OperationMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1813,4 +1609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java similarity index 74% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java index 94a6ace985cb..ecae7415ff41 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java @@ -1,215 +1,154 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java index 33635450c80a..cec1fba104a3 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for StartWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} */ -public final class StartWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StartWorkstationRequest) StartWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartWorkstationRequest.newBuilder() to construct. private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,40 +26,33 @@ private StartWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StartWorkstationRequest.class, - com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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 @@ -86,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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 { @@ -121,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -138,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -159,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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_); } @@ -226,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -239,17 +206,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.workstations.v1.StartWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.StartWorkstationRequest other = - (com.google.cloud.workstations.v1.StartWorkstationRequest) obj; + com.google.cloud.workstations.v1.StartWorkstationRequest other = (com.google.cloud.workstations.v1.StartWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,7 +233,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -273,136 +243,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.StartWorkstationRequest 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 message for StartWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} */ - 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.workstations.v1.StartWorkstationRequest) com.google.cloud.workstations.v1.StartWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StartWorkstationRequest.class, - com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.StartWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override @@ -435,11 +400,8 @@ public com.google.cloud.workstations.v1.StartWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.StartWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.StartWorkstationRequest result = - new com.google.cloud.workstations.v1.StartWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.StartWorkstationRequest result = new com.google.cloud.workstations.v1.StartWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -461,39 +423,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.StartWorkstationRequ 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.workstations.v1.StartWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.StartWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.StartWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -501,8 +462,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.StartWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -542,31 +502,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,27 +532,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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; @@ -605,23 +556,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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 { @@ -629,39 +577,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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() { @@ -671,23 +608,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -695,17 +626,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -713,15 +641,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -733,15 +658,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -753,21 +675,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -776,22 +696,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -799,37 +718,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -839,31 +751,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -873,12 +781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StartWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StartWorkstationRequest) private static final com.google.cloud.workstations.v1.StartWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StartWorkstationRequest(); } @@ -887,27 +795,27 @@ public static com.google.cloud.workstations.v1.StartWorkstationRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.StartWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java similarity index 57% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java index 98f2435641c8..b7d4829fb285 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface StartWorkstationRequestOrBuilder - extends +public interface StartWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StartWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java index ac9f09ca50ce..21d44860f100 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for StopWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} */ -public final class StopWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StopWorkstationRequest) StopWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopWorkstationRequest.newBuilder() to construct. private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,40 +26,33 @@ private StopWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StopWorkstationRequest.class, - com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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 @@ -86,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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 { @@ -121,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -138,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -159,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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_); } @@ -226,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -239,17 +206,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.workstations.v1.StopWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.StopWorkstationRequest other = - (com.google.cloud.workstations.v1.StopWorkstationRequest) obj; + com.google.cloud.workstations.v1.StopWorkstationRequest other = (com.google.cloud.workstations.v1.StopWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,7 +233,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -273,136 +243,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.StopWorkstationRequest 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 message for StopWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} */ - 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.workstations.v1.StopWorkstationRequest) com.google.cloud.workstations.v1.StopWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StopWorkstationRequest.class, - com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.StopWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override @@ -435,11 +400,8 @@ public com.google.cloud.workstations.v1.StopWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.StopWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.StopWorkstationRequest result = - new com.google.cloud.workstations.v1.StopWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.StopWorkstationRequest result = new com.google.cloud.workstations.v1.StopWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -461,39 +423,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.StopWorkstationReque 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.workstations.v1.StopWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.StopWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.StopWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -501,8 +462,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.StopWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -542,31 +502,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,27 +532,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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; @@ -605,23 +556,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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 { @@ -629,39 +577,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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() { @@ -671,23 +608,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -695,17 +626,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -713,15 +641,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -733,15 +658,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -753,21 +675,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -776,22 +696,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -799,37 +718,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -839,31 +751,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -873,12 +781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StopWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StopWorkstationRequest) private static final com.google.cloud.workstations.v1.StopWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StopWorkstationRequest(); } @@ -887,27 +795,27 @@ public static com.google.cloud.workstations.v1.StopWorkstationRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.StopWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java similarity index 57% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java index 6ebe1072ce07..da6f3cd86dab 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface StopWorkstationRequestOrBuilder - extends +public interface StopWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StopWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java index 20378f5641e3..816fd64929ae 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java @@ -1,79 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for UpdateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} */ -public final class UpdateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) UpdateWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationClusterRequest.newBuilder() to construct. - private UpdateWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationClusterRequest() {} + private UpdateWorkstationClusterRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); } public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -81,56 +57,38 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -138,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -155,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -173,15 +124,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -192,8 +140,6 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -201,7 +147,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -210,7 +155,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +166,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 (workstationCluster_ != null) { output.writeMessage(1, getWorkstationCluster()); } @@ -245,16 +190,20 @@ public int getSerializedSize() { size = 0; if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,24 +213,27 @@ 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.workstations.v1.UpdateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other = - (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) obj; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,145 +254,142 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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 message for UpdateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} */ - 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.workstations.v1.UpdateWorkstationClusterRequest) com.google.cloud.workstations.v1.UpdateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -461,14 +410,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance(); } @@ -483,26 +431,23 @@ public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = - new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationCluster_ = - workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -516,50 +461,46 @@ private void buildPartial0( 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.workstations.v1.UpdateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; if (other.hasWorkstationCluster()) { mergeWorkstationCluster(other.getWorkstationCluster()); } @@ -598,38 +539,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,66 +578,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> - workstationClusterBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationCluster( - com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,15 +630,11 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -734,23 +648,17 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationCluster( - com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstationCluster_ != null - && workstationCluster_ - != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -763,15 +671,11 @@ public Builder mergeWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000001); @@ -784,66 +688,48 @@ public Builder clearWorkstationCluster() { return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder - getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? + com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; } } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, - com.google.cloud.workstations.v1.WorkstationCluster.Builder, - com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( - getWorkstationCluster(), getParentForChildren(), isClean()); + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; @@ -851,58 +737,42 @@ public Builder clearWorkstationCluster() { 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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -918,17 +788,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -939,21 +807,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -966,15 +831,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -987,15 +849,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1003,64 +862,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1068,15 +914,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1088,15 +931,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1106,10 +946,8 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -1117,7 +955,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -1125,8 +962,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -1134,7 +969,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -1146,8 +980,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -1155,7 +987,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1164,9 +995,9 @@ public Builder clearAllowMissing() { 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); } @@ -1176,43 +1007,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1224,8 +1053,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java index 84470c7701b3..4d04b696a06d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java @@ -1,127 +1,81 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationClusterRequestOrBuilder - extends +public interface UpdateWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -129,7 +83,6 @@ public interface UpdateWorkstationClusterRequestOrBuilder
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java index c4f53ea3cbab..873f9d009306 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java @@ -1,79 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for UpdateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} */ -public final class UpdateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) UpdateWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationConfigRequest.newBuilder() to construct. - private UpdateWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationConfigRequest() {} + private UpdateWorkstationConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); } public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -81,56 +57,38 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -138,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -155,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -173,15 +124,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -192,8 +140,6 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -201,7 +147,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -210,7 +155,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +166,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 (workstationConfig_ != null) { output.writeMessage(1, getWorkstationConfig()); } @@ -245,16 +190,20 @@ public int getSerializedSize() { size = 0; if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,24 +213,27 @@ 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.workstations.v1.UpdateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other = - (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) obj; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,145 +254,142 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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 message for UpdateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} */ - 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.workstations.v1.UpdateWorkstationConfigRequest) com.google.cloud.workstations.v1.UpdateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -461,14 +410,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance(); } @@ -483,26 +431,23 @@ public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = - new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationConfig_ = - workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -516,50 +461,46 @@ private void buildPartial0( 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.workstations.v1.UpdateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; if (other.hasWorkstationConfig()) { mergeWorkstationConfig(other.getWorkstationConfig()); } @@ -598,38 +539,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -639,63 +578,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> - workstationConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { @@ -711,15 +630,11 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.Workstation return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -733,23 +648,17 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationConfig( - com.google.cloud.workstations.v1.WorkstationConfig value) { + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstationConfig_ != null - && workstationConfig_ - != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -762,15 +671,11 @@ public Builder mergeWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -783,66 +688,48 @@ public Builder clearWorkstationConfig() { return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder - getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; } } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( - getWorkstationConfig(), getParentForChildren(), isClean()); + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; @@ -850,58 +737,42 @@ public Builder clearWorkstationConfig() { 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -917,17 +788,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -938,21 +807,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -965,15 +831,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -986,15 +849,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1002,64 +862,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1067,15 +914,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1087,15 +931,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1105,10 +946,8 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -1116,7 +955,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -1124,8 +962,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -1133,7 +969,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -1145,8 +980,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -1154,7 +987,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1163,9 +995,9 @@ public Builder clearAllowMissing() { 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); } @@ -1175,43 +1007,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1223,8 +1053,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java index f18b678d5fbd..56c8e3bc1e3e 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java @@ -1,127 +1,81 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationConfigRequestOrBuilder - extends +public interface UpdateWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -129,7 +83,6 @@ public interface UpdateWorkstationConfigRequestOrBuilder
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java index ef0db7c06e30..b54a49ef2fb4 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java @@ -1,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * Request message for UpdateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} */ -public final class UpdateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationRequest) UpdateWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationRequest.newBuilder() to construct. private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationRequest() {} + private UpdateWorkstationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, - com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); } public static final int WORKSTATION_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.Workstation workstation_; /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ @java.lang.Override @@ -80,55 +57,38 @@ public boolean hasWorkstation() { return workstation_ != null; } /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation getWorkstation() { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -136,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -153,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -171,15 +124,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -190,8 +140,6 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -199,7 +147,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -208,7 +155,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +166,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 (workstation_ != null) { output.writeMessage(1, getWorkstation()); } @@ -243,16 +190,20 @@ public int getSerializedSize() { size = 0; if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -262,24 +213,27 @@ 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.workstations.v1.UpdateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationRequest other = - (com.google.cloud.workstations.v1.UpdateWorkstationRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationRequest) obj; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,145 +254,142 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.UpdateWorkstationRequest 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 message for UpdateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} */ - 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.workstations.v1.UpdateWorkstationRequest) com.google.cloud.workstations.v1.UpdateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, - com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override @@ -480,11 +431,8 @@ public com.google.cloud.workstations.v1.UpdateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationRequest result = - new com.google.cloud.workstations.v1.UpdateWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -492,11 +440,14 @@ public com.google.cloud.workstations.v1.UpdateWorkstationRequest buildPartial() private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstation_ = - workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -510,39 +461,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationReq 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.workstations.v1.UpdateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -550,8 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance()) return this; if (other.hasWorkstation()) { mergeWorkstation(other.getWorkstation()); } @@ -590,37 +539,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -630,63 +578,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> - workstationBuilder_; + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ public com.google.cloud.workstations.v1.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } else { return workstationBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { @@ -702,15 +630,11 @@ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation( com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { @@ -724,21 +648,17 @@ public Builder setWorkstation( return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstation_ != null - && workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -751,15 +671,11 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation val return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -772,15 +688,11 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000001; @@ -788,48 +700,36 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilde return getWorkstationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null - ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? + com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; } } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, - com.google.cloud.workstations.v1.Workstation.Builder, - com.google.cloud.workstations.v1.WorkstationOrBuilder>( - getWorkstation(), getParentForChildren(), isClean()); + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); workstation_ = null; } return workstationBuilder_; @@ -837,58 +737,42 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBui 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -904,17 +788,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -925,21 +807,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -952,15 +831,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -973,15 +849,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -989,64 +862,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1054,15 +914,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1074,15 +931,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1092,10 +946,8 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -1103,7 +955,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -1111,8 +962,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -1120,7 +969,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -1132,8 +980,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -1141,7 +987,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1150,9 +995,9 @@ public Builder clearAllowMissing() { 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); } @@ -1162,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) private static final com.google.cloud.workstations.v1.UpdateWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(); } @@ -1176,27 +1021,27 @@ public static com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1211,4 +1056,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java index 786db1729717..3143baf2ff05 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java @@ -1,127 +1,81 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationRequestOrBuilder - extends +public interface UpdateWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ com.google.cloud.workstations.v1.Workstation getWorkstation(); /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -129,7 +83,6 @@ public interface UpdateWorkstationRequestOrBuilder
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java index 8b3066d6a61b..894548341e0d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * A single instance of a developer workstation with its own persistent storage.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.Workstation} */ -public final class Workstation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Workstation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.Workstation) WorkstationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Workstation.newBuilder() to construct. private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Workstation() { name_ = ""; displayName_ = ""; @@ -48,51 +30,48 @@ private Workstation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Workstation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); case 13: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.Workstation.class, - com.google.cloud.workstations.v1.Workstation.Builder.class); + com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); } /** - * - * *
    * Whether a workstation is running and ready to receive user requests.
    * 
* * Protobuf enum {@code google.cloud.workstations.v1.Workstation.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Do not use.
      * 
@@ -101,8 +80,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -112,8 +89,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATE_STARTING(1),
     /**
-     *
-     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -122,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_RUNNING(2), /** - * - * *
      * The workstation is being stopped.
      * 
@@ -132,8 +105,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_STOPPING(3), /** - * - * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -146,8 +117,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Do not use.
      * 
@@ -156,8 +125,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -167,8 +134,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_STARTING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -177,8 +142,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_RUNNING_VALUE = 2; /** - * - * *
      * The workstation is being stopped.
      * 
@@ -187,8 +150,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_STOPPING_VALUE = 3; /** - * - * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -198,6 +159,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_STOPPED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -222,53 +184,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return STATE_STARTING;
-        case 2:
-          return STATE_RUNNING;
-        case 3:
-          return STATE_STOPPING;
-        case 4:
-          return STATE_STOPPED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return STATE_STARTING;
+        case 2: return STATE_RUNNING;
+        case 3: return STATE_STOPPING;
+        case 4: return STATE_STOPPED;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.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.workstations.v1.Workstation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -286,18 +246,14 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Full name of this workstation.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -306,29 +262,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; } } /** - * - * *
    * Full name of this workstation.
    * 
* * 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 { @@ -337,18 +293,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -357,29 +309,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; } } /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -388,18 +340,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -408,29 +356,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -441,15 +389,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -458,106 +403,94 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -565,34 +498,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 13; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -603,21 +534,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -632,8 +562,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -644,19 +572,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -667,11 +593,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -681,15 +607,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -697,15 +619,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -713,14 +631,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -730,15 +645,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -746,15 +657,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -762,14 +669,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -779,16 +683,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -796,16 +696,12 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -813,15 +709,12 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -831,15 +724,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -847,15 +736,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -863,14 +748,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -878,12 +760,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -891,7 +770,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -900,15 +778,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -916,15 +793,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -935,51 +813,33 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.workstations.v1.Workstation.State getState() { - com.google.cloud.workstations.v1.Workstation.State result = - com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); - return result == null - ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workstations.v1.Workstation.State getState() { + com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; } public static final int HOST_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -989,7 +849,6 @@ public com.google.cloud.workstations.v1.Workstation.State getState() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ @java.lang.Override @@ -998,15 +857,14 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -1016,15 +874,16 @@ public java.lang.String getHost() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -1033,7 +892,6 @@ public com.google.protobuf.ByteString getHostBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1045,7 +903,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_); } @@ -1058,8 +917,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -1072,15 +935,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - if (state_ - != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 13); if (startTime_ != null) { output.writeMessage(14, getStartTime()); } @@ -1103,49 +969,54 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - if (state_ - != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_); } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, labels__); + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, labels__); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1155,39 +1026,50 @@ 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.workstations.v1.Workstation)) { return super.equals(obj); } - com.google.cloud.workstations.v1.Workstation other = - (com.google.cloud.workstations.v1.Workstation) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.Workstation other = (com.google.cloud.workstations.v1.Workstation) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (state_ != other.state_) return false; - if (!getHost().equals(other.getHost())) return false; + if (!getHost() + .equals(other.getHost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1206,7 +1088,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -1242,160 +1125,158 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.Workstation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.workstations.v1.Workstation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.Workstation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation 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 single instance of a developer workstation with its own persistent storage.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.Workstation} */ - 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.workstations.v1.Workstation) com.google.cloud.workstations.v1.WorkstationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); case 13: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); case 13: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.Workstation.class, - com.google.cloud.workstations.v1.Workstation.Builder.class); + com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); } // Construct using com.google.cloud.workstations.v1.Workstation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1433,9 +1314,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @java.lang.Override @@ -1454,11 +1335,8 @@ public com.google.cloud.workstations.v1.Workstation build() { @java.lang.Override public com.google.cloud.workstations.v1.Workstation buildPartial() { - com.google.cloud.workstations.v1.Workstation result = - new com.google.cloud.workstations.v1.Workstation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.Workstation result = new com.google.cloud.workstations.v1.Workstation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1486,16 +1364,24 @@ private void buildPartial0(com.google.cloud.workstations.v1.Workstation result) result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.etag_ = etag_; @@ -1512,39 +1398,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.Workstation result) 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.workstations.v1.Workstation) { - return mergeFrom((com.google.cloud.workstations.v1.Workstation) other); + return mergeFrom((com.google.cloud.workstations.v1.Workstation)other); } else { super.mergeFrom(other); return this; @@ -1571,9 +1456,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.Workstation other) { if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); bitField0_ |= 0x00000010; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); @@ -1626,103 +1513,93 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 80: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 80 - case 90: - { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 90 - case 106: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 106 - case 114: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 74: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 74 + case 80: { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 80 + case 90: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 106: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 106 + case 114: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1732,25 +1609,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Full name of this workstation.
      * 
* * 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,21 +1633,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this workstation.
      * 
* * 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 { @@ -1781,35 +1654,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this workstation.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this workstation.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1819,21 +1685,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this workstation.
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1843,20 +1705,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1865,21 +1725,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1887,35 +1746,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1925,21 +1777,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1949,20 +1797,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1971,21 +1817,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1993,35 +1838,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2031,21 +1869,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -2053,17 +1887,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -2071,15 +1902,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -2091,15 +1919,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -2109,8 +1934,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -2119,12 +1944,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -2133,168 +1957,153 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2303,13 +2112,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2320,21 +2126,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2349,8 +2154,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2361,19 +2164,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2384,25 +2185,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2412,22 +2211,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2437,20 +2237,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2460,66 +2257,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2535,17 +2315,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2556,21 +2333,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2583,15 +2356,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2604,15 +2373,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2620,48 +2385,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2669,58 +2422,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2736,17 +2470,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2757,21 +2488,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2784,15 +2511,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2805,15 +2528,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2821,48 +2540,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2870,39 +2577,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2913,16 +2607,12 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2938,18 +2628,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -2960,22 +2647,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -2988,16 +2671,12 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3010,16 +2689,12 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000100; @@ -3027,48 +2702,38 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -3076,58 +2741,39 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3143,17 +2789,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3164,21 +2807,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3191,15 +2830,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3212,15 +2847,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000200; @@ -3228,48 +2859,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3277,8 +2896,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3286,13 +2903,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3301,8 +2918,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3310,14 +2925,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3325,8 +2941,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3334,22 +2948,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3357,7 +2967,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3367,8 +2976,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3376,14 +2983,12 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -3393,33 +2998,22 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3430,37 +3024,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation.State getState() { - com.google.cloud.workstations.v1.Workstation.State result = - com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); - return result == null - ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED - : result; + com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3474,16 +3055,11 @@ public Builder setState(com.google.cloud.workstations.v1.Workstation.State value return this; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3495,8 +3071,6 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3506,13 +3080,13 @@ public Builder clearState() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -3521,8 +3095,6 @@ public java.lang.String getHost() { } } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3532,14 +3104,15 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -3547,8 +3120,6 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3558,22 +3129,18 @@ public com.google.protobuf.ByteString getHostBytes() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3583,7 +3150,6 @@ public Builder setHost(java.lang.String value) {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHost() { @@ -3593,8 +3159,6 @@ public Builder clearHost() { return this; } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3604,23 +3168,21 @@ public Builder clearHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00001000; 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); } @@ -3630,12 +3192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.Workstation) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.Workstation) private static final com.google.cloud.workstations.v1.Workstation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.Workstation(); } @@ -3644,27 +3206,27 @@ public static com.google.cloud.workstations.v1.Workstation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workstation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workstation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3679,4 +3241,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.Workstation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java index 652852554f15..51da1b9417a7 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * A workstation cluster resource in the Cloud Workstations API.
  *
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster}
  */
-public final class WorkstationCluster extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WorkstationCluster extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster)
     WorkstationClusterOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WorkstationCluster.newBuilder() to construct.
   private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WorkstationCluster() {
     name_ = "";
     displayName_ = "";
@@ -53,59 +35,53 @@ private WorkstationCluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WorkstationCluster();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workstations.v1.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 15:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
+    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1.WorkstationCluster.class,
-            com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
+            com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
   }
 
-  public interface PrivateClusterConfigOrBuilder
-      extends
+  public interface PrivateClusterConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -115,13 +91,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ java.lang.String getClusterHostname(); /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -131,14 +104,12 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ - com.google.protobuf.ByteString getClusterHostnameBytes(); + com.google.protobuf.ByteString + getClusterHostnameBytes(); /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -148,13 +119,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAttachmentUri. */ java.lang.String getServiceAttachmentUri(); /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -164,14 +132,12 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAttachmentUri. */ - com.google.protobuf.ByteString getServiceAttachmentUriBytes(); + com.google.protobuf.ByteString + getServiceAttachmentUriBytes(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -179,13 +145,11 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedProjects. */ - java.util.List getAllowedProjectsList(); + java.util.List + getAllowedProjectsList(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -193,13 +157,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedProjects. */ int getAllowedProjectsCount(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -207,14 +168,11 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ java.lang.String getAllowedProjects(int index); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -222,70 +180,63 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - com.google.protobuf.ByteString getAllowedProjectsBytes(int index); + com.google.protobuf.ByteString + getAllowedProjectsBytes(int index); } /** - * - * *
    * Configuration options for private workstation clusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} */ - public static final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PrivateClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateClusterConfig.newBuilder() to construct. private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrivateClusterConfig() { clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PrivateClusterConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder - .class); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); } public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; private boolean enablePrivateEndpoint_ = false; /** - * - * *
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -294,12 +245,9 @@ public boolean getEnablePrivateEndpoint() { } public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object clusterHostname_ = ""; /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -309,7 +257,6 @@ public boolean getEnablePrivateEndpoint() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ @java.lang.Override @@ -318,15 +265,14 @@ public java.lang.String getClusterHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; } } /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -336,15 +282,16 @@ public java.lang.String getClusterHostname() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterHostnameBytes() { + public com.google.protobuf.ByteString + getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -353,12 +300,9 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() { } public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAttachmentUri_ = ""; /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -368,7 +312,6 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAttachmentUri. */ @java.lang.Override @@ -377,15 +320,14 @@ public java.lang.String getServiceAttachmentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; } } /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -395,15 +337,16 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAttachmentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -412,13 +355,10 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { } public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -426,15 +366,13 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { return allowedProjects_; } /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -442,15 +380,12 @@ public com.google.protobuf.ProtocolStringList getAllowedProjectsList() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -458,7 +393,6 @@ public int getAllowedProjectsCount() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -466,8 +400,6 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -475,16 +407,15 @@ public java.lang.String getAllowedProjects(int index) {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -496,7 +427,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 (enablePrivateEndpoint_ != false) { output.writeBool(1, enablePrivateEndpoint_); } @@ -519,7 +451,8 @@ public int getSerializedSize() { size = 0; if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enablePrivateEndpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); @@ -543,19 +476,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.workstations.v1.WorkstationCluster.PrivateClusterConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other = - (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) obj; + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) obj; - if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; - if (!getClusterHostname().equals(other.getClusterHostname())) return false; - if (!getServiceAttachmentUri().equals(other.getServiceAttachmentUri())) return false; - if (!getAllowedProjectsList().equals(other.getAllowedProjectsList())) return false; + if (getEnablePrivateEndpoint() + != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname() + .equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri() + .equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList() + .equals(other.getAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -568,7 +503,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateEndpoint()); hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getClusterHostname().hashCode(); hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; @@ -582,101 +518,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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 @@ -686,43 +611,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration options for private workstation clusters.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} */ - 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.workstations.v1.WorkstationCluster.PrivateClusterConfig) com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder - .class); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -730,27 +651,25 @@ public Builder clear() { enablePrivateEndpoint_ = false; clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig build() { - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = - buildPartial(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -758,19 +677,14 @@ public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - buildPartial() { - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = - new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig buildPartial() { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enablePrivateEndpoint_ = enablePrivateEndpoint_; @@ -791,54 +705,46 @@ private void buildPartial0( 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.workstations.v1.WorkstationCluster.PrivateClusterConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) other); + if (other instanceof com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other) { - if (other - == com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other) { + if (other == com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; if (other.getEnablePrivateEndpoint() != false) { setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); } @@ -888,38 +794,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - clusterHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - serviceAttachmentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedProjectsIsMutable(); - allowedProjects_.add(s); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -929,19 +830,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enablePrivateEndpoint_; + private boolean enablePrivateEndpoint_ ; /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -949,14 +846,11 @@ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -968,14 +862,11 @@ public Builder setEnablePrivateEndpoint(boolean value) { return this; } /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -987,8 +878,6 @@ public Builder clearEnablePrivateEndpoint() { private java.lang.Object clusterHostname_ = ""; /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -998,13 +887,13 @@ public Builder clearEnablePrivateEndpoint() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ public java.lang.String getClusterHostname() { java.lang.Object ref = clusterHostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; @@ -1013,8 +902,6 @@ public java.lang.String getClusterHostname() { } } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1024,14 +911,15 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ - public com.google.protobuf.ByteString getClusterHostnameBytes() { + public com.google.protobuf.ByteString + getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -1039,8 +927,6 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() { } } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1050,22 +936,18 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clusterHostname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1075,7 +957,6 @@ public Builder setClusterHostname(java.lang.String value) {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterHostname() { @@ -1085,8 +966,6 @@ public Builder clearClusterHostname() { return this; } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1096,14 +975,12 @@ public Builder clearClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterHostname_ = value; bitField0_ |= 0x00000002; @@ -1113,8 +990,6 @@ public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAttachmentUri_ = ""; /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1123,15 +998,14 @@ public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The serviceAttachmentUri. */ public java.lang.String getServiceAttachmentUri() { java.lang.Object ref = serviceAttachmentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; @@ -1140,8 +1014,6 @@ public java.lang.String getServiceAttachmentUri() { } } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1150,16 +1022,16 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for serviceAttachmentUri. */ - public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -1167,8 +1039,6 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { } } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1177,24 +1047,19 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAttachmentUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1203,9 +1068,7 @@ public Builder setServiceAttachmentUri(java.lang.String value) {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearServiceAttachmentUri() { @@ -1215,8 +1078,6 @@ public Builder clearServiceAttachmentUri() { return this; } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1225,16 +1086,13 @@ public Builder clearServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAttachmentUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; @@ -1244,7 +1102,6 @@ public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAllowedProjectsIsMutable() { if (!allowedProjects_.isModifiable()) { allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); @@ -1252,52 +1109,41 @@ private void ensureAllowedProjectsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { allowedProjects_.makeImmutable(); return allowedProjects_; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -1305,43 +1151,35 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The allowedProjects to set. * @return This builder for chaining. */ - public Builder setAllowedProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAllowedProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedProjectsIsMutable(); allowedProjects_.set(index, value); bitField0_ |= 0x00000008; @@ -1349,24 +1187,19 @@ public Builder setAllowedProjects(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); bitField0_ |= 0x00000008; @@ -1374,67 +1207,56 @@ public Builder addAllowedProjects(java.lang.String value) { return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param values The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllAllowedProjects(java.lang.Iterable values) { + public Builder addAllAllowedProjects( + java.lang.Iterable values) { ensureAllowedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedProjects_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowedProjects() { - allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + allowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); @@ -1442,7 +1264,6 @@ public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1455,45 +1276,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) - private static final com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1505,25 +1322,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1532,29 +1345,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; } } /** - * - * *
    * Full name of this workstation cluster.
    * 
* * 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 { @@ -1563,18 +1376,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -1583,29 +1392,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; } } /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1614,19 +1423,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -1635,30 +1440,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1669,15 +1474,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1686,106 +1488,94 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1793,34 +1583,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 15; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } - /** - * - * + /** *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1831,21 +1619,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1860,8 +1647,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1872,19 +1657,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1895,11 +1678,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1909,15 +1692,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1925,15 +1704,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1941,14 +1716,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1958,15 +1730,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1974,15 +1742,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1990,14 +1754,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2007,15 +1768,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -2023,15 +1780,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -2039,14 +1792,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -2054,12 +1804,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -2067,7 +1814,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -2076,15 +1822,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -2092,15 +1837,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -2109,19 +1855,15 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int NETWORK_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ @java.lang.Override @@ -2130,30 +1872,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -2162,12 +1904,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int SUBNETWORK_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -2175,7 +1914,6 @@ public com.google.protobuf.ByteString getNetworkBytes() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ @java.lang.Override @@ -2184,15 +1922,14 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -2200,15 +1937,16 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -2217,12 +1955,9 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } public static final int CONTROL_PLANE_IP_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object controlPlaneIp_ = ""; /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -2231,7 +1966,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The controlPlaneIp. */ @java.lang.Override @@ -2240,15 +1974,14 @@ public java.lang.String getControlPlaneIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; } } /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -2257,15 +1990,16 @@ public java.lang.String getControlPlaneIp() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for controlPlaneIp. */ @java.lang.Override - public com.google.protobuf.ByteString getControlPlaneIpBytes() { + public com.google.protobuf.ByteString + getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -2274,19 +2008,13 @@ public com.google.protobuf.ByteString getControlPlaneIpBytes() { } public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - privateClusterConfig_; + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -2294,51 +2022,32 @@ public boolean hasPrivateClusterConfig() { return privateClusterConfig_ != null; } /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateClusterConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig() { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } public static final int DEGRADED_FIELD_NUMBER = 13; private boolean degraded_ = false; /** - * - * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -2347,7 +2056,6 @@ public boolean hasPrivateClusterConfig() {
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -2356,87 +2064,72 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List conditions_; /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2448,7 +2141,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_); } @@ -2461,8 +2155,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -2490,8 +2188,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(14, conditions_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 15); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, controlPlaneIp_); } @@ -2514,26 +2216,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); @@ -2545,24 +2251,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); } if (privateClusterConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPrivateClusterConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getPrivateClusterConfig()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, degraded_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, conditions_.get(i)); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, conditions_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, controlPlaneIp_); @@ -2575,42 +2283,57 @@ 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.workstations.v1.WorkstationCluster)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationCluster other = - (com.google.cloud.workstations.v1.WorkstationCluster) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.WorkstationCluster other = (com.google.cloud.workstations.v1.WorkstationCluster) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getControlPlaneIp().equals(other.getControlPlaneIp())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (!getControlPlaneIp() + .equals(other.getControlPlaneIp())) return false; if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; + if (!getPrivateClusterConfig() + .equals(other.getPrivateClusterConfig())) return false; } - if (getDegraded() != other.getDegraded()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2629,7 +2352,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -2663,7 +2387,8 @@ public int hashCode() { hash = (53 * hash) + getPrivateClusterConfig().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -2674,103 +2399,98 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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 workstation cluster resource in the Cloud Workstations API.
    *
@@ -2780,56 +2500,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster}
    */
-  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.workstations.v1.WorkstationCluster)
       com.google.cloud.workstations.v1.WorkstationClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 15:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 15:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationCluster.class,
-              com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1.WorkstationCluster.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2876,9 +2599,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
     }
 
     @java.lang.Override
@@ -2897,18 +2620,14 @@ public com.google.cloud.workstations.v1.WorkstationCluster build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1.WorkstationCluster buildPartial() {
-      com.google.cloud.workstations.v1.WorkstationCluster result =
-          new com.google.cloud.workstations.v1.WorkstationCluster(this);
+      com.google.cloud.workstations.v1.WorkstationCluster result = new com.google.cloud.workstations.v1.WorkstationCluster(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workstations.v1.WorkstationCluster result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationCluster result) {
       if (conditionsBuilder_ == null) {
         if (((bitField0_ & 0x00008000) != 0)) {
           conditions_ = java.util.Collections.unmodifiableList(conditions_);
@@ -2943,13 +2662,19 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
@@ -2964,10 +2689,9 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
         result.controlPlaneIp_ = controlPlaneIp_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.privateClusterConfig_ =
-            privateClusterConfigBuilder_ == null
-                ? privateClusterConfig_
-                : privateClusterConfigBuilder_.build();
+        result.privateClusterConfig_ = privateClusterConfigBuilder_ == null
+            ? privateClusterConfig_
+            : privateClusterConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
         result.degraded_ = degraded_;
@@ -2978,39 +2702,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
     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.workstations.v1.WorkstationCluster) {
-        return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster) other);
+        return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3018,8 +2741,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster other) {
-      if (other == com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -3038,9 +2760,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster oth
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -3095,10 +2819,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster oth
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00008000);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -3130,128 +2853,116 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                network_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                subnetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(
-                    getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 98
-            case 104:
-              {
-                degraded_ = input.readBool();
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 104
-            case 114:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 122:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 122
-            case 130:
-              {
-                controlPlaneIp_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 130
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              network_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              subnetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getPrivateClusterConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 98
+            case 104: {
+              degraded_ = input.readBool();
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 104
+            case 114: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 122: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 122
+            case 130: {
+              controlPlaneIp_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 130
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3261,25 +2972,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Full name of this workstation cluster.
      * 
* * 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; @@ -3288,21 +2996,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * 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 { @@ -3310,35 +3017,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3348,21 +3048,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3372,20 +3068,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -3394,21 +3088,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -3416,35 +3109,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3454,21 +3140,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3478,21 +3160,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3501,22 +3181,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -3524,37 +3203,30 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -3564,22 +3236,18 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -3587,17 +3255,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -3605,15 +3270,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -3625,15 +3287,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3643,8 +3302,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3653,12 +3312,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3667,168 +3325,153 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } - /** - * - * + /** *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3837,13 +3480,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3854,21 +3494,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3883,8 +3522,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3895,19 +3532,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3918,25 +3553,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3946,22 +3579,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3971,20 +3605,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3994,66 +3625,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4069,17 +3683,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -4090,21 +3701,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -4117,15 +3724,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4138,15 +3741,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -4154,48 +3753,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4203,58 +3790,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4270,17 +3838,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4291,21 +3856,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4318,15 +3879,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -4339,15 +3896,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -4355,48 +3908,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4404,58 +3945,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -4471,17 +3993,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -4492,21 +4011,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4519,15 +4034,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4540,15 +4051,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -4556,48 +4063,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4605,8 +4100,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4614,13 +4107,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4629,8 +4122,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4638,14 +4129,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -4653,8 +4145,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4662,22 +4152,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4685,7 +4171,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4695,8 +4180,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4704,14 +4187,12 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -4721,21 +4202,19 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object network_ = ""; /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -4744,22 +4223,21 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -4767,37 +4245,30 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4807,22 +4278,18 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; @@ -4832,8 +4299,6 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnetwork_ = ""; /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4841,13 +4306,13 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -4856,8 +4321,6 @@ public java.lang.String getSubnetwork() { } } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4865,14 +4328,15 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -4880,8 +4344,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4889,22 +4351,18 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subnetwork_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4912,7 +4370,6 @@ public Builder setSubnetwork(java.lang.String value) {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -4922,8 +4379,6 @@ public Builder clearSubnetwork() { return this; } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4931,14 +4386,12 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000800; @@ -4948,8 +4401,6 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object controlPlaneIp_ = ""; /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4958,13 +4409,13 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The controlPlaneIp. */ public java.lang.String getControlPlaneIp() { java.lang.Object ref = controlPlaneIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; @@ -4973,8 +4424,6 @@ public java.lang.String getControlPlaneIp() { } } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4983,14 +4432,15 @@ public java.lang.String getControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for controlPlaneIp. */ - public com.google.protobuf.ByteString getControlPlaneIpBytes() { + public com.google.protobuf.ByteString + getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -4998,8 +4448,6 @@ public com.google.protobuf.ByteString getControlPlaneIpBytes() { } } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -5008,22 +4456,18 @@ public com.google.protobuf.ByteString getControlPlaneIpBytes() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIp(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setControlPlaneIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } controlPlaneIp_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -5032,7 +4476,6 @@ public Builder setControlPlaneIp(java.lang.String value) {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearControlPlaneIp() { @@ -5042,8 +4485,6 @@ public Builder clearControlPlaneIp() { return this; } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -5052,14 +4493,12 @@ public Builder clearControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIpBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setControlPlaneIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); controlPlaneIp_ = value; bitField0_ |= 0x00001000; @@ -5067,66 +4506,43 @@ public Builder setControlPlaneIpBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - privateClusterConfig_; + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> - privateClusterConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privateClusterConfig field is set. */ public boolean hasPrivateClusterConfig() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateClusterConfig. */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } else { return privateClusterConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5140,19 +4556,14 @@ public Builder setPrivateClusterConfig( return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { if (privateClusterConfigBuilder_ == null) { privateClusterConfig_ = builderForValue.build(); } else { @@ -5163,24 +4574,17 @@ public Builder setPrivateClusterConfig( return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePrivateClusterConfig( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && privateClusterConfig_ != null - && privateClusterConfig_ - != com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + privateClusterConfig_ != null && + privateClusterConfig_ != com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { getPrivateClusterConfigBuilder().mergeFrom(value); } else { privateClusterConfig_ = value; @@ -5193,15 +4597,11 @@ public Builder mergePrivateClusterConfig( return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00002000); @@ -5214,76 +4614,55 @@ public Builder clearPrivateClusterConfig() { return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder - getPrivateClusterConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { bitField0_ |= 0x00002000; onChanged(); return getPrivateClusterConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { if (privateClusterConfigBuilder_ != null) { return privateClusterConfigBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + return privateClusterConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> getPrivateClusterConfigFieldBuilder() { if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), getParentForChildren(), isClean()); + privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), + getParentForChildren(), + isClean()); privateClusterConfig_ = null; } return privateClusterConfigBuilder_; } - private boolean degraded_; + private boolean degraded_ ; /** - * - * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -5292,7 +4671,6 @@ public Builder clearPrivateClusterConfig() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -5300,8 +4678,6 @@ public boolean getDegraded() { return degraded_; } /** - * - * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -5310,7 +4686,6 @@ public boolean getDegraded() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The degraded to set. * @return This builder for chaining. */ @@ -5322,8 +4697,6 @@ public Builder setDegraded(boolean value) { return this; } /** - * - * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -5332,7 +4705,6 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -5342,30 +4714,25 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = java.util.Collections.emptyList(); - + private java.util.List conditions_ = + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00008000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00008000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -5375,16 +4742,12 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -5394,16 +4757,12 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -5413,18 +4772,15 @@ public com.google.rpc.Status getConditions(int index) { } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status value) { + public Builder setConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5438,18 +4794,15 @@ public Builder setConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -5460,16 +4813,12 @@ public Builder setConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -5485,18 +4834,15 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status value) { + public Builder addConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5510,18 +4856,15 @@ public Builder addConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -5532,18 +4875,15 @@ public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -5554,21 +4894,19 @@ public Builder addConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAllConditions(java.lang.Iterable values) { + public Builder addAllConditions( + java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -5576,16 +4914,12 @@ public Builder addAllConditions(java.lang.Iterable * Output only. Status conditions describing the workstation cluster's current * state. *
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -5598,16 +4932,12 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -5620,52 +4950,42 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder getConditionsBuilder(int index) { + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -5673,69 +4993,59 @@ public java.util.List getConditionsOrB } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - conditions_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; } - @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); } @@ -5745,12 +5055,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationCluster) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster) private static final com.google.cloud.workstations.v1.WorkstationCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster(); } @@ -5759,27 +5069,27 @@ public static com.google.cloud.workstations.v1.WorkstationCluster getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5794,4 +5104,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java similarity index 74% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java index 8a2135fb881e..aacc396c1d0d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java @@ -1,185 +1,140 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationClusterOrBuilder - extends +public interface WorkstationClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAnnotationsCount(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -191,8 +146,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -202,13 +155,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -218,10 +173,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -232,13 +186,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -248,125 +200,91 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -374,13 +292,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -388,41 +303,34 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -430,13 +338,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -444,14 +349,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString getSubnetworkBytes(); + com.google.protobuf.ByteString + getSubnetworkBytes(); /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -460,13 +363,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The controlPlaneIp. */ java.lang.String getControlPlaneIp(); /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -475,57 +375,39 @@ java.lang.String getLabelsOrDefault(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for controlPlaneIp. */ - com.google.protobuf.ByteString getControlPlaneIpBytes(); + com.google.protobuf.ByteString + getControlPlaneIpBytes(); /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateClusterConfig. */ - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); /** - * - * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -534,69 +416,56 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ boolean getDegraded(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.Status getConditions(int index); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java index b02f6d62413f..c84bfc4c0c48 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** - * - * *
  * A workstation configuration resource in the Cloud Workstations API.
  *
@@ -35,16 +18,15 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig}
  */
-public final class WorkstationConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WorkstationConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig)
     WorkstationConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WorkstationConfig.newBuilder() to construct.
   private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WorkstationConfig() {
     name_ = "";
     displayName_ = "";
@@ -52,140 +34,122 @@ private WorkstationConfig() {
     etag_ = "";
     persistentDirectories_ = java.util.Collections.emptyList();
     readinessChecks_ = java.util.Collections.emptyList();
-    replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    replicaZones_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     conditions_ = 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 WorkstationConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workstations.v1.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 18:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
+    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1.WorkstationConfig.class,
-            com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
+            com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
   }
 
-  public interface HostOrBuilder
-      extends
+  public interface HostOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ boolean hasGceInstance(); /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance(); /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); com.google.cloud.workstations.v1.WorkstationConfig.Host.ConfigCase getConfigCase(); } /** - * - * *
    * Runtime host for a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} */ - public static final class Host extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Host extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host) HostOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Host() {} + private Host() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Host(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); } - public interface GceInstanceOrBuilder - extends + public interface GceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -195,13 +159,10 @@ public interface GceInstanceOrBuilder
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -211,14 +172,12 @@ public interface GceInstanceOrBuilder
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -240,13 +199,10 @@ public interface GceInstanceOrBuilder
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -268,14 +224,12 @@ public interface GceInstanceOrBuilder
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -284,15 +238,12 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - java.util.List getServiceAccountScopesList(); + java.util.List + getServiceAccountScopesList(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -301,15 +252,11 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ int getServiceAccountScopesCount(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -318,16 +265,12 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ java.lang.String getServiceAccountScopes(int index); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -336,17 +279,14 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); + com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -358,13 +298,11 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - java.util.List getTagsList(); + java.util.List + getTagsList(); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -376,13 +314,10 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ int getTagsCount(); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -394,14 +329,11 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -413,15 +345,13 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString getTagsBytes(int index); + com.google.protobuf.ByteString + getTagsBytes(int index); /** - * - * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -429,28 +359,22 @@ public interface GceInstanceOrBuilder
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The poolSize. */ int getPoolSize(); /** - * - * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pooledInstances. */ int getPooledInstances(); /** - * - * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -461,16 +385,12 @@ public interface GceInstanceOrBuilder
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The disablePublicIpAddresses. */ boolean getDisablePublicIpAddresses(); /** - * - * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -508,266 +428,202 @@ public interface GceInstanceOrBuilder
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableNestedVirtualization. */ boolean getEnableNestedVirtualization(); /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig - getShieldedInstanceConfig(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); /** - * - * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); } /** - * - * *
      * A runtime using a Compute Engine instance.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} */ - public static final class GceInstance extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceInstance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) GceInstanceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceInstance.newBuilder() to construct. private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceInstance() { machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceInstance(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); } - public interface GceShieldedInstanceConfigOrBuilder - extends + public interface GceShieldedInstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** - * - * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ boolean getEnableVtpm(); /** - * - * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class GceShieldedInstanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceShieldedInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) GceShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceShieldedInstanceConfig.newBuilder() to construct. - private GceShieldedInstanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GceShieldedInstanceConfig() {} + private GceShieldedInstanceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceShieldedInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_ = false; /** - * - * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -778,14 +634,11 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_ = false; /** - * - * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ @java.lang.Override @@ -796,15 +649,11 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_ = false; /** - * - * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -813,7 +662,6 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -826,7 +674,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 (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -846,15 +694,16 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, enableIntegrityMonitoring_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -864,24 +713,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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - other = - (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) - obj; - - if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; + + if (getEnableSecureBoot() + != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() + != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() + != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -894,131 +738,103 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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 @@ -1028,46 +844,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * Protobuf type {@code - * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1079,26 +888,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1106,25 +908,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result = - new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableSecureBoot_ = enableSecureBoot_; @@ -1141,60 +932,46 @@ private void buildPartial0( 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) - other); + if (other instanceof com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - other) { - if (other - == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -1230,31 +1007,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enableVtpm_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1264,19 +1037,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableSecureBoot_; + private boolean enableSecureBoot_ ; /** - * - * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -1284,14 +1053,11 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** - * - * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ @@ -1303,14 +1069,11 @@ public Builder setEnableSecureBoot(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { @@ -1320,16 +1083,13 @@ public Builder clearEnableSecureBoot() { return this; } - private boolean enableVtpm_; + private boolean enableVtpm_ ; /** - * - * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ @java.lang.Override @@ -1337,14 +1097,11 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** - * - * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableVtpm to set. * @return This builder for chaining. */ @@ -1356,14 +1113,11 @@ public Builder setEnableVtpm(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableVtpm() { @@ -1373,17 +1127,13 @@ public Builder clearEnableVtpm() { return this; } - private boolean enableIntegrityMonitoring_; + private boolean enableIntegrityMonitoring_ ; /** - * - * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -1391,15 +1141,11 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** - * - * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ @@ -1411,15 +1157,11 @@ public Builder setEnableIntegrityMonitoring(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { @@ -1428,7 +1170,6 @@ public Builder clearEnableIntegrityMonitoring() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1441,48 +1182,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,91 +1228,73 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GceConfidentialInstanceConfigOrBuilder - extends + public interface GceConfidentialInstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableConfidentialCompute. */ boolean getEnableConfidentialCompute(); } /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class GceConfidentialInstanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceConfidentialInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) GceConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceConfidentialInstanceConfig.newBuilder() to construct. - private GceConfidentialInstanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GceConfidentialInstanceConfig() {} + private GceConfidentialInstanceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceConfidentialInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); } public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; /** - * - * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1587,7 +1303,6 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1600,7 +1315,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 (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -1614,9 +1329,8 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, enableConfidentialCompute_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1626,22 +1340,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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - other = - (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) - obj; - - if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; + + if (getEnableConfidentialCompute() + != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1654,127 +1361,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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 @@ -1784,46 +1461,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * Protobuf type {@code - * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1833,26 +1503,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1860,25 +1523,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result = - new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; @@ -1889,60 +1541,46 @@ private void buildPartial0( 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.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) - other); + if (other instanceof com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - other) { - if (other - == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } @@ -1972,19 +1610,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableConfidentialCompute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1994,20 +1630,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableConfidentialCompute_; + private boolean enableConfidentialCompute_ ; /** - * - * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableConfidentialCompute. */ @java.lang.Override @@ -2015,15 +1646,11 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** - * - * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ @@ -2035,15 +1662,11 @@ public Builder setEnableConfidentialCompute(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { @@ -2052,7 +1675,6 @@ public Builder clearEnableConfidentialCompute() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2065,48 +1687,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2118,20 +1733,16 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -2141,7 +1752,6 @@ public com.google.protobuf.Parser getParserForTyp
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ @java.lang.Override @@ -2150,15 +1760,14 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -2168,15 +1777,16 @@ public java.lang.String getMachineType() {
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -2185,12 +1795,9 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -2212,7 +1819,6 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ @java.lang.Override @@ -2221,15 +1827,14 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -2251,15 +1856,16 @@ public java.lang.String getServiceAccount() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2268,13 +1874,10 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -2283,17 +1886,14 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountScopesList() { return serviceAccountScopes_; } /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -2302,17 +1902,13 @@ public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -2321,9 +1917,7 @@ public int getServiceAccountScopesCount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -2331,8 +1925,6 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -2341,24 +1933,20 @@ public java.lang.String getServiceAccountScopes(int index) {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } public static final int TAGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2370,15 +1958,13 @@ public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2390,15 +1976,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2410,7 +1993,6 @@ public int getTagsCount() {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2418,8 +2000,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2431,19 +2011,17 @@ public java.lang.String getTags(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POOL_SIZE_FIELD_NUMBER = 5; private int poolSize_ = 0; /** - * - * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -2451,7 +2029,6 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The poolSize. */ @java.lang.Override @@ -2462,15 +2039,12 @@ public int getPoolSize() { public static final int POOLED_INSTANCES_FIELD_NUMBER = 12; private int pooledInstances_ = 0; /** - * - * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pooledInstances. */ @java.lang.Override @@ -2481,8 +2055,6 @@ public int getPooledInstances() { public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; private boolean disablePublicIpAddresses_ = false; /** - * - * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -2493,9 +2065,7 @@ public int getPooledInstances() {
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -2506,8 +2076,6 @@ public boolean getDisablePublicIpAddresses() { public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER = 7; private boolean enableNestedVirtualization_ = false; /** - * - * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -2545,9 +2113,7 @@ public boolean getDisablePublicIpAddresses() {
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableNestedVirtualization. */ @java.lang.Override @@ -2556,20 +2122,13 @@ public boolean getEnableNestedVirtualization() { } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - shieldedInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -2577,63 +2136,37 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - confidentialInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -2641,60 +2174,38 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; private int bootDiskSizeGb_ = 0; /** - * - * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -2703,7 +2214,6 @@ public int getBootDiskSizeGb() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2715,7 +2225,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -2723,8 +2234,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, serviceAccountScopes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountScopes_.getRaw(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); @@ -2782,31 +2292,32 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, poolSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, poolSize_); } if (disablePublicIpAddresses_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(6, disablePublicIpAddresses_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, disablePublicIpAddresses_); } if (enableNestedVirtualization_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableNestedVirtualization_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, enableNestedVirtualization_); } if (shieldedInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getShieldedInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getShieldedInstanceConfig()); } if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, bootDiskSizeGb_); } if (confidentialInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getConfidentialInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getConfidentialInstanceConfig()); } if (pooledInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, pooledInstances_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, pooledInstances_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2816,33 +2327,41 @@ 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.workstations.v1.WorkstationConfig.Host.GceInstance)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other = - (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) obj; - - if (!getMachineType().equals(other.getMachineType())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) - return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (getPoolSize() != other.getPoolSize()) return false; - if (getPooledInstances() != other.getPooledInstances()) return false; - if (getDisablePublicIpAddresses() != other.getDisablePublicIpAddresses()) return false; - if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getServiceAccountScopesList() + .equals(other.getServiceAccountScopesList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (getPoolSize() + != other.getPoolSize()) return false; + if (getPooledInstances() + != other.getPooledInstances()) return false; + if (getDisablePublicIpAddresses() + != other.getDisablePublicIpAddresses()) return false; + if (getEnableNestedVirtualization() + != other.getEnableNestedVirtualization()) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig() + .equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) - return false; + if (!getConfidentialInstanceConfig() + .equals(other.getConfidentialInstanceConfig())) return false; } - if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; + if (getBootDiskSizeGb() + != other.getBootDiskSizeGb()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2871,11 +2390,11 @@ public int hashCode() { hash = (37 * hash) + POOLED_INSTANCES_FIELD_NUMBER; hash = (53 * hash) + getPooledInstances(); hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePublicIpAddresses()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisablePublicIpAddresses()); hash = (37 * hash) + ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableNestedVirtualization()); if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); @@ -2892,96 +2411,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - 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.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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 @@ -2991,51 +2503,49 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A runtime using a Compute Engine instance.
        * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} */ - 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.workstations.v1.WorkstationConfig.Host.GceInstance) com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder - .class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); poolSize_ = 0; pooledInstances_ = 0; disablePublicIpAddresses_ = false; @@ -3055,22 +2565,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = - buildPartial(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3079,17 +2586,13 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance build @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = - new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.machineType_ = machineType_; @@ -3118,16 +2621,14 @@ private void buildPartial0( result.enableNestedVirtualization_ = enableNestedVirtualization_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.shieldedInstanceConfig_ = - shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.confidentialInstanceConfig_ = - confidentialInstanceConfigBuilder_ == null - ? confidentialInstanceConfig_ - : confidentialInstanceConfigBuilder_.build(); + result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.bootDiskSizeGb_ = bootDiskSizeGb_; @@ -3138,54 +2639,46 @@ private void buildPartial0( 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.workstations.v1.WorkstationConfig.Host.GceInstance) { - return mergeFrom( - (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) other); + if (other instanceof com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other) { - if (other - == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -3263,84 +2756,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: - { - poolSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - disablePublicIpAddresses_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 56: - { - enableNestedVirtualization_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 72: - { - bootDiskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 72 - case 82: - { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 96: - { - pooledInstances_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountScopesIsMutable(); + serviceAccountScopes_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: { + enableNestedVirtualization_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 72: { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 72 + case 82: { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 96: { + pooledInstances_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3350,13 +2832,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object machineType_ = ""; /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3366,13 +2845,13 @@ public Builder mergeFrom(
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -3381,8 +2860,6 @@ public java.lang.String getMachineType() { } } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3392,14 +2869,15 @@ public java.lang.String getMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -3407,8 +2885,6 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3418,22 +2894,18 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3443,7 +2915,6 @@ public Builder setMachineType(java.lang.String value) {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -3453,8 +2924,6 @@ public Builder clearMachineType() { return this; } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3464,14 +2933,12 @@ public Builder clearMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -3481,8 +2948,6 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccount_ = ""; /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3504,13 +2969,13 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -3519,8 +2984,6 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3542,14 +3005,15 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -3557,8 +3021,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3580,22 +3042,18 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3617,7 +3075,6 @@ public Builder setServiceAccount(java.lang.String value) {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -3627,8 +3084,6 @@ public Builder clearServiceAccount() { return this; } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3650,14 +3105,12 @@ public Builder clearServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; @@ -3667,17 +3120,13 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServiceAccountScopesIsMutable() { if (!serviceAccountScopes_.isModifiable()) { - serviceAccountScopes_ = - new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); + serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); } bitField0_ |= 0x00000004; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3686,19 +3135,15 @@ private void ensureServiceAccountScopesIsMutable() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountScopesList() { serviceAccountScopes_.makeImmutable(); return serviceAccountScopes_; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3707,18 +3152,13 @@ public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3727,10 +3167,7 @@ public int getServiceAccountScopesCount() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -3738,8 +3175,6 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3748,19 +3183,15 @@ public java.lang.String getServiceAccountScopes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3769,18 +3200,14 @@ public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The serviceAccountScopes to set. * @return This builder for chaining. */ - public Builder setServiceAccountScopes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); bitField0_ |= 0x00000004; @@ -3788,8 +3215,6 @@ public Builder setServiceAccountScopes(int index, java.lang.String value) { return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3798,17 +3223,13 @@ public Builder setServiceAccountScopes(int index, java.lang.String value) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceAccountScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); bitField0_ |= 0x00000004; @@ -3816,8 +3237,6 @@ public Builder addServiceAccountScopes(java.lang.String value) { return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3826,23 +3245,20 @@ public Builder addServiceAccountScopes(java.lang.String value) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountScopes(java.lang.Iterable values) { + public Builder addAllServiceAccountScopes( + java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceAccountScopes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3851,22 +3267,17 @@ public Builder addAllServiceAccountScopes(java.lang.Iterable v
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearServiceAccountScopes() { - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3875,17 +3286,13 @@ public Builder clearServiceAccountScopes() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceAccountScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); @@ -3896,7 +3303,6 @@ public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); @@ -3904,8 +3310,6 @@ private void ensureTagsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3917,16 +3321,14 @@ private void ensureTagsIsMutable() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { tags_.makeImmutable(); return tags_; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3938,15 +3340,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3958,7 +3357,6 @@ public int getTagsCount() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3966,8 +3364,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3979,16 +3375,14 @@ public java.lang.String getTags(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4000,15 +3394,13 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000008; @@ -4016,8 +3408,6 @@ public Builder setTags(int index, java.lang.String value) { return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4029,14 +3419,12 @@ public Builder setTags(int index, java.lang.String value) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000008; @@ -4044,8 +3432,6 @@ public Builder addTags(java.lang.String value) { return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4057,20 +3443,19 @@ public Builder addTags(java.lang.String value) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags(java.lang.Iterable values) { + public Builder addAllTags( + java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4082,19 +3467,16 @@ public Builder addAllTags(java.lang.Iterable values) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4106,14 +3488,12 @@ public Builder clearTags() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -4122,10 +3502,8 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { return this; } - private int poolSize_; + private int poolSize_ ; /** - * - * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -4133,7 +3511,6 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The poolSize. */ @java.lang.Override @@ -4141,8 +3518,6 @@ public int getPoolSize() { return poolSize_; } /** - * - * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -4150,7 +3525,6 @@ public int getPoolSize() {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The poolSize to set. * @return This builder for chaining. */ @@ -4162,8 +3536,6 @@ public Builder setPoolSize(int value) { return this; } /** - * - * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -4171,7 +3543,6 @@ public Builder setPoolSize(int value) {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPoolSize() { @@ -4181,17 +3552,14 @@ public Builder clearPoolSize() { return this; } - private int pooledInstances_; + private int pooledInstances_ ; /** - * - * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pooledInstances. */ @java.lang.Override @@ -4199,15 +3567,12 @@ public int getPooledInstances() { return pooledInstances_; } /** - * - * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pooledInstances to set. * @return This builder for chaining. */ @@ -4219,15 +3584,12 @@ public Builder setPooledInstances(int value) { return this; } /** - * - * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPooledInstances() { @@ -4237,10 +3599,8 @@ public Builder clearPooledInstances() { return this; } - private boolean disablePublicIpAddresses_; + private boolean disablePublicIpAddresses_ ; /** - * - * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -4251,9 +3611,7 @@ public Builder clearPooledInstances() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -4261,8 +3619,6 @@ public boolean getDisablePublicIpAddresses() { return disablePublicIpAddresses_; } /** - * - * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -4273,9 +3629,7 @@ public boolean getDisablePublicIpAddresses() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The disablePublicIpAddresses to set. * @return This builder for chaining. */ @@ -4287,8 +3641,6 @@ public Builder setDisablePublicIpAddresses(boolean value) { return this; } /** - * - * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -4299,9 +3651,7 @@ public Builder setDisablePublicIpAddresses(boolean value) {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDisablePublicIpAddresses() { @@ -4311,10 +3661,8 @@ public Builder clearDisablePublicIpAddresses() { return this; } - private boolean enableNestedVirtualization_; + private boolean enableNestedVirtualization_ ; /** - * - * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -4352,9 +3700,7 @@ public Builder clearDisablePublicIpAddresses() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableNestedVirtualization. */ @java.lang.Override @@ -4362,8 +3708,6 @@ public boolean getEnableNestedVirtualization() { return enableNestedVirtualization_; } /** - * - * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -4401,9 +3745,7 @@ public boolean getEnableNestedVirtualization() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableNestedVirtualization to set. * @return This builder for chaining. */ @@ -4415,8 +3757,6 @@ public Builder setEnableNestedVirtualization(boolean value) { return this; } /** - * - * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -4454,9 +3794,7 @@ public Builder setEnableNestedVirtualization(boolean value) {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableNestedVirtualization() { @@ -4466,73 +3804,43 @@ public Builder clearEnableNestedVirtualization() { return this; } - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - shieldedInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - value) { + public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4546,20 +3854,14 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = builderForValue.build(); } else { @@ -4570,26 +3872,17 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeShieldedInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - value) { + public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && shieldedInstanceConfig_ != null - && shieldedInstanceConfig_ - != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { getShieldedInstanceConfigBuilder().mergeFrom(value); } else { shieldedInstanceConfig_ = value; @@ -4602,15 +3895,11 @@ public Builder mergeShieldedInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearShieldedInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4623,147 +3912,90 @@ public Builder clearShieldedInstanceConfig() { return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { bitField0_ |= 0x00000100; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), + getParentForChildren(), + isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - confidentialInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder> - confidentialInstanceConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - value) { + public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4777,20 +4009,14 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { if (confidentialInstanceConfigBuilder_ == null) { confidentialInstanceConfig_ = builderForValue.build(); } else { @@ -4801,26 +4027,17 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeConfidentialInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - value) { + public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && confidentialInstanceConfig_ != null - && confidentialInstanceConfig_ - != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + confidentialInstanceConfig_ != null && + confidentialInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { getConfidentialInstanceConfigBuilder().mergeFrom(value); } else { confidentialInstanceConfig_ = value; @@ -4833,15 +4050,11 @@ public Builder mergeConfidentialInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConfidentialInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000200); @@ -4854,91 +4067,61 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder - getConfidentialInstanceConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { bitField0_ |= 0x00000200; onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), getParentForChildren(), isClean()); + confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), + getParentForChildren(), + isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - private int bootDiskSizeGb_; + private int bootDiskSizeGb_ ; /** - * - * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -4946,15 +4129,12 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** - * - * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ @@ -4966,15 +4146,12 @@ public Builder setBootDiskSizeGb(int value) { return this; } /** - * - * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { @@ -4983,7 +4160,6 @@ public Builder clearBootDiskSizeGb() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4996,45 +4172,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5046,25 +4218,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int configCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object config_; - public enum ConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_INSTANCE(1), CONFIG_NOT_SET(0); private final int value; - private ConfigCase(int value) { this.value = value; } @@ -5080,35 +4248,29 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: - return GCE_INSTANCE; - case 0: - return CONFIG_NOT_SET; - default: - return null; + case 1: return GCE_INSTANCE; + case 0: return CONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public static final int GCE_INSTANCE_FIELD_NUMBER = 1; /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -5116,47 +4278,36 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5168,10 +4319,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 (configCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + output.writeMessage(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); } getUnknownFields().writeTo(output); } @@ -5183,9 +4334,8 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5195,18 +4345,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.workstations.v1.WorkstationConfig.Host)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host other = - (com.google.cloud.workstations.v1.WorkstationConfig.Host) obj; + com.google.cloud.workstations.v1.WorkstationConfig.Host other = (com.google.cloud.workstations.v1.WorkstationConfig.Host) obj; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getGceInstance().equals(other.getGceInstance())) return false; + if (!getGceInstance() + .equals(other.getGceInstance())) return false; break; case 0: default: @@ -5236,94 +4386,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Host 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 @@ -5333,41 +4478,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Runtime host for a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} */ - 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.workstations.v1.WorkstationConfig.Host) com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.class, - com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); } // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -5381,9 +4524,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override @@ -5402,11 +4545,8 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host build() { @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host result = - new com.google.cloud.workstations.v1.WorkstationConfig.Host(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.WorkstationConfig.Host result = new com.google.cloud.workstations.v1.WorkstationConfig.Host(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -5416,11 +4556,11 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.workstations.v1.WorkstationConfig.Host result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.Host result) { result.configCase_ = configCase_; result.config_ = this.config_; - if (configCase_ == 1 && gceInstanceBuilder_ != null) { + if (configCase_ == 1 && + gceInstanceBuilder_ != null) { result.config_ = gceInstanceBuilder_.build(); } } @@ -5429,41 +4569,38 @@ private void buildPartialOneofs( 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.workstations.v1.WorkstationConfig.Host) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host) other); + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host)other); } else { super.mergeFrom(other); return this; @@ -5471,18 +4608,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) return this; switch (other.getConfigCase()) { - case GCE_INSTANCE: - { - mergeGceInstance(other.getGceInstance()); - break; - } - case CONFIG_NOT_SET: - { - break; - } + case GCE_INSTANCE: { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -5510,19 +4644,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGceInstanceFieldBuilder().getBuilder(), extensionRegistry); - configCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGceInstanceFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5532,12 +4666,12 @@ public Builder mergeFrom( } // finally return this; } - private int configCase_ = 0; private java.lang.Object config_; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public Builder clearConfig() { @@ -5550,20 +4684,13 @@ public Builder clearConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> - gceInstanceBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -5571,15 +4698,11 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ @java.lang.Override @@ -5588,28 +4711,22 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGc if (configCase_ == 1) { return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } else { if (configCase_ == 1) { return gceInstanceBuilder_.getMessage(); } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public Builder setGceInstance( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + public Builder setGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5623,18 +4740,14 @@ public Builder setGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ public Builder setGceInstance( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder - builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder builderForValue) { if (gceInstanceBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -5645,28 +4758,18 @@ public Builder setGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public Builder mergeGceInstance( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + public Builder mergeGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { - if (configCase_ == 1 - && config_ - != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance()) { - config_ = - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder( - (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) - config_) - .mergeFrom(value) - .buildPartial(); + if (configCase_ == 1 && + config_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { + config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_) + .mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -5682,14 +4785,11 @@ public Builder mergeGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ public Builder clearGceInstance() { if (gceInstanceBuilder_ == null) { @@ -5708,68 +4808,49 @@ public Builder clearGceInstance() { return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder - getGceInstanceBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { return getGceInstanceFieldBuilder().getBuilder(); } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { return gceInstanceBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 1) { return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> getGceInstanceFieldBuilder() { if (gceInstanceBuilder_ == null) { if (!(configCase_ == 1)) { - config_ = - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } - gceInstanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder>( + gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder>( (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_, getParentForChildren(), isClean()); @@ -5779,7 +4860,6 @@ public Builder clearGceInstance() { onChanged(); return gceInstanceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5792,12 +4872,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host) private static final com.google.cloud.workstations.v1.WorkstationConfig.Host DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host(); } @@ -5806,28 +4886,27 @@ public static com.google.cloud.workstations.v1.WorkstationConfig.Host getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Host parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5842,137 +4921,107 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationConfig.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PersistentDirectoryOrBuilder - extends + public interface PersistentDirectoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk - getGcePd(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.DirectoryTypeCase - getDirectoryTypeCase(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); } /** - * - * *
    * A directory to persist across workstation sessions.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} */ - public static final class PersistentDirectory extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PersistentDirectory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) PersistentDirectoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistentDirectory.newBuilder() to construct. private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PersistentDirectory() { mountPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PersistentDirectory(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); } - public interface GceRegionalPersistentDiskOrBuilder - extends + public interface GceRegionalPersistentDiskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -5987,14 +5036,11 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sizeGb. */ int getSizeGb(); /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6004,13 +5050,10 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The fsType. */ java.lang.String getFsType(); /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6020,14 +5063,12 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for fsType. */ - com.google.protobuf.ByteString getFsTypeBytes(); + com.google.protobuf.ByteString + getFsTypeBytes(); /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6035,13 +5076,10 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ java.lang.String getDiskType(); /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6049,14 +5087,12 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ - com.google.protobuf.ByteString getDiskTypeBytes(); + com.google.protobuf.ByteString + getDiskTypeBytes(); /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6067,13 +5103,10 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6084,49 +5117,35 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString getSourceSnapshotBytes(); + com.google.protobuf.ByteString + getSourceSnapshotBytes(); /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reclaimPolicy. */ int getReclaimPolicyValue(); /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The reclaimPolicy. */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine regional persistent
      * disk. The
@@ -6140,20 +5159,17 @@ public interface GceRegionalPersistentDiskOrBuilder
      * directory.
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class GceRegionalPersistentDisk - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceRegionalPersistentDisk extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) GceRegionalPersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceRegionalPersistentDisk.newBuilder() to construct. private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceRegionalPersistentDisk() { fsType_ = ""; diskType_ = ""; @@ -6163,42 +5179,35 @@ private GceRegionalPersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceRegionalPersistentDisk(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.class, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); } /** - * - * *
        * Value representing what should happen to the disk after the workstation
        * is deleted.
        * 
* - * Protobuf enum {@code - * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + * Protobuf enum {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} */ - public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { + public enum ReclaimPolicy + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Do not use.
          * 
@@ -6207,8 +5216,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ RECLAIM_POLICY_UNSPECIFIED(0), /** - * - * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -6217,8 +5224,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ DELETE(1), /** - * - * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -6231,8 +5236,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum {
         ;
 
         /**
-         *
-         *
          * 
          * Do not use.
          * 
@@ -6241,8 +5244,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; /** - * - * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -6251,8 +5252,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETE_VALUE = 1; /** - * - * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -6262,6 +5261,7 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RETAIN_VALUE = 2;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -6286,14 +5286,10 @@ public static ReclaimPolicy valueOf(int value) {
          */
         public static ReclaimPolicy forNumber(int value) {
           switch (value) {
-            case 0:
-              return RECLAIM_POLICY_UNSPECIFIED;
-            case 1:
-              return DELETE;
-            case 2:
-              return RETAIN;
-            default:
-              return null;
+            case 0: return RECLAIM_POLICY_UNSPECIFIED;
+            case 1: return DELETE;
+            case 2: return RETAIN;
+            default: return null;
           }
         }
 
@@ -6301,32 +5297,29 @@ public static ReclaimPolicy forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
+        private static final com.google.protobuf.Internal.EnumLiteMap<
+            ReclaimPolicy> internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public ReclaimPolicy findValueByNumber(int number) {
+                  return ReclaimPolicy.forNumber(number);
+                }
+              };
 
-        private static final com.google.protobuf.Internal.EnumLiteMap
-            internalValueMap =
-                new com.google.protobuf.Internal.EnumLiteMap() {
-                  public ReclaimPolicy findValueByNumber(int number) {
-                    return ReclaimPolicy.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.workstations.v1.WorkstationConfig.PersistentDirectory
-              .GceRegionalPersistentDisk.getDescriptor()
-              .getEnumTypes()
-              .get(0);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0);
         }
 
         private static final ReclaimPolicy[] VALUES = values();
@@ -6335,7 +5328,7 @@ public static ReclaimPolicy valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-                "EnumValueDescriptor is not for this type.");
+              "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -6355,8 +5348,6 @@ private ReclaimPolicy(int value) {
       public static final int SIZE_GB_FIELD_NUMBER = 1;
       private int sizeGb_ = 0;
       /**
-       *
-       *
        * 
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -6371,7 +5362,6 @@ private ReclaimPolicy(int value) {
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sizeGb. */ @java.lang.Override @@ -6380,12 +5370,9 @@ public int getSizeGb() { } public static final int FS_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object fsType_ = ""; /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6395,7 +5382,6 @@ public int getSizeGb() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The fsType. */ @java.lang.Override @@ -6404,15 +5390,14 @@ public java.lang.String getFsType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; } } /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6422,15 +5407,16 @@ public java.lang.String getFsType() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for fsType. */ @java.lang.Override - public com.google.protobuf.ByteString getFsTypeBytes() { + public com.google.protobuf.ByteString + getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fsType_ = b; return b; } else { @@ -6439,12 +5425,9 @@ public com.google.protobuf.ByteString getFsTypeBytes() { } public static final int DISK_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6452,7 +5435,6 @@ public com.google.protobuf.ByteString getFsTypeBytes() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ @java.lang.Override @@ -6461,15 +5443,14 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6477,15 +5458,16 @@ public java.lang.String getDiskType() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -6494,12 +5476,9 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6510,7 +5489,6 @@ public com.google.protobuf.ByteString getDiskTypeBytes() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ @java.lang.Override @@ -6519,15 +5497,14 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6538,15 +5515,16 @@ public java.lang.String getSourceSnapshot() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -6557,56 +5535,34 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; private int reclaimPolicy_ = 0; /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override - public int getReclaimPolicyValue() { + @java.lang.Override public int getReclaimPolicyValue() { return reclaimPolicy_; } /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The reclaimPolicy. */ - @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - result = - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null - ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6618,7 +5574,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 (sizeGb_ != 0) { output.writeInt32(1, sizeGb_); } @@ -6628,10 +5585,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); } - if (reclaimPolicy_ - != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED - .getNumber()) { + if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { @@ -6647,7 +5601,8 @@ public int getSerializedSize() { size = 0; if (sizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); @@ -6655,11 +5610,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); } - if (reclaimPolicy_ - != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reclaimPolicy_); + if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); @@ -6672,25 +5625,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.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk)) { + if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - other = - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - obj; - - if (getSizeGb() != other.getSizeGb()) return false; - if (!getFsType().equals(other.getFsType())) return false; - if (!getDiskType().equals(other.getDiskType())) return false; - if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; + + if (getSizeGb() + != other.getSizeGb()) return false; + if (!getFsType() + .equals(other.getFsType())) return false; + if (!getDiskType() + .equals(other.getDiskType())) return false; + if (!getSourceSnapshot() + .equals(other.getSourceSnapshot())) return false; if (reclaimPolicy_ != other.reclaimPolicy_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6718,117 +5667,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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 @@ -6838,8 +5760,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine regional persistent
        * disk. The
@@ -6853,40 +5773,35 @@ protected Builder newBuilderForType(
        * directory.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.class, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6900,26 +5815,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - build() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6927,25 +5835,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result = - new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sizeGb_ = sizeGb_; @@ -6968,60 +5865,46 @@ private void buildPartial0( 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.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) { - return mergeFrom( - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - other); + if (other instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - other) { - if (other - == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; if (other.getSizeGb() != 0) { setSizeGb(other.getSizeGb()); } @@ -7069,43 +5952,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - fsType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - reclaimPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7115,13 +5992,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int sizeGb_; + private int sizeGb_ ; /** - * - * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -7136,7 +6010,6 @@ public Builder mergeFrom(
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sizeGb. */ @java.lang.Override @@ -7144,8 +6017,6 @@ public int getSizeGb() { return sizeGb_; } /** - * - * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -7160,7 +6031,6 @@ public int getSizeGb() {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sizeGb to set. * @return This builder for chaining. */ @@ -7172,8 +6042,6 @@ public Builder setSizeGb(int value) { return this; } /** - * - * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -7188,7 +6056,6 @@ public Builder setSizeGb(int value) {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -7200,8 +6067,6 @@ public Builder clearSizeGb() { private java.lang.Object fsType_ = ""; /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7211,13 +6076,13 @@ public Builder clearSizeGb() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The fsType. */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; @@ -7226,8 +6091,6 @@ public java.lang.String getFsType() { } } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7237,14 +6100,15 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for fsType. */ - public com.google.protobuf.ByteString getFsTypeBytes() { + public com.google.protobuf.ByteString + getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fsType_ = b; return b; } else { @@ -7252,8 +6116,6 @@ public com.google.protobuf.ByteString getFsTypeBytes() { } } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7263,22 +6125,18 @@ public com.google.protobuf.ByteString getFsTypeBytes() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fsType to set. * @return This builder for chaining. */ - public Builder setFsType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFsType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fsType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7288,7 +6146,6 @@ public Builder setFsType(java.lang.String value) {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFsType() { @@ -7298,8 +6155,6 @@ public Builder clearFsType() { return this; } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7309,14 +6164,12 @@ public Builder clearFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for fsType to set. * @return This builder for chaining. */ - public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFsTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fsType_ = value; bitField0_ |= 0x00000002; @@ -7326,8 +6179,6 @@ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object diskType_ = ""; /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7335,13 +6186,13 @@ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -7350,8 +6201,6 @@ public java.lang.String getDiskType() { } } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7359,14 +6208,15 @@ public java.lang.String getDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -7374,8 +6224,6 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7383,22 +6231,18 @@ public com.google.protobuf.ByteString getDiskTypeBytes() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } diskType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7406,7 +6250,6 @@ public Builder setDiskType(java.lang.String value) {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -7416,8 +6259,6 @@ public Builder clearDiskType() { return this; } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7425,14 +6266,12 @@ public Builder clearDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000004; @@ -7442,8 +6281,6 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceSnapshot_ = ""; /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7454,13 +6291,13 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -7469,8 +6306,6 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7481,14 +6316,15 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -7496,8 +6332,6 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { } } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7508,22 +6342,18 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceSnapshot_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7534,7 +6364,6 @@ public Builder setSourceSnapshot(java.lang.String value) {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -7544,8 +6373,6 @@ public Builder clearSourceSnapshot() { return this; } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7556,14 +6383,12 @@ public Builder clearSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000008; @@ -7573,37 +6398,26 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { private int reclaimPolicy_ = 0; /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override - public int getReclaimPolicyValue() { + @java.lang.Override public int getReclaimPolicyValue() { return reclaimPolicy_; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for reclaimPolicy to set. * @return This builder for chaining. */ @@ -7614,54 +6428,32 @@ public Builder setReclaimPolicyValue(int value) { return this; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The reclaimPolicy. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - result = - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null - ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED - : result; + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The reclaimPolicy to set. * @return This builder for chaining. */ - public Builder setReclaimPolicy( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - value) { + public Builder setReclaimPolicy(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { if (value == null) { throw new NullPointerException(); } @@ -7671,18 +6463,13 @@ public Builder setReclaimPolicy( return this; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearReclaimPolicy() { @@ -7691,7 +6478,6 @@ public Builder clearReclaimPolicy() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7704,48 +6490,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceRegionalPersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7757,26 +6536,21 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int directoryTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object directoryType_; - public enum DirectoryTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(2), DIRECTORYTYPE_NOT_SET(0); private final int value; - private DirectoryTypeCase(int value) { this.value = value; } @@ -7792,36 +6566,29 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 2: - return GCE_PD; - case 0: - return DIRECTORYTYPE_NOT_SET; - default: - return null; + case 2: return GCE_PD; + case 0: return DIRECTORYTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DirectoryTypeCase getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber(directoryTypeCase_); + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); } public static final int GCE_PD_FIELD_NUMBER = 2; /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -7829,67 +6596,44 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mountPath. */ @java.lang.Override @@ -7898,29 +6642,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -7929,7 +6673,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7941,16 +6684,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(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_); + output.writeMessage(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); } getUnknownFields().writeTo(output); } @@ -7965,12 +6705,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7980,20 +6716,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.workstations.v1.WorkstationConfig.PersistentDirectory)) { + if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other = - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) obj; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) obj; - if (!getMountPath().equals(other.getMountPath())) return false; + if (!getMountPath() + .equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 2: - if (!getGcePd().equals(other.getGcePd())) return false; + if (!getGcePd() + .equals(other.getGcePd())) return false; break; case 0: default: @@ -8025,95 +6761,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - 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.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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 @@ -8123,43 +6853,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A directory to persist across workstation sessions.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} */ - 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.workstations.v1.WorkstationConfig.PersistentDirectory) com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder - .class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -8174,22 +6900,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory build() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = - buildPartial(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8198,29 +6921,25 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory bu @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = - new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.mountPath_ = mountPath_; } } - private void buildPartialOneofs( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { result.directoryTypeCase_ = directoryTypeCase_; result.directoryType_ = this.directoryType_; - if (directoryTypeCase_ == 2 && gcePdBuilder_ != null) { + if (directoryTypeCase_ == 2 && + gcePdBuilder_ != null) { result.directoryType_ = gcePdBuilder_.build(); } } @@ -8229,69 +6948,59 @@ private void buildPartialOneofs( 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.workstations.v1.WorkstationConfig.PersistentDirectory) { - return mergeFrom( - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) other); + if (other instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) { + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other) { - if (other - == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; if (!other.getMountPath().isEmpty()) { mountPath_ = other.mountPath_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDirectoryTypeCase()) { - case GCE_PD: - { - mergeGcePd(other.getGcePd()); - break; - } - case DIRECTORYTYPE_NOT_SET: - { - break; - } + case GCE_PD: { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -8319,25 +7028,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mountPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry); - directoryTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getGcePdFieldBuilder().getBuilder(), + extensionRegistry); + directoryTypeCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8347,12 +7055,12 @@ public Builder mergeFrom( } // finally return this; } - private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - - public DirectoryTypeCase getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber(directoryTypeCase_); + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); } public Builder clearDirectoryType() { @@ -8365,24 +7073,13 @@ public Builder clearDirectoryType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder> - gcePdBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -8390,53 +7087,35 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 2) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public Builder setGcePd( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - value) { + public Builder setGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8450,20 +7129,14 @@ public Builder setGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ public Builder setGcePd( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder - builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -8474,33 +7147,18 @@ public Builder setGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public Builder mergeGcePd( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - value) { + public Builder mergeGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 2 - && directoryType_ - != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance()) { - directoryType_ = - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.newBuilder( - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_) - .mergeFrom(value) - .buildPartial(); + if (directoryTypeCase_ == 2 && + directoryType_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) + .mergeFrom(value).buildPartial(); } else { directoryType_ = value; } @@ -8516,15 +7174,11 @@ public Builder mergeGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -8543,84 +7197,50 @@ public Builder clearGcePd() { return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder - getGcePdBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 2)) { - directoryType_ = - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } - gcePdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_, + gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -8632,20 +7252,18 @@ public Builder clearGcePd() { private java.lang.Object mountPath_ = ""; /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -8654,21 +7272,20 @@ public java.lang.String getMountPath() { } } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -8676,35 +7293,28 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -8714,28 +7324,23 @@ public Builder clearMountPath() { return this; } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8748,45 +7353,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) - private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistentDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8798,20 +7399,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ContainerOrBuilder - extends + public interface ContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Container) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -8828,13 +7426,10 @@ public interface ContainerOrBuilder
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -8851,120 +7446,98 @@ public interface ContainerOrBuilder
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the command. */ - java.util.List getCommandList(); + java.util.List + getCommandList(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of command. */ int getCommandCount(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString getCommandBytes(int index); + com.google.protobuf.ByteString + getCommandBytes(int index); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -8973,31 +7546,30 @@ public interface ContainerOrBuilder */ int getEnvCount(); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsEnv(java.lang.String key); - /** Use {@link #getEnvMap()} instead. */ + boolean containsEnv( + java.lang.String key); + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnv(); + java.util.Map + getEnv(); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getEnvMap(); + java.util.Map + getEnvMap(); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -9005,125 +7577,112 @@ public interface ContainerOrBuilder * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getEnvOrDefault( +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getEnvOrThrow(java.lang.String key); + java.lang.String getEnvOrThrow( + java.lang.String key); /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The workingDir. */ java.lang.String getWorkingDir(); /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString getWorkingDirBytes(); + com.google.protobuf.ByteString + getWorkingDirBytes(); /** - * - * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The runAsUser. */ int getRunAsUser(); } /** - * - * *
    * A Docker container.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} */ - public static final class Container extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Container) ContainerOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Container() { image_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = + com.google.protobuf.LazyStringArrayList.emptyList(); workingDir_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Container(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Container.class, - com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -9140,7 +7699,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The image. */ @java.lang.Override @@ -9149,15 +7707,14 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -9174,15 +7731,16 @@ public java.lang.String getImage() {
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -9191,50 +7749,41 @@ public com.google.protobuf.ByteString getImageBytes() { } public static final int COMMAND_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { return command_; } /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -9242,64 +7791,53 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -9307,50 +7845,46 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 4; - private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -9358,21 +7892,20 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnv().getMap().containsKey(key); } - /** Use {@link #getEnvMap()} instead. */ + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -9384,8 +7917,6 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -9393,19 +7924,17 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getEnvOrDefault( + public /* nullable */ +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -9413,11 +7942,11 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -9425,18 +7954,14 @@ public java.lang.String getEnvOrThrow(java.lang.String key) { } public static final int WORKING_DIR_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object workingDir_ = ""; /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The workingDir. */ @java.lang.Override @@ -9445,29 +7970,29 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -9478,15 +8003,12 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { public static final int RUN_AS_USER_FIELD_NUMBER = 6; private int runAsUser_ = 0; /** - * - * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The runAsUser. */ @java.lang.Override @@ -9495,7 +8017,6 @@ public int getRunAsUser() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9507,7 +8028,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(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -9517,8 +8039,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnv(), + EnvDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } @@ -9553,21 +8079,22 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } - for (java.util.Map.Entry entry : - internalGetEnv().getMap().entrySet()) { - com.google.protobuf.MapEntry env__ = - EnvDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__); + for (java.util.Map.Entry entry + : internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry + env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, env__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } if (runAsUser_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, runAsUser_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9577,20 +8104,25 @@ 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.workstations.v1.WorkstationConfig.Container)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Container other = - (com.google.cloud.workstations.v1.WorkstationConfig.Container) obj; - - if (!getImage().equals(other.getImage())) return false; - if (!getCommandList().equals(other.getCommandList())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!internalGetEnv().equals(other.internalGetEnv())) return false; - if (!getWorkingDir().equals(other.getWorkingDir())) return false; - if (getRunAsUser() != other.getRunAsUser()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Container other = (com.google.cloud.workstations.v1.WorkstationConfig.Container) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!internalGetEnv().equals( + other.internalGetEnv())) return false; + if (!getWorkingDir() + .equals(other.getWorkingDir())) return false; + if (getRunAsUser() + != other.getRunAsUser()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9626,94 +8158,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.Container 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 @@ -9723,68 +8250,70 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Docker container.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} */ - 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.workstations.v1.WorkstationConfig.Container) com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Container.class, - com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); } // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Container.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; image_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableEnv().clear(); workingDir_ = ""; runAsUser_ = 0; @@ -9792,14 +8321,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Container - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { return com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance(); } @@ -9814,17 +8342,13 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Container build() { @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Container buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Container result = - new com.google.cloud.workstations.v1.WorkstationConfig.Container(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.WorkstationConfig.Container result = new com.google.cloud.workstations.v1.WorkstationConfig.Container(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationConfig.Container result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; @@ -9853,41 +8377,38 @@ private void buildPartial0( 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.workstations.v1.WorkstationConfig.Container) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Container) other); + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Container)other); } else { super.mergeFrom(other); return this; @@ -9895,9 +8416,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Container other) { - if (other - == com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; @@ -9923,7 +8442,8 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Cont } onChanged(); } - internalGetMutableEnv().mergeFrom(other.internalGetEnv()); + internalGetMutableEnv().mergeFrom( + other.internalGetEnv()); bitField0_ |= 0x00000008; if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; @@ -9959,54 +8479,48 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - image_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandIsMutable(); - command_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry env__ = - input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - runAsUser_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + env__ = input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put( + env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10016,13 +8530,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object image_ = ""; /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -10039,13 +8550,13 @@ public Builder mergeFrom(
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -10054,8 +8565,6 @@ public java.lang.String getImage() { } } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -10072,14 +8581,15 @@ public java.lang.String getImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -10087,8 +8597,6 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -10105,22 +8613,18 @@ public com.google.protobuf.ByteString getImageBytes() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -10137,7 +8641,6 @@ public Builder setImage(java.lang.String value) {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImage() { @@ -10147,8 +8650,6 @@ public Builder clearImage() { return this; } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -10165,14 +8666,12 @@ public Builder clearImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; @@ -10182,7 +8681,6 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCommandIsMutable() { if (!command_.isModifiable()) { command_ = new com.google.protobuf.LazyStringArrayList(command_); @@ -10190,46 +8688,38 @@ private void ensureCommandIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { command_.makeImmutable(); return command_; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -10237,39 +8727,33 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); bitField0_ |= 0x00000002; @@ -10277,22 +8761,18 @@ public Builder setCommand(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommand( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); bitField0_ |= 0x00000002; @@ -10300,61 +8780,53 @@ public Builder addCommand(java.lang.String value) { return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand(java.lang.Iterable values) { + public Builder addAllCommand( + java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCommand() { - command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + command_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); @@ -10365,7 +8837,6 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureArgsIsMutable() { if (!args_.isModifiable()) { args_ = new com.google.protobuf.LazyStringArrayList(args_); @@ -10373,43 +8844,35 @@ private void ensureArgsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { args_.makeImmutable(); return args_; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -10417,37 +8880,31 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); bitField0_ |= 0x00000004; @@ -10455,21 +8912,17 @@ public Builder setArgs(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addArgs( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); bitField0_ |= 0x00000004; @@ -10477,58 +8930,50 @@ public Builder addArgs(java.lang.String value) { return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + args_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); @@ -10537,19 +8982,21 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField( + EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -10558,13 +9005,10 @@ private com.google.protobuf.MapField interna onChanged(); return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -10572,21 +9016,20 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnv().getMap().containsKey(key); } - /** Use {@link #getEnvMap()} instead. */ + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -10598,8 +9041,6 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -10607,19 +9048,17 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getEnvOrDefault( + public /* nullable */ +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -10627,95 +9066,91 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableEnv().getMutableMap().clear(); + internalGetMutableEnv().getMutableMap() + .clear(); return this; } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnv().getMutableMap().remove(key); + public Builder removeEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnv().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnv() { + public java.util.Map + getMutableEnv() { bitField0_ |= 0x00000008; return internalGetMutableEnv().getMutableMap(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putEnv(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableEnv().getMutableMap().put(key, value); + public Builder putEnv( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableEnv().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllEnv(java.util.Map values) { - internalGetMutableEnv().getMutableMap().putAll(values); + public Builder putAllEnv( + java.util.Map values) { + internalGetMutableEnv().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object workingDir_ = ""; /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -10724,21 +9159,20 @@ public java.lang.String getWorkingDir() { } } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -10746,35 +9180,28 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { } } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkingDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearWorkingDir() { @@ -10784,21 +9211,17 @@ public Builder clearWorkingDir() { return this; } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkingDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workingDir_ = value; bitField0_ |= 0x00000010; @@ -10806,17 +9229,14 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { return this; } - private int runAsUser_; + private int runAsUser_ ; /** - * - * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The runAsUser. */ @java.lang.Override @@ -10824,15 +9244,12 @@ public int getRunAsUser() { return runAsUser_; } /** - * - * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The runAsUser to set. * @return This builder for chaining. */ @@ -10844,15 +9261,12 @@ public Builder setRunAsUser(int value) { return this; } /** - * - * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRunAsUser() { @@ -10861,7 +9275,6 @@ public Builder clearRunAsUser() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10874,44 +9287,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Container) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Container) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Container - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.Container DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Container(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10923,20 +9333,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Container - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomerEncryptionKeyOrBuilder - extends + public interface CustomerEncryptionKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -10944,13 +9351,10 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -10958,14 +9362,12 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -10977,13 +9379,10 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyServiceAccount. */ java.lang.String getKmsKeyServiceAccount(); /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -10995,14 +9394,12 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyServiceAccount. */ - com.google.protobuf.ByteString getKmsKeyServiceAccountBytes(); + com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes(); } /** - * - * *
    * A customer-managed encryption key (CMEK) for the Compute Engine
    * resources of the associated workstation configuration. Specify the name of
@@ -11014,16 +9411,15 @@ public interface CustomerEncryptionKeyOrBuilder
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey}
    */
-  public static final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CustomerEncryptionKey extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)
       CustomerEncryptionKeyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CustomerEncryptionKey.newBuilder() to construct.
     private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CustomerEncryptionKey() {
       kmsKey_ = "";
       kmsKeyServiceAccount_ = "";
@@ -11031,33 +9427,28 @@ private CustomerEncryptionKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CustomerEncryptionKey();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class,
-              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder
-                  .class);
+              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class);
     }
 
     public static final int KMS_KEY_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object kmsKey_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -11065,7 +9456,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKey. */ @java.lang.Override @@ -11074,15 +9464,14 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** - * - * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -11090,15 +9479,16 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -11107,12 +9497,9 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyServiceAccount_ = ""; /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -11124,7 +9511,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyServiceAccount. */ @java.lang.Override @@ -11133,15 +9519,14 @@ public java.lang.String getKmsKeyServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; } } /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -11153,15 +9538,16 @@ public java.lang.String getKmsKeyServiceAccount() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -11170,7 +9556,6 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11182,7 +9567,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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -11212,17 +9598,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.workstations.v1.WorkstationConfig.CustomerEncryptionKey)) { + if (!(obj instanceof com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other = - (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) obj; + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) obj; - if (!getKmsKey().equals(other.getKmsKey())) return false; - if (!getKmsKeyServiceAccount().equals(other.getKmsKeyServiceAccount())) return false; + if (!getKmsKey() + .equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount() + .equals(other.getKmsKeyServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11243,101 +9629,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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 @@ -11347,8 +9722,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A customer-managed encryption key (CMEK) for the Compute Engine
      * resources of the associated workstation configuration. Specify the name of
@@ -11360,35 +9733,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey}
      */
-    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.workstations.v1.WorkstationConfig.CustomerEncryptionKey)
         com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.workstations.v1.WorkstationsProto
-            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.workstations.v1.WorkstationsProto
-            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class,
-                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder
-                    .class);
+                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -11399,22 +9770,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.workstations.v1.WorkstationsProto
-            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
-          getDefaultInstanceForType() {
-        return com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
-            .getDefaultInstance();
+      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() {
+        return com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey build() {
-        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result =
-            buildPartial();
+        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -11422,19 +9790,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
-          buildPartial() {
-        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result =
-            new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey buildPartial() {
+        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result) {
+      private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.kmsKey_ = kmsKey_;
@@ -11448,54 +9811,46 @@ private void buildPartial0(
       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.workstations.v1.WorkstationConfig.CustomerEncryptionKey) {
-          return mergeFrom(
-              (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) other);
+        if (other instanceof com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) {
+          return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other) {
-        if (other
-            == com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other) {
+        if (other == com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this;
         if (!other.getKmsKey().isEmpty()) {
           kmsKey_ = other.kmsKey_;
           bitField0_ |= 0x00000001;
@@ -11532,25 +9887,22 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  kmsKey_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  kmsKeyServiceAccount_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                kmsKey_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                kmsKeyServiceAccount_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11560,13 +9912,10 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private java.lang.Object kmsKey_ = "";
       /**
-       *
-       *
        * 
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -11574,13 +9923,13 @@ public Builder mergeFrom(
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -11589,8 +9938,6 @@ public java.lang.String getKmsKey() { } } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -11598,14 +9945,15 @@ public java.lang.String getKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -11613,8 +9961,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -11622,22 +9968,18 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -11645,7 +9987,6 @@ public Builder setKmsKey(java.lang.String value) {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -11655,8 +9996,6 @@ public Builder clearKmsKey() { return this; } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -11664,14 +10003,12 @@ public Builder clearKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000001; @@ -11681,8 +10018,6 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyServiceAccount_ = ""; /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -11694,13 +10029,13 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyServiceAccount. */ public java.lang.String getKmsKeyServiceAccount() { java.lang.Object ref = kmsKeyServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; @@ -11709,8 +10044,6 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -11722,14 +10055,15 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyServiceAccount. */ - public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -11737,8 +10071,6 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { } } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -11750,22 +10082,18 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -11777,7 +10105,6 @@ public Builder setKmsKeyServiceAccount(java.lang.String value) {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearKmsKeyServiceAccount() { @@ -11787,8 +10114,6 @@ public Builder clearKmsKeyServiceAccount() { return this; } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -11800,21 +10125,18 @@ public Builder clearKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11827,45 +10149,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) - private static final com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11877,112 +10195,95 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ReadinessCheckOrBuilder - extends + public interface ReadinessCheckOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The port. */ int getPort(); } /** - * - * *
    * A readiness check to be performed on a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck} */ - public static final class ReadinessCheck extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReadinessCheck extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) ReadinessCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadinessCheck.newBuilder() to construct. private ReadinessCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadinessCheck() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadinessCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ @java.lang.Override @@ -11991,29 +10292,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -12024,14 +10325,11 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** - * - * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The port. */ @java.lang.Override @@ -12040,7 +10338,6 @@ public int getPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12052,7 +10349,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -12072,7 +10370,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12082,16 +10381,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.workstations.v1.WorkstationConfig.ReadinessCheck)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other = - (com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) obj; + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other = (com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) obj; - if (!getPath().equals(other.getPath())) return false; - if (getPort() != other.getPort()) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (getPort() + != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12113,95 +10413,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - 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.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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 @@ -12211,42 +10505,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A readiness check to be performed on a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck} */ - 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.workstations.v1.WorkstationConfig.ReadinessCheck) com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -12257,16 +10548,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - .getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance(); } @java.lang.Override @@ -12280,17 +10569,13 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck build() @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result = - new com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result = new com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result) { + private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; @@ -12304,53 +10589,46 @@ private void buildPartial0( 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.workstations.v1.WorkstationConfig.ReadinessCheck) { - return mergeFrom( - (com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) other); + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other) { - if (other - == com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other) { + if (other == com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -12385,25 +10663,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12413,25 +10688,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object path_ = ""; /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -12440,21 +10712,20 @@ public java.lang.String getPath() { } } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -12462,35 +10733,28 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -12500,21 +10764,17 @@ public Builder clearPath() { return this; } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -12522,16 +10782,13 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The port. */ @java.lang.Override @@ -12539,14 +10796,11 @@ public int getPort() { return port_; } /** - * - * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The port to set. * @return This builder for chaining. */ @@ -12558,14 +10812,11 @@ public Builder setPort(int value) { return this; } /** - * - * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -12574,7 +10825,6 @@ public Builder clearPort() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12587,44 +10837,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) - private static final com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadinessCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadinessCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12636,25 +10883,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -12663,29 +10906,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; } } /** - * - * *
    * Full name of this workstation configuration.
    * 
* * 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 { @@ -12694,18 +10937,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -12714,29 +10953,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; } } /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -12745,19 +10984,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -12766,30 +11001,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -12800,15 +11035,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -12817,106 +11049,94 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -12924,34 +11144,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 18; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto - .internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -12962,21 +11180,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -12991,8 +11208,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13003,19 +11218,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13026,11 +11239,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -13040,15 +11253,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -13056,15 +11265,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -13072,14 +11277,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -13089,16 +11291,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -13106,16 +11304,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -13123,15 +11317,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -13141,15 +11332,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -13157,15 +11344,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -13173,14 +11356,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -13188,12 +11368,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -13201,7 +11378,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -13210,15 +11386,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -13226,15 +11401,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -13245,8 +11421,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration idleTimeout_; /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -13259,9 +11433,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleTimeout field is set. */ @java.lang.Override @@ -13269,8 +11441,6 @@ public boolean hasIdleTimeout() { return idleTimeout_ != null; } /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -13283,9 +11453,7 @@ public boolean hasIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleTimeout. */ @java.lang.Override @@ -13293,8 +11461,6 @@ public com.google.protobuf.Duration getIdleTimeout() { return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -13307,8 +11473,7 @@ public com.google.protobuf.Duration getIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { @@ -13318,8 +11483,6 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11; private com.google.protobuf.Duration runningTimeout_; /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -13345,9 +11508,7 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runningTimeout field is set. */ @java.lang.Override @@ -13355,8 +11516,6 @@ public boolean hasRunningTimeout() { return runningTimeout_ != null; } /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -13382,20 +11541,14 @@ public boolean hasRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The runningTimeout. */ @java.lang.Override public com.google.protobuf.Duration getRunningTimeout() { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -13421,29 +11574,21 @@ public com.google.protobuf.Duration getRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } public static final int HOST_FIELD_NUMBER = 12; private com.google.cloud.workstations.v1.WorkstationConfig.Host host_; /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the host field is set. */ @java.lang.Override @@ -13451,142 +11596,99 @@ public boolean hasHost() { return host_ != null; } /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The host. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { - return host_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; } /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder() { - return host_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; } public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private java.util.List - persistentDirectories_; + private java.util.List persistentDirectories_; /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getPersistentDirectoriesList() { + public java.util.List getPersistentDirectoriesList() { return persistentDirectories_; } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + public java.util.List getPersistentDirectoriesOrBuilderList() { return persistentDirectories_; } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getPersistentDirectoriesCount() { return persistentDirectories_.size(); } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { return persistentDirectories_.get(index); } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { return persistentDirectories_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 14; private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the container field is set. */ @java.lang.Override @@ -13594,50 +11696,34 @@ public boolean hasContainer() { return container_ != null; } /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The container. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { - return container_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; } /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder - getContainerOrBuilder() { - return container_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() - : container_; + public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { + return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17; private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_; /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -13659,10 +11745,7 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -13670,8 +11753,6 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -13693,23 +11774,14 @@ public boolean hasEncryptionKey() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The encryptionKey. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - getEncryptionKey() { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -13731,123 +11803,89 @@ public boolean hasEncryptionKey() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder() { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } public static final int READINESS_CHECKS_FIELD_NUMBER = 19; - @SuppressWarnings("serial") - private java.util.List - readinessChecks_; + private java.util.List readinessChecks_; /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getReadinessChecksList() { + public java.util.List getReadinessChecksList() { return readinessChecks_; } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> + public java.util.List getReadinessChecksOrBuilderList() { return readinessChecks_; } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getReadinessChecksCount() { return readinessChecks_.size(); } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { return readinessChecks_.get(index); } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder - getReadinessChecksOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( + int index) { return readinessChecks_.get(index); } public static final int REPLICA_ZONES_FIELD_NUMBER = 23; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -13858,18 +11896,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getRead
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList + getReplicaZonesList() { return replicaZones_; } /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -13880,18 +11914,13 @@ public com.google.protobuf.ProtocolStringList getReplicaZonesList() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -13902,10 +11931,7 @@ public int getReplicaZonesCount() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -13913,8 +11939,6 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -13925,22 +11949,18 @@ public java.lang.String getReplicaZones(int index) {
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString + getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } public static final int DEGRADED_FIELD_NUMBER = 15; private boolean degraded_ = false; /** - * - * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -13949,7 +11969,6 @@ public com.google.protobuf.ByteString getReplicaZonesBytes(int index) {
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -13958,82 +11977,67 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private java.util.List conditions_; /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14045,7 +12049,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_); } @@ -14058,8 +12063,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -14096,8 +12105,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionKey_ != null) { output.writeMessage(17, getEncryptionKey()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 18); for (int i = 0; i < readinessChecks_.size(); i++) { output.writeMessage(19, readinessChecks_.get(i)); } @@ -14123,68 +12136,79 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (idleTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIdleTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getIdleTimeout()); } if (runningTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunningTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getRunningTimeout()); } if (host_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getHost()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getHost()); } for (int i = 0; i < persistentDirectories_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, persistentDirectories_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, persistentDirectories_.get(i)); } if (container_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getContainer()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getContainer()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, degraded_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, conditions_.get(i)); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionKey()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getEncryptionKey()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, labels__); } for (int i = 0; i < readinessChecks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, readinessChecks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, readinessChecks_.get(i)); } { int dataSize = 0; @@ -14202,58 +12226,77 @@ 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.workstations.v1.WorkstationConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig other = - (com.google.cloud.workstations.v1.WorkstationConfig) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.WorkstationConfig other = (com.google.cloud.workstations.v1.WorkstationConfig) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasIdleTimeout() != other.hasIdleTimeout()) return false; if (hasIdleTimeout()) { - if (!getIdleTimeout().equals(other.getIdleTimeout())) return false; + if (!getIdleTimeout() + .equals(other.getIdleTimeout())) return false; } if (hasRunningTimeout() != other.hasRunningTimeout()) return false; if (hasRunningTimeout()) { - if (!getRunningTimeout().equals(other.getRunningTimeout())) return false; + if (!getRunningTimeout() + .equals(other.getRunningTimeout())) return false; } if (hasHost() != other.hasHost()) return false; if (hasHost()) { - if (!getHost().equals(other.getHost())) return false; + if (!getHost() + .equals(other.getHost())) return false; } - if (!getPersistentDirectoriesList().equals(other.getPersistentDirectoriesList())) return false; + if (!getPersistentDirectoriesList() + .equals(other.getPersistentDirectoriesList())) return false; if (hasContainer() != other.hasContainer()) return false; if (hasContainer()) { - if (!getContainer().equals(other.getContainer())) return false; + if (!getContainer() + .equals(other.getContainer())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; - } - if (!getReadinessChecksList().equals(other.getReadinessChecksList())) return false; - if (!getReplicaZonesList().equals(other.getReplicaZonesList())) return false; - if (getDegraded() != other.getDegraded()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + } + if (!getReadinessChecksList() + .equals(other.getReadinessChecksList())) return false; + if (!getReplicaZonesList() + .equals(other.getReplicaZonesList())) return false; + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -14272,7 +12315,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -14328,7 +12372,8 @@ public int hashCode() { hash = (53 * hash) + getReplicaZonesList().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -14339,103 +12384,98 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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 workstation configuration resource in the Cloud Workstations API.
    *
@@ -14450,56 +12490,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig}
    */
-  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.workstations.v1.WorkstationConfig)
       com.google.cloud.workstations.v1.WorkstationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 18:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 18:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationConfig.class,
-              com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1.WorkstationConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -14565,7 +12608,8 @@ public Builder clear() {
         readinessChecksBuilder_.clear();
       }
       bitField0_ = (bitField0_ & ~0x00010000);
-      replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      replicaZones_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       degraded_ = false;
       if (conditionsBuilder_ == null) {
         conditions_ = java.util.Collections.emptyList();
@@ -14578,9 +12622,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workstations.v1.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -14599,18 +12643,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1.WorkstationConfig buildPartial() {
-      com.google.cloud.workstations.v1.WorkstationConfig result =
-          new com.google.cloud.workstations.v1.WorkstationConfig(this);
+      com.google.cloud.workstations.v1.WorkstationConfig result = new com.google.cloud.workstations.v1.WorkstationConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workstations.v1.WorkstationConfig result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig result) {
       if (persistentDirectoriesBuilder_ == null) {
         if (((bitField0_ & 0x00002000) != 0)) {
           persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_);
@@ -14663,34 +12703,47 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig re
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.idleTimeout_ =
-            idleTimeoutBuilder_ == null ? idleTimeout_ : idleTimeoutBuilder_.build();
+        result.idleTimeout_ = idleTimeoutBuilder_ == null
+            ? idleTimeout_
+            : idleTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.runningTimeout_ =
-            runningTimeoutBuilder_ == null ? runningTimeout_ : runningTimeoutBuilder_.build();
+        result.runningTimeout_ = runningTimeoutBuilder_ == null
+            ? runningTimeout_
+            : runningTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.host_ = hostBuilder_ == null ? host_ : hostBuilder_.build();
+        result.host_ = hostBuilder_ == null
+            ? host_
+            : hostBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
+        result.container_ = containerBuilder_ == null
+            ? container_
+            : containerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.encryptionKey_ =
-            encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build();
+        result.encryptionKey_ = encryptionKeyBuilder_ == null
+            ? encryptionKey_
+            : encryptionKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         replicaZones_.makeImmutable();
@@ -14705,39 +12758,38 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig re
     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.workstations.v1.WorkstationConfig) {
-        return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig) other);
+        return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -14745,8 +12797,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig other) {
-      if (other == com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -14765,9 +12816,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -14810,10 +12863,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             persistentDirectoriesBuilder_ = null;
             persistentDirectories_ = other.persistentDirectories_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            persistentDirectoriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPersistentDirectoriesFieldBuilder()
-                    : null;
+            persistentDirectoriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPersistentDirectoriesFieldBuilder() : null;
           } else {
             persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_);
           }
@@ -14843,10 +12895,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             readinessChecksBuilder_ = null;
             readinessChecks_ = other.readinessChecks_;
             bitField0_ = (bitField0_ & ~0x00010000);
-            readinessChecksBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReadinessChecksFieldBuilder()
-                    : null;
+            readinessChecksBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReadinessChecksFieldBuilder() : null;
           } else {
             readinessChecksBuilder_.addAllMessages(other.readinessChecks_);
           }
@@ -14883,10 +12934,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00080000);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -14918,169 +12968,161 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getIdleTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getRunningTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getHostFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 98
-            case 106:
-              {
-                com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory m =
-                    input.readMessage(
-                        com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory
-                            .parser(),
-                        extensionRegistry);
-                if (persistentDirectoriesBuilder_ == null) {
-                  ensurePersistentDirectoriesIsMutable();
-                  persistentDirectories_.add(m);
-                } else {
-                  persistentDirectoriesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 114
-            case 120:
-              {
-                degraded_ = input.readBool();
-                bitField0_ |= 0x00040000;
-                break;
-              } // case 120
-            case 130:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 130
-            case 138:
-              {
-                input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 138
-            case 146:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 146
-            case 154:
-              {
-                com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck m =
-                    input.readMessage(
-                        com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.parser(),
-                        extensionRegistry);
-                if (readinessChecksBuilder_ == null) {
-                  ensureReadinessChecksIsMutable();
-                  readinessChecks_.add(m);
-                } else {
-                  readinessChecksBuilder_.addMessage(m);
-                }
-                break;
-              } // case 154
-            case 186:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureReplicaZonesIsMutable();
-                replicaZones_.add(s);
-                break;
-              } // case 186
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getIdleTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getRunningTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getHostFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 98
+            case 106: {
+              com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory m =
+                  input.readMessage(
+                      com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.parser(),
+                      extensionRegistry);
+              if (persistentDirectoriesBuilder_ == null) {
+                ensurePersistentDirectoriesIsMutable();
+                persistentDirectories_.add(m);
+              } else {
+                persistentDirectoriesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getContainerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 114
+            case 120: {
+              degraded_ = input.readBool();
+              bitField0_ |= 0x00040000;
+              break;
+            } // case 120
+            case 130: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 130
+            case 138: {
+              input.readMessage(
+                  getEncryptionKeyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 138
+            case 146: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 146
+            case 154: {
+              com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck m =
+                  input.readMessage(
+                      com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.parser(),
+                      extensionRegistry);
+              if (readinessChecksBuilder_ == null) {
+                ensureReadinessChecksIsMutable();
+                readinessChecks_.add(m);
+              } else {
+                readinessChecksBuilder_.addMessage(m);
+              }
+              break;
+            } // case 154
+            case 186: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureReplicaZonesIsMutable();
+              replicaZones_.add(s);
+              break;
+            } // case 186
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -15090,25 +13132,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Full name of this workstation configuration.
      * 
* * 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; @@ -15117,21 +13156,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * 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 { @@ -15139,35 +13177,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -15177,21 +13208,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -15201,20 +13228,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -15223,21 +13248,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -15245,35 +13269,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -15283,21 +13300,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -15307,21 +13320,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -15330,22 +13341,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -15353,37 +13363,30 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -15393,22 +13396,18 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -15416,17 +13415,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -15434,15 +13430,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -15454,15 +13447,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -15472,8 +13462,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -15482,12 +13472,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -15496,168 +13485,153 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -15666,13 +13640,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -15683,21 +13654,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -15712,8 +13682,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -15724,19 +13692,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -15747,25 +13713,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -15775,22 +13739,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -15800,20 +13765,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -15823,66 +13785,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -15898,17 +13843,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -15919,21 +13861,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -15946,15 +13884,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -15967,15 +13901,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -15983,48 +13913,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -16032,61 +13950,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -16102,18 +14001,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -16124,22 +14020,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -16152,16 +14044,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -16174,16 +14062,12 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -16191,50 +14075,38 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -16242,58 +14114,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -16309,17 +14162,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -16330,21 +14180,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -16357,15 +14203,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -16378,15 +14220,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -16394,48 +14232,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -16443,8 +14269,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -16452,13 +14276,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -16467,8 +14291,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -16476,14 +14298,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -16491,8 +14314,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -16500,22 +14321,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -16523,7 +14340,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -16533,8 +14349,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -16542,14 +14356,12 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -16559,13 +14371,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration idleTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - idleTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16578,17 +14385,13 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleTimeout field is set. */ public boolean hasIdleTimeout() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16601,23 +14404,17 @@ public boolean hasIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleTimeout. */ public com.google.protobuf.Duration getIdleTimeout() { if (idleTimeoutBuilder_ == null) { - return idleTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleTimeout_; + return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } else { return idleTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16630,8 +14427,7 @@ public com.google.protobuf.Duration getIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { @@ -16647,8 +14443,6 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16661,10 +14455,10 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setIdleTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (idleTimeoutBuilder_ == null) { idleTimeout_ = builderForValue.build(); } else { @@ -16675,8 +14469,6 @@ public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForVal return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16689,14 +14481,13 @@ public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForVal
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && idleTimeout_ != null - && idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + idleTimeout_ != null && + idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getIdleTimeoutBuilder().mergeFrom(value); } else { idleTimeout_ = value; @@ -16709,8 +14500,6 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16723,8 +14512,7 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIdleTimeout() { bitField0_ = (bitField0_ & ~0x00000400); @@ -16737,8 +14525,6 @@ public Builder clearIdleTimeout() { return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16751,8 +14537,7 @@ public Builder clearIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { bitField0_ |= 0x00000400; @@ -16760,8 +14545,6 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { return getIdleTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16774,21 +14557,17 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { if (idleTimeoutBuilder_ != null) { return idleTimeoutBuilder_.getMessageOrBuilder(); } else { - return idleTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleTimeout_; + return idleTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -16801,21 +14580,17 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getIdleTimeoutFieldBuilder() { if (idleTimeoutBuilder_ == null) { - idleTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getIdleTimeout(), getParentForChildren(), isClean()); + idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getIdleTimeout(), + getParentForChildren(), + isClean()); idleTimeout_ = null; } return idleTimeoutBuilder_; @@ -16823,13 +14598,8 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { private com.google.protobuf.Duration runningTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - runningTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_; /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -16855,18 +14625,13 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runningTimeout field is set. */ public boolean hasRunningTimeout() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -16892,24 +14657,17 @@ public boolean hasRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The runningTimeout. */ public com.google.protobuf.Duration getRunningTimeout() { if (runningTimeoutBuilder_ == null) { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } else { return runningTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -16935,9 +14693,7 @@ public com.google.protobuf.Duration getRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { @@ -16953,8 +14709,6 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -16980,11 +14734,10 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRunningTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (runningTimeoutBuilder_ == null) { runningTimeout_ = builderForValue.build(); } else { @@ -16995,8 +14748,6 @@ public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -17022,15 +14773,13 @@ public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderFor
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && runningTimeout_ != null - && runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + runningTimeout_ != null && + runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getRunningTimeoutBuilder().mergeFrom(value); } else { runningTimeout_ = value; @@ -17043,8 +14792,6 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -17070,9 +14817,7 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRunningTimeout() { bitField0_ = (bitField0_ & ~0x00000800); @@ -17085,8 +14830,6 @@ public Builder clearRunningTimeout() { return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -17112,9 +14855,7 @@ public Builder clearRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { bitField0_ |= 0x00000800; @@ -17122,8 +14863,6 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { return getRunningTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -17149,22 +14888,17 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { if (runningTimeoutBuilder_ != null) { return runningTimeoutBuilder_.getMessageOrBuilder(); } else { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -17190,22 +14924,17 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRunningTimeoutFieldBuilder() { if (runningTimeoutBuilder_ == null) { - runningTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getRunningTimeout(), getParentForChildren(), isClean()); + runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRunningTimeout(), + getParentForChildren(), + isClean()); runningTimeout_ = null; } return runningTimeoutBuilder_; @@ -17213,58 +14942,39 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { private com.google.cloud.workstations.v1.WorkstationConfig.Host host_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, - com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> - hostBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> hostBuilder_; /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the host field is set. */ public boolean hasHost() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The host. */ public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { if (hostBuilder_ == null) { - return host_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; } else { return hostBuilder_.getMessage(); } } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHost(com.google.cloud.workstations.v1.WorkstationConfig.Host value) { if (hostBuilder_ == null) { @@ -17280,15 +14990,11 @@ public Builder setHost(com.google.cloud.workstations.v1.WorkstationConfig.Host v return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHost( com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder builderForValue) { @@ -17302,22 +15008,17 @@ public Builder setHost( return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHost(com.google.cloud.workstations.v1.WorkstationConfig.Host value) { if (hostBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && host_ != null - && host_ - != com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + host_ != null && + host_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) { getHostBuilder().mergeFrom(value); } else { host_ = value; @@ -17330,15 +15031,11 @@ public Builder mergeHost(com.google.cloud.workstations.v1.WorkstationConfig.Host return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00001000); @@ -17351,15 +15048,11 @@ public Builder clearHost() { return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder getHostBuilder() { bitField0_ |= 0x00001000; @@ -17367,85 +15060,61 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder getHostBu return getHostFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder() { if (hostBuilder_ != null) { return hostBuilder_.getMessageOrBuilder(); } else { - return host_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; } } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, - com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> getHostFieldBuilder() { if (hostBuilder_ == null) { - hostBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, - com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>( - getHost(), getParentForChildren(), isClean()); + hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>( + getHost(), + getParentForChildren(), + isClean()); host_ = null; } return hostBuilder_; } - private java.util.List - persistentDirectories_ = java.util.Collections.emptyList(); - + private java.util.List persistentDirectories_ = + java.util.Collections.emptyList(); private void ensurePersistentDirectoriesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - persistentDirectories_ = - new java.util.ArrayList< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory>( - persistentDirectories_); + persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> - persistentDirectoriesBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; - /** - * - * + /** *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getPersistentDirectoriesList() { + public java.util.List getPersistentDirectoriesList() { if (persistentDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(persistentDirectories_); } else { @@ -17453,15 +15122,11 @@ private void ensurePersistentDirectoriesIsMutable() { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPersistentDirectoriesCount() { if (persistentDirectoriesBuilder_ == null) { @@ -17471,18 +15136,13 @@ public int getPersistentDirectoriesCount() { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { return persistentDirectories_.get(index); } else { @@ -17490,15 +15150,11 @@ public int getPersistentDirectoriesCount() { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPersistentDirectories( int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { @@ -17515,20 +15171,14 @@ public Builder setPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPersistentDirectories( - int index, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.set(index, builderForValue.build()); @@ -17539,18 +15189,13 @@ public Builder setPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addPersistentDirectories( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { + public Builder addPersistentDirectories(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -17564,15 +15209,11 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPersistentDirectories( int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { @@ -17589,19 +15230,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPersistentDirectories( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(builderForValue.build()); @@ -17612,20 +15248,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPersistentDirectories( - int index, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(index, builderForValue.build()); @@ -17636,23 +15266,18 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllPersistentDirectories( - java.lang.Iterable< - ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory> - values) { + java.lang.Iterable values) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, persistentDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, persistentDirectories_); onChanged(); } else { persistentDirectoriesBuilder_.addAllMessages(values); @@ -17660,15 +15285,11 @@ public Builder addAllPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPersistentDirectories() { if (persistentDirectoriesBuilder_ == null) { @@ -17681,15 +15302,11 @@ public Builder clearPersistentDirectories() { return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removePersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { @@ -17702,54 +15319,39 @@ public Builder removePersistentDirectories(int index) { return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder - getPersistentDirectoriesBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( + int index) { return getPersistentDirectoriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { if (persistentDirectoriesBuilder_ == null) { - return persistentDirectories_.get(index); - } else { + return persistentDirectories_.get(index); } else { return persistentDirectoriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> - getPersistentDirectoriesOrBuilderList() { + public java.util.List + getPersistentDirectoriesOrBuilderList() { if (persistentDirectoriesBuilder_ != null) { return persistentDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -17757,70 +15359,45 @@ public Builder removePersistentDirectories(int index) { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder - addPersistentDirectoriesBuilder() { - return getPersistentDirectoriesFieldBuilder() - .addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder - addPersistentDirectoriesBuilder(int index) { - return getPersistentDirectoriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( + int index) { + return getPersistentDirectoriesFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder> - getPersistentDirectoriesBuilderList() { + public java.util.List + getPersistentDirectoriesBuilderList() { return getPersistentDirectoriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesFieldBuilder() { if (persistentDirectoriesBuilder_ == null) { - persistentDirectoriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder>( + persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder>( persistentDirectories_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), @@ -17832,64 +15409,44 @@ public Builder removePersistentDirectories(int index) { private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Container, - com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> - containerBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> containerBuilder_; /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00004000) != 0); } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The container. */ public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { if (containerBuilder_ == null) { - return container_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; } else { return containerBuilder_.getMessage(); } } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setContainer( - com.google.cloud.workstations.v1.WorkstationConfig.Container value) { + public Builder setContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -17903,16 +15460,12 @@ public Builder setContainer( return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setContainer( com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder builderForValue) { @@ -17926,25 +15479,18 @@ public Builder setContainer( return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeContainer( - com.google.cloud.workstations.v1.WorkstationConfig.Container value) { + public Builder mergeContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) { if (containerBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) - && container_ != null - && container_ - != com.google.cloud.workstations.v1.WorkstationConfig.Container - .getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) && + container_ != null && + container_ != com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) { getContainerBuilder().mergeFrom(value); } else { container_ = value; @@ -17957,16 +15503,12 @@ public Builder mergeContainer( return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00004000); @@ -17979,69 +15521,51 @@ public Builder clearContainer() { return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder - getContainerBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder getContainerBuilder() { bitField0_ |= 0x00004000; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder - getContainerOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { - return container_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; } } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Container, - com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> getContainerFieldBuilder() { if (containerBuilder_ == null) { - containerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Container, - com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>( - getContainer(), getParentForChildren(), isClean()); + containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>( + getContainer(), + getParentForChildren(), + isClean()); container_ = null; } return containerBuilder_; @@ -18049,13 +15573,8 @@ public Builder clearContainer() { private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> - encryptionKeyBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_; /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18077,18 +15596,13 @@ public Builder clearContainer() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18110,26 +15624,17 @@ public boolean hasEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The encryptionKey. */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - getEncryptionKey() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18151,12 +15656,9 @@ public boolean hasEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setEncryptionKey( - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18170,8 +15672,6 @@ public Builder setEncryptionKey( return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18193,13 +15693,10 @@ public Builder setEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setEncryptionKey( - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder - builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { @@ -18210,8 +15707,6 @@ public Builder setEncryptionKey( return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18233,18 +15728,13 @@ public Builder setEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeEncryptionKey( - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && encryptionKey_ != null - && encryptionKey_ - != com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) && + encryptionKey_ != null && + encryptionKey_ != com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; @@ -18257,8 +15747,6 @@ public Builder mergeEncryptionKey( return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18280,9 +15768,7 @@ public Builder mergeEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00008000); @@ -18295,8 +15781,6 @@ public Builder clearEncryptionKey() { return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18318,19 +15802,14 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder - getEncryptionKeyBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { bitField0_ |= 0x00008000; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18352,24 +15831,17 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -18391,61 +15863,44 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( - getEncryptionKey(), getParentForChildren(), isClean()); + encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), + getParentForChildren(), + isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } - private java.util.List - readinessChecks_ = java.util.Collections.emptyList(); - + private java.util.List readinessChecks_ = + java.util.Collections.emptyList(); private void ensureReadinessChecksIsMutable() { if (!((bitField0_ & 0x00010000) != 0)) { - readinessChecks_ = - new java.util.ArrayList< - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck>( - readinessChecks_); + readinessChecks_ = new java.util.ArrayList(readinessChecks_); bitField0_ |= 0x00010000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> - readinessChecksBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> readinessChecksBuilder_; /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getReadinessChecksList() { + public java.util.List getReadinessChecksList() { if (readinessChecksBuilder_ == null) { return java.util.Collections.unmodifiableList(readinessChecks_); } else { @@ -18453,17 +15908,13 @@ private void ensureReadinessChecksIsMutable() { } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public int getReadinessChecksCount() { if (readinessChecksBuilder_ == null) { @@ -18473,20 +15924,15 @@ public int getReadinessChecksCount() { } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { if (readinessChecksBuilder_ == null) { return readinessChecks_.get(index); } else { @@ -18494,17 +15940,13 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getRead } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadinessChecks( int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { @@ -18521,21 +15963,16 @@ public Builder setReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadinessChecks( - int index, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { + int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.set(index, builderForValue.build()); @@ -18546,20 +15983,15 @@ public Builder setReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addReadinessChecks( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { + public Builder addReadinessChecks(com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { if (readinessChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18573,17 +16005,13 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addReadinessChecks( int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { @@ -18600,17 +16028,13 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addReadinessChecks( com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { @@ -18624,21 +16048,16 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addReadinessChecks( - int index, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { + int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.add(index, builderForValue.build()); @@ -18649,25 +16068,20 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllReadinessChecks( - java.lang.Iterable< - ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck> - values) { + java.lang.Iterable values) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readinessChecks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, readinessChecks_); onChanged(); } else { readinessChecksBuilder_.addAllMessages(values); @@ -18675,17 +16089,13 @@ public Builder addAllReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadinessChecks() { if (readinessChecksBuilder_ == null) { @@ -18698,17 +16108,13 @@ public Builder clearReadinessChecks() { return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeReadinessChecks(int index) { if (readinessChecksBuilder_ == null) { @@ -18721,59 +16127,45 @@ public Builder removeReadinessChecks(int index) { return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder - getReadinessChecksBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder getReadinessChecksBuilder( + int index) { return getReadinessChecksFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder - getReadinessChecksOrBuilder(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( + int index) { if (readinessChecksBuilder_ == null) { - return readinessChecks_.get(index); - } else { + return readinessChecks_.get(index); } else { return readinessChecksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> - getReadinessChecksOrBuilderList() { + public java.util.List + getReadinessChecksOrBuilderList() { if (readinessChecksBuilder_ != null) { return readinessChecksBuilder_.getMessageOrBuilderList(); } else { @@ -18781,75 +16173,51 @@ public Builder removeReadinessChecks(int index) { } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder - addReadinessChecksBuilder() { - return getReadinessChecksFieldBuilder() - .addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - .getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder() { + return getReadinessChecksFieldBuilder().addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance()); } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder - addReadinessChecksBuilder(int index) { - return getReadinessChecksFieldBuilder() - .addBuilder( - index, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck - .getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder( + int index) { + return getReadinessChecksFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance()); } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getReadinessChecksBuilderList() { + public java.util.List + getReadinessChecksBuilderList() { return getReadinessChecksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksFieldBuilder() { if (readinessChecksBuilder_ == null) { - readinessChecksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder>( + readinessChecksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder>( readinessChecks_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), @@ -18861,7 +16229,6 @@ public Builder removeReadinessChecks(int index) { private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReplicaZonesIsMutable() { if (!replicaZones_.isModifiable()) { replicaZones_ = new com.google.protobuf.LazyStringArrayList(replicaZones_); @@ -18869,8 +16236,6 @@ private void ensureReplicaZonesIsMutable() { bitField0_ |= 0x00020000; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -18881,19 +16246,15 @@ private void ensureReplicaZonesIsMutable() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList + getReplicaZonesList() { replicaZones_.makeImmutable(); return replicaZones_; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -18904,18 +16265,13 @@ public com.google.protobuf.ProtocolStringList getReplicaZonesList() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -18926,10 +16282,7 @@ public int getReplicaZonesCount() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -18937,8 +16290,6 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -18949,19 +16300,15 @@ public java.lang.String getReplicaZones(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString + getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -18972,18 +16319,14 @@ public com.google.protobuf.ByteString getReplicaZonesBytes(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index to set the value at. * @param value The replicaZones to set. * @return This builder for chaining. */ - public Builder setReplicaZones(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplicaZones( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReplicaZonesIsMutable(); replicaZones_.set(index, value); bitField0_ |= 0x00020000; @@ -18991,8 +16334,6 @@ public Builder setReplicaZones(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -19003,17 +16344,13 @@ public Builder setReplicaZones(int index, java.lang.String value) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param value The replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZones(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReplicaZones( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReplicaZonesIsMutable(); replicaZones_.add(value); bitField0_ |= 0x00020000; @@ -19021,8 +16358,6 @@ public Builder addReplicaZones(java.lang.String value) { return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -19033,23 +16368,20 @@ public Builder addReplicaZones(java.lang.String value) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param values The replicaZones to add. * @return This builder for chaining. */ - public Builder addAllReplicaZones(java.lang.Iterable values) { + public Builder addAllReplicaZones( + java.lang.Iterable values) { ensureReplicaZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaZones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, replicaZones_); bitField0_ |= 0x00020000; onChanged(); return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -19060,22 +16392,17 @@ public Builder addAllReplicaZones(java.lang.Iterable values) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearReplicaZones() { - replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); - ; + replicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000);; onChanged(); return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -19086,17 +16413,13 @@ public Builder clearReplicaZones() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes of the replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReplicaZonesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureReplicaZonesIsMutable(); replicaZones_.add(value); @@ -19105,10 +16428,8 @@ public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { return this; } - private boolean degraded_; + private boolean degraded_ ; /** - * - * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -19117,7 +16438,6 @@ public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -19125,8 +16445,6 @@ public boolean getDegraded() { return degraded_; } /** - * - * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -19135,7 +16453,6 @@ public boolean getDegraded() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The degraded to set. * @return This builder for chaining. */ @@ -19147,8 +16464,6 @@ public Builder setDegraded(boolean value) { return this; } /** - * - * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -19157,7 +16472,6 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -19167,29 +16481,24 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = java.util.Collections.emptyList(); - + private java.util.List conditions_ = + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00080000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00080000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -19199,15 +16508,11 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -19217,15 +16522,11 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -19235,17 +16536,14 @@ public com.google.rpc.Status getConditions(int index) { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status value) { + public Builder setConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19259,17 +16557,14 @@ public Builder setConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -19280,15 +16575,11 @@ public Builder setConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -19304,17 +16595,14 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status value) { + public Builder addConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19328,17 +16616,14 @@ public Builder addConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -19349,17 +16634,14 @@ public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -19370,20 +16652,18 @@ public Builder addConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAllConditions(java.lang.Iterable values) { + public Builder addAllConditions( + java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -19391,15 +16671,11 @@ public Builder addAllConditions(java.lang.Iterable * Output only. Status conditions describing the current resource state. *
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -19412,15 +16688,11 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -19433,49 +16705,39 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder getConditionsBuilder(int index) { + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -19483,66 +16745,56 @@ public java.util.List getConditionsOrB } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - conditions_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00080000) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; } - @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); } @@ -19552,12 +16804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig) private static final com.google.cloud.workstations.v1.WorkstationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig(); } @@ -19566,27 +16818,27 @@ public static com.google.cloud.workstations.v1.WorkstationConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -19601,4 +16853,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java similarity index 75% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java index 3f32c3f3b5a6..6cb25405eacb 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java @@ -1,185 +1,140 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationConfigOrBuilder - extends +public interface WorkstationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAnnotationsCount(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -191,8 +146,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -202,13 +155,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -218,10 +173,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -232,13 +186,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -248,128 +200,94 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -377,13 +295,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -391,14 +306,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -411,15 +324,11 @@ java.lang.String getLabelsOrDefault(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleTimeout field is set. */ boolean hasIdleTimeout(); /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -432,15 +341,11 @@ java.lang.String getLabelsOrDefault(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleTimeout. */ com.google.protobuf.Duration getIdleTimeout(); /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -453,14 +358,11 @@ java.lang.String getLabelsOrDefault(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder(); /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -486,15 +388,11 @@ java.lang.String getLabelsOrDefault(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runningTimeout field is set. */ boolean hasRunningTimeout(); /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -520,15 +418,11 @@ java.lang.String getLabelsOrDefault(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The runningTimeout. */ com.google.protobuf.Duration getRunningTimeout(); /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -554,165 +448,112 @@ java.lang.String getLabelsOrDefault(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder(); /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the host field is set. */ boolean hasHost(); /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The host. */ com.google.cloud.workstations.v1.WorkstationConfig.Host getHost(); /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getPersistentDirectoriesList(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories( - int index); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ int getPersistentDirectoriesCount(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + java.util.List getPersistentDirectoriesOrBuilderList(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index); /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the container field is set. */ boolean hasContainer(); /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The container. */ com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer(); /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder(); /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -734,16 +575,11 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -765,16 +601,11 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The encryptionKey. */ com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -796,91 +627,65 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getReadinessChecksList(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks(int index); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ int getReadinessChecksCount(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> + java.util.List getReadinessChecksOrBuilderList(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder - getReadinessChecksOrBuilder(int index); + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( + int index); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -891,16 +696,12 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the replicaZones. */ - java.util.List getReplicaZonesList(); + java.util.List + getReplicaZonesList(); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -911,16 +712,11 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return The count of replicaZones. */ int getReplicaZonesCount(); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -931,17 +727,12 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The replicaZones at the given index. */ java.lang.String getReplicaZones(int index); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -952,18 +743,14 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - com.google.protobuf.ByteString getReplicaZonesBytes(int index); + com.google.protobuf.ByteString + getReplicaZonesBytes(int index); /** - * - * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -972,64 +759,51 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersis
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ boolean getDegraded(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.Status getConditions(int index); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java similarity index 75% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java index 505792eb6c34..c85c44673a2b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java @@ -1,183 +1,138 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationOrBuilder - extends +public interface WorkstationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.Workstation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this workstation.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this workstation.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAnnotationsCount(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -189,8 +144,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -200,13 +153,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -216,10 +171,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -230,13 +184,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -246,166 +198,121 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -413,13 +320,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -427,43 +331,31 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.workstations.v1.Workstation.State getState(); /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -473,13 +365,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -489,8 +378,8 @@ java.lang.String getLabelsOrDefault(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java new file mode 100644 index 000000000000..93990bd7ec8d --- /dev/null +++ b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java @@ -0,0 +1,983 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public final class WorkstationsProto { + private WorkstationsProto() {} + 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_workstations_v1_WorkstationCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_OperationMetadata_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/workstations/v1/workstati" + + "ons.proto\022\034google.cloud.workstations.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032 google/protobuf" + + "/field_mask.proto\032\037google/protobuf/times" + + "tamp.proto\032\027google/rpc/status.proto\"\232\t\n\022" + + "WorkstationCluster\022\014\n\004name\030\001 \001(\t\022\032\n\014disp" + + "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022" + + "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022\\\n\013annotation" + + "s\030\005 \003(\0132A.google.cloud.workstations.v1.W" + + "orkstationCluster.AnnotationsEntryB\004\342A\001\001" + + "\022R\n\006labels\030\017 \003(\0132<.google.cloud.workstat" + + "ions.v1.WorkstationCluster.LabelsEntryB\004" + + "\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013de" + + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022\025\n\007network" + + "\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwork\030\013 \001(\tB\004\342A\001\005\022\036" + + "\n\020control_plane_ip\030\020 \001(\tB\004\342A\001\003\022k\n\026privat" + + "e_cluster_config\030\014 \001(\0132E.google.cloud.wo" + + "rkstations.v1.WorkstationCluster.Private" + + "ClusterConfigB\004\342A\001\001\022\026\n\010degraded\030\r \001(\010B\004\342" + + "A\001\003\022,\n\nconditions\030\016 \003(\0132\022.google.rpc.Sta" + + "tusB\004\342A\001\003\032\243\001\n\024PrivateClusterConfig\022%\n\027en" + + "able_private_endpoint\030\001 \001(\010B\004\342A\001\005\022\036\n\020clu" + + "ster_hostname\030\002 \001(\tB\004\342A\001\003\022$\n\026service_att" + + "achment_uri\030\003 \001(\tB\004\342A\001\003\022\036\n\020allowed_proje" + + "cts\030\004 \003(\tB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\263\001\352A\257" + + "\001\n.workstations.googleapis.com/Workstati" + + "onCluster\022Qprojects/{project}/locations/" + + "{location}/workstationClusters/{workstat" + + "ion_cluster}*\023workstationClusters2\022works" + + "tationClusterR\001\001\"\342\031\n\021WorkstationConfig\022\014" + + "\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001" + + "\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010" + + "B\004\342A\001\003\022[\n\013annotations\030\005 \003(\0132@.google.clo" + + "ud.workstations.v1.WorkstationConfig.Ann" + + "otationsEntryB\004\342A\001\001\022Q\n\006labels\030\022 \003(\0132;.go" + + "ogle.cloud.workstations.v1.WorkstationCo" + + "nfig.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 " + + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\007 \001(\0132\032.google.protobuf.Tim" + + "estampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(" + + "\tB\004\342A\001\001\0225\n\014idle_timeout\030\n \001(\0132\031.google.p" + + "rotobuf.DurationB\004\342A\001\001\0228\n\017running_timeou" + + "t\030\013 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" + + "\022H\n\004host\030\014 \001(\01324.google.cloud.workstatio" + + "ns.v1.WorkstationConfig.HostB\004\342A\001\001\022i\n\026pe" + + "rsistent_directories\030\r \003(\0132C.google.clou" + + "d.workstations.v1.WorkstationConfig.Pers" + + "istentDirectoryB\004\342A\001\001\022R\n\tcontainer\030\016 \001(\013" + + "29.google.cloud.workstations.v1.Workstat" + + "ionConfig.ContainerB\004\342A\001\001\022c\n\016encryption_" + + "key\030\021 \001(\0132E.google.cloud.workstations.v1" + + ".WorkstationConfig.CustomerEncryptionKey" + + "B\004\342A\001\005\022^\n\020readiness_checks\030\023 \003(\0132>.googl" + + "e.cloud.workstations.v1.WorkstationConfi" + + "g.ReadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030" + + "\027 \003(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\n" + + "conditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A" + + "\001\003\032\204\007\n\004Host\022X\n\014gce_instance\030\001 \001(\0132@.goog" + + "le.cloud.workstations.v1.WorkstationConf" + + "ig.Host.GceInstanceH\000\032\227\006\n\013GceInstance\022\032\n" + + "\014machine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_acc" + + "ount\030\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scop" + + "es\030\003 \003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpo" + + "ol_size\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030" + + "\014 \001(\005B\004\342A\001\003\022)\n\033disable_public_ip_address" + + "es\030\006 \001(\010B\004\342A\001\001\022*\n\034enable_nested_virtuali" + + "zation\030\007 \001(\010B\004\342A\001\001\022\202\001\n\030shielded_instance" + + "_config\030\010 \001(\0132Z.google.cloud.workstation" + + "s.v1.WorkstationConfig.Host.GceInstance." + + "GceShieldedInstanceConfigB\004\342A\001\001\022\212\001\n\034conf" + + "idential_instance_config\030\n \001(\0132^.google." + + "cloud.workstations.v1.WorkstationConfig." + + "Host.GceInstance.GceConfidentialInstance" + + "ConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001(\005B" + + "\004\342A\001\001\032\203\001\n\031GceShieldedInstanceConfig\022 \n\022e" + + "nable_secure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_" + + "vtpm\030\002 \001(\010B\004\342A\001\001\022)\n\033enable_integrity_mon" + + "itoring\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialIn" + + "stanceConfig\022)\n\033enable_confidential_comp" + + "ute\030\001 \001(\010B\004\342A\001\001B\010\n\006config\032\213\004\n\023Persistent" + + "Directory\022o\n\006gce_pd\030\002 \001(\0132].google.cloud" + + ".workstations.v1.WorkstationConfig.Persi" + + "stentDirectory.GceRegionalPersistentDisk" + + "H\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001\001\032\326\002\n\031GceRegi" + + "onalPersistentDisk\022\025\n\007size_gb\030\001 \001(\005B\004\342A\001" + + "\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n\tdisk_type\030\003 " + + "\001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\005 \001(\tB\004\342A\001\001" + + "\022\211\001\n\016reclaim_policy\030\004 \001(\0162k.google.cloud" + + ".workstations.v1.WorkstationConfig.Persi" + + "stentDirectory.GceRegionalPersistentDisk" + + ".ReclaimPolicyB\004\342A\001\001\"G\n\rReclaimPolicy\022\036\n" + + "\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006DELETE\020" + + "\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\204\002\n\tCont" + + "ainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command\030\002 " + + "\003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022U\n\003env\030\004 \003" + + "(\0132B.google.cloud.workstations.v1.Workst" + + "ationConfig.Container.EnvEntryB\004\342A\001\001\022\031\n\013" + + "working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as_user\030\006" + + " \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\032U\n\025CustomerEncryptionKey\022" + + "\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key_servic" + + "e_account\030\002 \001(\tB\004\342A\001\005\0328\n\016ReadinessCheck\022" + + "\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005B\004\342A\001\001\032" + + "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workstations." + + "googleapis.com/WorkstationConfig\022yprojec" + + "ts/{project}/locations/{location}/workst" + + "ationClusters/{workstation_cluster}/work" + + "stationConfigs/{workstation_config}*\022wor" + + "kstationConfigs2\021workstationConfigR\001\001\"\210\010" + + "\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014display_n" + + "ame\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013re" + + "conciling\030\004 \001(\010B\004\342A\001\003\022U\n\013annotations\030\005 \003" + + "(\0132:.google.cloud.workstations.v1.Workst" + + "ation.AnnotationsEntryB\004\342A\001\001\022K\n\006labels\030\r" + + " \003(\01325.google.cloud.workstations.v1.Work" + + "station.LabelsEntryB\004\342A\001\001\0225\n\013create_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\0225\n\013update_time\030\007 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\0224\n\nstart_time\030\016 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\0225\n\013delete_" + + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022D\n\005state\030\n \001(\0162" + + "/.google.cloud.workstations.v1.Workstati" + + "on.StateB\004\342A\001\003\022\022\n\004host\030\013 \001(\tB\004\342A\001\003\0322\n\020An" + + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\022\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNI" + + "NG\020\002\022\022\n\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPE" + + "D\020\004:\342\001\352A\336\001\n\'workstations.googleapis.com/" + + "Workstation\022\224\001projects/{project}/locatio" + + "ns/{location}/workstationClusters/{works" + + "tation_cluster}/workstationConfigs/{work" + + "station_config}/workstations/{workstatio" + + "n}*\014workstations2\013workstationR\001\001\"e\n\034GetW" + + "orkstationClusterRequest\022E\n\004name\030\001 \001(\tB7" + + "\342A\001\002\372A0\n.workstations.googleapis.com/Wor" + + "kstationCluster\"\234\001\n\036ListWorkstationClust" + + "ersRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.wor" + + "kstations.googleapis.com/WorkstationClus" + + "ter\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + + "en\030\003 \001(\tB\004\342A\001\001\"\237\001\n\037ListWorkstationCluste" + + "rsResponse\022N\n\024workstation_clusters\030\001 \003(\013" + + "20.google.cloud.workstations.v1.Workstat" + + "ionCluster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"\202\002\n\037CreateWorkstationCl" + + "usterRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.w" + + "orkstations.googleapis.com/WorkstationCl" + + "uster\022$\n\026workstation_cluster_id\030\002 \001(\tB\004\342" + + "A\001\002\022S\n\023workstation_cluster\030\003 \001(\01320.googl" + + "e.cloud.workstations.v1.WorkstationClust" + + "erB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001\001\"\347\001" + + "\n\037UpdateWorkstationClusterRequest\022S\n\023wor" + + "kstation_cluster\030\001 \001(\01320.google.cloud.wo" + + "rkstations.v1.WorkstationClusterB\004\342A\001\002\0225" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A" + + "\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037Dele" + + "teWorkstationClusterRequest\022E\n\004name\030\001 \001(" + + "\tB7\342A\001\002\372A0\n.workstations.googleapis.com/" + + "WorkstationCluster\022\033\n\rvalidate_only\030\002 \001(" + + "\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001" + + "(\010B\004\342A\001\001\"c\n\033GetWorkstationConfigRequest\022" + + "D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goo" + + "gleapis.com/WorkstationConfig\"\233\001\n\035ListWo" + + "rkstationConfigsRequest\022G\n\006parent\030\001 \001(\tB" + + "7\342A\001\002\372A0\n.workstations.googleapis.com/Wo" + + "rkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" + + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\234\001\n\036ListWork" + + "stationConfigsResponse\022L\n\023workstation_co" + + "nfigs\030\001 \003(\0132/.google.cloud.workstations." + + "v1.WorkstationConfig\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsabl" + + "eWorkstationConfigsRequest\022G\n\006parent\030\001 \001" + + "(\tB7\342A\001\002\372A0\n.workstations.googleapis.com" + + "/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004" + + "\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\242\001\n$ListU" + + "sableWorkstationConfigsResponse\022L\n\023works" + + "tation_configs\030\001 \003(\0132/.google.cloud.work" + + "stations.v1.WorkstationConfig\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\376\001\n\036" + + "CreateWorkstationConfigRequest\022G\n\006parent" + + "\030\001 \001(\tB7\342A\001\002\372A0\n.workstations.googleapis" + + ".com/WorkstationCluster\022#\n\025workstation_c" + + "onfig_id\030\002 \001(\tB\004\342A\001\002\022Q\n\022workstation_conf" + + "ig\030\003 \001(\0132/.google.cloud.workstations.v1." + + "WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_only" + + "\030\004 \001(\010B\004\342A\001\001\"\344\001\n\036UpdateWorkstationConfig" + + "Request\022Q\n\022workstation_config\030\001 \001(\0132/.go" + + "ogle.cloud.workstations.v1.WorkstationCo" + + "nfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_on" + + "ly\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342" + + "A\001\001\"\254\001\n\036DeleteWorkstationConfigRequest\022D" + + "\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog" + + "leapis.com/WorkstationConfig\022\033\n\rvalidate" + + "_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n" + + "\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstationRequ" + + "est\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstations" + + ".googleapis.com/Workstation\"\224\001\n\027ListWork" + + "stationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" + + "\n-workstations.googleapis.com/Workstatio" + + "nConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\"\225\001\n\030ListWorkstationsR" + + "esponse\022?\n\014workstations\030\001 \003(\0132).google.c" + + "loud.workstations.v1.Workstation\022\035\n\017next" + + "_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unreachable\030\003" + + " \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorkstationsReq" + + "uest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstati" + + "ons.googleapis.com/WorkstationConfig\022\027\n\t" + + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" + + "\tB\004\342A\001\001\"\217\001\n\036ListUsableWorkstationsRespon" + + "se\022?\n\014workstations\030\001 \003(\0132).google.cloud." + + "workstations.v1.Workstation\022\027\n\017next_page" + + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\343\001\n\030Cr" + + "eateWorkstationRequest\022F\n\006parent\030\001 \001(\tB6" + + "\342A\001\002\372A/\n-workstations.googleapis.com/Wor" + + "kstationConfig\022\034\n\016workstation_id\030\002 \001(\tB\004" + + "\342A\001\002\022D\n\013workstation\030\003 \001(\0132).google.cloud" + + ".workstations.v1.WorkstationB\004\342A\001\002\022\033\n\rva" + + "lidate_only\030\004 \001(\010B\004\342A\001\001\"\321\001\n\030UpdateWorkst" + + "ationRequest\022D\n\013workstation\030\001 \001(\0132).goog" + + "le.cloud.workstations.v1.WorkstationB\004\342A" + + "\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010" + + "B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030" + + "DeleteWorkstationRequest\022>\n\004name\030\001 \001(\tB0" + + "\342A\001\002\372A)\n\'workstations.googleapis.com/Wor" + + "kstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n" + + "\004etag\030\003 \001(\tB\004\342A\001\001\"\212\001\n\027StartWorkstationRe" + + "quest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstatio" + + "ns.googleapis.com/Workstation\022\033\n\rvalidat" + + "e_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211" + + "\001\n\026StopWorkstationRequest\022>\n\004name\030\001 \001(\tB" + + "0\342A\001\002\372A)\n\'workstations.googleapis.com/Wo" + + "rkstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022" + + "\n\004etag\030\003 \001(\tB\004\342A\001\001\"\316\001\n\032GenerateAccessTok" + + "enRequest\0221\n\013expire_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampH\000\022(\n\003ttl\030\003 \001(\0132\031.goog" + + "le.protobuf.DurationH\000\022E\n\013workstation\030\001 " + + "\001(\tB0\342A\001\002\372A)\n\'workstations.googleapis.co" + + "m/WorkstationB\014\n\nexpiration\"d\n\033GenerateA" + + "ccessTokenResponse\022\024\n\014access_token\030\001 \001(\t" + + "\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf." + + "Timestamp\"\207\002\n\021OperationMetadata\0225\n\013creat" + + "e_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003" + + "\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016status_message\030\005" + + " \001(\tB\004\342A\001\003\022$\n\026requested_cancellation\030\006 \001" + + "(\010B\004\342A\001\003\022\031\n\013api_version\030\007 \001(\tB\004\342A\001\0032\233*\n\014" + + "Workstations\022\315\001\n\025GetWorkstationCluster\022:" + + ".google.cloud.workstations.v1.GetWorksta" + + "tionClusterRequest\0320.google.cloud.workst" + + "ations.v1.WorkstationCluster\"F\332A\004name\202\323\344" + + "\223\0029\0227/v1/{name=projects/*/locations/*/wo" + + "rkstationClusters/*}\022\340\001\n\027ListWorkstation" + + "Clusters\022<.google.cloud.workstations.v1." + + "ListWorkstationClustersRequest\032=.google." + + "cloud.workstations.v1.ListWorkstationClu" + + "stersResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{par" + + "ent=projects/*/locations/*}/workstationC" + + "lusters\022\255\002\n\030CreateWorkstationCluster\022=.g" + + "oogle.cloud.workstations.v1.CreateWorkst" + + "ationClusterRequest\032\035.google.longrunning" + + ".Operation\"\262\001\312A\'\n\022WorkstationCluster\022\021Op" + + "erationMetadata\332A1parent,workstation_clu" + + "ster,workstation_cluster_id\202\323\344\223\002N\"7/v1/{" + + "parent=projects/*/locations/*}/workstati" + + "onClusters:\023workstation_cluster\022\257\002\n\030Upda" + + "teWorkstationCluster\022=.google.cloud.work" + + "stations.v1.UpdateWorkstationClusterRequ" + + "est\032\035.google.longrunning.Operation\"\264\001\312A\'" + + "\n\022WorkstationCluster\022\021OperationMetadata\332" + + "A\037workstation_cluster,update_mask\202\323\344\223\002b2" + + "K/v1/{workstation_cluster.name=projects/" + + "*/locations/*/workstationClusters/*}:\023wo" + + "rkstation_cluster\022\352\001\n\030DeleteWorkstationC" + + "luster\022=.google.cloud.workstations.v1.De" + + "leteWorkstationClusterRequest\032\035.google.l" + + "ongrunning.Operation\"p\312A\'\n\022WorkstationCl" + + "uster\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7/" + + "v1/{name=projects/*/locations/*/workstat" + + "ionClusters/*}\022\337\001\n\024GetWorkstationConfig\022" + + "9.google.cloud.workstations.v1.GetWorkst" + + "ationConfigRequest\032/.google.cloud.workst" + + "ations.v1.WorkstationConfig\"[\332A\004name\202\323\344\223" + + "\002N\022L/v1/{name=projects/*/locations/*/wor" + + "kstationClusters/*/workstationConfigs/*}" + + "\022\362\001\n\026ListWorkstationConfigs\022;.google.clo" + + "ud.workstations.v1.ListWorkstationConfig" + + "sRequest\032<.google.cloud.workstations.v1." + + "ListWorkstationConfigsResponse\"]\332A\006paren" + + "t\202\323\344\223\002N\022L/v1/{parent=projects/*/location" + + "s/*/workstationClusters/*}/workstationCo" + + "nfigs\022\217\002\n\034ListUsableWorkstationConfigs\022A" + + ".google.cloud.workstations.v1.ListUsable" + + "WorkstationConfigsRequest\032B.google.cloud" + + ".workstations.v1.ListUsableWorkstationCo" + + "nfigsResponse\"h\332A\006parent\202\323\344\223\002Y\022W/v1/{par" + + "ent=projects/*/locations/*/workstationCl" + + "usters/*}/workstationConfigs:listUsable\022" + + "\274\002\n\027CreateWorkstationConfig\022<.google.clo" + + "ud.workstations.v1.CreateWorkstationConf" + + "igRequest\032\035.google.longrunning.Operation" + + "\"\303\001\312A&\n\021WorkstationConfig\022\021OperationMeta" + + "data\332A/parent,workstation_config,worksta" + + "tion_config_id\202\323\344\223\002b\"L/v1/{parent=projec" + + "ts/*/locations/*/workstationClusters/*}/" + + "workstationConfigs:\022workstation_config\022\276" + + "\002\n\027UpdateWorkstationConfig\022<.google.clou" + + "d.workstations.v1.UpdateWorkstationConfi" + + "gRequest\032\035.google.longrunning.Operation\"" + + "\305\001\312A&\n\021WorkstationConfig\022\021OperationMetad" + + "ata\332A\036workstation_config,update_mask\202\323\344\223" + + "\002u2_/v1/{workstation_config.name=project" + + "s/*/locations/*/workstationClusters/*/wo" + + "rkstationConfigs/*}:\022workstation_config\022" + + "\375\001\n\027DeleteWorkstationConfig\022<.google.clo" + + "ud.workstations.v1.DeleteWorkstationConf" + + "igRequest\032\035.google.longrunning.Operation" + + "\"\204\001\312A&\n\021WorkstationConfig\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002N*L/v1/{name=projects/*/" + + "locations/*/workstationClusters/*/workst" + + "ationConfigs/*}\022\334\001\n\016GetWorkstation\0223.goo" + + "gle.cloud.workstations.v1.GetWorkstation" + + "Request\032).google.cloud.workstations.v1.W" + + "orkstation\"j\332A\004name\202\323\344\223\002]\022[/v1/{name=pro" + + "jects/*/locations/*/workstationClusters/" + + "*/workstationConfigs/*/workstations/*}\022\357" + + "\001\n\020ListWorkstations\0225.google.cloud.works" + + "tations.v1.ListWorkstationsRequest\0326.goo" + + "gle.cloud.workstations.v1.ListWorkstatio" + + "nsResponse\"l\332A\006parent\202\323\344\223\002]\022[/v1/{parent" + + "=projects/*/locations/*/workstationClust" + + "ers/*/workstationConfigs/*}/workstations" + + "\022\214\002\n\026ListUsableWorkstations\022;.google.clo" + + "ud.workstations.v1.ListUsableWorkstation" + + "sRequest\032<.google.cloud.workstations.v1." + + "ListUsableWorkstationsResponse\"w\332A\006paren" + + "t\202\323\344\223\002h\022f/v1/{parent=projects/*/location" + + "s/*/workstationClusters/*/workstationCon" + + "figs/*}/workstations:listUsable\022\244\002\n\021Crea" + + "teWorkstation\0226.google.cloud.workstation" + + "s.v1.CreateWorkstationRequest\032\035.google.l" + + "ongrunning.Operation\"\267\001\312A \n\013Workstation\022" + + "\021OperationMetadata\332A!parent,workstation," + + "workstation_id\202\323\344\223\002j\"[/v1/{parent=projec" + + "ts/*/locations/*/workstationClusters/*/w" + + "orkstationConfigs/*}/workstations:\013works" + + "tation\022\246\002\n\021UpdateWorkstation\0226.google.cl" + + "oud.workstations.v1.UpdateWorkstationReq" + + "uest\032\035.google.longrunning.Operation\"\271\001\312A" + + " \n\013Workstation\022\021OperationMetadata\332A\027work" + + "station,update_mask\202\323\344\223\002v2g/v1/{workstat" + + "ion.name=projects/*/locations/*/workstat" + + "ionClusters/*/workstationConfigs/*/works" + + "tations/*}:\013workstation\022\372\001\n\021DeleteWorkst" + + "ation\0226.google.cloud.workstations.v1.Del" + + "eteWorkstationRequest\032\035.google.longrunni" + + "ng.Operation\"\215\001\312A \n\013Workstation\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002]*[/v1/{name=proje" + + "cts/*/locations/*/workstationClusters/*/" + + "workstationConfigs/*/workstations/*}\022\201\002\n" + + "\020StartWorkstation\0225.google.cloud.worksta" + + "tions.v1.StartWorkstationRequest\032\035.googl" + + "e.longrunning.Operation\"\226\001\312A \n\013Workstati" + + "on\022\021OperationMetadata\332A\004name\202\323\344\223\002f\"a/v1/" + + "{name=projects/*/locations/*/workstation" + + "Clusters/*/workstationConfigs/*/workstat" + + "ions/*}:start:\001*\022\376\001\n\017StopWorkstation\0224.g" + + "oogle.cloud.workstations.v1.StopWorkstat" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"\225\001\312A \n\013Workstation\022\021OperationMetadata\332" + + "A\004name\202\323\344\223\002e\"`/v1/{name=projects/*/locat" + + "ions/*/workstationClusters/*/workstation" + + "Configs/*/workstations/*}:stop:\001*\022\234\002\n\023Ge" + + "nerateAccessToken\0228.google.cloud.worksta" + + "tions.v1.GenerateAccessTokenRequest\0329.go" + + "ogle.cloud.workstations.v1.GenerateAcces" + + "sTokenResponse\"\217\001\332A\013workstation\202\323\344\223\002{\"v/" + + "v1/{workstation=projects/*/locations/*/w" + + "orkstationClusters/*/workstationConfigs/" + + "*/workstations/*}:generateAccessToken:\001*" + + "\032O\312A\033workstations.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB}\n com.google.cloud.workstations.v1B\021W" + + "orkstationsProtoP\001ZDcloud.google.com/go/", + "workstations/apiv1/workstationspb;workst" + + "ationspbb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "ControlPlaneIp", "PrivateClusterConfig", "Degraded", "Conditions", }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor, + new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "Container", "EncryptionKey", "ReadinessChecks", "ReplicaZones", "Degraded", "Conditions", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor, + new java.lang.String[] { "GceInstance", "Config", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor, + new java.lang.String[] { "MachineType", "ServiceAccount", "ServiceAccountScopes", "Tags", "PoolSize", "PooledInstances", "DisablePublicIpAddresses", "EnableNestedVirtualization", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, + new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, + new java.lang.String[] { "EnableConfidentialCompute", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor, + new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, + new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor, + new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor, + new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor, + new java.lang.String[] { "Path", "Port", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(6); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_Workstation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "StartTime", "DeleteTime", "Etag", "State", "Host", }); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor, + new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor, + new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor, + new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor, + new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor, + new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor, + new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor, + new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor, + new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor, + new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor, + new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor, + new java.lang.String[] { "ExpireTime", "Ttl", "Workstation", "Expiration", }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor, + new java.lang.String[] { "AccessToken", "ExpireTime", }); + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto rename to owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java similarity index 100% rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java rename to owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java similarity index 88% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java index 0df1fb5e9a32..b07ed0235848 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java @@ -66,19 +66,450 @@ *

Note: close() needs to be called on the WorkstationsClient object to clean up resources such * as threads. In the example above, try-with-resources is used, which automatically calls close(). * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. 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. - *
  2. 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. - *
  3. 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. - *
+ * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
MethodDescriptionMethod Variants
GetWorkstationCluster

Returns the requested workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkstationCluster(GetWorkstationClusterRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkstationCluster(WorkstationClusterName name) + *
  • getWorkstationCluster(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkstationClusterCallable() + *
+ *
ListWorkstationClusters

Returns all workstation clusters in the specified location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkstationClusters(ListWorkstationClustersRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkstationClusters(LocationName parent) + *
  • listWorkstationClusters(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkstationClustersPagedCallable() + *
  • listWorkstationClustersCallable() + *
+ *
CreateWorkstationCluster

Creates a new workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkstationClusterAsync(CreateWorkstationClusterRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkstationClusterAsync(LocationName parent, WorkstationCluster workstationCluster, String workstationClusterId) + *
  • createWorkstationClusterAsync(String parent, WorkstationCluster workstationCluster, String workstationClusterId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkstationClusterOperationCallable() + *
  • createWorkstationClusterCallable() + *
+ *
UpdateWorkstationCluster

Updates an existing workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkstationClusterAsync(UpdateWorkstationClusterRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkstationClusterAsync(WorkstationCluster workstationCluster, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkstationClusterOperationCallable() + *
  • updateWorkstationClusterCallable() + *
+ *
DeleteWorkstationCluster

Deletes the specified workstation cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkstationClusterAsync(DeleteWorkstationClusterRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkstationClusterAsync(WorkstationClusterName name) + *
  • deleteWorkstationClusterAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkstationClusterOperationCallable() + *
  • deleteWorkstationClusterCallable() + *
+ *
GetWorkstationConfig

Returns the requested workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkstationConfig(GetWorkstationConfigRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkstationConfig(WorkstationConfigName name) + *
  • getWorkstationConfig(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkstationConfigCallable() + *
+ *
ListWorkstationConfigs

Returns all workstation configurations in the specified cluster.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkstationConfigs(ListWorkstationConfigsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkstationConfigs(WorkstationClusterName parent) + *
  • listWorkstationConfigs(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkstationConfigsPagedCallable() + *
  • listWorkstationConfigsCallable() + *
+ *
ListUsableWorkstationConfigs

Returns all workstation configurations in the specified cluster on which the caller has the "workstations.workstation.create" permission.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listUsableWorkstationConfigs(ListUsableWorkstationConfigsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listUsableWorkstationConfigs(WorkstationClusterName parent) + *
  • listUsableWorkstationConfigs(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listUsableWorkstationConfigsPagedCallable() + *
  • listUsableWorkstationConfigsCallable() + *
+ *
CreateWorkstationConfig

Creates a new workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkstationConfigAsync(CreateWorkstationConfigRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkstationConfigAsync(WorkstationClusterName parent, WorkstationConfig workstationConfig, String workstationConfigId) + *
  • createWorkstationConfigAsync(String parent, WorkstationConfig workstationConfig, String workstationConfigId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkstationConfigOperationCallable() + *
  • createWorkstationConfigCallable() + *
+ *
UpdateWorkstationConfig

Updates an existing workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkstationConfigAsync(UpdateWorkstationConfigRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkstationConfigAsync(WorkstationConfig workstationConfig, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkstationConfigOperationCallable() + *
  • updateWorkstationConfigCallable() + *
+ *
DeleteWorkstationConfig

Deletes the specified workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkstationConfigAsync(DeleteWorkstationConfigRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkstationConfigAsync(WorkstationConfigName name) + *
  • deleteWorkstationConfigAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkstationConfigOperationCallable() + *
  • deleteWorkstationConfigCallable() + *
+ *
GetWorkstation

Returns the requested workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getWorkstation(GetWorkstationRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getWorkstation(WorkstationName name) + *
  • getWorkstation(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getWorkstationCallable() + *
+ *
ListWorkstations

Returns all Workstations using the specified workstation configuration.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listWorkstations(ListWorkstationsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listWorkstations(WorkstationConfigName parent) + *
  • listWorkstations(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listWorkstationsPagedCallable() + *
  • listWorkstationsCallable() + *
+ *
ListUsableWorkstations

Returns all workstations using the specified workstation configuration on which the caller has the "workstations.workstations.use" permission.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listUsableWorkstations(ListUsableWorkstationsRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listUsableWorkstations(WorkstationConfigName parent) + *
  • listUsableWorkstations(String parent) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listUsableWorkstationsPagedCallable() + *
  • listUsableWorkstationsCallable() + *
+ *
CreateWorkstation

Creates a new workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkstationAsync(CreateWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkstationAsync(WorkstationConfigName parent, Workstation workstation, String workstationId) + *
  • createWorkstationAsync(String parent, Workstation workstation, String workstationId) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkstationOperationCallable() + *
  • createWorkstationCallable() + *
+ *
UpdateWorkstation

Updates an existing workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateWorkstationAsync(UpdateWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateWorkstationAsync(Workstation workstation, FieldMask updateMask) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateWorkstationOperationCallable() + *
  • updateWorkstationCallable() + *
+ *
DeleteWorkstation

Deletes the specified workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteWorkstationAsync(DeleteWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteWorkstationAsync(WorkstationName name) + *
  • deleteWorkstationAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteWorkstationOperationCallable() + *
  • deleteWorkstationCallable() + *
+ *
StartWorkstation

Starts running a workstation so that users can connect to it.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • startWorkstationAsync(StartWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • startWorkstationAsync(WorkstationName name) + *
  • startWorkstationAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • startWorkstationOperationCallable() + *
  • startWorkstationCallable() + *
+ *
StopWorkstation

Stops running a workstation, reducing costs.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • stopWorkstationAsync(StopWorkstationRequest request) + *
+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • stopWorkstationAsync(WorkstationName name) + *
  • stopWorkstationAsync(String name) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • stopWorkstationOperationCallable() + *
  • stopWorkstationCallable() + *
+ *
GenerateAccessToken

Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • generateAccessToken(GenerateAccessTokenRequest request) + *
+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • generateAccessToken(WorkstationName workstation) + *
  • generateAccessToken(String workstation) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • generateAccessTokenCallable() + *
+ *
SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • setIamPolicyCallable() + *
+ *
GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getIamPolicyCallable() + *
+ *
TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *
+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • testIamPermissionsCallable() + *
+ *
* *

See the individual methods for example code. * diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java index 1dae1f0ac726..0a1ce5b8f98c 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.workstations.v1beta.stub.WorkstationsStubSettings; diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java index 002776b81a8c..f4dc55d18011 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java @@ -71,6 +71,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/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java index 2c7e06d10607..73b3b3cc6e86 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java @@ -35,6 +35,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java similarity index 99% rename from java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java index b68235c12477..d204c1be943c 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java +++ b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java @@ -797,6 +797,12 @@ public WorkstationsStub createStub() throws IOException { "Transport not supported: %s", getTransportChannelProvider().getTransportName())); } + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "workstations"; + } + /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { return InstantiatingExecutorProvider.newBuilder(); diff --git a/java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json similarity index 100% rename from java-workstations/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java diff --git a/java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java b/owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java similarity index 100% rename from java-workstations/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java rename to owl-bot-staging/java-workstations/v1beta/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java diff --git a/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java new file mode 100644 index 000000000000..05902c3cd0dc --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java @@ -0,0 +1,1969 @@ +package com.google.cloud.workstations.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service for interacting with Cloud Workstations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1beta/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.workstations.v1beta.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1beta.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWorkstationMethod() { + io.grpc.MethodDescriptor getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkstationsMethod() { + io.grpc.MethodDescriptor getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { + io.grpc.MethodDescriptor getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartWorkstationMethod() { + io.grpc.MethodDescriptor getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopWorkstationMethod() { + io.grpc.MethodDescriptor getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static WorkstationsFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + default void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static abstract class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.Workstation getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation((com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation((com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation((com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation>( + service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private static abstract class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java index 8789646165d8..447afbce1618 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for creating a CreateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ -public final class CreateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) CreateWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationClusterRequest.newBuilder() to construct. - private CreateWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationClusterRequest() { parent_ = ""; workstationClusterId_ = ""; @@ -45,40 +26,33 @@ private CreateWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -87,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationClusterId_ = ""; /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getWorkstationClusterId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -173,16 +141,11 @@ public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -190,55 +153,38 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -247,7 +193,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,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_); } @@ -288,10 +234,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); } if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationCluster()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -301,21 +249,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.workstations.v1beta.CreateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationClusterId().equals(other.getWorkstationClusterId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationClusterId() + .equals(other.getWorkstationClusterId())) return false; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,145 +287,139 @@ public int hashCode() { hash = (53 * hash) + getWorkstationCluster().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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; } /** - * - * *
    * Message for creating a CreateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ - 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.workstations.v1beta.CreateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -491,16 +436,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance(); } @java.lang.Override @@ -514,17 +457,13 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -533,10 +472,9 @@ private void buildPartial0( result.workstationClusterId_ = workstationClusterId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationCluster_ = - workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -547,51 +485,46 @@ private void buildPartial0( 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.workstations.v1beta.CreateWorkstationClusterRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -634,38 +567,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationClusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,27 +604,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -704,23 +628,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -728,39 +649,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -770,23 +680,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -796,20 +700,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationClusterId_ = ""; /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ public java.lang.String getWorkstationClusterId() { java.lang.Object ref = workstationClusterId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; @@ -818,21 +720,20 @@ public java.lang.String getWorkstationClusterId() { } } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ - public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString + getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -840,35 +741,28 @@ public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationClusterId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationClusterId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationClusterId() { @@ -878,21 +772,17 @@ public Builder clearWorkstationClusterId() { return this; } /** - * - * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationClusterIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationClusterId_ = value; bitField0_ |= 0x00000002; @@ -902,61 +792,41 @@ public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -970,15 +840,11 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -992,23 +858,17 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstationCluster_ != null - && workstationCluster_ - != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -1021,15 +881,11 @@ public Builder mergeWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1042,82 +898,61 @@ public Builder clearWorkstationCluster() { return this; } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } } /** - * - * *
      * Required. Workstation cluster to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), getParentForChildren(), isClean()); + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1125,15 +960,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1145,15 +977,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1162,9 +991,9 @@ public Builder clearValidateOnly() { 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); } @@ -1174,43 +1003,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1222,8 +1049,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java index 8de9747400e2..a9317e8e4cf2 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationClusterRequestOrBuilder - extends +public interface CreateWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationClusterId. */ java.lang.String getWorkstationClusterId(); /** - * - * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationClusterId. */ - com.google.protobuf.ByteString getWorkstationClusterIdBytes(); + com.google.protobuf.ByteString + getWorkstationClusterIdBytes(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java similarity index 61% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java index c93d92bdb600..20a6b64015d2 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for creating a CreateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ -public final class CreateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) CreateWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationConfigRequest.newBuilder() to construct. - private CreateWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationConfigRequest() { parent_ = ""; workstationConfigId_ = ""; @@ -45,40 +26,33 @@ private CreateWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -87,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -120,18 +92,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationConfigId_ = ""; /** - * - * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ @java.lang.Override @@ -140,29 +108,29 @@ public java.lang.String getWorkstationConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -173,16 +141,11 @@ public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -190,55 +153,38 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -247,7 +193,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,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_); } @@ -288,10 +234,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); } if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstationConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -301,21 +249,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.workstations.v1beta.CreateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationConfigId().equals(other.getWorkstationConfigId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationConfigId() + .equals(other.getWorkstationConfigId())) return false; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -336,145 +287,139 @@ public int hashCode() { hash = (53 * hash) + getWorkstationConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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; } /** - * - * *
    * Message for creating a CreateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ - 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.workstations.v1beta.CreateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -491,16 +436,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -514,17 +457,13 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -533,10 +472,9 @@ private void buildPartial0( result.workstationConfigId_ = workstationConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationConfig_ = - workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -547,51 +485,46 @@ private void buildPartial0( 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.workstations.v1beta.CreateWorkstationConfigRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -634,38 +567,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,27 +604,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -704,23 +628,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -728,39 +649,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -770,23 +680,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -796,20 +700,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationConfigId_ = ""; /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ public java.lang.String getWorkstationConfigId() { java.lang.Object ref = workstationConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; @@ -818,21 +720,20 @@ public java.lang.String getWorkstationConfigId() { } } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ - public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString + getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -840,35 +741,28 @@ public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationConfigId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationConfigId() { @@ -878,21 +772,17 @@ public Builder clearWorkstationConfigId() { return this; } /** - * - * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationConfigIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationConfigId_ = value; bitField0_ |= 0x00000002; @@ -902,61 +792,41 @@ public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -970,15 +840,11 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -992,23 +858,17 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstationConfig_ != null - && workstationConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -1021,15 +881,11 @@ public Builder mergeWorkstationConfig( return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1042,82 +898,61 @@ public Builder clearWorkstationConfig() { return this; } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } } /** - * - * *
      * Required. Config to create.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), getParentForChildren(), isClean()); + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1125,15 +960,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1145,15 +977,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1162,9 +991,9 @@ public Builder clearValidateOnly() { 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); } @@ -1174,43 +1003,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1222,8 +1049,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java index 57b9433c0726..201bfd1783f1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationConfigRequestOrBuilder - extends +public interface CreateWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationConfigId. */ java.lang.String getWorkstationConfigId(); /** - * - * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationConfigId. */ - com.google.protobuf.ByteString getWorkstationConfigIdBytes(); + com.google.protobuf.ByteString + getWorkstationConfigIdBytes(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** - * - * *
    * Required. Config to create.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java index af231eb1dc99..76bdbc66f7b8 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for creating a CreateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ -public final class CreateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationRequest) CreateWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWorkstationRequest.newBuilder() to construct. private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWorkstationRequest() { parent_ = ""; workstationId_ = ""; @@ -44,40 +26,33 @@ private CreateWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -119,18 +92,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WORKSTATION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object workstationId_ = ""; /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ @java.lang.Override @@ -139,29 +108,29 @@ public java.lang.String getWorkstationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; } } /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationIdBytes() { + public com.google.protobuf.ByteString + getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationId_ = b; return b; } else { @@ -172,16 +141,11 @@ public com.google.protobuf.ByteString getWorkstationIdBytes() { public static final int WORKSTATION_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ @java.lang.Override @@ -189,54 +153,38 @@ public boolean hasWorkstation() { return workstation_ != null; } /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -245,7 +193,6 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,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_); } @@ -286,10 +234,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); } if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getWorkstation()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,21 +249,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.workstations.v1beta.CreateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = - (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWorkstationId().equals(other.getWorkstationId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWorkstationId() + .equals(other.getWorkstationId())) return false; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) return false; } - if (getValidateOnly() != other.getValidateOnly()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -334,143 +287,139 @@ public int hashCode() { hash = (53 * hash) + getWorkstation().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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; } /** - * - * *
    * Message for creating a CreateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ - 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.workstations.v1beta.CreateWorkstationRequest) com.google.cloud.workstations.v1beta.CreateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -487,14 +436,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance(); } @@ -509,17 +457,13 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = - new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -528,8 +472,9 @@ private void buildPartial0( result.workstationId_ = workstationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstation_ = - workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -540,39 +485,38 @@ private void buildPartial0( 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.workstations.v1beta.CreateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -580,9 +524,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -625,37 +567,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - workstationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -665,27 +604,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -694,23 +628,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -718,39 +649,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -760,23 +680,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -786,20 +700,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object workstationId_ = ""; /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ public java.lang.String getWorkstationId() { java.lang.Object ref = workstationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; @@ -808,21 +720,20 @@ public java.lang.String getWorkstationId() { } } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ - public com.google.protobuf.ByteString getWorkstationIdBytes() { + public com.google.protobuf.ByteString + getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstationId_ = b; return b; } else { @@ -830,35 +741,28 @@ public com.google.protobuf.ByteString getWorkstationIdBytes() { } } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWorkstationId() { @@ -868,21 +772,17 @@ public Builder clearWorkstationId() { return this; } /** - * - * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstationId_ = value; bitField0_ |= 0x00000002; @@ -892,58 +792,39 @@ public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } else { return workstationBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -959,15 +840,11 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -981,22 +858,17 @@ public Builder setWorkstation( return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && workstation_ != null - && workstation_ - != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -1009,15 +881,11 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1030,15 +898,11 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000004; @@ -1046,64 +910,49 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } } /** - * - * *
      * Required. Workstation to create.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), getParentForChildren(), isClean()); + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); workstation_ = null; } return workstationBuilder_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1111,15 +960,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1131,15 +977,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1148,9 +991,9 @@ public Builder clearValidateOnly() { 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); } @@ -1160,13 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(); } @@ -1175,27 +1017,27 @@ public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1210,4 +1052,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java similarity index 53% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java index 34168e31676a..92d834ae429a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java @@ -1,133 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationRequestOrBuilder - extends +public interface CreateWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The workstationId. */ java.lang.String getWorkstationId(); /** - * - * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for workstationId. */ - com.google.protobuf.ByteString getWorkstationIdBytes(); + com.google.protobuf.ByteString + getWorkstationIdBytes(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** - * - * *
    * Required. Workstation to create.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java index a36f13efba76..91cd2580d5ab 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for deleting a workstation cluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ -public final class DeleteWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) DeleteWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationClusterRequest.newBuilder() to construct. - private DeleteWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationClusterRequest() { name_ = ""; etag_ = ""; @@ -45,40 +26,33 @@ private DeleteWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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 @@ -87,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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 { @@ -122,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -139,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -160,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -194,8 +159,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** - * - * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -203,7 +166,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -212,7 +174,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +185,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_); } @@ -250,13 +212,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -266,18 +230,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.workstations.v1beta.DeleteWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,149 +259,144 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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; } /** - * - * *
    * Message for deleting a workstation cluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ - 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.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -447,16 +409,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance(); } @java.lang.Override @@ -470,17 +430,13 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -500,51 +456,46 @@ private void buildPartial0( 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.workstations.v1beta.DeleteWorkstationClusterRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -587,37 +538,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -627,27 +573,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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; @@ -656,23 +597,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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 { @@ -680,39 +618,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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() { @@ -722,23 +649,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -746,17 +667,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -764,15 +682,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -784,15 +699,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -804,21 +716,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -827,22 +737,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -850,37 +759,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -890,22 +792,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -913,10 +811,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -924,7 +820,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -932,8 +827,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -941,7 +834,6 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ @@ -953,8 +845,6 @@ public Builder setForce(boolean value) { return this; } /** - * - * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -962,7 +852,6 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -971,9 +860,9 @@ public Builder clearForce() { 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); } @@ -983,43 +872,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,8 +918,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java index 08f7d49dc78f..bd52627badde 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationClusterRequestOrBuilder - extends +public interface DeleteWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -103,7 +68,6 @@ public interface DeleteWorkstationClusterRequestOrBuilder
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java index 87fbe8c588a2..2db331397806 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Message for deleting a workstation configuration.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ -public final class DeleteWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) DeleteWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationConfigRequest.newBuilder() to construct. - private DeleteWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationConfigRequest() { name_ = ""; etag_ = ""; @@ -45,40 +26,33 @@ private DeleteWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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 @@ -87,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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 { @@ -122,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -139,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -160,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -194,8 +159,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** - * - * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -203,7 +166,6 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -212,7 +174,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +185,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_); } @@ -250,13 +212,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -266,18 +230,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.workstations.v1beta.DeleteWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,149 +259,144 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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; } /** - * - * *
    * Message for deleting a workstation configuration.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ - 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.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -447,16 +409,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -470,17 +430,13 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -500,51 +456,46 @@ private void buildPartial0( 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.workstations.v1beta.DeleteWorkstationConfigRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -587,37 +538,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -627,27 +573,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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; @@ -656,23 +597,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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 { @@ -680,39 +618,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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() { @@ -722,23 +649,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -746,17 +667,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -764,15 +682,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -784,15 +699,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -804,21 +716,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -827,22 +737,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -850,37 +759,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -890,22 +792,18 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -913,10 +811,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -924,7 +820,6 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -932,8 +827,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -941,7 +834,6 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ @@ -953,8 +845,6 @@ public Builder setForce(boolean value) { return this; } /** - * - * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -962,7 +852,6 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -971,9 +860,9 @@ public Builder clearForce() { 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); } @@ -983,43 +872,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,8 +918,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java index 7740b544455a..36020746429a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationConfigRequestOrBuilder - extends +public interface DeleteWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -103,7 +68,6 @@ public interface DeleteWorkstationConfigRequestOrBuilder
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java index 2d55d392f3c9..d75a2e5c19b6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for DeleteWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ -public final class DeleteWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationRequest) DeleteWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteWorkstationRequest.newBuilder() to construct. private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,40 +26,33 @@ private DeleteWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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 @@ -86,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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 { @@ -121,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -138,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -159,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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_); } @@ -226,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -239,17 +206,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.workstations.v1beta.DeleteWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = - (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,7 +233,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -273,136 +243,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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 message for DeleteWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ - 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.workstations.v1beta.DeleteWorkstationRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +379,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance(); } @@ -436,17 +400,13 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = - new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -463,39 +423,38 @@ private void buildPartial0( 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.workstations.v1beta.DeleteWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -503,9 +462,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -545,31 +502,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -579,27 +532,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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; @@ -608,23 +556,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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 { @@ -632,39 +577,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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() { @@ -674,23 +608,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to delete.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -698,17 +626,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -716,15 +641,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -736,15 +658,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -756,21 +675,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -779,22 +696,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -802,37 +718,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -842,31 +751,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,13 +781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(); } @@ -891,27 +795,27 @@ public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java similarity index 57% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java index 31ddd11752c8..2c87efc9d51e 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationRequestOrBuilder - extends +public interface DeleteWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to delete.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java similarity index 70% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java index c7e3a86fe7a6..d9fe8c8ce1b2 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ -public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateAccessTokenRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) GenerateAccessTokenRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateAccessTokenRequest.newBuilder() to construct. private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateAccessTokenRequest() { workstation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateAccessTokenRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } private int expirationCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object expiration_; - public enum ExpirationCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(2), TTL(3), EXPIRATION_NOT_SET(0); private final int value; - private ExpirationCase(int value) { this.value = value; } @@ -91,30 +68,25 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 2: - return EXPIRE_TIME; - case 3: - return TTL; - case 0: - return EXPIRATION_NOT_SET; - default: - return null; + case 2: return EXPIRE_TIME; + case 3: return TTL; + case 0: return EXPIRATION_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public static final int EXPIRE_TIME_FIELD_NUMBER = 2; /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -123,7 +95,6 @@ public ExpirationCase getExpirationCase() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -131,8 +102,6 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -141,19 +110,16 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 2) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -166,15 +132,13 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 2) {
-      return (com.google.protobuf.Timestamp) expiration_;
+       return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -182,7 +146,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -190,8 +153,6 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -199,19 +160,16 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 3) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -223,27 +181,21 @@ public com.google.protobuf.Duration getTtl() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
     if (expirationCase_ == 3) {
-      return (com.google.protobuf.Duration) expiration_;
+       return (com.google.protobuf.Duration) expiration_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   public static final int WORKSTATION_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object workstation_ = "";
   /**
-   *
-   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ @java.lang.Override @@ -252,32 +204,30 @@ public java.lang.String getWorkstation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; } } /** - * - * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkstationBytes() { + public com.google.protobuf.ByteString + getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstation_ = b; return b; } else { @@ -286,7 +236,6 @@ public com.google.protobuf.ByteString getWorkstationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,7 +247,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(workstation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_); } @@ -321,14 +271,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_); } if (expirationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.protobuf.Timestamp) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.protobuf.Duration) expiration_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.protobuf.Duration) expiration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -338,22 +286,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.workstations.v1beta.GenerateAccessTokenRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other = - (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj; + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj; - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 2: - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; break; case 3: - if (!getTtl().equals(other.getTtl())) return false; + if (!getTtl() + .equals(other.getTtl())) return false; break; case 0: default: @@ -389,136 +339,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ - 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.workstations.v1beta.GenerateAccessTokenRequest) com.google.cloud.workstations.v1beta.GenerateAccessTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,14 +481,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance(); } @@ -558,32 +502,29 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = - new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.workstation_ = workstation_; } } - private void buildPartialOneofs( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { result.expirationCase_ = expirationCase_; result.expiration_ = this.expiration_; - if (expirationCase_ == 2 && expireTimeBuilder_ != null) { + if (expirationCase_ == 2 && + expireTimeBuilder_ != null) { result.expiration_ = expireTimeBuilder_.build(); } - if (expirationCase_ == 3 && ttlBuilder_ != null) { + if (expirationCase_ == 3 && + ttlBuilder_ != null) { result.expiration_ = ttlBuilder_.build(); } } @@ -592,70 +533,63 @@ private void buildPartialOneofs( 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.workstations.v1beta.GenerateAccessTokenRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { - if (other - == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { + if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) return this; if (!other.getWorkstation().isEmpty()) { workstation_ = other.workstation_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: - { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: - { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: - { - break; - } + case EXPIRE_TIME: { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -683,31 +617,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - workstation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - expirationCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); - expirationCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getTtlFieldBuilder().getBuilder(), + extensionRegistry); + expirationCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -717,12 +651,12 @@ public Builder mergeFrom( } // finally return this; } - private int expirationCase_ = 0; private java.lang.Object expiration_; - - public ExpirationCase getExpirationCase() { - return ExpirationCase.forNumber(expirationCase_); + public ExpirationCase + getExpirationCase() { + return ExpirationCase.forNumber( + expirationCase_); } public Builder clearExpiration() { @@ -735,13 +669,8 @@ public Builder clearExpiration() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -750,7 +679,6 @@ public Builder clearExpiration() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -758,8 +686,6 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -768,7 +694,6 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -786,8 +711,6 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** - * - * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -811,8 +734,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -822,7 +743,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -833,8 +755,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -846,12 +766,10 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 2
-            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ =
-              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (expirationCase_ == 2 &&
+            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+              .mergeFrom(value).buildPartial();
         } else {
           expiration_ = value;
         }
@@ -867,8 +785,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -895,8 +811,6 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -910,8 +824,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -933,8 +845,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -945,20 +855,17 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     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> 
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 2)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
+        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_,
+                getParentForChildren(),
+                isClean());
         expiration_ = null;
       }
       expirationCase_ = 2;
@@ -967,13 +874,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        ttlBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -981,7 +883,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ @java.lang.Override @@ -989,8 +890,6 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** - * - * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -998,7 +897,6 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ @java.lang.Override @@ -1016,8 +914,6 @@ public com.google.protobuf.Duration getTtl() { } } /** - * - * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1040,8 +936,6 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1050,7 +944,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 3;
      */
-    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -1061,8 +956,6 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1073,12 +966,10 @@ public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (expirationCase_ == 3
-            && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          expiration_ =
-              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (expirationCase_ == 3 &&
+            expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+              .mergeFrom(value).buildPartial();
         } else {
           expiration_ = value;
         }
@@ -1094,8 +985,6 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1121,8 +1010,6 @@ public Builder clearTtl() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1135,8 +1022,6 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1157,8 +1042,6 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1168,20 +1051,17 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
         if (!(expirationCase_ == 3)) {
           expiration_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        ttlBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
+        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) expiration_,
+                getParentForChildren(),
+                isClean());
         expiration_ = null;
       }
       expirationCase_ = 3;
@@ -1191,23 +1071,19 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
 
     private java.lang.Object workstation_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ public java.lang.String getWorkstation() { java.lang.Object ref = workstation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; @@ -1216,24 +1092,21 @@ public java.lang.String getWorkstation() { } } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ - public com.google.protobuf.ByteString getWorkstationBytes() { + public com.google.protobuf.ByteString + getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workstation_ = b; return b; } else { @@ -1241,41 +1114,30 @@ public com.google.protobuf.ByteString getWorkstationBytes() { } } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The workstation to set. * @return This builder for chaining. */ - public Builder setWorkstation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workstation_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearWorkstation() { @@ -1285,33 +1147,27 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for workstation to set. * @return This builder for chaining. */ - public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkstationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workstation_ = value; bitField0_ |= 0x00000004; 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); } @@ -1321,43 +1177,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) - private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1369,8 +1223,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java similarity index 72% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java index bd32d92efb53..9b8617562aaa 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface GenerateAccessTokenRequestOrBuilder - extends +public interface GenerateAccessTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -34,13 +16,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -49,13 +28,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -68,8 +44,6 @@ public interface GenerateAccessTokenRequestOrBuilder
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -77,13 +51,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return Whether the ttl field is set. */ boolean hasTtl(); /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -91,13 +62,10 @@ public interface GenerateAccessTokenRequestOrBuilder
    * 
* * .google.protobuf.Duration ttl = 3; - * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** - * - * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -109,36 +77,26 @@ public interface GenerateAccessTokenRequestOrBuilder
   com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The workstation. */ java.lang.String getWorkstation(); /** - * - * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for workstation. */ - com.google.protobuf.ByteString getWorkstationBytes(); + com.google.protobuf.ByteString + getWorkstationBytes(); - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase - getExpirationCase(); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase getExpirationCase(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java similarity index 68% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java index 1913764c2100..d083fa42fc29 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ -public final class GenerateAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateAccessTokenResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) GenerateAccessTokenResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateAccessTokenResponse.newBuilder() to construct. private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateAccessTokenResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateAccessTokenResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object accessToken_ = ""; /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -77,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string access_token = 1; - * * @return The accessToken. */ @java.lang.Override @@ -86,15 +63,14 @@ public java.lang.String getAccessToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; } } /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -103,15 +79,16 @@ public java.lang.String getAccessToken() {
    * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString getAccessTokenBytes() { + public com.google.protobuf.ByteString + getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessToken_ = b; return b; } else { @@ -122,14 +99,11 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -137,14 +111,11 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -152,8 +123,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Time at which the generated token will expire.
    * 
@@ -166,7 +135,6 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +146,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(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -198,7 +167,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,18 +178,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.workstations.v1beta.GenerateAccessTokenResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = - (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; - if (!getAccessToken().equals(other.getAccessToken())) return false; + if (!getAccessToken() + .equals(other.getAccessToken())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -244,136 +215,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ - 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.workstations.v1beta.GenerateAccessTokenResponse) com.google.cloud.workstations.v1beta.GenerateAccessTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -388,14 +354,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance(); } @@ -410,23 +375,21 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse build() @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = - new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accessToken_ = accessToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } } @@ -434,50 +397,46 @@ private void buildPartial0( 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.workstations.v1beta.GenerateAccessTokenResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { - if (other - == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { + if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; bitField0_ |= 0x00000001; @@ -512,25 +471,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - accessToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -540,13 +498,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object accessToken_ = ""; /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -555,13 +510,13 @@ public Builder mergeFrom(
      * 
* * string access_token = 1; - * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; @@ -570,8 +525,6 @@ public java.lang.String getAccessToken() { } } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -580,14 +533,15 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString getAccessTokenBytes() { + public com.google.protobuf.ByteString + getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); accessToken_ = b; return b; } else { @@ -595,8 +549,6 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { } } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -605,22 +557,18 @@ public com.google.protobuf.ByteString getAccessTokenBytes() {
      * 
* * string access_token = 1; - * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } accessToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -629,7 +577,6 @@ public Builder setAccessToken(java.lang.String value) {
      * 
* * string access_token = 1; - * * @return This builder for chaining. */ public Builder clearAccessToken() { @@ -639,8 +586,6 @@ public Builder clearAccessToken() { return this; } /** - * - * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -649,14 +594,12 @@ public Builder clearAccessToken() {
      * 
* * string access_token = 1; - * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAccessTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accessToken_ = value; bitField0_ |= 0x00000001; @@ -666,47 +609,34 @@ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -727,15 +657,14 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -746,8 +675,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -756,9 +683,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -771,8 +698,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -790,8 +715,6 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -804,8 +727,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -816,14 +737,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Time at which the generated token will expire.
      * 
@@ -831,24 +749,21 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_time = 2; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; } - @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); } @@ -858,43 +773,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) - private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -906,8 +819,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java index df9ebd632c06..bef51fe8c5f1 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface GenerateAccessTokenResponseOrBuilder - extends +public interface GenerateAccessTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -34,13 +16,10 @@ public interface GenerateAccessTokenResponseOrBuilder
    * 
* * string access_token = 1; - * * @return The accessToken. */ java.lang.String getAccessToken(); /** - * - * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -49,38 +28,30 @@ public interface GenerateAccessTokenResponseOrBuilder
    * 
* * string access_token = 1; - * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString getAccessTokenBytes(); + com.google.protobuf.ByteString + getAccessTokenBytes(); /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Time at which the generated token will expire.
    * 
diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java similarity index 59% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java index f857580c4124..e7bddada4bee 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GetWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ -public final class GetWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) GetWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationClusterRequest.newBuilder() to construct. private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationClusterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -85,31 +60,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; } } /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.workstations.v1beta.GetWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,138 +155,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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 message for GetWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ - 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.workstations.v1beta.GetWorkstationClusterRequest) com.google.cloud.workstations.v1beta.GetWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,14 +289,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance(); } @@ -345,17 +310,13 @@ public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -366,50 +327,46 @@ private void buildPartial0( 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.workstations.v1beta.GetWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -441,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -492,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -516,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -558,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -593,43 +523,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,8 +569,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..6b550f876a1e --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationClusterRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java similarity index 60% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java index 07d3de8cb5b8..d1eca740476c 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GetWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ -public final class GetWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) GetWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationConfigRequest.newBuilder() to construct. private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -85,31 +60,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; } } /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.workstations.v1beta.GetWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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 message for GetWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ - 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.workstations.v1beta.GetWorkstationConfigRequest) com.google.cloud.workstations.v1beta.GetWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,14 +289,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance(); } @@ -343,17 +310,13 @@ public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -364,50 +327,46 @@ private void buildPartial0( 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.workstations.v1beta.GetWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -490,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -514,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -556,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -591,43 +523,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,8 +569,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..4243e50977ce --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java index a48eef5ee1c3..c4721aab7f5a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java @@ -1,82 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for GetWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ -public final class GetWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationRequest) GetWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWorkstationRequest.newBuilder() to construct. private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWorkstationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 @@ -85,31 +60,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; } } /** - * - * *
    * Required. Name of the requested resource.
    * 
* - * - * 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 { @@ -118,7 +91,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -130,7 +102,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_); } @@ -154,15 +127,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.workstations.v1beta.GetWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationRequest other = - (com.google.cloud.workstations.v1beta.GetWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,136 +155,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.GetWorkstationRequest 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 message for GetWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ - 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.workstations.v1beta.GetWorkstationRequest) com.google.cloud.workstations.v1beta.GetWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override @@ -342,11 +310,8 @@ public com.google.cloud.workstations.v1beta.GetWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationRequest result = - new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.GetWorkstationRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -362,39 +327,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationRe 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.workstations.v1beta.GetWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -402,8 +366,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -435,19 +398,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -457,27 +418,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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; @@ -486,23 +442,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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 { @@ -510,39 +463,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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() { @@ -552,32 +494,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the requested resource.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -587,12 +523,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) private static final com.google.cloud.workstations.v1beta.GetWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(); } @@ -601,27 +537,27 @@ public static com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +572,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..a8371e1e9e04 --- /dev/null +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the requested resource.
+   * 
+ * + * 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/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java index 3e1d88ab2d64..8cd2eacd6770 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java @@ -1,44 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ -public final class ListUsableWorkstationConfigsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) ListUsableWorkstationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. - private ListUsableWorkstationConfigsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,40 +26,33 @@ private ListUsableWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -88,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -123,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -139,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -160,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -192,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +167,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_); } @@ -227,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -240,18 +205,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.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,139 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ - 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.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder - .class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -419,22 +377,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = - buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -443,17 +398,13 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -470,52 +421,46 @@ private void buildPartial0( 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.workstations.v1beta.ListUsableWorkstationConfigsRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) other); + if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) { + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -555,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -618,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -642,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -684,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -708,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -725,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -744,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -763,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -786,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -809,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -849,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -883,44 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,8 +822,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java index f4a48e091da4..5226a195a8f6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsRequestOrBuilder - extends +public interface ListUsableWorkstationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java index a469a26da21e..db58eff89db5 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java @@ -1,165 +1,122 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ -public final class ListUsableWorkstationConfigsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) ListUsableWorkstationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. - private ListUsableWorkstationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder - .class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - workstationConfigs_; + private java.util.List workstationConfigs_; /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -168,30 +125,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 { @@ -200,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -248,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,7 +221,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -296,8 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -318,18 +264,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.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -357,139 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ - 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.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder - .class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -502,27 +441,25 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = - buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -530,20 +467,15 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse buildPartial() { + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -555,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -571,52 +502,46 @@ private void buildPartial0( 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.workstations.v1beta.ListUsableWorkstationConfigsResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) other); + if (other instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) { + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -635,10 +560,9 @@ public Builder mergeFrom( workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationConfigsFieldBuilder() - : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -685,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -728,39 +648,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - workstationConfigs_ = java.util.Collections.emptyList(); - + private java.util.List workstationConfigs_ = + java.util.Collections.emptyList(); private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = - new java.util.ArrayList( - workstationConfigs_); + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -768,14 +677,11 @@ private void ensureWorkstationConfigsIsMutable() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -785,14 +691,11 @@ public int getWorkstationConfigsCount() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -802,14 +705,11 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -826,14 +726,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -847,17 +744,13 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public Builder addWorkstationConfigs( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -871,14 +764,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -895,14 +785,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -916,14 +803,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -937,21 +821,18 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addAllWorkstationConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -959,14 +840,11 @@ public Builder addAllWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -979,14 +857,11 @@ public Builder clearWorkstationConfigs() { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -999,49 +874,39 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigsBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( + int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); - } else { + return workstationConfigs_.get(index); } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1049,62 +914,45 @@ public Builder removeWorkstationConfigs(int index) { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder(int index) { - return getWorkstationConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1116,21 +964,19 @@ public Builder removeWorkstationConfigs(int index) { 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; @@ -1139,22 +985,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 { @@ -1162,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1202,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1227,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1235,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1279,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1317,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1339,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1398,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1410,44 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1459,8 +1263,9 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java index bf3a121bebb0..ee1df19e661a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsResponseOrBuilder - extends +public interface ListUsableWorkstationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ int getWorkstationConfigsCount(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java index 9ea0c232ff2d..b11c7d27e728 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ -public final class ListUsableWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) ListUsableWorkstationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsRequest.newBuilder() to construct. private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,40 +26,33 @@ private ListUsableWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -121,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -137,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,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_); } @@ -225,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -238,17 +205,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.workstations.v1beta.ListUsableWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,138 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ - 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.workstations.v1beta.ListUsableWorkstationsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,16 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance(); } @java.lang.Override @@ -438,17 +398,13 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -465,51 +421,46 @@ private void buildPartial0( 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.workstations.v1beta.ListUsableWorkstationsRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -549,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -612,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -636,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -678,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -702,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -719,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -738,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -757,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -780,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -803,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -843,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -877,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -925,8 +822,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java index ee5a596abe21..ee438c9e9bdb 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsRequestOrBuilder - extends +public interface ListUsableWorkstationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java similarity index 71% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java index 253bfa315ece..9e621ddf0e19 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java @@ -1,77 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ -public final class ListUsableWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListUsableWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) ListUsableWorkstationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsResponse.newBuilder() to construct. - private ListUsableWorkstationsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListUsableWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListUsableWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstations_; /** - * - * *
    * The requested workstations.
    * 
@@ -83,8 +61,6 @@ public java.util.List getWorks return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -92,13 +68,11 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -110,8 +84,6 @@ public int getWorkstationsCount() { return workstations_.size(); } /** - * - * *
    * The requested workstations.
    * 
@@ -123,8 +95,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** - * - * *
    * The requested workstations.
    * 
@@ -138,19 +108,15 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -159,30 +125,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 { @@ -191,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -239,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +221,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -287,7 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -308,17 +264,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.workstations.v1beta.ListUsableWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; - if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,138 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ - 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.workstations.v1beta.ListUsableWorkstationsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -490,21 +441,20 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance(); } @java.lang.Override @@ -518,18 +468,14 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = - new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -541,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -557,51 +502,46 @@ private void buildPartial0( 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.workstations.v1beta.ListUsableWorkstationsResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -620,10 +560,9 @@ public Builder mergeFrom( workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationsFieldBuilder() - : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -670,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,30 +648,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = - new java.util.ArrayList( - workstations_); + workstations_ = new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; /** - * - * *
      * The requested workstations.
      * 
@@ -751,8 +677,6 @@ public java.util.List getWorks } } /** - * - * *
      * The requested workstations.
      * 
@@ -767,8 +691,6 @@ public int getWorkstationsCount() { } } /** - * - * *
      * The requested workstations.
      * 
@@ -783,8 +705,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** - * - * *
      * The requested workstations.
      * 
@@ -806,8 +726,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -826,8 +744,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -848,8 +764,6 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -871,8 +785,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -891,8 +803,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -911,8 +821,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -923,7 +831,8 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -931,8 +840,6 @@ public Builder addAllWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -950,8 +857,6 @@ public Builder clearWorkstations() { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -969,8 +874,6 @@ public Builder removeWorkstations(int index) { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -982,8 +885,6 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstations.
      * 
@@ -993,22 +894,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); - } else { + return workstations_.get(index); } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -1016,8 +914,6 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** - * - * *
      * The requested workstations.
      * 
@@ -1025,12 +921,10 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
@@ -1039,35 +933,30 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder() - .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workstations_ = null; } return workstationsBuilder_; @@ -1075,21 +964,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB 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; @@ -1098,22 +985,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 { @@ -1121,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1161,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1186,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1194,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1238,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1276,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1298,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1357,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1369,43 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1417,8 +1263,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java similarity index 72% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java index f24ff23cf72a..2574a0b6563a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsResponseOrBuilder - extends +public interface ListUsableWorkstationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List getWorkstationsList(); + java.util.List + getWorkstationsList(); /** - * - * *
    * The requested workstations.
    * 
@@ -44,8 +25,6 @@ public interface ListUsableWorkstationsResponseOrBuilder */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** - * - * *
    * The requested workstations.
    * 
@@ -54,102 +33,84 @@ public interface ListUsableWorkstationsResponseOrBuilder */ int getWorkstationsCount(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( + 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java index 9dc2a0626d25..106970d60954 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ -public final class ListWorkstationClustersRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationClustersRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) ListWorkstationClustersRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationClustersRequest.newBuilder() to construct. - private ListWorkstationClustersRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationClustersRequest() { parent_ = ""; pageToken_ = ""; @@ -45,40 +26,33 @@ private ListWorkstationClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationClustersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -87,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -122,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -138,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -159,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -191,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +167,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_); } @@ -226,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -239,17 +205,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.workstations.v1beta.ListWorkstationClustersRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = - (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -273,138 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ - 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.workstations.v1beta.ListWorkstationClustersRequest) com.google.cloud.workstations.v1beta.ListWorkstationClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -416,16 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance(); } @java.lang.Override @@ -439,17 +398,13 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = - new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -466,51 +421,46 @@ private void buildPartial0( 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.workstations.v1beta.ListWorkstationClustersRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -550,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -613,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -637,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -679,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -703,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -720,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -739,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -758,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -781,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -804,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -844,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -878,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,8 +822,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java index 8bcfa12bb505..4c05b54036f4 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersRequestOrBuilder - extends +public interface ListWorkstationClustersRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java similarity index 67% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java index 4b3a596d7902..09ae170cb905 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java @@ -1,163 +1,122 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ -public final class ListWorkstationClustersResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationClustersResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) ListWorkstationClustersResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationClustersResponse.newBuilder() to construct. - private ListWorkstationClustersResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationClustersResponse() { workstationClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationClustersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - workstationClusters_; + private java.util.List workstationClusters_; /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public java.util.List - getWorkstationClustersList() { + public java.util.List getWorkstationClustersList() { return workstationClusters_; } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationClustersOrBuilderList() { return workstationClusters_; } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override public int getWorkstationClustersCount() { return workstationClusters_.size(); } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { return workstationClusters_.get(index); } /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClustersOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { return workstationClusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -166,30 +125,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 { @@ -198,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -246,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +221,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 < workstationClusters_.size(); i++) { output.writeMessage(1, workstationClusters_.get(i)); } @@ -294,8 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationClusters_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationClusters_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationClusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -316,17 +264,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.workstations.v1beta.ListWorkstationClustersResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = - (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; - if (!getWorkstationClustersList().equals(other.getWorkstationClustersList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationClustersList() + .equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,138 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ - 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.workstations.v1beta.ListWorkstationClustersResponse) com.google.cloud.workstations.v1beta.ListWorkstationClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -498,21 +441,20 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance(); } @java.lang.Override @@ -526,18 +468,14 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buil @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = - new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { if (workstationClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); @@ -549,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -565,51 +502,46 @@ private void buildPartial0( 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.workstations.v1beta.ListWorkstationClustersResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance()) return this; if (workstationClustersBuilder_ == null) { if (!other.workstationClusters_.isEmpty()) { if (workstationClusters_.isEmpty()) { @@ -628,10 +560,9 @@ public Builder mergeFrom( workstationClustersBuilder_ = null; workstationClusters_ = other.workstationClusters_; bitField0_ = (bitField0_ & ~0x00000001); - workstationClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationClustersFieldBuilder() - : null; + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationClustersFieldBuilder() : null; } else { workstationClustersBuilder_.addAllMessages(other.workstationClusters_); } @@ -678,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.WorkstationCluster m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), - extensionRegistry); - if (workstationClustersBuilder_ == null) { - ensureWorkstationClustersIsMutable(); - workstationClusters_.add(m); - } else { - workstationClustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -721,39 +648,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - workstationClusters_ = java.util.Collections.emptyList(); - + private java.util.List workstationClusters_ = + java.util.Collections.emptyList(); private void ensureWorkstationClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationClusters_ = - new java.util.ArrayList( - workstationClusters_); + workstationClusters_ = new java.util.ArrayList(workstationClusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - workstationClustersBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClustersBuilder_; /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public java.util.List - getWorkstationClustersList() { + public java.util.List getWorkstationClustersList() { if (workstationClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationClusters_); } else { @@ -761,14 +677,11 @@ private void ensureWorkstationClustersIsMutable() { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public int getWorkstationClustersCount() { if (workstationClustersBuilder_ == null) { @@ -778,17 +691,13 @@ public int getWorkstationClustersCount() { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { return workstationClusters_.get(index); } else { @@ -796,14 +705,11 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClu } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -820,18 +726,14 @@ public Builder setWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder setWorkstationClusters( - int index, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.set(index, builderForValue.build()); @@ -842,17 +744,13 @@ public Builder setWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public Builder addWorkstationClusters( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder addWorkstationClusters(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -866,14 +764,11 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -890,14 +785,11 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -911,18 +803,14 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addWorkstationClusters( - int index, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.add(index, builderForValue.build()); @@ -933,21 +821,18 @@ public Builder addWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder addAllWorkstationClusters( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationClusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationClusters_); onChanged(); } else { workstationClustersBuilder_.addAllMessages(values); @@ -955,14 +840,11 @@ public Builder addAllWorkstationClusters( return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder clearWorkstationClusters() { if (workstationClustersBuilder_ == null) { @@ -975,14 +857,11 @@ public Builder clearWorkstationClusters() { return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ public Builder removeWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -995,50 +874,39 @@ public Builder removeWorkstationClusters(int index) { return this; } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - getWorkstationClustersBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClustersBuilder( + int index) { return getWorkstationClustersFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClustersOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( + int index) { if (workstationClustersBuilder_ == null) { - return workstationClusters_.get(index); - } else { + return workstationClusters_.get(index); } else { return workstationClustersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public java.util.List< - ? extends com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - getWorkstationClustersOrBuilderList() { + public java.util.List + getWorkstationClustersOrBuilderList() { if (workstationClustersBuilder_ != null) { return workstationClustersBuilder_.getMessageOrBuilderList(); } else { @@ -1046,62 +914,45 @@ public Builder removeWorkstationClusters(int index) { } } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - addWorkstationClustersBuilder() { - return getWorkstationClustersFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - addWorkstationClustersBuilder(int index) { - return getWorkstationClustersFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder( + int index) { + return getWorkstationClustersFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** - * - * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - public java.util.List - getWorkstationClustersBuilderList() { + public java.util.List + getWorkstationClustersBuilderList() { return getWorkstationClustersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClustersFieldBuilder() { if (workstationClustersBuilder_ == null) { - workstationClustersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( workstationClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1113,21 +964,19 @@ public Builder removeWorkstationClusters(int index) { 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; @@ -1136,22 +985,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 { @@ -1159,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1199,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1224,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1232,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1276,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1314,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1336,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1395,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1407,43 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1455,8 +1263,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java index 09eb9c73746b..1677fecb41ee 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersResponseOrBuilder - extends +public interface ListWorkstationClustersResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - java.util.List + java.util.List getWorkstationClustersList(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ int getWorkstationClustersCount(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ - java.util.List + java.util.List getWorkstationClustersOrBuilderList(); /** - * - * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java index 785ff92d4c2a..c30bf387fbd3 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ -public final class ListWorkstationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationConfigsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) ListWorkstationConfigsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsRequest.newBuilder() to construct. private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,40 +26,33 @@ private ListWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -121,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -137,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,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_); } @@ -225,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -238,17 +205,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.workstations.v1beta.ListWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,138 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ - 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.workstations.v1beta.ListWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,16 +377,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance(); } @java.lang.Override @@ -438,17 +398,13 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = - new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -465,51 +421,46 @@ private void buildPartial0( 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.workstations.v1beta.ListWorkstationConfigsRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -549,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -612,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -636,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -678,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -702,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -719,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -738,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -757,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -780,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -803,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -843,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -877,43 +776,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -925,8 +822,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java index 1441a77af7dd..cc23beb9526a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsRequestOrBuilder - extends +public interface ListWorkstationConfigsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java similarity index 67% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java index 8db53a23c2d6..1aa08eb48f87 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java @@ -1,163 +1,122 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ -public final class ListWorkstationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationConfigsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) ListWorkstationConfigsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsResponse.newBuilder() to construct. - private ListWorkstationConfigsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - workstationConfigs_; + private java.util.List workstationConfigs_; /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") 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 @@ -166,30 +125,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 { @@ -198,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -246,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +221,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -294,8 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -316,17 +264,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.workstations.v1beta.ListWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList() + .equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,138 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ - 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.workstations.v1beta.ListWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -498,21 +441,20 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance(); } @java.lang.Override @@ -526,18 +468,14 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = - new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -549,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -565,51 +502,46 @@ private void buildPartial0( 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.workstations.v1beta.ListWorkstationConfigsResponse) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { + if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -628,10 +560,9 @@ public Builder mergeFrom( workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationConfigsFieldBuilder() - : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationConfigsFieldBuilder() : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -678,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -721,39 +648,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - workstationConfigs_ = java.util.Collections.emptyList(); - + private java.util.List workstationConfigs_ = + java.util.Collections.emptyList(); private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = - new java.util.ArrayList( - workstationConfigs_); + workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsList() { + public java.util.List getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -761,14 +677,11 @@ private void ensureWorkstationConfigsIsMutable() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -778,14 +691,11 @@ public int getWorkstationConfigsCount() { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -795,14 +705,11 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -819,14 +726,11 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -840,17 +744,13 @@ public Builder setWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public Builder addWorkstationConfigs( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -864,14 +764,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -888,14 +785,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -909,14 +803,11 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -930,21 +821,18 @@ public Builder addWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder addAllWorkstationConfigs( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -952,14 +840,11 @@ public Builder addAllWorkstationConfigs( return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -972,14 +857,11 @@ public Builder clearWorkstationConfigs() { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -992,49 +874,39 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigsBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( + int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( + int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); - } else { + return workstationConfigs_.get(index); } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1042,62 +914,45 @@ public Builder removeWorkstationConfigs(int index) { } } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - addWorkstationConfigsBuilder(int index) { - return getWorkstationConfigsFieldBuilder() - .addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( + int index) { + return getWorkstationConfigsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** - * - * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1109,21 +964,19 @@ public Builder removeWorkstationConfigs(int index) { 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; @@ -1132,22 +985,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 { @@ -1155,37 +1007,30 @@ 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1195,22 +1040,18 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1220,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1228,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1272,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1310,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1332,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1391,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1403,43 +1217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1451,8 +1263,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java index a25a049c50da..061c38b5ea1b 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsResponseOrBuilder - extends +public interface ListWorkstationConfigsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ int getWorkstationConfigsCount(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** - * - * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( 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(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java index a776093206f9..e66c45815d5a 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ -public final class ListWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsRequest) ListWorkstationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationsRequest.newBuilder() to construct. private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,40 +26,33 @@ private ListWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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 @@ -86,31 +61,29 @@ 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. Parent resource name.
    * 
* - * - * 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 { @@ -121,14 +94,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -137,19 +107,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -158,30 +124,30 @@ 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; } } /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -190,7 +156,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +167,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_); } @@ -225,7 +191,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -238,17 +205,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.workstations.v1beta.ListWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = - (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,136 +241,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ - 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.workstations.v1beta.ListWorkstationsRequest) com.google.cloud.workstations.v1beta.ListWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,14 +377,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance(); } @@ -435,17 +398,13 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = - new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -462,39 +421,38 @@ private void buildPartial0( 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.workstations.v1beta.ListWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest)other); } else { super.mergeFrom(other); return this; @@ -502,9 +460,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRequest other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -544,31 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,27 +530,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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; @@ -607,23 +554,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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 { @@ -631,39 +575,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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() { @@ -673,23 +606,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent resource name.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -697,16 +624,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -714,14 +638,11 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -733,14 +654,11 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -752,21 +670,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -775,22 +691,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -798,37 +713,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -838,31 +746,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -872,13 +776,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(); } @@ -887,27 +790,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,4 +825,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java similarity index 54% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java index af85cced8191..d208d9ee43a5 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java @@ -1,94 +1,61 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsRequestOrBuilder - extends +public interface ListWorkstationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent resource name.
    * 
* - * - * 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. Parent resource name.
    * 
* - * - * 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(); /** - * - * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java similarity index 73% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java index 090a55b41a08..1a002d3e1bd6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Response message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ -public final class ListWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListWorkstationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsResponse) ListWorkstationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListWorkstationsResponse.newBuilder() to construct. private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List workstations_; /** - * - * *
    * The requested workstations.
    * 
@@ -82,8 +61,6 @@ public java.util.List getWorks return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -91,13 +68,11 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** - * - * *
    * The requested workstations.
    * 
@@ -109,8 +84,6 @@ public int getWorkstationsCount() { return workstations_.size(); } /** - * - * *
    * The requested workstations.
    * 
@@ -122,8 +95,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** - * - * *
    * The requested workstations.
    * 
@@ -137,19 +108,15 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,30 +125,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; } } /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -190,47 +157,38 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -238,23 +196,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +221,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -286,7 +242,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -307,17 +264,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.workstations.v1beta.ListWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = - (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; - if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getWorkstationsList() + .equals(other.getWorkstationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -345,136 +304,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ - 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.workstations.v1beta.ListWorkstationsResponse) com.google.cloud.workstations.v1beta.ListWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -487,19 +441,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance(); } @@ -514,18 +468,14 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = - new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -537,8 +487,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -553,39 +502,38 @@ private void buildPartial0( 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.workstations.v1beta.ListWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse) other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse)other); } else { super.mergeFrom(other); return this; @@ -593,9 +541,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsResponse other) { - if (other - == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -614,10 +560,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRe workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWorkstationsFieldBuilder() - : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWorkstationsFieldBuilder() : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -664,40 +609,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -707,30 +648,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = - new java.util.ArrayList( - workstations_); + workstations_ = new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; /** - * - * *
      * The requested workstations.
      * 
@@ -745,8 +677,6 @@ public java.util.List getWorks } } /** - * - * *
      * The requested workstations.
      * 
@@ -761,8 +691,6 @@ public int getWorkstationsCount() { } } /** - * - * *
      * The requested workstations.
      * 
@@ -777,8 +705,6 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** - * - * *
      * The requested workstations.
      * 
@@ -800,8 +726,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -820,8 +744,6 @@ public Builder setWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -842,8 +764,6 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -865,8 +785,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -885,8 +803,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -905,8 +821,6 @@ public Builder addWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -917,7 +831,8 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -925,8 +840,6 @@ public Builder addAllWorkstations( return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -944,8 +857,6 @@ public Builder clearWorkstations() { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -963,8 +874,6 @@ public Builder removeWorkstations(int index) { return this; } /** - * - * *
      * The requested workstations.
      * 
@@ -976,8 +885,6 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** - * - * *
      * The requested workstations.
      * 
@@ -987,22 +894,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); - } else { + return workstations_.get(index); } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -1010,8 +914,6 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** - * - * *
      * The requested workstations.
      * 
@@ -1019,12 +921,10 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder() - .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
@@ -1033,35 +933,30 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder() - .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** - * - * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); workstations_ = null; } return workstationsBuilder_; @@ -1069,21 +964,19 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1092,22 +985,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1115,37 +1007,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1155,22 +1040,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1180,7 +1061,6 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1188,43 +1068,35 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1232,37 +1104,31 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1270,21 +1136,17 @@ public Builder setUnreachable(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1292,58 +1154,50 @@ public Builder addUnreachable(java.lang.String value) { return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1351,9 +1205,9 @@ public Builder addUnreachableBytes(com.google.protobuf.ByteString 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); } @@ -1363,13 +1217,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(); } @@ -1378,27 +1231,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1413,4 +1266,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java similarity index 74% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java index 3625cac45d9a..aa014e1725f2 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsResponseOrBuilder - extends +public interface ListWorkstationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List getWorkstationsList(); + java.util.List + getWorkstationsList(); /** - * - * *
    * The requested workstations.
    * 
@@ -44,8 +25,6 @@ public interface ListWorkstationsResponseOrBuilder */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** - * - * *
    * The requested workstations.
    * 
@@ -54,102 +33,84 @@ public interface ListWorkstationsResponseOrBuilder */ int getWorkstationsCount(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** - * - * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( + int index); /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java similarity index 70% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java index 2bf78d34cb30..c48f01d2ab53 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Metadata for long-running operations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,37 +28,32 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, - com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -84,15 +61,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -100,14 +73,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -117,15 +87,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -133,15 +99,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -149,14 +111,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -164,18 +123,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -184,29 +139,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -215,18 +170,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -235,29 +186,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -266,18 +217,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -286,29 +233,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -319,15 +266,12 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -336,18 +280,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -356,29 +296,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -387,7 +327,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +338,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -431,10 +371,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -446,7 +388,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -459,27 +402,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.workstations.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.OperationMetadata other = - (com.google.cloud.workstations.v1beta.OperationMetadata) obj; + com.google.cloud.workstations.v1beta.OperationMetadata other = (com.google.cloud.workstations.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -506,7 +455,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -515,136 +465,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.OperationMetadata 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; } /** - * - * *
    * Metadata for long-running operations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ - 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.workstations.v1beta.OperationMetadata) com.google.cloud.workstations.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, - com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -668,9 +613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -689,11 +634,8 @@ public com.google.cloud.workstations.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { - com.google.cloud.workstations.v1beta.OperationMetadata result = - new com.google.cloud.workstations.v1beta.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.OperationMetadata result = new com.google.cloud.workstations.v1beta.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -701,10 +643,14 @@ public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -727,39 +673,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadat 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.workstations.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata) other); + return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -767,8 +712,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.OperationMetadata other) { - if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -824,55 +768,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -882,63 +822,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -954,17 +874,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -975,21 +892,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1002,15 +915,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1023,15 +932,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1039,48 +944,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time that the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1088,35 +981,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1127,14 +1009,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1150,16 +1029,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1170,20 +1047,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1196,14 +1070,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1216,14 +1087,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1231,44 +1099,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -1276,20 +1136,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1298,21 +1156,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1320,35 +1177,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1358,21 +1208,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1382,20 +1228,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1404,21 +1248,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1426,35 +1269,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1464,21 +1300,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1488,20 +1320,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1510,21 +1340,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1532,35 +1361,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1570,21 +1392,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1592,17 +1410,14 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1610,15 +1425,12 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1630,15 +1442,12 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1650,20 +1459,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1672,21 +1479,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1694,35 +1500,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1732,30 +1531,26 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; 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); } @@ -1765,12 +1560,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.OperationMetadata) private static final com.google.cloud.workstations.v1beta.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.OperationMetadata(); } @@ -1779,27 +1574,27 @@ public static com.google.cloud.workstations.v1beta.OperationMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1814,4 +1609,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java similarity index 74% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java index 2730a241b264..396fa0fb8a60 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java @@ -1,215 +1,154 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java similarity index 66% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java index 44683eed4873..41bbcc900260 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for StartWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ -public final class StartWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StartWorkstationRequest) StartWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartWorkstationRequest.newBuilder() to construct. private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,40 +26,33 @@ private StartWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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 @@ -86,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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 { @@ -121,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -138,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -159,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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_); } @@ -226,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -239,17 +206,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.workstations.v1beta.StartWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StartWorkstationRequest other = - (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StartWorkstationRequest other = (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,7 +233,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -273,136 +243,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.StartWorkstationRequest 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 message for StartWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ - 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.workstations.v1beta.StartWorkstationRequest) com.google.cloud.workstations.v1beta.StartWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StartWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,14 +379,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.StartWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance(); } @@ -436,17 +400,13 @@ public com.google.cloud.workstations.v1beta.StartWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StartWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StartWorkstationRequest result = - new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.StartWorkstationRequest result = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -463,39 +423,38 @@ private void buildPartial0( 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.workstations.v1beta.StartWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -503,9 +462,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StartWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -545,31 +502,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -579,27 +532,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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; @@ -608,23 +556,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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 { @@ -632,39 +577,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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() { @@ -674,23 +608,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to start.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -698,17 +626,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -716,15 +641,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -736,15 +658,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -756,21 +675,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -779,22 +696,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -802,37 +718,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -842,31 +751,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,13 +781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(); } @@ -891,27 +795,27 @@ public static com.google.cloud.workstations.v1beta.StartWorkstationRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java similarity index 57% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java index 62c72a2f40ca..31f94439b7d6 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StartWorkstationRequestOrBuilder - extends +public interface StartWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StartWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to start.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java similarity index 67% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java index 03d829f8793f..7dbf2a8cda2d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for StopWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ -public final class StopWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StopWorkstationRequest) StopWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopWorkstationRequest.newBuilder() to construct. private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopWorkstationRequest() { name_ = ""; etag_ = ""; @@ -44,40 +26,33 @@ private StopWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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 @@ -86,31 +61,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; } } /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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 { @@ -121,15 +94,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -138,19 +108,15 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -159,30 +125,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -191,7 +157,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +168,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_); } @@ -226,7 +192,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -239,17 +206,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.workstations.v1beta.StopWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StopWorkstationRequest other = - (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StopWorkstationRequest other = (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (!getEtag().equals(other.getEtag())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,7 +233,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -273,136 +243,131 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.StopWorkstationRequest 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 message for StopWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ - 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.workstations.v1beta.StopWorkstationRequest) com.google.cloud.workstations.v1beta.StopWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StopWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override @@ -435,11 +400,8 @@ public com.google.cloud.workstations.v1beta.StopWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StopWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StopWorkstationRequest result = - new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.StopWorkstationRequest result = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -461,39 +423,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.StopWorkstationR 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.workstations.v1beta.StopWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -501,8 +462,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StopWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -542,31 +502,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,27 +532,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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; @@ -605,23 +556,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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 { @@ -629,39 +577,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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() { @@ -671,23 +608,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the workstation to stop.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -695,17 +626,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -713,15 +641,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -733,15 +658,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -753,21 +675,19 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -776,22 +696,21 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -799,37 +718,30 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -839,31 +751,27 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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); } @@ -873,12 +781,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) private static final com.google.cloud.workstations.v1beta.StopWorkstationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(); } @@ -887,27 +795,27 @@ public static com.google.cloud.workstations.v1beta.StopWorkstationRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,4 +830,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StopWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java similarity index 57% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java index 5b2d40e51904..5bd5321d4144 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java @@ -1,95 +1,62 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StopWorkstationRequestOrBuilder - extends +public interface StopWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StopWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. Name of the workstation to stop.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java index c165fe305604..2b566da775bd 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java @@ -1,79 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for UpdateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ -public final class UpdateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationClusterRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) UpdateWorkstationClusterRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationClusterRequest.newBuilder() to construct. - private UpdateWorkstationClusterRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationClusterRequest() {} + private UpdateWorkstationClusterRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -81,56 +57,38 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -138,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -155,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -173,15 +124,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -192,8 +140,6 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -201,7 +147,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -210,7 +155,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +166,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 (workstationCluster_ != null) { output.writeMessage(1, getWorkstationCluster()); } @@ -245,16 +190,20 @@ public int getSerializedSize() { size = 0; if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,24 +213,27 @@ 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.workstations.v1beta.UpdateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = - (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster() + .equals(other.getWorkstationCluster())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,147 +254,142 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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 message for UpdateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ - 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.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,16 +410,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance(); } @java.lang.Override @@ -486,26 +431,23 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = - new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationCluster_ = - workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -519,51 +461,46 @@ private void buildPartial0( 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.workstations.v1beta.UpdateWorkstationClusterRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { - if (other - == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { + if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; if (other.hasWorkstationCluster()) { mergeWorkstationCluster(other.getWorkstationCluster()); } @@ -602,38 +539,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,66 +578,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> - workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -716,15 +630,11 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -738,23 +648,17 @@ public Builder setWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationCluster( - com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstationCluster_ != null - && workstationCluster_ - != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstationCluster_ != null && + workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -767,15 +671,11 @@ public Builder mergeWorkstationCluster( return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000001); @@ -788,66 +688,48 @@ public Builder clearWorkstationCluster() { return this; } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder - getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder - getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() - : workstationCluster_; + return workstationCluster_ == null ? + com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; } } /** - * - * *
      * Required. Workstation cluster to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, - com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, - com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), getParentForChildren(), isClean()); + workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), + getParentForChildren(), + isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; @@ -855,58 +737,42 @@ public Builder clearWorkstationCluster() { 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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -922,17 +788,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -943,21 +807,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -970,15 +831,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -991,15 +849,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1007,64 +862,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1072,15 +914,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1092,15 +931,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1110,10 +946,8 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -1121,7 +955,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -1129,8 +962,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -1138,7 +969,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -1150,8 +980,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -1159,7 +987,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1168,9 +995,9 @@ public Builder clearAllowMissing() { 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); } @@ -1180,43 +1007,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,8 +1053,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java index 7490d3872eee..cd135639ed27 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java @@ -1,127 +1,81 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationClusterRequestOrBuilder - extends +public interface UpdateWorkstationClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** - * - * *
    * Required. Workstation cluster to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -129,7 +83,6 @@ public interface UpdateWorkstationClusterRequestOrBuilder
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java similarity index 62% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java index 334eaabd1b30..c03a5c67d072 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java @@ -1,79 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for UpdateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ -public final class UpdateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) UpdateWorkstationConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationConfigRequest.newBuilder() to construct. - private UpdateWorkstationConfigRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationConfigRequest() {} + private UpdateWorkstationConfigRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -81,56 +57,38 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -138,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -155,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -173,15 +124,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -192,8 +140,6 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -201,7 +147,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -210,7 +155,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,7 +166,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 (workstationConfig_ != null) { output.writeMessage(1, getWorkstationConfig()); } @@ -245,16 +190,20 @@ public int getSerializedSize() { size = 0; if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstationConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -264,24 +213,27 @@ 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.workstations.v1beta.UpdateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = - (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig() + .equals(other.getWorkstationConfig())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,147 +254,142 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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 message for UpdateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ - 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.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -463,16 +410,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance(); } @java.lang.Override @@ -486,26 +431,23 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = - new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationConfig_ = - workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -519,51 +461,46 @@ private void buildPartial0( 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.workstations.v1beta.UpdateWorkstationConfigRequest) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { - if (other - == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { + if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; if (other.hasWorkstationConfig()) { mergeWorkstationConfig(other.getWorkstationConfig()); } @@ -602,38 +539,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -643,66 +578,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> - workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -716,15 +630,11 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -738,23 +648,17 @@ public Builder setWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeWorkstationConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstationConfig_ != null - && workstationConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstationConfig_ != null && + workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -767,15 +671,11 @@ public Builder mergeWorkstationConfig( return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -788,66 +688,48 @@ public Builder clearWorkstationConfig() { return this; } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder - getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder - getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() - : workstationConfig_; + return workstationConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; } } /** - * - * *
      * Required. Config to update.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), getParentForChildren(), isClean()); + workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), + getParentForChildren(), + isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; @@ -855,58 +737,42 @@ public Builder clearWorkstationConfig() { 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -922,17 +788,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -943,21 +807,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -970,15 +831,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -991,15 +849,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1007,64 +862,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1072,15 +914,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1092,15 +931,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1110,10 +946,8 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -1121,7 +955,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -1129,8 +962,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -1138,7 +969,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -1150,8 +980,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -1159,7 +987,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1168,9 +995,9 @@ public Builder clearAllowMissing() { 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); } @@ -1180,43 +1007,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,8 +1053,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java index d5835c6a1678..15a436201fcc 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java @@ -1,127 +1,81 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationConfigRequestOrBuilder - extends +public interface UpdateWorkstationConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** - * - * *
    * Required. Config to update.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -129,7 +83,6 @@ public interface UpdateWorkstationConfigRequestOrBuilder
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java index a33dcb0ec843..b45e887cb381 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java @@ -1,78 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * Request message for UpdateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ -public final class UpdateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateWorkstationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationRequest) UpdateWorkstationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateWorkstationRequest.newBuilder() to construct. private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateWorkstationRequest() {} + private UpdateWorkstationRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } public static final int WORKSTATION_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ @java.lang.Override @@ -80,55 +57,38 @@ public boolean hasWorkstation() { return workstation_ != null; } /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -136,16 +96,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -153,15 +109,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -171,15 +124,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -190,8 +140,6 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -199,7 +147,6 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -208,7 +155,6 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +166,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 (workstation_ != null) { output.writeMessage(1, getWorkstation()); } @@ -243,16 +190,20 @@ public int getSerializedSize() { size = 0; if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWorkstation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -262,24 +213,27 @@ 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.workstations.v1beta.UpdateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = - (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation().equals(other.getWorkstation())) return false; + if (!getWorkstation() + .equals(other.getWorkstation())) 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 (getValidateOnly() != other.getValidateOnly()) return false; - if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getAllowMissing() + != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,145 +254,142 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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 message for UpdateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ - 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.workstations.v1beta.UpdateWorkstationRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -459,14 +410,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance(); } @@ -481,24 +431,23 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = - new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstation_ = - workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); + result.workstation_ = workstationBuilder_ == null + ? workstation_ + : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -512,39 +461,38 @@ private void buildPartial0( 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.workstations.v1beta.UpdateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest)other); } else { super.mergeFrom(other); return this; @@ -552,9 +500,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other) { - if (other - == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) return this; if (other.hasWorkstation()) { mergeWorkstation(other.getWorkstation()); } @@ -593,37 +539,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWorkstationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -633,63 +578,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> - workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } else { return workstationBuilder_.getMessage(); } } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -705,15 +630,11 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -727,22 +648,17 @@ public Builder setWorkstation( return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && workstation_ != null - && workstation_ - != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + workstation_ != null && + workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -755,15 +671,11 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -776,15 +688,11 @@ public Builder clearWorkstation() { return this; } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000001; @@ -792,48 +700,36 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null - ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() - : workstation_; + return workstation_ == null ? + com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; } } /** - * - * *
      * Required. Workstation to update.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, - com.google.cloud.workstations.v1beta.Workstation.Builder, - com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), getParentForChildren(), isClean()); + workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), + getParentForChildren(), + isClean()); workstation_ = null; } return workstationBuilder_; @@ -841,58 +737,42 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationO 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -908,17 +788,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -929,21 +807,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -956,15 +831,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -977,15 +849,12 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -993,64 +862,51 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1058,15 +914,12 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -1078,15 +931,12 @@ public Builder setValidateOnly(boolean value) { return this; } /** - * - * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1096,10 +946,8 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_; + private boolean allowMissing_ ; /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -1107,7 +955,6 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ @java.lang.Override @@ -1115,8 +962,6 @@ public boolean getAllowMissing() { return allowMissing_; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -1124,7 +969,6 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -1136,8 +980,6 @@ public Builder setAllowMissing(boolean value) { return this; } /** - * - * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -1145,7 +987,6 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -1154,9 +995,9 @@ public Builder clearAllowMissing() { 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); } @@ -1166,13 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(); } @@ -1181,27 +1021,27 @@ public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1216,4 +1056,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java similarity index 63% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java index 265fa8d839f7..0fa558166866 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java @@ -1,127 +1,81 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationRequestOrBuilder - extends +public interface UpdateWorkstationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** - * - * *
    * Required. Workstation to update.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -129,7 +83,6 @@ public interface UpdateWorkstationRequestOrBuilder
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java similarity index 65% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java index 44af4fea91f2..429b1b836fef 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * A single instance of a developer workstation with its own persistent storage.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ -public final class Workstation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Workstation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.Workstation) WorkstationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Workstation.newBuilder() to construct. private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Workstation() { name_ = ""; displayName_ = ""; @@ -48,18 +30,20 @@ private Workstation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Workstation(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -68,33 +52,28 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 12: return internalGetEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, - com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); } /** - * - * *
    * Whether a workstation is running and ready to receive user requests.
    * 
* * Protobuf enum {@code google.cloud.workstations.v1beta.Workstation.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Do not use.
      * 
@@ -103,8 +82,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -114,8 +91,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     STATE_STARTING(1),
     /**
-     *
-     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -124,8 +99,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_RUNNING(2), /** - * - * *
      * The workstation is being stopped.
      * 
@@ -134,8 +107,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_STOPPING(3), /** - * - * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -148,8 +119,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Do not use.
      * 
@@ -158,8 +127,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -169,8 +136,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_STARTING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -179,8 +144,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_RUNNING_VALUE = 2; /** - * - * *
      * The workstation is being stopped.
      * 
@@ -189,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_STOPPING_VALUE = 3; /** - * - * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -200,6 +161,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int STATE_STOPPED_VALUE = 4;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -224,53 +186,51 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return STATE_STARTING;
-        case 2:
-          return STATE_RUNNING;
-        case 3:
-          return STATE_STOPPING;
-        case 4:
-          return STATE_STOPPED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return STATE_STARTING;
+        case 2: return STATE_RUNNING;
+        case 3: return STATE_STOPPING;
+        case 4: return STATE_STOPPED;
+        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<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.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.workstations.v1beta.Workstation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -288,18 +248,14 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Full name of this workstation.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -308,29 +264,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; } } /** - * - * *
    * Full name of this workstation.
    * 
* * 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 { @@ -339,18 +295,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -359,29 +311,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; } } /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -390,18 +342,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -410,29 +358,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -443,15 +391,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -460,106 +405,94 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -567,34 +500,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 13; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -605,21 +536,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -634,8 +564,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -646,19 +574,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -669,11 +595,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -683,15 +609,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -699,15 +621,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -715,14 +633,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -732,15 +647,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -748,15 +659,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -764,14 +671,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -781,16 +685,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ @java.lang.Override @@ -798,16 +698,12 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ @java.lang.Override @@ -815,15 +711,12 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -833,15 +726,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -849,15 +738,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -865,14 +750,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -880,12 +762,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -893,7 +772,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -902,15 +780,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -918,15 +795,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -937,51 +815,33 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = - com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null - ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { + com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; } public static final int HOST_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -991,7 +851,6 @@ public com.google.cloud.workstations.v1beta.Workstation.State getState() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ @java.lang.Override @@ -1000,15 +859,14 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -1018,15 +876,16 @@ public java.lang.String getHost() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -1035,34 +894,32 @@ public com.google.protobuf.ByteString getHostBytes() { } public static final int ENV_FIELD_NUMBER = 12; - private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -1071,21 +928,20 @@ public int getEnvCount() {
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsEnv(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsEnv(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetEnv().getMap().containsKey(key);
   }
-  /** Use {@link #getEnvMap()} instead. */
+  /**
+   * Use {@link #getEnvMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getEnv() {
     return getEnvMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -1098,8 +954,6 @@ public java.util.Map getEnvMap() {
     return internalGetEnv().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -1108,19 +962,17 @@ public java.util.Map getEnvMap() {
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getEnvOrDefault(
+  public /* nullable */
+java.lang.String getEnvOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetEnv().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetEnv().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -1129,11 +981,11 @@ public java.util.Map getEnvMap() {
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getEnvOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetEnv().getMap();
+  public java.lang.String getEnvOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetEnv().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1141,7 +993,6 @@ public java.lang.String getEnvOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1153,7 +1004,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_);
     }
@@ -1166,8 +1018,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (reconciling_ != false) {
       output.writeBool(4, reconciling_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetAnnotations(),
+        AnnotationsDefaultEntryHolder.defaultEntry,
+        5);
     if (createTime_ != null) {
       output.writeMessage(6, getCreateTime());
     }
@@ -1180,17 +1036,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_);
     }
-    if (state_
-        != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
+    if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(10, state_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_);
     }
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 12);
-    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
-        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetEnv(),
+        EnvDefaultEntryHolder.defaultEntry,
+        12);
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetLabels(),
+        LabelsDefaultEntryHolder.defaultEntry,
+        13);
     if (startTime_ != null) {
       output.writeMessage(14, getStartTime());
     }
@@ -1213,59 +1076,64 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_);
     }
     if (reconciling_ != false) {
-      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetAnnotations().getMap().entrySet()) {
-      com.google.protobuf.MapEntry annotations__ =
-          AnnotationsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBoolSize(4, reconciling_);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetAnnotations().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, annotations__);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getUpdateTime());
     }
     if (deleteTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getDeleteTime());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_);
     }
-    if (state_
-        != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_);
+    if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(10, state_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_);
     }
-    for (java.util.Map.Entry entry :
-        internalGetEnv().getMap().entrySet()) {
-      com.google.protobuf.MapEntry env__ =
-          EnvDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, env__);
-    }
-    for (java.util.Map.Entry entry :
-        internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry labels__ =
-          LabelsDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, labels__);
+    for (java.util.Map.Entry entry
+         : internalGetEnv().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(12, env__);
+    }
+    for (java.util.Map.Entry entry
+         : internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(13, labels__);
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getStartTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(14, getStartTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1275,40 +1143,52 @@ 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.workstations.v1beta.Workstation)) {
       return super.equals(obj);
     }
-    com.google.cloud.workstations.v1beta.Workstation other =
-        (com.google.cloud.workstations.v1beta.Workstation) obj;
-
-    if (!getName().equals(other.getName())) return false;
-    if (!getDisplayName().equals(other.getDisplayName())) return false;
-    if (!getUid().equals(other.getUid())) return false;
-    if (getReconciling() != other.getReconciling()) return false;
-    if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
-    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
+    com.google.cloud.workstations.v1beta.Workstation other = (com.google.cloud.workstations.v1beta.Workstation) obj;
+
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getDisplayName()
+        .equals(other.getDisplayName())) return false;
+    if (!getUid()
+        .equals(other.getUid())) return false;
+    if (getReconciling()
+        != other.getReconciling()) return false;
+    if (!internalGetAnnotations().equals(
+        other.internalGetAnnotations())) return false;
+    if (!internalGetLabels().equals(
+        other.internalGetLabels())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime().equals(other.getCreateTime())) return false;
+      if (!getCreateTime()
+          .equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime()
+          .equals(other.getUpdateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false;
     if (hasDeleteTime()) {
-      if (!getDeleteTime().equals(other.getDeleteTime())) return false;
+      if (!getDeleteTime()
+          .equals(other.getDeleteTime())) return false;
     }
-    if (!getEtag().equals(other.getEtag())) return false;
+    if (!getEtag()
+        .equals(other.getEtag())) return false;
     if (state_ != other.state_) return false;
-    if (!getHost().equals(other.getHost())) return false;
-    if (!internalGetEnv().equals(other.internalGetEnv())) return false;
+    if (!getHost()
+        .equals(other.getHost())) return false;
+    if (!internalGetEnv().equals(
+        other.internalGetEnv())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1327,7 +1207,8 @@ public int hashCode() {
     hash = (37 * hash) + UID_FIELD_NUMBER;
     hash = (53 * hash) + getUid().hashCode();
     hash = (37 * hash) + RECONCILING_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+        getReconciling());
     if (!internalGetAnnotations().getMap().isEmpty()) {
       hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetAnnotations().hashCode();
@@ -1367,121 +1248,117 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.workstations.v1beta.Workstation parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.workstations.v1beta.Workstation parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.workstations.v1beta.Workstation parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation 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 single instance of a developer workstation with its own persistent storage.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ - 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.workstations.v1beta.Workstation) com.google.cloud.workstations.v1beta.WorkstationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -1490,12 +1367,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 12: return internalGetEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableAnnotations(); @@ -1504,27 +1382,28 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 12: return internalGetMutableEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, - com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.Workstation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1563,9 +1442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @java.lang.Override @@ -1584,11 +1463,8 @@ public com.google.cloud.workstations.v1beta.Workstation build() { @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation buildPartial() { - com.google.cloud.workstations.v1beta.Workstation result = - new com.google.cloud.workstations.v1beta.Workstation(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.Workstation result = new com.google.cloud.workstations.v1beta.Workstation(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1616,16 +1492,24 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null + ? deleteTime_ + : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.etag_ = etag_; @@ -1646,39 +1530,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu 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.workstations.v1beta.Workstation) { - return mergeFrom((com.google.cloud.workstations.v1beta.Workstation) other); + return mergeFrom((com.google.cloud.workstations.v1beta.Workstation)other); } else { super.mergeFrom(other); return this; @@ -1686,8 +1569,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) { - if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1706,9 +1588,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom( + other.internalGetAnnotations()); bitField0_ |= 0x00000010; - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); @@ -1735,7 +1619,8 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) bitField0_ |= 0x00001000; onChanged(); } - internalGetMutableEnv().mergeFrom(other.internalGetEnv()); + internalGetMutableEnv().mergeFrom( + other.internalGetEnv()); bitField0_ |= 0x00002000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1763,112 +1648,102 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 80: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 80 - case 90: - { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 90 - case 98: - { - com.google.protobuf.MapEntry env__ = - input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); - bitField0_ |= 0x00002000; - break; - } // case 98 - case 106: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 106 - case 114: - { - input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 114 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + com.google.protobuf.MapEntry + annotations__ = input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableAnnotations().getMutableMap().put( + annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: { + input.readMessage( + getDeleteTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 74: { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 74 + case 80: { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 80 + case 90: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 98: { + com.google.protobuf.MapEntry + env__ = input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put( + env__.getKey(), env__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 98 + case 106: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 106 + case 114: { + input.readMessage( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1878,25 +1753,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Full name of this workstation.
      * 
* * 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; @@ -1905,21 +1777,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this workstation.
      * 
* * 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 { @@ -1927,35 +1798,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this workstation.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this workstation.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1965,21 +1829,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this workstation.
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1989,20 +1849,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -2011,21 +1869,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -2033,35 +1890,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2071,21 +1921,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -2095,20 +1941,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -2117,21 +1961,20 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -2139,35 +1982,28 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -2177,21 +2013,17 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -2199,17 +2031,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -2217,15 +2046,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -2237,15 +2063,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -2255,8 +2078,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -2265,12 +2088,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -2279,168 +2101,153 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2449,13 +2256,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2466,21 +2270,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2495,8 +2298,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2507,19 +2308,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2530,25 +2329,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2558,22 +2355,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2583,20 +2381,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2606,66 +2401,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2681,17 +2459,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2702,21 +2477,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2729,15 +2500,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2750,15 +2517,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2766,48 +2529,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when this workstation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2815,58 +2566,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2882,17 +2614,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2903,21 +2632,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2930,15 +2655,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2951,15 +2672,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2967,48 +2684,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3016,39 +2721,26 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -3059,16 +2751,12 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -3084,18 +2772,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -3106,22 +2791,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && startTime_ != null - && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -3134,16 +2815,12 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3156,16 +2833,12 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000100; @@ -3173,48 +2846,38 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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_; @@ -3222,58 +2885,39 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3289,17 +2933,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -3310,21 +2951,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -3337,15 +2974,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3358,15 +2991,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000200; @@ -3374,48 +3003,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3423,8 +3040,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3432,13 +3047,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3447,8 +3062,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3456,14 +3069,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -3471,8 +3085,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3480,22 +3092,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3503,7 +3111,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3513,8 +3120,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3522,14 +3127,12 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -3539,33 +3142,22 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3576,37 +3168,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = - com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null - ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED - : result; + com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -3620,16 +3199,11 @@ public Builder setState(com.google.cloud.workstations.v1beta.Workstation.State v return this; } /** - * - * *
      * Output only. Current state of the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -3641,8 +3215,6 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3652,13 +3224,13 @@ public Builder clearState() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -3667,8 +3239,6 @@ public java.lang.String getHost() { } } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3678,14 +3248,15 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); host_ = b; return b; } else { @@ -3693,8 +3264,6 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3704,22 +3273,18 @@ public com.google.protobuf.ByteString getHostBytes() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHost( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3729,7 +3294,6 @@ public Builder setHost(java.lang.String value) {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearHost() { @@ -3739,8 +3303,6 @@ public Builder clearHost() { return this; } /** - * - * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3750,14 +3312,12 @@ public Builder clearHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00001000; @@ -3765,19 +3325,21 @@ public Builder setHostBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField( + EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -3786,13 +3348,10 @@ private com.google.protobuf.MapField interna onChanged(); return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3801,21 +3360,20 @@ public int getEnvCount() {
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsEnv(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsEnv(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetEnv().getMap().containsKey(key);
     }
-    /** Use {@link #getEnvMap()} instead. */
+    /**
+     * Use {@link #getEnvMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getEnv() {
       return getEnvMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3828,8 +3386,6 @@ public java.util.Map getEnvMap() {
       return internalGetEnv().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3838,19 +3394,17 @@ public java.util.Map getEnvMap() {
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getEnvOrDefault(
+    public /* nullable */
+java.lang.String getEnvOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetEnv().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetEnv().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3859,25 +3413,23 @@ public java.util.Map getEnvMap() {
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getEnvOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetEnv().getMap();
+    public java.lang.String getEnvOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetEnv().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearEnv() {
       bitField0_ = (bitField0_ & ~0x00002000);
-      internalGetMutableEnv().getMutableMap().clear();
+      internalGetMutableEnv().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3885,22 +3437,23 @@ public Builder clearEnv() {
      *
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeEnv(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableEnv().getMutableMap().remove(key);
+    public Builder removeEnv(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableEnv().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableEnv() {
+    public java.util.Map
+        getMutableEnv() {
       bitField0_ |= 0x00002000;
       return internalGetMutableEnv().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3908,20 +3461,17 @@ public java.util.Map getMutableEnv() {
      *
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putEnv(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableEnv().getMutableMap().put(key, value);
+    public Builder putEnv(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableEnv().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00002000;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3929,14 +3479,16 @@ public Builder putEnv(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllEnv(java.util.Map values) {
-      internalGetMutableEnv().getMutableMap().putAll(values);
+    public Builder putAllEnv(
+        java.util.Map values) {
+      internalGetMutableEnv().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00002000;
       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);
     }
 
@@ -3946,12 +3498,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.Workstation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.Workstation)
   private static final com.google.cloud.workstations.v1beta.Workstation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.Workstation();
   }
@@ -3960,27 +3512,27 @@ public static com.google.cloud.workstations.v1beta.Workstation getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Workstation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Workstation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3995,4 +3547,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.workstations.v1beta.Workstation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
similarity index 68%
rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
index 90a9ee9fc5d4..f9fa57f21d55 100644
--- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
+++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workstations/v1beta/workstations.proto
 
 package com.google.cloud.workstations.v1beta;
 
 /**
- *
- *
  * 
  * A workstation cluster resource in the Cloud Workstations API.
  *
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
  */
-public final class WorkstationCluster extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WorkstationCluster extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster)
     WorkstationClusterOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WorkstationCluster.newBuilder() to construct.
   private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WorkstationCluster() {
     name_ = "";
     displayName_ = "";
@@ -53,59 +35,53 @@ private WorkstationCluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new WorkstationCluster();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 15:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationCluster.class,
-            com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
   }
 
-  public interface PrivateClusterConfigOrBuilder
-      extends
+  public interface PrivateClusterConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -115,13 +91,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ java.lang.String getClusterHostname(); /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -131,14 +104,12 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ - com.google.protobuf.ByteString getClusterHostnameBytes(); + com.google.protobuf.ByteString + getClusterHostnameBytes(); /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -148,13 +119,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAttachmentUri. */ java.lang.String getServiceAttachmentUri(); /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -164,14 +132,12 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAttachmentUri. */ - com.google.protobuf.ByteString getServiceAttachmentUriBytes(); + com.google.protobuf.ByteString + getServiceAttachmentUriBytes(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -179,13 +145,11 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedProjects. */ - java.util.List getAllowedProjectsList(); + java.util.List + getAllowedProjectsList(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -193,13 +157,10 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedProjects. */ int getAllowedProjectsCount(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -207,14 +168,11 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ java.lang.String getAllowedProjects(int index); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -222,70 +180,63 @@ public interface PrivateClusterConfigOrBuilder
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - com.google.protobuf.ByteString getAllowedProjectsBytes(int index); + com.google.protobuf.ByteString + getAllowedProjectsBytes(int index); } /** - * - * *
    * Configuration options for private workstation clusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - public static final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PrivateClusterConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateClusterConfig.newBuilder() to construct. private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrivateClusterConfig() { clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PrivateClusterConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); } public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; private boolean enablePrivateEndpoint_ = false; /** - * - * *
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -294,12 +245,9 @@ public boolean getEnablePrivateEndpoint() { } public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object clusterHostname_ = ""; /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -309,7 +257,6 @@ public boolean getEnablePrivateEndpoint() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ @java.lang.Override @@ -318,15 +265,14 @@ public java.lang.String getClusterHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; } } /** - * - * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -336,15 +282,16 @@ public java.lang.String getClusterHostname() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterHostnameBytes() { + public com.google.protobuf.ByteString + getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -353,12 +300,9 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() { } public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAttachmentUri_ = ""; /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -368,7 +312,6 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAttachmentUri. */ @java.lang.Override @@ -377,15 +320,14 @@ public java.lang.String getServiceAttachmentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; } } /** - * - * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -395,15 +337,16 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for serviceAttachmentUri. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -412,13 +355,10 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { } public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -426,15 +366,13 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { return allowedProjects_; } /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -442,15 +380,12 @@ public com.google.protobuf.ProtocolStringList getAllowedProjectsList() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -458,7 +393,6 @@ public int getAllowedProjectsCount() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -466,8 +400,6 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** - * - * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -475,16 +407,15 @@ public java.lang.String getAllowedProjects(int index) {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -496,7 +427,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 (enablePrivateEndpoint_ != false) { output.writeBool(1, enablePrivateEndpoint_); } @@ -519,7 +451,8 @@ public int getSerializedSize() { size = 0; if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enablePrivateEndpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); @@ -543,20 +476,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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = - (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; - if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; - if (!getClusterHostname().equals(other.getClusterHostname())) return false; - if (!getServiceAttachmentUri().equals(other.getServiceAttachmentUri())) return false; - if (!getAllowedProjectsList().equals(other.getAllowedProjectsList())) return false; + if (getEnablePrivateEndpoint() + != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname() + .equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri() + .equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList() + .equals(other.getAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -569,7 +503,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePrivateEndpoint()); hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getClusterHostname().hashCode(); hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; @@ -583,101 +518,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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 @@ -687,44 +611,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration options for private workstation clusters.
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -732,27 +651,25 @@ public Builder clear() { enablePrivateEndpoint_ = false; clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig build() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -760,19 +677,14 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = - new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enablePrivateEndpoint_ = enablePrivateEndpoint_; @@ -793,55 +705,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; if (other.getEnablePrivateEndpoint() != false) { setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); } @@ -891,38 +794,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - clusterHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - serviceAttachmentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedProjectsIsMutable(); - allowedProjects_.add(s); - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -932,19 +830,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enablePrivateEndpoint_; + private boolean enablePrivateEndpoint_ ; /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -952,14 +846,11 @@ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -971,14 +862,11 @@ public Builder setEnablePrivateEndpoint(boolean value) { return this; } /** - * - * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -990,8 +878,6 @@ public Builder clearEnablePrivateEndpoint() { private java.lang.Object clusterHostname_ = ""; /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1001,13 +887,13 @@ public Builder clearEnablePrivateEndpoint() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterHostname. */ public java.lang.String getClusterHostname() { java.lang.Object ref = clusterHostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; @@ -1016,8 +902,6 @@ public java.lang.String getClusterHostname() { } } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1027,14 +911,15 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for clusterHostname. */ - public com.google.protobuf.ByteString getClusterHostnameBytes() { + public com.google.protobuf.ByteString + getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -1042,8 +927,6 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() { } } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1053,22 +936,18 @@ public com.google.protobuf.ByteString getClusterHostnameBytes() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clusterHostname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1078,7 +957,6 @@ public Builder setClusterHostname(java.lang.String value) {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterHostname() { @@ -1088,8 +966,6 @@ public Builder clearClusterHostname() { return this; } /** - * - * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -1099,14 +975,12 @@ public Builder clearClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClusterHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterHostname_ = value; bitField0_ |= 0x00000002; @@ -1116,8 +990,6 @@ public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAttachmentUri_ = ""; /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1126,15 +998,14 @@ public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The serviceAttachmentUri. */ public java.lang.String getServiceAttachmentUri() { java.lang.Object ref = serviceAttachmentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; @@ -1143,8 +1014,6 @@ public java.lang.String getServiceAttachmentUri() { } } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1153,16 +1022,16 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for serviceAttachmentUri. */ - public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString + getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -1170,8 +1039,6 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { } } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1180,24 +1047,19 @@ public com.google.protobuf.ByteString getServiceAttachmentUriBytes() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAttachmentUri( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1206,9 +1068,7 @@ public Builder setServiceAttachmentUri(java.lang.String value) {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearServiceAttachmentUri() { @@ -1218,8 +1078,6 @@ public Builder clearServiceAttachmentUri() { return this; } /** - * - * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1228,16 +1086,13 @@ public Builder clearServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAttachmentUriBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; @@ -1247,7 +1102,6 @@ public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureAllowedProjectsIsMutable() { if (!allowedProjects_.isModifiable()) { allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); @@ -1255,52 +1109,41 @@ private void ensureAllowedProjectsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList + getAllowedProjectsList() { allowedProjects_.makeImmutable(); return allowedProjects_; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -1308,43 +1151,35 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString + getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The allowedProjects to set. * @return This builder for chaining. */ - public Builder setAllowedProjects(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setAllowedProjects( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedProjectsIsMutable(); allowedProjects_.set(index, value); bitField0_ |= 0x00000008; @@ -1352,24 +1187,19 @@ public Builder setAllowedProjects(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjects(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedProjects( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); bitField0_ |= 0x00000008; @@ -1377,67 +1207,56 @@ public Builder addAllowedProjects(java.lang.String value) { return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param values The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllAllowedProjects(java.lang.Iterable values) { + public Builder addAllAllowedProjects( + java.lang.Iterable values) { ensureAllowedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowedProjects_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAllowedProjects() { - allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + allowedProjects_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addAllowedProjectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); @@ -1445,7 +1264,6 @@ public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1458,46 +1276,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationCluster - .PrivateClusterConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1509,25 +1322,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -1536,29 +1345,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; } } /** - * - * *
    * Full name of this workstation cluster.
    * 
* * 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 { @@ -1567,18 +1376,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -1587,29 +1392,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; } } /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1618,19 +1423,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -1639,30 +1440,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -1673,15 +1474,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -1690,106 +1488,94 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1797,34 +1583,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 15; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } - /** - * - * + /** *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1835,21 +1619,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1864,8 +1647,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1876,19 +1657,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1899,11 +1678,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1913,15 +1692,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -1929,15 +1704,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -1945,14 +1716,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1962,15 +1730,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1978,15 +1742,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -1994,14 +1754,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2011,15 +1768,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -2027,15 +1780,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -2043,14 +1792,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -2058,12 +1804,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -2071,7 +1814,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -2080,15 +1822,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -2096,15 +1837,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -2113,19 +1855,15 @@ public com.google.protobuf.ByteString getEtagBytes() { } public static final int NETWORK_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ @java.lang.Override @@ -2134,30 +1872,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -2166,12 +1904,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { } public static final int SUBNETWORK_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -2179,7 +1914,6 @@ public com.google.protobuf.ByteString getNetworkBytes() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ @java.lang.Override @@ -2188,15 +1922,14 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -2204,15 +1937,16 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -2221,12 +1955,9 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } public static final int CONTROL_PLANE_IP_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private volatile java.lang.Object controlPlaneIp_ = ""; /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -2235,7 +1966,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The controlPlaneIp. */ @java.lang.Override @@ -2244,15 +1974,14 @@ public java.lang.String getControlPlaneIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; } } /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -2261,15 +1990,16 @@ public java.lang.String getControlPlaneIp() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for controlPlaneIp. */ @java.lang.Override - public com.google.protobuf.ByteString getControlPlaneIpBytes() { + public com.google.protobuf.ByteString + getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -2278,19 +2008,13 @@ public com.google.protobuf.ByteString getControlPlaneIpBytes() { } public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -2298,51 +2022,32 @@ public boolean hasPrivateClusterConfig() { return privateClusterConfig_ != null; } /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateClusterConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig() { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } public static final int DEGRADED_FIELD_NUMBER = 13; private boolean degraded_ = false; /** - * - * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -2351,7 +2056,6 @@ public boolean hasPrivateClusterConfig() {
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -2360,87 +2064,72 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 14; - @SuppressWarnings("serial") private java.util.List conditions_; /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2452,7 +2141,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_); } @@ -2465,8 +2155,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -2494,8 +2188,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(14, conditions_.get(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 15); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, controlPlaneIp_); } @@ -2518,26 +2216,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); @@ -2549,24 +2251,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); } if (privateClusterConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPrivateClusterConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getPrivateClusterConfig()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, degraded_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, conditions_.get(i)); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, conditions_.get(i)); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, controlPlaneIp_); @@ -2579,42 +2283,57 @@ 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.workstations.v1beta.WorkstationCluster)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster other = - (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationCluster other = (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; - } - if (!getEtag().equals(other.getEtag())) return false; - if (!getNetwork().equals(other.getNetwork())) return false; - if (!getSubnetwork().equals(other.getSubnetwork())) return false; - if (!getControlPlaneIp().equals(other.getControlPlaneIp())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!getNetwork() + .equals(other.getNetwork())) return false; + if (!getSubnetwork() + .equals(other.getSubnetwork())) return false; + if (!getControlPlaneIp() + .equals(other.getControlPlaneIp())) return false; if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; + if (!getPrivateClusterConfig() + .equals(other.getPrivateClusterConfig())) return false; } - if (getDegraded() != other.getDegraded()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2633,7 +2352,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -2667,7 +2387,8 @@ public int hashCode() { hash = (53 * hash) + getPrivateClusterConfig().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -2678,104 +2399,98 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster 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 workstation cluster resource in the Cloud Workstations API.
    *
@@ -2785,56 +2500,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
    */
-  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.workstations.v1beta.WorkstationCluster)
       com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 15:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 15:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationCluster.class,
-              com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2881,9 +2599,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @java.lang.Override
@@ -2902,18 +2620,14 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationCluster buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationCluster result =
-          new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
+      com.google.cloud.workstations.v1beta.WorkstationCluster result = new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workstations.v1beta.WorkstationCluster result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationCluster result) {
       if (conditionsBuilder_ == null) {
         if (((bitField0_ & 0x00008000) != 0)) {
           conditions_ = java.util.Collections.unmodifiableList(conditions_);
@@ -2948,13 +2662,19 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
@@ -2969,10 +2689,9 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.controlPlaneIp_ = controlPlaneIp_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.privateClusterConfig_ =
-            privateClusterConfigBuilder_ == null
-                ? privateClusterConfig_
-                : privateClusterConfigBuilder_.build();
+        result.privateClusterConfig_ = privateClusterConfigBuilder_ == null
+            ? privateClusterConfig_
+            : privateClusterConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
         result.degraded_ = degraded_;
@@ -2983,39 +2702,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
     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.workstations.v1beta.WorkstationCluster) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster) other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -3023,8 +2741,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -3043,9 +2760,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -3100,10 +2819,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00008000);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -3135,128 +2853,116 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                network_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                subnetwork_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(
-                    getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00002000;
-                break;
-              } // case 98
-            case 104:
-              {
-                degraded_ = input.readBool();
-                bitField0_ |= 0x00004000;
-                break;
-              } // case 104
-            case 114:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 114
-            case 122:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 122
-            case 130:
-              {
-                controlPlaneIp_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 130
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              network_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              subnetwork_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getPrivateClusterConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00002000;
+              break;
+            } // case 98
+            case 104: {
+              degraded_ = input.readBool();
+              bitField0_ |= 0x00004000;
+              break;
+            } // case 104
+            case 114: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 114
+            case 122: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 122
+            case 130: {
+              controlPlaneIp_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 130
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -3266,25 +2972,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Full name of this workstation cluster.
      * 
* * 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; @@ -3293,21 +2996,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * 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 { @@ -3315,35 +3017,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3353,21 +3048,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this workstation cluster.
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3377,20 +3068,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -3399,21 +3088,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -3421,35 +3109,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3459,21 +3140,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3483,21 +3160,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3506,22 +3181,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -3529,37 +3203,30 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -3569,22 +3236,18 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -3592,17 +3255,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -3610,15 +3270,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -3630,15 +3287,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3648,8 +3302,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3658,12 +3312,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3672,168 +3325,153 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } - /** - * - * + /** *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3842,13 +3480,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3859,21 +3494,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3888,8 +3522,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3900,19 +3532,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3923,25 +3553,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3951,22 +3579,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3976,20 +3605,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3999,66 +3625,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4074,17 +3683,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -4095,21 +3701,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -4122,15 +3724,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4143,15 +3741,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -4159,48 +3753,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4208,58 +3790,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4275,17 +3838,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4296,21 +3856,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4323,15 +3879,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -4344,15 +3896,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -4360,48 +3908,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -4409,58 +3945,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -4476,17 +3993,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -4497,21 +4011,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4524,15 +4034,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4545,15 +4051,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -4561,48 +4063,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4610,8 +4100,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4619,13 +4107,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4634,8 +4122,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4643,14 +4129,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -4658,8 +4145,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4667,22 +4152,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4690,7 +4171,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4700,8 +4180,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4709,14 +4187,12 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -4726,21 +4202,19 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private java.lang.Object network_ = ""; /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -4749,22 +4223,21 @@ public java.lang.String getNetwork() { } } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ - public com.google.protobuf.ByteString getNetworkBytes() { + public com.google.protobuf.ByteString + getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); network_ = b; return b; } else { @@ -4772,37 +4245,30 @@ public com.google.protobuf.ByteString getNetworkBytes() { } } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4812,22 +4278,18 @@ public Builder clearNetwork() { return this; } /** - * - * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; @@ -4837,8 +4299,6 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnetwork_ = ""; /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4846,13 +4306,13 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -4861,8 +4321,6 @@ public java.lang.String getSubnetwork() { } } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4870,14 +4328,15 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString getSubnetworkBytes() { + public com.google.protobuf.ByteString + getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -4885,8 +4344,6 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4894,22 +4351,18 @@ public com.google.protobuf.ByteString getSubnetworkBytes() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetwork( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subnetwork_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4917,7 +4370,6 @@ public Builder setSubnetwork(java.lang.String value) {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -4927,8 +4379,6 @@ public Builder clearSubnetwork() { return this; } /** - * - * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4936,14 +4386,12 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetworkBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000800; @@ -4953,8 +4401,6 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { private java.lang.Object controlPlaneIp_ = ""; /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4963,13 +4409,13 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The controlPlaneIp. */ public java.lang.String getControlPlaneIp() { java.lang.Object ref = controlPlaneIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; @@ -4978,8 +4424,6 @@ public java.lang.String getControlPlaneIp() { } } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4988,14 +4432,15 @@ public java.lang.String getControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for controlPlaneIp. */ - public com.google.protobuf.ByteString getControlPlaneIpBytes() { + public com.google.protobuf.ByteString + getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -5003,8 +4448,6 @@ public com.google.protobuf.ByteString getControlPlaneIpBytes() { } } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -5013,22 +4456,18 @@ public com.google.protobuf.ByteString getControlPlaneIpBytes() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIp(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setControlPlaneIp( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } controlPlaneIp_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -5037,7 +4476,6 @@ public Builder setControlPlaneIp(java.lang.String value) {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearControlPlaneIp() { @@ -5047,8 +4485,6 @@ public Builder clearControlPlaneIp() { return this; } /** - * - * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -5057,14 +4493,12 @@ public Builder clearControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIpBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setControlPlaneIpBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); controlPlaneIp_ = value; bitField0_ |= 0x00001000; @@ -5072,66 +4506,43 @@ public Builder setControlPlaneIpBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> - privateClusterConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privateClusterConfig field is set. */ public boolean hasPrivateClusterConfig() { return ((bitField0_ & 0x00002000) != 0); } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateClusterConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } else { return privateClusterConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5145,19 +4556,14 @@ public Builder setPrivateClusterConfig( return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { if (privateClusterConfigBuilder_ == null) { privateClusterConfig_ = builderForValue.build(); } else { @@ -5168,24 +4574,17 @@ public Builder setPrivateClusterConfig( return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergePrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && privateClusterConfig_ != null - && privateClusterConfig_ - != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) && + privateClusterConfig_ != null && + privateClusterConfig_ != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { getPrivateClusterConfigBuilder().mergeFrom(value); } else { privateClusterConfig_ = value; @@ -5198,15 +4597,11 @@ public Builder mergePrivateClusterConfig( return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00002000); @@ -5219,78 +4614,55 @@ public Builder clearPrivateClusterConfig() { return this; } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder - getPrivateClusterConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { bitField0_ |= 0x00002000; onChanged(); return getPrivateClusterConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { if (privateClusterConfigBuilder_ != null) { return privateClusterConfigBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .getDefaultInstance() - : privateClusterConfig_; + return privateClusterConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; } } /** - * - * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> getPrivateClusterConfigFieldBuilder() { if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - .Builder, - com.google.cloud.workstations.v1beta.WorkstationCluster - .PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), getParentForChildren(), isClean()); + privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), + getParentForChildren(), + isClean()); privateClusterConfig_ = null; } return privateClusterConfigBuilder_; } - private boolean degraded_; + private boolean degraded_ ; /** - * - * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -5299,7 +4671,6 @@ public Builder clearPrivateClusterConfig() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -5307,8 +4678,6 @@ public boolean getDegraded() { return degraded_; } /** - * - * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -5317,7 +4686,6 @@ public boolean getDegraded() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The degraded to set. * @return This builder for chaining. */ @@ -5329,8 +4697,6 @@ public Builder setDegraded(boolean value) { return this; } /** - * - * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -5339,7 +4705,6 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -5349,30 +4714,25 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = java.util.Collections.emptyList(); - + private java.util.List conditions_ = + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00008000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00008000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -5382,16 +4742,12 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -5401,16 +4757,12 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -5420,18 +4772,15 @@ public com.google.rpc.Status getConditions(int index) { } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status value) { + public Builder setConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5445,18 +4794,15 @@ public Builder setConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -5467,16 +4813,12 @@ public Builder setConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -5492,18 +4834,15 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status value) { + public Builder addConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5517,18 +4856,15 @@ public Builder addConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -5539,18 +4875,15 @@ public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -5561,21 +4894,19 @@ public Builder addConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAllConditions(java.lang.Iterable values) { + public Builder addAllConditions( + java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -5583,16 +4914,12 @@ public Builder addAllConditions(java.lang.Iterable * Output only. Status conditions describing the workstation cluster's current * state. *
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -5605,16 +4932,12 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -5627,52 +4950,42 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder getConditionsBuilder(int index) { + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -5680,69 +4993,59 @@ public java.util.List getConditionsOrB } } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - conditions_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00008000) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; } - @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); } @@ -5752,12 +5055,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster) private static final com.google.cloud.workstations.v1beta.WorkstationCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster(); } @@ -5766,27 +5069,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationCluster getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5801,4 +5104,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java similarity index 74% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java index c7e7c23f0aec..7c01a7d12a94 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java @@ -1,185 +1,140 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationClusterOrBuilder - extends +public interface WorkstationClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAnnotationsCount(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -191,8 +146,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -202,13 +155,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -218,10 +173,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -232,13 +186,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -248,125 +200,91 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -374,13 +292,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -388,41 +303,34 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The network. */ java.lang.String getNetwork(); /** - * - * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for network. */ - com.google.protobuf.ByteString getNetworkBytes(); + com.google.protobuf.ByteString + getNetworkBytes(); /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -430,13 +338,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** - * - * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -444,14 +349,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString getSubnetworkBytes(); + com.google.protobuf.ByteString + getSubnetworkBytes(); /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -460,13 +363,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The controlPlaneIp. */ java.lang.String getControlPlaneIp(); /** - * - * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -475,57 +375,39 @@ java.lang.String getLabelsOrDefault(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for controlPlaneIp. */ - com.google.protobuf.ByteString getControlPlaneIpBytes(); + com.google.protobuf.ByteString + getControlPlaneIpBytes(); /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The privateClusterConfig. */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig - getPrivateClusterConfig(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); /** - * - * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); /** - * - * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -534,69 +416,56 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ boolean getDegraded(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.Status getConditions(int index); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); } diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java similarity index 67% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java index 80c7afb97143..02c8ba71c5ff 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** - * - * *
  * A workstation configuration resource in the Cloud Workstations API.
  *
@@ -35,16 +18,15 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
  */
-public final class WorkstationConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class WorkstationConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig)
     WorkstationConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use WorkstationConfig.newBuilder() to construct.
   private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private WorkstationConfig() {
     name_ = "";
     displayName_ = "";
@@ -53,140 +35,122 @@ private WorkstationConfig() {
     persistentDirectories_ = java.util.Collections.emptyList();
     ephemeralDirectories_ = java.util.Collections.emptyList();
     readinessChecks_ = java.util.Collections.emptyList();
-    replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
+    replicaZones_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     conditions_ = 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 WorkstationConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 18:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto
-        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationConfig.class,
-            com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
   }
 
-  public interface HostOrBuilder
-      extends
+  public interface HostOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ boolean hasGceInstance(); /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance(); /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); com.google.cloud.workstations.v1beta.WorkstationConfig.Host.ConfigCase getConfigCase(); } /** - * - * *
    * Runtime host for a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - public static final class Host extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Host extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host) HostOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Host() {} + private Host() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Host(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } - public interface GceInstanceOrBuilder - extends + public interface GceInstanceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -196,13 +160,10 @@ public interface GceInstanceOrBuilder
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ java.lang.String getMachineType(); /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -212,14 +173,12 @@ public interface GceInstanceOrBuilder
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineType. */ - com.google.protobuf.ByteString getMachineTypeBytes(); + com.google.protobuf.ByteString + getMachineTypeBytes(); /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -241,13 +200,10 @@ public interface GceInstanceOrBuilder
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -269,14 +225,12 @@ public interface GceInstanceOrBuilder
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString getServiceAccountBytes(); + com.google.protobuf.ByteString + getServiceAccountBytes(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -285,15 +239,12 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - java.util.List getServiceAccountScopesList(); + java.util.List + getServiceAccountScopesList(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -302,15 +253,11 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ int getServiceAccountScopesCount(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -319,16 +266,12 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ java.lang.String getServiceAccountScopes(int index); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -337,17 +280,14 @@ public interface GceInstanceOrBuilder
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); + com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -359,13 +299,11 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - java.util.List getTagsList(); + java.util.List + getTagsList(); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -377,13 +315,10 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ int getTagsCount(); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -395,14 +330,11 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -414,15 +346,13 @@ public interface GceInstanceOrBuilder
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString getTagsBytes(int index); + com.google.protobuf.ByteString + getTagsBytes(int index); /** - * - * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -430,28 +360,22 @@ public interface GceInstanceOrBuilder
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The poolSize. */ int getPoolSize(); /** - * - * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pooledInstances. */ int getPooledInstances(); /** - * - * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -462,16 +386,12 @@ public interface GceInstanceOrBuilder
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The disablePublicIpAddresses. */ boolean getDisablePublicIpAddresses(); /** - * - * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -509,343 +429,252 @@ public interface GceInstanceOrBuilder
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableNestedVirtualization. */ boolean getEnableNestedVirtualization(); /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); /** - * - * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> + java.util.List getAcceleratorsList(); /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - getAccelerators(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getAccelerators(int index); /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ int getAcceleratorsCount(); /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder> + java.util.List getAcceleratorsOrBuilderList(); /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder - getAcceleratorsOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder getAcceleratorsOrBuilder( + int index); } /** - * - * *
      * A runtime using a Compute Engine instance.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - public static final class GceInstance extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceInstance extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) GceInstanceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceInstance.newBuilder() to construct. private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceInstance() { machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); accelerators_ = 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 GceInstance(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); } - public interface GceShieldedInstanceConfigOrBuilder - extends + public interface GceShieldedInstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** - * - * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ boolean getEnableVtpm(); /** - * - * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** - * - * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class GceShieldedInstanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceShieldedInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) GceShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceShieldedInstanceConfig.newBuilder() to construct. - private GceShieldedInstanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private GceShieldedInstanceConfig() {} + private GceShieldedInstanceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceShieldedInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_ = false; /** - * - * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -856,14 +685,11 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_ = false; /** - * - * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ @java.lang.Override @@ -874,15 +700,11 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_ = false; /** - * - * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -891,7 +713,6 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -904,7 +725,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 (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -924,15 +745,16 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, enableIntegrityMonitoring_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -942,24 +764,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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) - obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; - if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() + != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() + != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() + != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -972,131 +789,103 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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 @@ -1106,46 +895,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1157,26 +939,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1184,25 +959,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableSecureBoot_ = enableSecureBoot_; @@ -1219,60 +983,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -1308,31 +1058,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - enableVtpm_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1342,19 +1088,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableSecureBoot_; + private boolean enableSecureBoot_ ; /** - * - * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableSecureBoot. */ @java.lang.Override @@ -1362,14 +1104,11 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** - * - * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ @@ -1381,14 +1120,11 @@ public Builder setEnableSecureBoot(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { @@ -1398,16 +1134,13 @@ public Builder clearEnableSecureBoot() { return this; } - private boolean enableVtpm_; + private boolean enableVtpm_ ; /** - * - * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableVtpm. */ @java.lang.Override @@ -1415,14 +1148,11 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** - * - * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableVtpm to set. * @return This builder for chaining. */ @@ -1434,14 +1164,11 @@ public Builder setEnableVtpm(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableVtpm() { @@ -1451,17 +1178,13 @@ public Builder clearEnableVtpm() { return this; } - private boolean enableIntegrityMonitoring_; + private boolean enableIntegrityMonitoring_ ; /** - * - * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -1469,15 +1192,11 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** - * - * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ @@ -1489,15 +1208,11 @@ public Builder setEnableIntegrityMonitoring(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { @@ -1506,7 +1221,6 @@ public Builder clearEnableIntegrityMonitoring() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1519,48 +1233,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1572,91 +1279,73 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface GceConfidentialInstanceConfigOrBuilder - extends + public interface GceConfidentialInstanceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableConfidentialCompute. */ boolean getEnableConfidentialCompute(); } /** - * - * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class GceConfidentialInstanceConfig - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceConfidentialInstanceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) GceConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceConfidentialInstanceConfig.newBuilder() to construct. - private GceConfidentialInstanceConfig( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceConfidentialInstanceConfig() { + } - private GceConfidentialInstanceConfig() {} - @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceConfidentialInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); } public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; /** - * - * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1665,7 +1354,6 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1678,7 +1366,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 (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -1692,9 +1380,8 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 1, enableConfidentialCompute_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1704,22 +1391,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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) - obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; - if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; + if (getEnableConfidentialCompute() + != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1732,127 +1412,97 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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 @@ -1862,46 +1512,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1911,26 +1554,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1938,25 +1574,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; @@ -1967,60 +1592,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } @@ -2050,19 +1661,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableConfidentialCompute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2072,20 +1681,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableConfidentialCompute_; + private boolean enableConfidentialCompute_ ; /** - * - * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableConfidentialCompute. */ @java.lang.Override @@ -2093,15 +1697,11 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** - * - * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ @@ -2113,15 +1713,11 @@ public Builder setEnableConfidentialCompute(boolean value) { return this; } /** - * - * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { @@ -2130,7 +1726,6 @@ public Builder clearEnableConfidentialCompute() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2143,48 +1738,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2196,21 +1784,17 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AcceleratorOrBuilder - extends + public interface AcceleratorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) com.google.protobuf.MessageOrBuilder { /** - * - * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -2218,13 +1802,10 @@ public interface AcceleratorOrBuilder
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The type. */ java.lang.String getType(); /** - * - * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -2232,78 +1813,65 @@ public interface AcceleratorOrBuilder
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for type. */ - com.google.protobuf.ByteString getTypeBytes(); + com.google.protobuf.ByteString + getTypeBytes(); /** - * - * *
          * Optional. Number of accelerator cards exposed to the instance.
          * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count. */ int getCount(); } /** - * - * *
        * An accelerator card attached to the instance.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} */ - public static final class Accelerator extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Accelerator extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) AcceleratorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Accelerator.newBuilder() to construct. private Accelerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Accelerator() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Accelerator(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** - * - * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -2311,7 +1879,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The type. */ @java.lang.Override @@ -2320,15 +1887,14 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** - * - * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -2336,15 +1902,16 @@ public java.lang.String getType() {
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -2355,14 +1922,11 @@ public com.google.protobuf.ByteString getTypeBytes() { public static final int COUNT_FIELD_NUMBER = 2; private int count_ = 0; /** - * - * *
          * Optional. Number of accelerator cards exposed to the instance.
          * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count. */ @java.lang.Override @@ -2371,7 +1935,6 @@ public int getCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2384,7 +1947,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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -2404,7 +1967,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, count_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, count_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2414,22 +1978,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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator) - obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) obj; - if (!getType().equals(other.getType())) return false; - if (getCount() != other.getCount()) return false; + if (!getType() + .equals(other.getType())) return false; + if (getCount() + != other.getCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2450,118 +2009,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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 @@ -2571,46 +2102,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
          * An accelerator card attached to the instance.
          * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2621,23 +2145,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2645,22 +2165,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; @@ -2674,59 +2186,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; @@ -2761,25 +2260,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - count_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + count_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2789,13 +2285,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object type_ = ""; /** - * - * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2803,13 +2296,13 @@ public Builder mergeFrom(
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -2818,8 +2311,6 @@ public java.lang.String getType() { } } /** - * - * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2827,14 +2318,15 @@ public java.lang.String getType() {
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for type. */ - public com.google.protobuf.ByteString getTypeBytes() { + public com.google.protobuf.ByteString + getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); type_ = b; return b; } else { @@ -2842,8 +2334,6 @@ public com.google.protobuf.ByteString getTypeBytes() { } } /** - * - * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2851,22 +2341,18 @@ public com.google.protobuf.ByteString getTypeBytes() {
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2874,7 +2360,6 @@ public Builder setType(java.lang.String value) {
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearType() { @@ -2884,8 +2369,6 @@ public Builder clearType() { return this; } /** - * - * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2893,14 +2376,12 @@ public Builder clearType() {
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; @@ -2908,16 +2389,13 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { return this; } - private int count_; + private int count_ ; /** - * - * *
            * Optional. Number of accelerator cards exposed to the instance.
            * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count. */ @java.lang.Override @@ -2925,14 +2403,11 @@ public int getCount() { return count_; } /** - * - * *
            * Optional. Number of accelerator cards exposed to the instance.
            * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The count to set. * @return This builder for chaining. */ @@ -2944,14 +2419,11 @@ public Builder setCount(int value) { return this; } /** - * - * *
            * Optional. Number of accelerator cards exposed to the instance.
            * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCount() { @@ -2960,7 +2432,6 @@ public Builder clearCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2973,48 +2444,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Accelerator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Accelerator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3026,19 +2490,16 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -3048,7 +2509,6 @@ public com.google.protobuf.Parser getParserForType() {
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ @java.lang.Override @@ -3057,15 +2517,14 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** - * - * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -3075,15 +2534,16 @@ public java.lang.String getMachineType() {
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -3092,12 +2552,9 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -3119,7 +2576,6 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ @java.lang.Override @@ -3128,15 +2584,14 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** - * - * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -3158,15 +2613,16 @@ public java.lang.String getServiceAccount() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -3175,13 +2631,10 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -3190,17 +2643,14 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountScopesList() { return serviceAccountScopes_; } /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -3209,17 +2659,13 @@ public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -3228,9 +2674,7 @@ public int getServiceAccountScopesCount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -3238,8 +2682,6 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** - * - * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -3248,24 +2690,20 @@ public java.lang.String getServiceAccountScopes(int index) {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } public static final int TAGS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -3277,15 +2715,13 @@ public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { return tags_; } /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -3297,15 +2733,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -3317,7 +2750,6 @@ public int getTagsCount() {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3325,8 +2757,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -3338,19 +2768,17 @@ public java.lang.String getTags(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POOL_SIZE_FIELD_NUMBER = 5; private int poolSize_ = 0; /** - * - * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -3358,7 +2786,6 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The poolSize. */ @java.lang.Override @@ -3369,15 +2796,12 @@ public int getPoolSize() { public static final int POOLED_INSTANCES_FIELD_NUMBER = 12; private int pooledInstances_ = 0; /** - * - * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pooledInstances. */ @java.lang.Override @@ -3388,8 +2812,6 @@ public int getPooledInstances() { public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; private boolean disablePublicIpAddresses_ = false; /** - * - * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -3400,9 +2822,7 @@ public int getPooledInstances() {
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -3413,8 +2833,6 @@ public boolean getDisablePublicIpAddresses() { public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER = 7; private boolean enableNestedVirtualization_ = false; /** - * - * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -3452,9 +2870,7 @@ public boolean getDisablePublicIpAddresses() {
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableNestedVirtualization. */ @java.lang.Override @@ -3463,20 +2879,13 @@ public boolean getEnableNestedVirtualization() { } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -3484,63 +2893,37 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } /** - * - * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -3548,60 +2931,38 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } /** - * - * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; private int bootDiskSizeGb_ = 0; /** - * - * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -3610,103 +2971,72 @@ public int getBootDiskSizeGb() { } public static final int ACCELERATORS_FIELD_NUMBER = 11; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> - accelerators_; + private java.util.List accelerators_; /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> - getAcceleratorsList() { + public java.util.List getAcceleratorsList() { return accelerators_; } /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder> + public java.util.List getAcceleratorsOrBuilderList() { return accelerators_; } /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getAcceleratorsCount() { return accelerators_.size(); } /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - getAccelerators(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getAccelerators(int index) { return accelerators_.get(index); } /** - * - * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder - getAcceleratorsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder getAcceleratorsOrBuilder( + int index) { return accelerators_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3718,7 +3048,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -3726,8 +3057,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 3, serviceAccountScopes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountScopes_.getRaw(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); @@ -3788,35 +3118,36 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, poolSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, poolSize_); } if (disablePublicIpAddresses_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(6, disablePublicIpAddresses_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, disablePublicIpAddresses_); } if (enableNestedVirtualization_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableNestedVirtualization_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, enableNestedVirtualization_); } if (shieldedInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getShieldedInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getShieldedInstanceConfig()); } if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, bootDiskSizeGb_); } if (confidentialInstanceConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getConfidentialInstanceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getConfidentialInstanceConfig()); } for (int i = 0; i < accelerators_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, accelerators_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, accelerators_.get(i)); } if (pooledInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, pooledInstances_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(12, pooledInstances_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3826,35 +3157,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.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; - - if (!getMachineType().equals(other.getMachineType())) return false; - if (!getServiceAccount().equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) - return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (getPoolSize() != other.getPoolSize()) return false; - if (getPooledInstances() != other.getPooledInstances()) return false; - if (getDisablePublicIpAddresses() != other.getDisablePublicIpAddresses()) return false; - if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType() + .equals(other.getMachineType())) return false; + if (!getServiceAccount() + .equals(other.getServiceAccount())) return false; + if (!getServiceAccountScopesList() + .equals(other.getServiceAccountScopesList())) return false; + if (!getTagsList() + .equals(other.getTagsList())) return false; + if (getPoolSize() + != other.getPoolSize()) return false; + if (getPooledInstances() + != other.getPooledInstances()) return false; + if (getDisablePublicIpAddresses() + != other.getDisablePublicIpAddresses()) return false; + if (getEnableNestedVirtualization() + != other.getEnableNestedVirtualization()) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig() + .equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) - return false; + if (!getConfidentialInstanceConfig() + .equals(other.getConfidentialInstanceConfig())) return false; } - if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; - if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; + if (getBootDiskSizeGb() + != other.getBootDiskSizeGb()) return false; + if (!getAcceleratorsList() + .equals(other.getAcceleratorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3883,11 +3222,11 @@ public int hashCode() { hash = (37 * hash) + POOLED_INSTANCES_FIELD_NUMBER; hash = (53 * hash) + getPooledInstances(); hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePublicIpAddresses()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDisablePublicIpAddresses()); hash = (37 * hash) + ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableNestedVirtualization()); if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); @@ -3907,103 +3246,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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 @@ -4013,51 +3339,49 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A runtime using a Compute Engine instance.
        * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); poolSize_ = 0; pooledInstances_ = 0; disablePublicIpAddresses_ = false; @@ -4084,22 +3408,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4107,20 +3428,15 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance b } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { if (acceleratorsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { accelerators_ = java.util.Collections.unmodifiableList(accelerators_); @@ -4132,8 +3448,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.machineType_ = machineType_; @@ -4162,16 +3477,14 @@ private void buildPartial0( result.enableNestedVirtualization_ = enableNestedVirtualization_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.shieldedInstanceConfig_ = - shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.confidentialInstanceConfig_ = - confidentialInstanceConfigBuilder_ == null - ? confidentialInstanceConfig_ - : confidentialInstanceConfigBuilder_.build(); + result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.bootDiskSizeGb_ = bootDiskSizeGb_; @@ -4182,54 +3495,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.Host.GceInstance) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -4299,10 +3604,9 @@ public Builder mergeFrom( acceleratorsBuilder_ = null; accelerators_ = other.accelerators_; bitField0_ = (bitField0_ & ~0x00000800); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAcceleratorsFieldBuilder() - : null; + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceleratorsFieldBuilder() : null; } else { acceleratorsBuilder_.addAllMessages(other.accelerators_); } @@ -4334,101 +3638,86 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(s); - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: - { - poolSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - disablePublicIpAddresses_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 56: - { - enableNestedVirtualization_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 72: - { - bootDiskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 72 - case 82: - { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator - m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host - .GceInstance.Accelerator.parser(), - extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 90 - case 96: - { - pooledInstances_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountScopesIsMutable(); + serviceAccountScopes_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: { + enableNestedVirtualization_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 72: { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 72 + case 82: { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.parser(), + extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 96: { + pooledInstances_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 96 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4438,13 +3727,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object machineType_ = ""; /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -4454,13 +3740,13 @@ public Builder mergeFrom(
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -4469,8 +3755,6 @@ public java.lang.String getMachineType() { } } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -4480,14 +3764,15 @@ public java.lang.String getMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString getMachineTypeBytes() { + public com.google.protobuf.ByteString + getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); machineType_ = b; return b; } else { @@ -4495,8 +3780,6 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { } } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -4506,22 +3789,18 @@ public com.google.protobuf.ByteString getMachineTypeBytes() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -4531,7 +3810,6 @@ public Builder setMachineType(java.lang.String value) {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -4541,8 +3819,6 @@ public Builder clearMachineType() { return this; } /** - * - * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -4552,14 +3828,12 @@ public Builder clearMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMachineTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -4569,8 +3843,6 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccount_ = ""; /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -4592,13 +3864,13 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -4607,8 +3879,6 @@ public java.lang.String getServiceAccount() { } } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -4630,14 +3900,15 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString getServiceAccountBytes() { + public com.google.protobuf.ByteString + getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -4645,8 +3916,6 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -4668,22 +3937,18 @@ public com.google.protobuf.ByteString getServiceAccountBytes() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -4705,7 +3970,6 @@ public Builder setServiceAccount(java.lang.String value) {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -4715,8 +3979,6 @@ public Builder clearServiceAccount() { return this; } /** - * - * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -4738,14 +4000,12 @@ public Builder clearServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; @@ -4755,17 +4015,13 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureServiceAccountScopesIsMutable() { if (!serviceAccountScopes_.isModifiable()) { - serviceAccountScopes_ = - new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); + serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); } bitField0_ |= 0x00000004; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4774,19 +4030,15 @@ private void ensureServiceAccountScopesIsMutable() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList + getServiceAccountScopesList() { serviceAccountScopes_.makeImmutable(); return serviceAccountScopes_; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4795,18 +4047,13 @@ public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4815,10 +4062,7 @@ public int getServiceAccountScopesCount() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -4826,8 +4070,6 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4836,19 +4078,15 @@ public java.lang.String getServiceAccountScopes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString + getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4857,18 +4095,14 @@ public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The serviceAccountScopes to set. * @return This builder for chaining. */ - public Builder setServiceAccountScopes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setServiceAccountScopes( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); bitField0_ |= 0x00000004; @@ -4876,8 +4110,6 @@ public Builder setServiceAccountScopes(int index, java.lang.String value) { return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4886,17 +4118,13 @@ public Builder setServiceAccountScopes(int index, java.lang.String value) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceAccountScopes( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); bitField0_ |= 0x00000004; @@ -4904,8 +4132,6 @@ public Builder addServiceAccountScopes(java.lang.String value) { return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4914,23 +4140,20 @@ public Builder addServiceAccountScopes(java.lang.String value) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param values The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountScopes(java.lang.Iterable values) { + public Builder addAllServiceAccountScopes( + java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serviceAccountScopes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4939,22 +4162,17 @@ public Builder addAllServiceAccountScopes(java.lang.Iterable v
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearServiceAccountScopes() { - serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4963,17 +4181,13 @@ public Builder clearServiceAccountScopes() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addServiceAccountScopesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); @@ -4984,7 +4198,6 @@ public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); @@ -4992,8 +4205,6 @@ private void ensureTagsIsMutable() { bitField0_ |= 0x00000008; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5005,16 +4216,14 @@ private void ensureTagsIsMutable() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList getTagsList() { + public com.google.protobuf.ProtocolStringList + getTagsList() { tags_.makeImmutable(); return tags_; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5026,15 +4235,12 @@ public com.google.protobuf.ProtocolStringList getTagsList() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5046,7 +4252,6 @@ public int getTagsCount() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -5054,8 +4259,6 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5067,16 +4270,14 @@ public java.lang.String getTags(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString getTagsBytes(int index) { + public com.google.protobuf.ByteString + getTagsBytes(int index) { return tags_.getByteString(index); } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5088,15 +4289,13 @@ public com.google.protobuf.ByteString getTagsBytes(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTags( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000008; @@ -5104,8 +4303,6 @@ public Builder setTags(int index, java.lang.String value) { return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5117,14 +4314,12 @@ public Builder setTags(int index, java.lang.String value) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTags( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000008; @@ -5132,8 +4327,6 @@ public Builder addTags(java.lang.String value) { return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5145,20 +4338,19 @@ public Builder addTags(java.lang.String value) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags(java.lang.Iterable values) { + public Builder addAllTags( + java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tags_); bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5170,19 +4362,16 @@ public Builder addAllTags(java.lang.Iterable values) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; + tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } /** - * - * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -5194,14 +4383,12 @@ public Builder clearTags() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addTagsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -5210,10 +4397,8 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { return this; } - private int poolSize_; + private int poolSize_ ; /** - * - * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -5221,7 +4406,6 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The poolSize. */ @java.lang.Override @@ -5229,8 +4413,6 @@ public int getPoolSize() { return poolSize_; } /** - * - * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -5238,7 +4420,6 @@ public int getPoolSize() {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The poolSize to set. * @return This builder for chaining. */ @@ -5250,8 +4431,6 @@ public Builder setPoolSize(int value) { return this; } /** - * - * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -5259,7 +4438,6 @@ public Builder setPoolSize(int value) {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPoolSize() { @@ -5269,17 +4447,14 @@ public Builder clearPoolSize() { return this; } - private int pooledInstances_; + private int pooledInstances_ ; /** - * - * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The pooledInstances. */ @java.lang.Override @@ -5287,15 +4462,12 @@ public int getPooledInstances() { return pooledInstances_; } /** - * - * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The pooledInstances to set. * @return This builder for chaining. */ @@ -5307,15 +4479,12 @@ public Builder setPooledInstances(int value) { return this; } /** - * - * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPooledInstances() { @@ -5325,10 +4494,8 @@ public Builder clearPooledInstances() { return this; } - private boolean disablePublicIpAddresses_; + private boolean disablePublicIpAddresses_ ; /** - * - * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -5339,9 +4506,7 @@ public Builder clearPooledInstances() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -5349,8 +4514,6 @@ public boolean getDisablePublicIpAddresses() { return disablePublicIpAddresses_; } /** - * - * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -5361,9 +4524,7 @@ public boolean getDisablePublicIpAddresses() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @param value The disablePublicIpAddresses to set. * @return This builder for chaining. */ @@ -5375,8 +4536,6 @@ public Builder setDisablePublicIpAddresses(boolean value) { return this; } /** - * - * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -5387,9 +4546,7 @@ public Builder setDisablePublicIpAddresses(boolean value) {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearDisablePublicIpAddresses() { @@ -5399,10 +4556,8 @@ public Builder clearDisablePublicIpAddresses() { return this; } - private boolean enableNestedVirtualization_; + private boolean enableNestedVirtualization_ ; /** - * - * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -5440,9 +4595,7 @@ public Builder clearDisablePublicIpAddresses() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The enableNestedVirtualization. */ @java.lang.Override @@ -5450,8 +4603,6 @@ public boolean getEnableNestedVirtualization() { return enableNestedVirtualization_; } /** - * - * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -5489,9 +4640,7 @@ public boolean getEnableNestedVirtualization() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enableNestedVirtualization to set. * @return This builder for chaining. */ @@ -5503,8 +4652,6 @@ public Builder setEnableNestedVirtualization(boolean value) { return this; } /** - * - * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -5542,9 +4689,7 @@ public Builder setEnableNestedVirtualization(boolean value) {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearEnableNestedVirtualization() { @@ -5554,73 +4699,43 @@ public Builder clearEnableNestedVirtualization() { return this; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder> - shieldedInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The shieldedInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - getShieldedInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - value) { + public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5634,20 +4749,14 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = builderForValue.build(); } else { @@ -5658,26 +4767,17 @@ public Builder setShieldedInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig - value) { + public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && shieldedInstanceConfig_ != null - && shieldedInstanceConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + shieldedInstanceConfig_ != null && + shieldedInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { getShieldedInstanceConfigBuilder().mergeFrom(value); } else { shieldedInstanceConfig_ = value; @@ -5690,15 +4790,11 @@ public Builder mergeShieldedInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearShieldedInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000100); @@ -5711,147 +4807,90 @@ public Builder clearShieldedInstanceConfig() { return this; } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder - getShieldedInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { bitField0_ |= 0x00000100; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder - getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.getDefaultInstance() - : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; } } /** - * - * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), getParentForChildren(), isClean()); + shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), + getParentForChildren(), + isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder> - confidentialInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return ((bitField0_ & 0x00000200) != 0); } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The confidentialInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - getConfidentialInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - value) { + public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5865,20 +4904,14 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { if (confidentialInstanceConfigBuilder_ == null) { confidentialInstanceConfig_ = builderForValue.build(); } else { @@ -5889,26 +4922,17 @@ public Builder setConfidentialInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig - value) { + public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && confidentialInstanceConfig_ != null - && confidentialInstanceConfig_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) && + confidentialInstanceConfig_ != null && + confidentialInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { getConfidentialInstanceConfigBuilder().mergeFrom(value); } else { confidentialInstanceConfig_ = value; @@ -5921,15 +4945,11 @@ public Builder mergeConfidentialInstanceConfig( return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConfidentialInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000200); @@ -5942,91 +4962,61 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder - getConfidentialInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { bitField0_ |= 0x00000200; onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder - getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.getDefaultInstance() - : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; } } /** - * - * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfig.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .GceConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), getParentForChildren(), isClean()); + confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), + getParentForChildren(), + isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - private int bootDiskSizeGb_; + private int bootDiskSizeGb_ ; /** - * - * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -6034,15 +5024,12 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** - * - * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ @@ -6054,15 +5041,12 @@ public Builder setBootDiskSizeGb(int value) { return this; } /** - * - * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { @@ -6072,43 +5056,27 @@ public Builder clearBootDiskSizeGb() { return this; } - private java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> - accelerators_ = java.util.Collections.emptyList(); - + private java.util.List accelerators_ = + java.util.Collections.emptyList(); private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - accelerators_ = - new java.util.ArrayList< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator>(accelerators_); + accelerators_ = new java.util.ArrayList(accelerators_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder> - acceleratorsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder> acceleratorsBuilder_; /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> - getAcceleratorsList() { + public java.util.List getAcceleratorsList() { if (acceleratorsBuilder_ == null) { return java.util.Collections.unmodifiableList(accelerators_); } else { @@ -6116,16 +5084,12 @@ private void ensureAcceleratorsIsMutable() { } } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public int getAcceleratorsCount() { if (acceleratorsBuilder_ == null) { @@ -6135,19 +5099,14 @@ public int getAcceleratorsCount() { } } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - getAccelerators(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getAccelerators(int index) { if (acceleratorsBuilder_ == null) { return accelerators_.get(index); } else { @@ -6155,21 +5114,15 @@ public int getAcceleratorsCount() { } } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccelerators( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6183,22 +5136,15 @@ public Builder setAccelerators( return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAccelerators( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.set(index, builderForValue.build()); @@ -6209,20 +5155,14 @@ public Builder setAccelerators( return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addAccelerators( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - value) { + public Builder addAccelerators(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6236,21 +5176,15 @@ public Builder addAccelerators( return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6264,21 +5198,15 @@ public Builder addAccelerators( return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(builderForValue.build()); @@ -6289,22 +5217,15 @@ public Builder addAccelerators( return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAccelerators( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(index, builderForValue.build()); @@ -6315,26 +5236,19 @@ public Builder addAccelerators( return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllAccelerators( - java.lang.Iterable< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator> - values) { + java.lang.Iterable values) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, accelerators_); onChanged(); } else { acceleratorsBuilder_.addAllMessages(values); @@ -6342,16 +5256,12 @@ public Builder addAllAccelerators( return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { @@ -6364,16 +5274,12 @@ public Builder clearAccelerators() { return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -6386,60 +5292,42 @@ public Builder removeAccelerators(int index) { return this; } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder - getAcceleratorsBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder getAcceleratorsBuilder( + int index) { return getAcceleratorsFieldBuilder().getBuilder(index); } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder - getAcceleratorsOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder getAcceleratorsOrBuilder( + int index) { if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); - } else { + return accelerators_.get(index); } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder> - getAcceleratorsOrBuilderList() { + public java.util.List + getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { @@ -6447,81 +5335,48 @@ public Builder removeAccelerators(int index) { } } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder - addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder() - .addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance()); } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder - addAcceleratorsBuilder(int index) { - return getAcceleratorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder addAcceleratorsBuilder( + int index) { + return getAcceleratorsFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance()); } /** - * - * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder> - getAcceleratorsBuilderList() { + public java.util.List + getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator - .Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .Accelerator.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .AcceleratorOrBuilder>( + acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder>( accelerators_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), @@ -6530,7 +5385,6 @@ public Builder removeAccelerators(int index) { } return acceleratorsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6543,45 +5397,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6593,25 +5443,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int configCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object config_; - public enum ConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_INSTANCE(1), CONFIG_NOT_SET(0); private final int value; - private ConfigCase(int value) { this.value = value; } @@ -6627,35 +5473,29 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: - return GCE_INSTANCE; - case 0: - return CONFIG_NOT_SET; - default: - return null; + case 1: return GCE_INSTANCE; + case 0: return CONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public static final int GCE_INSTANCE_FIELD_NUMBER = 1; /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -6663,48 +5503,36 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } /** - * - * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6716,10 +5544,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 (configCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + output.writeMessage(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } getUnknownFields().writeTo(output); } @@ -6731,10 +5559,8 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6744,18 +5570,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.workstations.v1beta.WorkstationConfig.Host)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getGceInstance().equals(other.getGceInstance())) return false; + if (!getGceInstance() + .equals(other.getGceInstance())) return false; break; case 0: default: @@ -6785,94 +5611,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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 @@ -6882,41 +5703,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Runtime host for a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - 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.workstations.v1beta.WorkstationConfig.Host) com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -6930,14 +5749,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance(); } @@ -6952,26 +5770,22 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host build() { @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { result.configCase_ = configCase_; result.config_ = this.config_; - if (configCase_ == 1 && gceInstanceBuilder_ != null) { + if (configCase_ == 1 && + gceInstanceBuilder_ != null) { result.config_ = gceInstanceBuilder_.build(); } } @@ -6980,41 +5794,38 @@ private void buildPartialOneofs( 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.workstations.v1beta.WorkstationConfig.Host) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host) other); + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host)other); } else { super.mergeFrom(other); return this; @@ -7022,19 +5833,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) - return this; + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) return this; switch (other.getConfigCase()) { - case GCE_INSTANCE: - { - mergeGceInstance(other.getGceInstance()); - break; - } - case CONFIG_NOT_SET: - { - break; - } + case GCE_INSTANCE: { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -7062,19 +5869,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getGceInstanceFieldBuilder().getBuilder(), extensionRegistry); - configCase_ = 1; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getGceInstanceFieldBuilder().getBuilder(), + extensionRegistry); + configCase_ = 1; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7084,12 +5891,12 @@ public Builder mergeFrom( } // finally return this; } - private int configCase_ = 0; private java.lang.Object config_; - - public ConfigCase getConfigCase() { - return ConfigCase.forNumber(configCase_); + public ConfigCase + getConfigCase() { + return ConfigCase.forNumber( + configCase_); } public Builder clearConfig() { @@ -7102,21 +5909,13 @@ public Builder clearConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> - gceInstanceBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -7124,49 +5923,35 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { if (gceInstanceBuilder_ == null) { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } else { if (configCase_ == 1) { return gceInstanceBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public Builder setGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder setGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7180,19 +5965,14 @@ public Builder setGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ public Builder setGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder builderForValue) { if (gceInstanceBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -7203,29 +5983,18 @@ public Builder setGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public Builder mergeGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder mergeGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { - if (configCase_ == 1 - && config_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance()) { - config_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - config_) - .mergeFrom(value) - .buildPartial(); + if (configCase_ == 1 && + config_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { + config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_) + .mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -7241,15 +6010,11 @@ public Builder mergeGceInstance( return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ public Builder clearGceInstance() { if (gceInstanceBuilder_ == null) { @@ -7268,72 +6033,49 @@ public Builder clearGceInstance() { return this; } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder - getGceInstanceBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { return getGceInstanceFieldBuilder().getBuilder(); } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder - getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { return gceInstanceBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); } } /** - * - * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> getGceInstanceFieldBuilder() { if (gceInstanceBuilder_ == null) { if (!(configCase_ == 1)) { - config_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance - .getDefaultInstance(); - } - gceInstanceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( + config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + } + gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_, getParentForChildren(), isClean()); @@ -7343,7 +6085,6 @@ public Builder clearGceInstance() { onChanged(); return gceInstanceBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7356,13 +6097,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(); } @@ -7371,28 +6111,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Host parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7407,139 +6146,107 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PersistentDirectoryOrBuilder - extends + public interface PersistentDirectoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.DirectoryTypeCase - getDirectoryTypeCase(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); } /** - * - * *
    * A directory to persist across workstation sessions.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - public static final class PersistentDirectory extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PersistentDirectory extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) PersistentDirectoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistentDirectory.newBuilder() to construct. private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PersistentDirectory() { mountPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PersistentDirectory(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); } - public interface GceRegionalPersistentDiskOrBuilder - extends + public interface GceRegionalPersistentDiskOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -7554,14 +6261,11 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sizeGb. */ int getSizeGb(); /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -7571,13 +6275,10 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The fsType. */ java.lang.String getFsType(); /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -7587,14 +6288,12 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for fsType. */ - com.google.protobuf.ByteString getFsTypeBytes(); + com.google.protobuf.ByteString + getFsTypeBytes(); /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7602,13 +6301,10 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ java.lang.String getDiskType(); /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7616,14 +6312,12 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ - com.google.protobuf.ByteString getDiskTypeBytes(); + com.google.protobuf.ByteString + getDiskTypeBytes(); /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -7634,13 +6328,10 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -7651,49 +6342,35 @@ public interface GceRegionalPersistentDiskOrBuilder
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString getSourceSnapshotBytes(); + com.google.protobuf.ByteString + getSourceSnapshotBytes(); /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reclaimPolicy. */ int getReclaimPolicyValue(); /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The reclaimPolicy. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine regional persistent
      * disk. The
@@ -7707,20 +6384,17 @@ public interface GceRegionalPersistentDiskOrBuilder
      * directory.
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class GceRegionalPersistentDisk - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GceRegionalPersistentDisk extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) GceRegionalPersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceRegionalPersistentDisk.newBuilder() to construct. private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceRegionalPersistentDisk() { fsType_ = ""; diskType_ = ""; @@ -7730,42 +6404,35 @@ private GceRegionalPersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GceRegionalPersistentDisk(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); } /** - * - * *
        * Value representing what should happen to the disk after the workstation
        * is deleted.
        * 
* - * Protobuf enum {@code - * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + * Protobuf enum {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} */ - public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { + public enum ReclaimPolicy + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
          * Do not use.
          * 
@@ -7774,8 +6441,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ RECLAIM_POLICY_UNSPECIFIED(0), /** - * - * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -7784,8 +6449,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ DELETE(1), /** - * - * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -7798,8 +6461,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum {
         ;
 
         /**
-         *
-         *
          * 
          * Do not use.
          * 
@@ -7808,8 +6469,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; /** - * - * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -7818,8 +6477,6 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETE_VALUE = 1; /** - * - * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -7829,6 +6486,7 @@ public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum {
          */
         public static final int RETAIN_VALUE = 2;
 
+
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -7853,14 +6511,10 @@ public static ReclaimPolicy valueOf(int value) {
          */
         public static ReclaimPolicy forNumber(int value) {
           switch (value) {
-            case 0:
-              return RECLAIM_POLICY_UNSPECIFIED;
-            case 1:
-              return DELETE;
-            case 2:
-              return RETAIN;
-            default:
-              return null;
+            case 0: return RECLAIM_POLICY_UNSPECIFIED;
+            case 1: return DELETE;
+            case 2: return RETAIN;
+            default: return null;
           }
         }
 
@@ -7868,32 +6522,29 @@ public static ReclaimPolicy forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
+        private static final com.google.protobuf.Internal.EnumLiteMap<
+            ReclaimPolicy> internalValueMap =
+              new com.google.protobuf.Internal.EnumLiteMap() {
+                public ReclaimPolicy findValueByNumber(int number) {
+                  return ReclaimPolicy.forNumber(number);
+                }
+              };
 
-        private static final com.google.protobuf.Internal.EnumLiteMap
-            internalValueMap =
-                new com.google.protobuf.Internal.EnumLiteMap() {
-                  public ReclaimPolicy findValueByNumber(int number) {
-                    return ReclaimPolicy.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.workstations.v1beta.WorkstationConfig.PersistentDirectory
-              .GceRegionalPersistentDisk.getDescriptor()
-              .getEnumTypes()
-              .get(0);
+        public static final com.google.protobuf.Descriptors.EnumDescriptor
+            getDescriptor() {
+          return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0);
         }
 
         private static final ReclaimPolicy[] VALUES = values();
@@ -7902,7 +6553,7 @@ public static ReclaimPolicy valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-                "EnumValueDescriptor is not for this type.");
+              "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -7922,8 +6573,6 @@ private ReclaimPolicy(int value) {
       public static final int SIZE_GB_FIELD_NUMBER = 1;
       private int sizeGb_ = 0;
       /**
-       *
-       *
        * 
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -7938,7 +6587,6 @@ private ReclaimPolicy(int value) {
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sizeGb. */ @java.lang.Override @@ -7947,12 +6595,9 @@ public int getSizeGb() { } public static final int FS_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object fsType_ = ""; /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -7962,7 +6607,6 @@ public int getSizeGb() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The fsType. */ @java.lang.Override @@ -7971,15 +6615,14 @@ public java.lang.String getFsType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; } } /** - * - * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -7989,15 +6632,16 @@ public java.lang.String getFsType() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for fsType. */ @java.lang.Override - public com.google.protobuf.ByteString getFsTypeBytes() { + public com.google.protobuf.ByteString + getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fsType_ = b; return b; } else { @@ -8006,12 +6650,9 @@ public com.google.protobuf.ByteString getFsTypeBytes() { } public static final int DISK_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -8019,7 +6660,6 @@ public com.google.protobuf.ByteString getFsTypeBytes() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ @java.lang.Override @@ -8028,15 +6668,14 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** - * - * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -8044,15 +6683,16 @@ public java.lang.String getDiskType() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -8061,12 +6701,9 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -8077,7 +6714,6 @@ public com.google.protobuf.ByteString getDiskTypeBytes() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ @java.lang.Override @@ -8086,15 +6722,14 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -8105,15 +6740,16 @@ public java.lang.String getSourceSnapshot() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -8124,56 +6760,34 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; private int reclaimPolicy_ = 0; /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override - public int getReclaimPolicyValue() { + @java.lang.Override public int getReclaimPolicyValue() { return reclaimPolicy_; } /** - * - * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The reclaimPolicy. */ - @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - result = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8185,7 +6799,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 (sizeGb_ != 0) { output.writeInt32(1, sizeGb_); } @@ -8195,10 +6810,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); } - if (reclaimPolicy_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED - .getNumber()) { + if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { @@ -8214,7 +6826,8 @@ public int getSerializedSize() { size = 0; if (sizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sizeGb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, sizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); @@ -8222,11 +6835,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); } - if (reclaimPolicy_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reclaimPolicy_); + if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); @@ -8239,25 +6850,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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - obj; - - if (getSizeGb() != other.getSizeGb()) return false; - if (!getFsType().equals(other.getFsType())) return false; - if (!getDiskType().equals(other.getDiskType())) return false; - if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; + + if (getSizeGb() + != other.getSizeGb()) return false; + if (!getFsType() + .equals(other.getFsType())) return false; + if (!getDiskType() + .equals(other.getDiskType())) return false; + if (!getSourceSnapshot() + .equals(other.getSourceSnapshot())) return false; if (reclaimPolicy_ != other.reclaimPolicy_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -8285,117 +6892,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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 @@ -8405,8 +6985,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine regional persistent
        * disk. The
@@ -8420,40 +6998,35 @@ protected Builder newBuilderForType(
        * directory.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -8467,26 +7040,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8494,25 +7060,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sizeGb_ = sizeGb_; @@ -8535,60 +7090,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; if (other.getSizeGb() != 0) { setSizeGb(other.getSizeGb()); } @@ -8636,43 +7177,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - fsType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - reclaimPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8682,13 +7217,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int sizeGb_; + private int sizeGb_ ; /** - * - * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -8703,7 +7235,6 @@ public Builder mergeFrom(
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sizeGb. */ @java.lang.Override @@ -8711,8 +7242,6 @@ public int getSizeGb() { return sizeGb_; } /** - * - * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -8727,7 +7256,6 @@ public int getSizeGb() {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sizeGb to set. * @return This builder for chaining. */ @@ -8739,8 +7267,6 @@ public Builder setSizeGb(int value) { return this; } /** - * - * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -8755,7 +7281,6 @@ public Builder setSizeGb(int value) {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -8767,8 +7292,6 @@ public Builder clearSizeGb() { private java.lang.Object fsType_ = ""; /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -8778,13 +7301,13 @@ public Builder clearSizeGb() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The fsType. */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; @@ -8793,8 +7316,6 @@ public java.lang.String getFsType() { } } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -8804,14 +7325,15 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for fsType. */ - public com.google.protobuf.ByteString getFsTypeBytes() { + public com.google.protobuf.ByteString + getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); fsType_ = b; return b; } else { @@ -8819,8 +7341,6 @@ public com.google.protobuf.ByteString getFsTypeBytes() { } } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -8830,22 +7350,18 @@ public com.google.protobuf.ByteString getFsTypeBytes() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The fsType to set. * @return This builder for chaining. */ - public Builder setFsType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFsType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } fsType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -8855,7 +7371,6 @@ public Builder setFsType(java.lang.String value) {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFsType() { @@ -8865,8 +7380,6 @@ public Builder clearFsType() { return this; } /** - * - * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -8876,14 +7389,12 @@ public Builder clearFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for fsType to set. * @return This builder for chaining. */ - public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFsTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fsType_ = value; bitField0_ |= 0x00000002; @@ -8893,8 +7404,6 @@ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object diskType_ = ""; /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -8902,13 +7411,13 @@ public Builder setFsTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -8917,8 +7426,6 @@ public java.lang.String getDiskType() { } } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -8926,14 +7433,15 @@ public java.lang.String getDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -8941,8 +7449,6 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -8950,22 +7456,18 @@ public com.google.protobuf.ByteString getDiskTypeBytes() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } diskType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -8973,7 +7475,6 @@ public Builder setDiskType(java.lang.String value) {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -8983,8 +7484,6 @@ public Builder clearDiskType() { return this; } /** - * - * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -8992,14 +7491,12 @@ public Builder clearDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000004; @@ -9009,8 +7506,6 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceSnapshot_ = ""; /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -9021,13 +7516,13 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -9036,8 +7531,6 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -9048,14 +7541,15 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -9063,8 +7557,6 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { } } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -9075,22 +7567,18 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceSnapshot_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -9101,7 +7589,6 @@ public Builder setSourceSnapshot(java.lang.String value) {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -9111,8 +7598,6 @@ public Builder clearSourceSnapshot() { return this; } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -9123,14 +7608,12 @@ public Builder clearSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000008; @@ -9140,37 +7623,26 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { private int reclaimPolicy_ = 0; /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override - public int getReclaimPolicyValue() { + @java.lang.Override public int getReclaimPolicyValue() { return reclaimPolicy_; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for reclaimPolicy to set. * @return This builder for chaining. */ @@ -9181,54 +7653,32 @@ public Builder setReclaimPolicyValue(int value) { return this; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The reclaimPolicy. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - result = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED - : result; + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param value The reclaimPolicy to set. * @return This builder for chaining. */ - public Builder setReclaimPolicy( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.ReclaimPolicy - value) { + public Builder setReclaimPolicy(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { if (value == null) { throw new NullPointerException(); } @@ -9238,18 +7688,13 @@ public Builder setReclaimPolicy( return this; } /** - * - * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearReclaimPolicy() { @@ -9258,7 +7703,6 @@ public Builder clearReclaimPolicy() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9271,48 +7715,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig - .PersistentDirectory.GceRegionalPersistentDisk - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceRegionalPersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9324,26 +7761,21 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int directoryTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object directoryType_; - public enum DirectoryTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(2), DIRECTORYTYPE_NOT_SET(0); private final int value; - private DirectoryTypeCase(int value) { this.value = value; } @@ -9359,36 +7791,29 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 2: - return GCE_PD; - case 0: - return DIRECTORYTYPE_NOT_SET; - default: - return null; + case 2: return GCE_PD; + case 0: return DIRECTORYTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DirectoryTypeCase getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber(directoryTypeCase_); + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); } public static final int GCE_PD_FIELD_NUMBER = 2; /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -9396,67 +7821,44 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } /** - * - * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mountPath. */ @java.lang.Override @@ -9465,29 +7867,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** - * - * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -9496,7 +7898,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9508,16 +7909,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(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_); + output.writeMessage(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); } getUnknownFields().writeTo(output); } @@ -9532,12 +7930,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9547,20 +7941,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.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; - if (!getMountPath().equals(other.getMountPath())) return false; + if (!getMountPath() + .equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 2: - if (!getGcePd().equals(other.getGcePd())) return false; + if (!getGcePd() + .equals(other.getGcePd())) return false; break; case 0: default: @@ -9591,101 +7985,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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 @@ -9695,43 +8078,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A directory to persist across workstation sessions.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -9746,22 +8125,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9769,31 +8145,26 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.mountPath_ = mountPath_; } } - private void buildPartialOneofs( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { result.directoryTypeCase_ = directoryTypeCase_; result.directoryType_ = this.directoryType_; - if (directoryTypeCase_ == 2 && gcePdBuilder_ != null) { + if (directoryTypeCase_ == 2 && + gcePdBuilder_ != null) { result.directoryType_ = gcePdBuilder_.build(); } } @@ -9802,69 +8173,59 @@ private void buildPartialOneofs( 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.workstations.v1beta.WorkstationConfig.PersistentDirectory) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; if (!other.getMountPath().isEmpty()) { mountPath_ = other.mountPath_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDirectoryTypeCase()) { - case GCE_PD: - { - mergeGcePd(other.getGcePd()); - break; - } - case DIRECTORYTYPE_NOT_SET: - { - break; - } + case GCE_PD: { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -9892,25 +8253,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - mountPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry); - directoryTypeCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getGcePdFieldBuilder().getBuilder(), + extensionRegistry); + directoryTypeCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9920,12 +8280,12 @@ public Builder mergeFrom( } // finally return this; } - private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - - public DirectoryTypeCase getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber(directoryTypeCase_); + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); } public Builder clearDirectoryType() { @@ -9938,24 +8298,13 @@ public Builder clearDirectoryType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder> - gcePdBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -9963,53 +8312,35 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 2) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - value) { + public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10023,20 +8354,14 @@ public Builder setGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -10047,33 +8372,18 @@ public Builder setGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public Builder mergeGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk - value) { + public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 2 - && directoryType_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance()) { - directoryType_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.newBuilder( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_) - .mergeFrom(value) - .buildPartial(); + if (directoryTypeCase_ == 2 && + directoryType_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) + .mergeFrom(value).buildPartial(); } else { directoryType_ = value; } @@ -10089,15 +8399,11 @@ public Builder mergeGcePd( return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -10116,84 +8422,50 @@ public Builder clearGcePd() { return this; } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder - getGcePdBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); } } /** - * - * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 2)) { - directoryType_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.getDefaultInstance(); - } - gcePdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .GceRegionalPersistentDisk) - directoryType_, + directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -10205,20 +8477,18 @@ public Builder clearGcePd() { private java.lang.Object mountPath_ = ""; /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -10227,21 +8497,20 @@ public java.lang.String getMountPath() { } } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -10249,35 +8518,28 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -10287,28 +8549,23 @@ public Builder clearMountPath() { return this; } /** - * - * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10321,45 +8578,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistentDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10371,92 +8624,66 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface EphemeralDirectoryOrBuilder - extends + public interface EphemeralDirectoryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** - * - * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; * @return The gcePd. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk - getGcePd(); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getGcePd(); /** - * - * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDiskOrBuilder - getGcePdOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder getGcePdOrBuilder(); /** - * - * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mountPath. */ java.lang.String getMountPath(); /** - * - * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString getMountPathBytes(); + com.google.protobuf.ByteString + getMountPathBytes(); - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.DirectoryTypeCase - getDirectoryTypeCase(); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.DirectoryTypeCase getDirectoryTypeCase(); } /** - * - * *
    * An ephemeral directory which won't persist across workstation sessions. It
    * is freshly created on every workstation start operation.
@@ -10464,75 +8691,64 @@ public interface EphemeralDirectoryOrBuilder
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory}
    */
-  public static final class EphemeralDirectory extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class EphemeralDirectory extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory)
       EphemeralDirectoryOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use EphemeralDirectory.newBuilder() to construct.
     private EphemeralDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private EphemeralDirectory() {
       mountPath_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new EphemeralDirectory();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class,
-              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder
-                  .class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder.class);
     }
 
-    public interface GcePersistentDiskOrBuilder
-        extends
+    public interface GcePersistentDiskOrBuilder extends
         // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk)
         com.google.protobuf.MessageOrBuilder {
 
       /**
-       *
-       *
        * 
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ java.lang.String getDiskType(); /** - * - * *
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ - com.google.protobuf.ByteString getDiskTypeBytes(); + com.google.protobuf.ByteString + getDiskTypeBytes(); /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -10544,13 +8760,10 @@ public interface GcePersistentDiskOrBuilder
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -10562,14 +8775,12 @@ public interface GcePersistentDiskOrBuilder
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString getSourceSnapshotBytes(); + com.google.protobuf.ByteString + getSourceSnapshotBytes(); /** - * - * *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -10581,13 +8792,10 @@ public interface GcePersistentDiskOrBuilder
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceImage. */ java.lang.String getSourceImage(); /** - * - * *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -10599,14 +8807,12 @@ public interface GcePersistentDiskOrBuilder
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceImage. */ - com.google.protobuf.ByteString getSourceImageBytes(); + com.google.protobuf.ByteString + getSourceImageBytes(); /** - * - * *
        * Optional. Whether the disk is read only. If true, the disk may be
        * shared by multiple VMs and
@@ -10615,31 +8821,26 @@ public interface GcePersistentDiskOrBuilder
        * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The readOnly. */ boolean getReadOnly(); } /** - * - * *
      * An EphemeralDirectory is backed by a Compute Engine persistent disk.
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} */ - public static final class GcePersistentDisk extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class GcePersistentDisk extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) GcePersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcePersistentDisk.newBuilder() to construct. private GcePersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcePersistentDisk() { diskType_ = ""; sourceSnapshot_ = ""; @@ -10648,40 +8849,33 @@ private GcePersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcePersistentDisk(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder.class); } public static final int DISK_TYPE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** - * - * *
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ @java.lang.Override @@ -10690,29 +8884,29 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** - * - * *
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -10721,12 +8915,9 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -10738,7 +8929,6 @@ public com.google.protobuf.ByteString getDiskTypeBytes() {
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ @java.lang.Override @@ -10747,15 +8937,14 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** - * - * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -10767,15 +8956,16 @@ public java.lang.String getSourceSnapshot() {
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -10784,12 +8974,9 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { } public static final int SOURCE_IMAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object sourceImage_ = ""; - /** - * - * + /** *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -10801,7 +8988,6 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() {
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceImage. */ @java.lang.Override @@ -10810,15 +8996,14 @@ public java.lang.String getSourceImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceImage_ = s; return s; } } /** - * - * *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -10830,15 +9015,16 @@ public java.lang.String getSourceImage() {
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceImage. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceImageBytes() { + public com.google.protobuf.ByteString + getSourceImageBytes() { java.lang.Object ref = sourceImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceImage_ = b; return b; } else { @@ -10849,8 +9035,6 @@ public com.google.protobuf.ByteString getSourceImageBytes() { public static final int READ_ONLY_FIELD_NUMBER = 4; private boolean readOnly_ = false; /** - * - * *
        * Optional. Whether the disk is read only. If true, the disk may be
        * shared by multiple VMs and
@@ -10859,7 +9043,6 @@ public com.google.protobuf.ByteString getSourceImageBytes() {
        * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The readOnly. */ @java.lang.Override @@ -10868,7 +9051,6 @@ public boolean getReadOnly() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10880,7 +9062,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(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, diskType_); } @@ -10912,7 +9095,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceImage_); } if (readOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, readOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10922,24 +9106,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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk - other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk other = (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) obj; - if (!getDiskType().equals(other.getDiskType())) return false; - if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; - if (!getSourceImage().equals(other.getSourceImage())) return false; - if (getReadOnly() != other.getReadOnly()) return false; + if (!getDiskType() + .equals(other.getDiskType())) return false; + if (!getSourceSnapshot() + .equals(other.getSourceSnapshot())) return false; + if (!getSourceImage() + .equals(other.getSourceImage())) return false; + if (getReadOnly() + != other.getReadOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10958,123 +9139,97 @@ public int hashCode() { hash = (37 * hash) + SOURCE_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getSourceImage().hashCode(); hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReadOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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 @@ -11084,46 +9239,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * An EphemeralDirectory is backed by a Compute Engine persistent disk.
        * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} */ - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -11136,26 +9284,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11163,25 +9304,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk result = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.diskType_ = diskType_; @@ -11201,60 +9331,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance()) return this; if (!other.getDiskType().isEmpty()) { diskType_ = other.diskType_; bitField0_ |= 0x00000001; @@ -11299,37 +9415,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - sourceImage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - readOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + sourceImage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + readOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11339,25 +9450,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object diskType_ = ""; /** - * - * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -11366,21 +9474,20 @@ public java.lang.String getDiskType() { } } /** - * - * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString getDiskTypeBytes() { + public com.google.protobuf.ByteString + getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); diskType_ = b; return b; } else { @@ -11388,35 +9495,28 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { } } /** - * - * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } diskType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -11426,21 +9526,17 @@ public Builder clearDiskType() { return this; } /** - * - * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDiskTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000001; @@ -11450,8 +9546,6 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceSnapshot_ = ""; /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -11463,13 +9557,13 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -11478,8 +9572,6 @@ public java.lang.String getSourceSnapshot() { } } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -11491,14 +9583,15 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString getSourceSnapshotBytes() { + public com.google.protobuf.ByteString + getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -11506,8 +9599,6 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { } } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -11519,22 +9610,18 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceSnapshot_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -11546,7 +9633,6 @@ public Builder setSourceSnapshot(java.lang.String value) {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -11556,8 +9642,6 @@ public Builder clearSourceSnapshot() { return this; } /** - * - * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -11569,14 +9653,12 @@ public Builder clearSourceSnapshot() {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceSnapshotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000002; @@ -11586,8 +9668,6 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { private java.lang.Object sourceImage_ = ""; /** - * - * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -11599,13 +9679,13 @@ public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The sourceImage. */ public java.lang.String getSourceImage() { java.lang.Object ref = sourceImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceImage_ = s; return s; @@ -11614,8 +9694,6 @@ public java.lang.String getSourceImage() { } } /** - * - * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -11627,14 +9705,15 @@ public java.lang.String getSourceImage() {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for sourceImage. */ - public com.google.protobuf.ByteString getSourceImageBytes() { + public com.google.protobuf.ByteString + getSourceImageBytes() { java.lang.Object ref = sourceImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceImage_ = b; return b; } else { @@ -11642,8 +9721,6 @@ public com.google.protobuf.ByteString getSourceImageBytes() { } } /** - * - * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -11655,22 +9732,18 @@ public com.google.protobuf.ByteString getSourceImageBytes() {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The sourceImage to set. * @return This builder for chaining. */ - public Builder setSourceImage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceImage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -11682,7 +9755,6 @@ public Builder setSourceImage(java.lang.String value) {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSourceImage() { @@ -11692,8 +9764,6 @@ public Builder clearSourceImage() { return this; } /** - * - * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -11705,14 +9775,12 @@ public Builder clearSourceImage() {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for sourceImage to set. * @return This builder for chaining. */ - public Builder setSourceImageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceImage_ = value; bitField0_ |= 0x00000004; @@ -11720,10 +9788,8 @@ public Builder setSourceImageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean readOnly_; + private boolean readOnly_ ; /** - * - * *
          * Optional. Whether the disk is read only. If true, the disk may be
          * shared by multiple VMs and
@@ -11732,7 +9798,6 @@ public Builder setSourceImageBytes(com.google.protobuf.ByteString value) {
          * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The readOnly. */ @java.lang.Override @@ -11740,8 +9805,6 @@ public boolean getReadOnly() { return readOnly_; } /** - * - * *
          * Optional. Whether the disk is read only. If true, the disk may be
          * shared by multiple VMs and
@@ -11750,7 +9813,6 @@ public boolean getReadOnly() {
          * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The readOnly to set. * @return This builder for chaining. */ @@ -11762,8 +9824,6 @@ public Builder setReadOnly(boolean value) { return this; } /** - * - * *
          * Optional. Whether the disk is read only. If true, the disk may be
          * shared by multiple VMs and
@@ -11772,7 +9832,6 @@ public Builder setReadOnly(boolean value) {
          * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReadOnly() { @@ -11781,7 +9840,6 @@ public Builder clearReadOnly() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11794,48 +9852,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcePersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcePersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11847,26 +9898,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int directoryTypeCase_ = 0; - @SuppressWarnings("serial") private java.lang.Object directoryType_; - public enum DirectoryTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(3), DIRECTORYTYPE_NOT_SET(0); private final int value; - private DirectoryTypeCase(int value) { this.value = value; } @@ -11882,36 +9928,29 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 3: - return GCE_PD; - case 0: - return DIRECTORYTYPE_NOT_SET; - default: - return null; + case 3: return GCE_PD; + case 0: return DIRECTORYTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DirectoryTypeCase getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber(directoryTypeCase_); + public DirectoryTypeCase + getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber( + directoryTypeCase_); } public static final int GCE_PD_FIELD_NUMBER = 3; /** - * - * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -11919,67 +9958,44 @@ public boolean hasGcePd() { return directoryTypeCase_ == 3; } /** - * - * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getGcePd() { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); } /** - * - * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder getGcePdOrBuilder() { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** - * - * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mountPath. */ @java.lang.Override @@ -11988,29 +10004,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** - * - * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -12019,7 +10035,6 @@ public com.google.protobuf.ByteString getMountPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12031,16 +10046,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(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_); + output.writeMessage(3, (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_); } getUnknownFields().writeTo(output); } @@ -12055,12 +10067,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12070,20 +10078,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.workstations.v1beta.WorkstationConfig.EphemeralDirectory)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other = (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) obj; - if (!getMountPath().equals(other.getMountPath())) return false; + if (!getMountPath() + .equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 3: - if (!getGcePd().equals(other.getGcePd())) return false; + if (!getGcePd() + .equals(other.getGcePd())) return false; break; case 0: default: @@ -12114,101 +10122,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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 @@ -12218,8 +10215,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An ephemeral directory which won't persist across workstation sessions. It
      * is freshly created on every workstation start operation.
@@ -12227,35 +10222,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory}
      */
-    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.workstations.v1beta.WorkstationConfig.EphemeralDirectory)
         com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.workstations.v1beta.WorkstationsProto
-            .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.workstations.v1beta.WorkstationsProto
-            .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
+        return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class,
-                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder
-                    .class);
+                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -12270,22 +10263,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.workstations.v1beta.WorkstationsProto
-            .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-          getDefaultInstanceForType() {
-        return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-            .getDefaultInstance();
+      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getDefaultInstanceForType() {
+        return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory build() {
-        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result =
-            buildPartial();
+        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -12293,31 +10283,26 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-          buildPartial() {
-        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result =
-            new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory buildPartial() {
+        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
+      private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.mountPath_ = mountPath_;
         }
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
+      private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
         result.directoryTypeCase_ = directoryTypeCase_;
         result.directoryType_ = this.directoryType_;
-        if (directoryTypeCase_ == 3 && gcePdBuilder_ != null) {
+        if (directoryTypeCase_ == 3 &&
+            gcePdBuilder_ != null) {
           result.directoryType_ = gcePdBuilder_.build();
         }
       }
@@ -12326,69 +10311,59 @@ private void buildPartialOneofs(
       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.workstations.v1beta.WorkstationConfig.EphemeralDirectory) {
-          return mergeFrom(
-              (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) other);
+        if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) {
+          return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other) {
-        if (other
-            == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other) {
+        if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance()) return this;
         if (!other.getMountPath().isEmpty()) {
           mountPath_ = other.mountPath_;
           bitField0_ |= 0x00000002;
           onChanged();
         }
         switch (other.getDirectoryTypeCase()) {
-          case GCE_PD:
-            {
-              mergeGcePd(other.getGcePd());
-              break;
-            }
-          case DIRECTORYTYPE_NOT_SET:
-            {
-              break;
-            }
+          case GCE_PD: {
+            mergeGcePd(other.getGcePd());
+            break;
+          }
+          case DIRECTORYTYPE_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -12416,25 +10391,24 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  mountPath_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 10
-              case 26:
-                {
-                  input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry);
-                  directoryTypeCase_ = 3;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                mountPath_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 10
+              case 26: {
+                input.readMessage(
+                    getGcePdFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                directoryTypeCase_ = 3;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -12444,12 +10418,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int directoryTypeCase_ = 0;
       private java.lang.Object directoryType_;
-
-      public DirectoryTypeCase getDirectoryTypeCase() {
-        return DirectoryTypeCase.forNumber(directoryTypeCase_);
+      public DirectoryTypeCase
+          getDirectoryTypeCase() {
+        return DirectoryTypeCase.forNumber(
+            directoryTypeCase_);
       }
 
       public Builder clearDirectoryType() {
@@ -12462,24 +10436,13 @@ public Builder clearDirectoryType() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-                  .GcePersistentDisk,
-              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-                  .GcePersistentDisk.Builder,
-              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-                  .GcePersistentDiskOrBuilder>
-          gcePdBuilder_;
+          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder> gcePdBuilder_;
       /**
-       *
-       *
        * 
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; * @return Whether the gcePd field is set. */ @java.lang.Override @@ -12487,53 +10450,35 @@ public boolean hasGcePd() { return directoryTypeCase_ == 3; } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 3) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); } } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ - public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - value) { + public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12547,20 +10492,14 @@ public Builder setGcePd( return this; } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -12571,33 +10510,18 @@ public Builder setGcePd( return this; } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ - public Builder mergeGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk - value) { + public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 3 - && directoryType_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance()) { - directoryType_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.newBuilder( - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_) - .mergeFrom(value) - .buildPartial(); + if (directoryTypeCase_ == 3 && + directoryType_ != com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance()) { + directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_) + .mergeFrom(value).buildPartial(); } else { directoryType_ = value; } @@ -12613,15 +10537,11 @@ public Builder mergeGcePd( return this; } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -12640,84 +10560,50 @@ public Builder clearGcePd() { return this; } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.Builder - getGcePdBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDiskOrBuilder - getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder getGcePdOrBuilder() { if ((directoryTypeCase_ == 3) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); } } /** - * - * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDiskOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 3)) { - directoryType_ = - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.getDefaultInstance(); - } - gcePdBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .GcePersistentDisk) - directoryType_, + directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -12729,20 +10615,18 @@ public Builder clearGcePd() { private java.lang.Object mountPath_ = ""; /** - * - * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -12751,21 +10635,20 @@ public java.lang.String getMountPath() { } } /** - * - * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString getMountPathBytes() { + public com.google.protobuf.ByteString + getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); mountPath_ = b; return b; } else { @@ -12773,35 +10656,28 @@ public com.google.protobuf.ByteString getMountPathBytes() { } } /** - * - * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -12811,28 +10687,23 @@ public Builder clearMountPath() { return this; } /** - * - * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMountPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12845,45 +10716,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EphemeralDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EphemeralDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12895,20 +10762,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ContainerOrBuilder - extends + public interface ContainerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Container) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -12925,13 +10789,10 @@ public interface ContainerOrBuilder
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The image. */ java.lang.String getImage(); /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -12948,120 +10809,98 @@ public interface ContainerOrBuilder
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for image. */ - com.google.protobuf.ByteString getImageBytes(); + com.google.protobuf.ByteString + getImageBytes(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the command. */ - java.util.List getCommandList(); + java.util.List + getCommandList(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of command. */ int getCommandCount(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString getCommandBytes(int index); + com.google.protobuf.ByteString + getCommandBytes(int index); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - java.util.List getArgsList(); + java.util.List + getArgsList(); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ int getArgsCount(); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString getArgsBytes(int index); + com.google.protobuf.ByteString + getArgsBytes(int index); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -13070,31 +10909,30 @@ public interface ContainerOrBuilder */ int getEnvCount(); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsEnv(java.lang.String key); - /** Use {@link #getEnvMap()} instead. */ + boolean containsEnv( + java.lang.String key); + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Deprecated - java.util.Map getEnv(); + java.util.Map + getEnv(); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getEnvMap(); + java.util.Map + getEnvMap(); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -13102,125 +10940,112 @@ public interface ContainerOrBuilder * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getEnvOrDefault( +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getEnvOrThrow(java.lang.String key); + java.lang.String getEnvOrThrow( + java.lang.String key); /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The workingDir. */ java.lang.String getWorkingDir(); /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString getWorkingDirBytes(); + com.google.protobuf.ByteString + getWorkingDirBytes(); /** - * - * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The runAsUser. */ int getRunAsUser(); } /** - * - * *
    * A Docker container.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - public static final class Container extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Container extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Container) ContainerOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Container() { image_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = + com.google.protobuf.LazyStringArrayList.emptyList(); workingDir_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Container(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -13237,7 +11062,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The image. */ @java.lang.Override @@ -13246,15 +11070,14 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** - * - * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -13271,15 +11094,16 @@ public java.lang.String getImage() {
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -13288,50 +11112,41 @@ public com.google.protobuf.ByteString getImageBytes() { } public static final int COMMAND_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { return command_; } /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -13339,64 +11154,53 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { return args_; } /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -13404,50 +11208,46 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 4; - private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -13455,21 +11255,20 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnv().getMap().containsKey(key); } - /** Use {@link #getEnvMap()} instead. */ + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -13481,8 +11280,6 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -13490,19 +11287,17 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getEnvOrDefault( + public /* nullable */ +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -13510,11 +11305,11 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -13522,18 +11317,14 @@ public java.lang.String getEnvOrThrow(java.lang.String key) { } public static final int WORKING_DIR_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object workingDir_ = ""; /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The workingDir. */ @java.lang.Override @@ -13542,29 +11333,29 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** - * - * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -13575,15 +11366,12 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { public static final int RUN_AS_USER_FIELD_NUMBER = 6; private int runAsUser_ = 0; /** - * - * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The runAsUser. */ @java.lang.Override @@ -13592,7 +11380,6 @@ public int getRunAsUser() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13604,7 +11391,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(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -13614,8 +11402,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetEnv(), + EnvDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } @@ -13650,21 +11442,22 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } - for (java.util.Map.Entry entry : - internalGetEnv().getMap().entrySet()) { - com.google.protobuf.MapEntry env__ = - EnvDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__); + for (java.util.Map.Entry entry + : internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry + env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, env__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } if (runAsUser_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, runAsUser_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13674,20 +11467,25 @@ 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.workstations.v1beta.WorkstationConfig.Container)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; - - if (!getImage().equals(other.getImage())) return false; - if (!getCommandList().equals(other.getCommandList())) return false; - if (!getArgsList().equals(other.getArgsList())) return false; - if (!internalGetEnv().equals(other.internalGetEnv())) return false; - if (!getWorkingDir().equals(other.getWorkingDir())) return false; - if (getRunAsUser() != other.getRunAsUser()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; + + if (!getImage() + .equals(other.getImage())) return false; + if (!getCommandList() + .equals(other.getCommandList())) return false; + if (!getArgsList() + .equals(other.getArgsList())) return false; + if (!internalGetEnv().equals( + other.internalGetEnv())) return false; + if (!getWorkingDir() + .equals(other.getWorkingDir())) return false; + if (getRunAsUser() + != other.getRunAsUser()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13723,95 +11521,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container - 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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 @@ -13821,69 +11613,70 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A Docker container.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - 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.workstations.v1beta.WorkstationConfig.Container) com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableEnv(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.Container.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Container.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; image_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = + com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableEnv().clear(); workingDir_ = ""; runAsUser_ = 0; @@ -13891,16 +11684,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Container - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance(); } @java.lang.Override @@ -13914,17 +11705,13 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container build() @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; @@ -13953,53 +11740,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.Container) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) other); + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Container)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.Container - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; @@ -14025,7 +11805,8 @@ public Builder mergeFrom( } onChanged(); } - internalGetMutableEnv().mergeFrom(other.internalGetEnv()); + internalGetMutableEnv().mergeFrom( + other.internalGetEnv()); bitField0_ |= 0x00000008; if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; @@ -14061,54 +11842,48 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - image_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandIsMutable(); - command_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry env__ = - input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - runAsUser_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + env__ = input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put( + env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14118,13 +11893,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object image_ = ""; /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -14141,13 +11913,13 @@ public Builder mergeFrom(
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -14156,8 +11928,6 @@ public java.lang.String getImage() { } } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -14174,14 +11944,15 @@ public java.lang.String getImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for image. */ - public com.google.protobuf.ByteString getImageBytes() { + public com.google.protobuf.ByteString + getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); image_ = b; return b; } else { @@ -14189,8 +11960,6 @@ public com.google.protobuf.ByteString getImageBytes() { } } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -14207,22 +11976,18 @@ public com.google.protobuf.ByteString getImageBytes() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -14239,7 +12004,6 @@ public Builder setImage(java.lang.String value) {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImage() { @@ -14249,8 +12013,6 @@ public Builder clearImage() { return this; } /** - * - * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -14267,14 +12029,12 @@ public Builder clearImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setImageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; @@ -14284,7 +12044,6 @@ public Builder setImageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureCommandIsMutable() { if (!command_.isModifiable()) { command_ = new com.google.protobuf.LazyStringArrayList(command_); @@ -14292,46 +12051,38 @@ private void ensureCommandIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList getCommandList() { + public com.google.protobuf.ProtocolStringList + getCommandList() { command_.makeImmutable(); return command_; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The command at the given index. */ @@ -14339,39 +12090,33 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString getCommandBytes(int index) { + public com.google.protobuf.ByteString + getCommandBytes(int index) { return command_.getByteString(index); } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCommand( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.set(index, value); bitField0_ |= 0x00000002; @@ -14379,22 +12124,18 @@ public Builder setCommand(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommand( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureCommandIsMutable(); command_.add(value); bitField0_ |= 0x00000002; @@ -14402,61 +12143,53 @@ public Builder addCommand(java.lang.String value) { return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand(java.lang.Iterable values) { + public Builder addAllCommand( + java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, command_); bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCommand() { - command_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + command_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } /** - * - * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addCommandBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); @@ -14467,7 +12200,6 @@ public Builder addCommandBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureArgsIsMutable() { if (!args_.isModifiable()) { args_ = new com.google.protobuf.LazyStringArrayList(args_); @@ -14475,43 +12207,35 @@ private void ensureArgsIsMutable() { bitField0_ |= 0x00000004; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList getArgsList() { + public com.google.protobuf.ProtocolStringList + getArgsList() { args_.makeImmutable(); return args_; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The args at the given index. */ @@ -14519,37 +12243,31 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString getArgsBytes(int index) { + public com.google.protobuf.ByteString + getArgsBytes(int index) { return args_.getByteString(index); } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setArgs( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.set(index, value); bitField0_ |= 0x00000004; @@ -14557,21 +12275,17 @@ public Builder setArgs(int index, java.lang.String value) { return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addArgs( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureArgsIsMutable(); args_.add(value); bitField0_ |= 0x00000004; @@ -14579,58 +12293,50 @@ public Builder addArgs(java.lang.String value) { return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs(java.lang.Iterable values) { + public Builder addAllArgs( + java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, args_); bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; + args_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** - * - * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addArgsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); @@ -14639,19 +12345,21 @@ public Builder addArgsBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField env_; - - private com.google.protobuf.MapField internalGetEnv() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> env_; + private com.google.protobuf.MapField + internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + EnvDefaultEntryHolder.defaultEntry); } return env_; } - private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField( + EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -14660,13 +12368,10 @@ private com.google.protobuf.MapField interna onChanged(); return env_; } - public int getEnvCount() { return internalGetEnv().getMap().size(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -14674,21 +12379,20 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetEnv().getMap().containsKey(key); } - /** Use {@link #getEnvMap()} instead. */ + /** + * Use {@link #getEnvMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -14700,8 +12404,6 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -14709,19 +12411,17 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getEnvOrDefault( + public /* nullable */ +java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -14729,95 +12429,91 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableEnv().getMutableMap().clear(); + internalGetMutableEnv().getMutableMap() + .clear(); return this; } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeEnv(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableEnv().getMutableMap().remove(key); + public Builder removeEnv( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableEnv().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableEnv() { + public java.util.Map + getMutableEnv() { bitField0_ |= 0x00000008; return internalGetMutableEnv().getMutableMap(); } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putEnv(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableEnv().getMutableMap().put(key, value); + public Builder putEnv( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableEnv().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllEnv(java.util.Map values) { - internalGetMutableEnv().getMutableMap().putAll(values); + public Builder putAllEnv( + java.util.Map values) { + internalGetMutableEnv().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object workingDir_ = ""; /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -14826,21 +12522,20 @@ public java.lang.String getWorkingDir() { } } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString getWorkingDirBytes() { + public com.google.protobuf.ByteString + getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workingDir_ = b; return b; } else { @@ -14848,35 +12543,28 @@ public com.google.protobuf.ByteString getWorkingDirBytes() { } } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkingDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } workingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearWorkingDir() { @@ -14886,21 +12574,17 @@ public Builder clearWorkingDir() { return this; } /** - * - * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWorkingDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workingDir_ = value; bitField0_ |= 0x00000010; @@ -14908,17 +12592,14 @@ public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { return this; } - private int runAsUser_; + private int runAsUser_ ; /** - * - * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The runAsUser. */ @java.lang.Override @@ -14926,15 +12607,12 @@ public int getRunAsUser() { return runAsUser_; } /** - * - * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The runAsUser to set. * @return This builder for chaining. */ @@ -14946,15 +12624,12 @@ public Builder setRunAsUser(int value) { return this; } /** - * - * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRunAsUser() { @@ -14963,7 +12638,6 @@ public Builder clearRunAsUser() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14976,44 +12650,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -15025,20 +12696,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CustomerEncryptionKeyOrBuilder - extends + public interface CustomerEncryptionKeyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15046,13 +12714,10 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKey. */ java.lang.String getKmsKey(); /** - * - * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15060,14 +12725,12 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString getKmsKeyBytes(); + com.google.protobuf.ByteString + getKmsKeyBytes(); /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -15079,13 +12742,10 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyServiceAccount. */ java.lang.String getKmsKeyServiceAccount(); /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -15097,14 +12757,12 @@ public interface CustomerEncryptionKeyOrBuilder
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyServiceAccount. */ - com.google.protobuf.ByteString getKmsKeyServiceAccountBytes(); + com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes(); } /** - * - * *
    * A customer-managed encryption key (CMEK) for the Compute Engine
    * resources of the associated workstation configuration. Specify the name of
@@ -15116,16 +12774,15 @@ public interface CustomerEncryptionKeyOrBuilder
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey}
    */
-  public static final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CustomerEncryptionKey extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)
       CustomerEncryptionKeyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CustomerEncryptionKey.newBuilder() to construct.
     private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CustomerEncryptionKey() {
       kmsKey_ = "";
       kmsKeyServiceAccount_ = "";
@@ -15133,33 +12790,28 @@ private CustomerEncryptionKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CustomerEncryptionKey();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class,
-              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder
-                  .class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class);
     }
 
     public static final int KMS_KEY_FIELD_NUMBER = 1;
-
     @SuppressWarnings("serial")
     private volatile java.lang.Object kmsKey_ = "";
     /**
-     *
-     *
      * 
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15167,7 +12819,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKey. */ @java.lang.Override @@ -15176,15 +12827,14 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** - * - * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15192,15 +12842,16 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -15209,12 +12860,9 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyServiceAccount_ = ""; /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -15226,7 +12874,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyServiceAccount. */ @java.lang.Override @@ -15235,15 +12882,14 @@ public java.lang.String getKmsKeyServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; } } /** - * - * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -15255,15 +12901,16 @@ public java.lang.String getKmsKeyServiceAccount() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -15272,7 +12919,6 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15284,7 +12930,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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -15314,18 +12961,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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { + if (!(obj instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; - if (!getKmsKey().equals(other.getKmsKey())) return false; - if (!getKmsKeyServiceAccount().equals(other.getKmsKeyServiceAccount())) return false; + if (!getKmsKey() + .equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount() + .equals(other.getKmsKeyServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15346,101 +12992,90 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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 @@ -15450,8 +13085,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A customer-managed encryption key (CMEK) for the Compute Engine
      * resources of the associated workstation configuration. Specify the name of
@@ -15461,38 +13094,35 @@ protected Builder newBuilderForType(
      * practices](https://cloud.google.com/kms/docs/separation-of-duties).
      * 
* - * Protobuf type {@code - * google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} + * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} */ - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -15503,22 +13133,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15526,19 +13153,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.kmsKey_ = kmsKey_; @@ -15552,55 +13174,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this; if (!other.getKmsKey().isEmpty()) { kmsKey_ = other.kmsKey_; bitField0_ |= 0x00000001; @@ -15637,25 +13250,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - kmsKeyServiceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + kmsKeyServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -15665,13 +13275,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object kmsKey_ = ""; /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15679,13 +13286,13 @@ public Builder mergeFrom(
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -15694,8 +13301,6 @@ public java.lang.String getKmsKey() { } } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15703,14 +13308,15 @@ public java.lang.String getKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString getKmsKeyBytes() { + public com.google.protobuf.ByteString + getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -15718,8 +13324,6 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { } } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15727,22 +13331,18 @@ public com.google.protobuf.ByteString getKmsKeyBytes() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15750,7 +13350,6 @@ public Builder setKmsKey(java.lang.String value) {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -15760,8 +13359,6 @@ public Builder clearKmsKey() { return this; } /** - * - * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -15769,14 +13366,12 @@ public Builder clearKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000001; @@ -15786,8 +13381,6 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyServiceAccount_ = ""; /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -15799,13 +13392,13 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The kmsKeyServiceAccount. */ public java.lang.String getKmsKeyServiceAccount() { java.lang.Object ref = kmsKeyServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; @@ -15814,8 +13407,6 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -15827,14 +13418,15 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for kmsKeyServiceAccount. */ - public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString + getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -15842,8 +13434,6 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { } } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -15855,22 +13445,18 @@ public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccount(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyServiceAccount( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -15882,7 +13468,6 @@ public Builder setKmsKeyServiceAccount(java.lang.String value) {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearKmsKeyServiceAccount() { @@ -15892,8 +13477,6 @@ public Builder clearKmsKeyServiceAccount() { return this; } /** - * - * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -15905,21 +13488,18 @@ public Builder clearKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyServiceAccountBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15932,46 +13512,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig - .CustomerEncryptionKey - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -15983,112 +13558,95 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ReadinessCheckOrBuilder - extends + public interface ReadinessCheckOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The port. */ int getPort(); } /** - * - * *
    * A readiness check to be performed on a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} */ - public static final class ReadinessCheck extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReadinessCheck extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) ReadinessCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadinessCheck.newBuilder() to construct. private ReadinessCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadinessCheck() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadinessCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ @java.lang.Override @@ -16097,29 +13655,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -16130,14 +13688,11 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** - * - * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The port. */ @java.lang.Override @@ -16146,7 +13701,6 @@ public int getPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -16158,7 +13712,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -16178,7 +13733,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16188,16 +13744,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.workstations.v1beta.WorkstationConfig.ReadinessCheck)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other = - (com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other = (com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) obj; - if (!getPath().equals(other.getPath())) return false; - if (getPort() != other.getPort()) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (getPort() + != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16219,95 +13776,89 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - 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.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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 @@ -16317,43 +13868,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A readiness check to be performed on a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} */ - 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.workstations.v1beta.WorkstationConfig.ReadinessCheck) com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder - .class); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder.class); } - // Construct using - // com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.newBuilder() - private Builder() {} + // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -16364,22 +13911,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - .getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = - buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -16388,17 +13932,13 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck bui @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = - new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result) { + private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; @@ -16412,54 +13952,46 @@ private void buildPartial0( 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.workstations.v1beta.WorkstationConfig.ReadinessCheck) { - return mergeFrom( - (com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) other); + if (other instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) { + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other) { - if (other - == com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other) { + if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -16494,25 +14026,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -16522,25 +14051,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object path_ = ""; /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -16549,21 +14075,20 @@ public java.lang.String getPath() { } } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -16571,35 +14096,28 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -16609,21 +14127,17 @@ public Builder clearPath() { return this; } /** - * - * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -16631,16 +14145,13 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The port. */ @java.lang.Override @@ -16648,14 +14159,11 @@ public int getPort() { return port_; } /** - * - * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The port to set. * @return This builder for chaining. */ @@ -16667,14 +14175,11 @@ public Builder setPort(int value) { return this; } /** - * - * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -16683,7 +14188,6 @@ public Builder clearPort() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16696,45 +14200,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - DEFAULT_INSTANCE; - + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(); + DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadinessCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadinessCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16746,25 +14246,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -16773,29 +14269,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; } } /** - * - * *
    * Full name of this workstation configuration.
    * 
* * 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 { @@ -16804,18 +14300,14 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ @java.lang.Override @@ -16824,29 +14316,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; } } /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -16855,19 +14347,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int UID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ @java.lang.Override @@ -16876,30 +14364,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -16910,15 +14398,12 @@ public com.google.protobuf.ByteString getUidBytes() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** - * - * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -16927,106 +14412,94 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -17034,34 +14507,32 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public static final int LABELS_FIELD_NUMBER = 18; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto - .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17072,21 +14543,20 @@ public int getLabelsCount() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /** Use {@link #getLabelsMap()} instead. */
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17101,8 +14571,6 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17113,19 +14581,17 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */ java.lang.String getLabelsOrDefault(
+  public /* nullable */
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17136,11 +14602,11 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -17150,15 +14616,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -17166,15 +14628,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -17182,14 +14640,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -17199,16 +14654,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -17216,16 +14667,12 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -17233,15 +14680,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -17251,15 +14695,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -17267,15 +14707,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -17283,14 +14719,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -17298,12 +14731,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -17311,7 +14741,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ @java.lang.Override @@ -17320,15 +14749,14 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -17336,15 +14764,16 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -17355,8 +14784,6 @@ public com.google.protobuf.ByteString getEtagBytes() { public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration idleTimeout_; /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -17369,9 +14796,7 @@ public com.google.protobuf.ByteString getEtagBytes() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleTimeout field is set. */ @java.lang.Override @@ -17379,8 +14804,6 @@ public boolean hasIdleTimeout() { return idleTimeout_ != null; } /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -17393,9 +14816,7 @@ public boolean hasIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleTimeout. */ @java.lang.Override @@ -17403,8 +14824,6 @@ public com.google.protobuf.Duration getIdleTimeout() { return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -17417,8 +14836,7 @@ public com.google.protobuf.Duration getIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { @@ -17428,8 +14846,6 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11; private com.google.protobuf.Duration runningTimeout_; /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -17455,9 +14871,7 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runningTimeout field is set. */ @java.lang.Override @@ -17465,8 +14879,6 @@ public boolean hasRunningTimeout() { return runningTimeout_ != null; } /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -17492,20 +14904,14 @@ public boolean hasRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The runningTimeout. */ @java.lang.Override public com.google.protobuf.Duration getRunningTimeout() { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -17531,29 +14937,21 @@ public com.google.protobuf.Duration getRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } public static final int HOST_FIELD_NUMBER = 12; private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_; /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the host field is set. */ @java.lang.Override @@ -17561,235 +14959,165 @@ public boolean hasHost() { return host_ != null; } /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The host. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder() { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private java.util.List - persistentDirectories_; + private java.util.List persistentDirectories_; /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getPersistentDirectoriesList() { + public java.util.List getPersistentDirectoriesList() { return persistentDirectories_; } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + public java.util.List getPersistentDirectoriesOrBuilderList() { return persistentDirectories_; } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getPersistentDirectoriesCount() { return persistentDirectories_.size(); } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { return persistentDirectories_.get(index); } /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { return persistentDirectories_.get(index); } public static final int EPHEMERAL_DIRECTORIES_FIELD_NUMBER = 22; - @SuppressWarnings("serial") - private java.util.List - ephemeralDirectories_; + private java.util.List ephemeralDirectories_; /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getEphemeralDirectoriesList() { + public java.util.List getEphemeralDirectoriesList() { return ephemeralDirectories_; } /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> + public java.util.List getEphemeralDirectoriesOrBuilderList() { return ephemeralDirectories_; } /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getEphemeralDirectoriesCount() { return ephemeralDirectories_.size(); } /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - getEphemeralDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories(int index) { return ephemeralDirectories_.get(index); } /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder - getEphemeralDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder getEphemeralDirectoriesOrBuilder( + int index) { return ephemeralDirectories_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 14; private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the container field is set. */ @java.lang.Override @@ -17797,51 +15125,34 @@ public boolean hasContainer() { return container_ != null; } /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The container. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { - return container_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; } /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder - getContainerOrBuilder() { - return container_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() - : container_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { + return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17; - private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - encryptionKey_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_; /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -17863,10 +15174,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getConta
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -17874,8 +15182,6 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -17897,23 +15203,14 @@ public boolean hasEncryptionKey() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The encryptionKey. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getEncryptionKey() { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -17935,123 +15232,89 @@ public boolean hasEncryptionKey() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder() { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } public static final int READINESS_CHECKS_FIELD_NUMBER = 19; - @SuppressWarnings("serial") - private java.util.List - readinessChecks_; + private java.util.List readinessChecks_; /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getReadinessChecksList() { + public java.util.List getReadinessChecksList() { return readinessChecks_; } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> + public java.util.List getReadinessChecksOrBuilderList() { return readinessChecks_; } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getReadinessChecksCount() { return readinessChecks_.size(); } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { return readinessChecks_.get(index); } /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder - getReadinessChecksOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( + int index) { return readinessChecks_.get(index); } public static final int REPLICA_ZONES_FIELD_NUMBER = 23; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -18062,18 +15325,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck get
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList + getReplicaZonesList() { return replicaZones_; } /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -18084,18 +15343,13 @@ public com.google.protobuf.ProtocolStringList getReplicaZonesList() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -18106,10 +15360,7 @@ public int getReplicaZonesCount() {
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -18117,8 +15368,6 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -18129,22 +15378,18 @@ public java.lang.String getReplicaZones(int index) {
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString + getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } public static final int DEGRADED_FIELD_NUMBER = 15; private boolean degraded_ = false; /** - * - * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -18153,7 +15398,6 @@ public com.google.protobuf.ByteString getReplicaZonesBytes(int index) {
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -18162,85 +15406,69 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 16; - @SuppressWarnings("serial") private java.util.List conditions_; /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { return conditions_; } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { return conditions_.get(index); } public static final int ENABLE_AUDIT_AGENT_FIELD_NUMBER = 20; private boolean enableAuditAgent_ = false; /** - * - * *
    * Optional. Whether to enable Linux `auditd` logging on the workstation. When
    * enabled, a service account must also be specified that has
@@ -18250,7 +15478,6 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) {
    * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableAuditAgent. */ @java.lang.Override @@ -18259,7 +15486,6 @@ public boolean getEnableAuditAgent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -18271,7 +15497,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_); } @@ -18284,8 +15511,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotations(), + AnnotationsDefaultEntryHolder.defaultEntry, + 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -18322,8 +15553,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionKey_ != null) { output.writeMessage(17, getEncryptionKey()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 18); for (int i = 0; i < readinessChecks_.size(); i++) { output.writeMessage(19, readinessChecks_.get(i)); } @@ -18355,76 +15590,87 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry + : internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (idleTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIdleTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getIdleTimeout()); } if (runningTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunningTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getRunningTimeout()); } if (host_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getHost()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getHost()); } for (int i = 0; i < persistentDirectories_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, persistentDirectories_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, persistentDirectories_.get(i)); } if (container_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getContainer()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getContainer()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, degraded_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, conditions_.get(i)); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionKey()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(17, getEncryptionKey()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(18, labels__); } for (int i = 0; i < readinessChecks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, readinessChecks_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, readinessChecks_.get(i)); } if (enableAuditAgent_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, enableAuditAgent_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(20, enableAuditAgent_); } for (int i = 0; i < ephemeralDirectories_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, ephemeralDirectories_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, ephemeralDirectories_.get(i)); } { int dataSize = 0; @@ -18442,60 +15688,81 @@ 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.workstations.v1beta.WorkstationConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig other = - (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (getReconciling() != other.getReconciling()) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getUid() + .equals(other.getUid())) return false; + if (getReconciling() + != other.getReconciling()) return false; + if (!internalGetAnnotations().equals( + other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getEtag().equals(other.getEtag())) return false; + if (!getEtag() + .equals(other.getEtag())) return false; if (hasIdleTimeout() != other.hasIdleTimeout()) return false; if (hasIdleTimeout()) { - if (!getIdleTimeout().equals(other.getIdleTimeout())) return false; + if (!getIdleTimeout() + .equals(other.getIdleTimeout())) return false; } if (hasRunningTimeout() != other.hasRunningTimeout()) return false; if (hasRunningTimeout()) { - if (!getRunningTimeout().equals(other.getRunningTimeout())) return false; + if (!getRunningTimeout() + .equals(other.getRunningTimeout())) return false; } if (hasHost() != other.hasHost()) return false; if (hasHost()) { - if (!getHost().equals(other.getHost())) return false; + if (!getHost() + .equals(other.getHost())) return false; } - if (!getPersistentDirectoriesList().equals(other.getPersistentDirectoriesList())) return false; - if (!getEphemeralDirectoriesList().equals(other.getEphemeralDirectoriesList())) return false; + if (!getPersistentDirectoriesList() + .equals(other.getPersistentDirectoriesList())) return false; + if (!getEphemeralDirectoriesList() + .equals(other.getEphemeralDirectoriesList())) return false; if (hasContainer() != other.hasContainer()) return false; if (hasContainer()) { - if (!getContainer().equals(other.getContainer())) return false; + if (!getContainer() + .equals(other.getContainer())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; - } - if (!getReadinessChecksList().equals(other.getReadinessChecksList())) return false; - if (!getReplicaZonesList().equals(other.getReplicaZonesList())) return false; - if (getDegraded() != other.getDegraded()) return false; - if (!getConditionsList().equals(other.getConditionsList())) return false; - if (getEnableAuditAgent() != other.getEnableAuditAgent()) return false; + if (!getEncryptionKey() + .equals(other.getEncryptionKey())) return false; + } + if (!getReadinessChecksList() + .equals(other.getReadinessChecksList())) return false; + if (!getReplicaZonesList() + .equals(other.getReplicaZonesList())) return false; + if (getDegraded() + != other.getDegraded()) return false; + if (!getConditionsList() + .equals(other.getConditionsList())) return false; + if (getEnableAuditAgent() + != other.getEnableAuditAgent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -18514,7 +15781,8 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -18574,117 +15842,113 @@ public int hashCode() { hash = (53 * hash) + getReplicaZonesList().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (37 * hash) + ENABLE_AUDIT_AGENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAuditAgent()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableAuditAgent()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig prototype) { + public static Builder newBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig 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 workstation configuration resource in the Cloud Workstations API.
    *
@@ -18699,56 +15963,59 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
    */
-  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.workstations.v1beta.WorkstationConfig)
       com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 18:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 18:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.class,
-              com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -18821,7 +16088,8 @@ public Builder clear() {
         readinessChecksBuilder_.clear();
       }
       bitField0_ = (bitField0_ & ~0x00020000);
-      replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      replicaZones_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       degraded_ = false;
       if (conditionsBuilder_ == null) {
         conditions_ = java.util.Collections.emptyList();
@@ -18835,9 +16103,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto
-          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -18856,18 +16124,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationConfig buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationConfig result =
-          new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
+      com.google.cloud.workstations.v1beta.WorkstationConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.workstations.v1beta.WorkstationConfig result) {
+    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig result) {
       if (persistentDirectoriesBuilder_ == null) {
         if (((bitField0_ & 0x00002000) != 0)) {
           persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_);
@@ -18929,34 +16193,47 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null
+            ? deleteTime_
+            : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.idleTimeout_ =
-            idleTimeoutBuilder_ == null ? idleTimeout_ : idleTimeoutBuilder_.build();
+        result.idleTimeout_ = idleTimeoutBuilder_ == null
+            ? idleTimeout_
+            : idleTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.runningTimeout_ =
-            runningTimeoutBuilder_ == null ? runningTimeout_ : runningTimeoutBuilder_.build();
+        result.runningTimeout_ = runningTimeoutBuilder_ == null
+            ? runningTimeout_
+            : runningTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.host_ = hostBuilder_ == null ? host_ : hostBuilder_.build();
+        result.host_ = hostBuilder_ == null
+            ? host_
+            : hostBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
+        result.container_ = containerBuilder_ == null
+            ? container_
+            : containerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.encryptionKey_ =
-            encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build();
+        result.encryptionKey_ = encryptionKeyBuilder_ == null
+            ? encryptionKey_
+            : encryptionKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
         replicaZones_.makeImmutable();
@@ -18974,39 +16251,38 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
     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.workstations.v1beta.WorkstationConfig) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig) other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -19014,8 +16290,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -19034,9 +16309,11 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(
+          other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -19079,10 +16356,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             persistentDirectoriesBuilder_ = null;
             persistentDirectories_ = other.persistentDirectories_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            persistentDirectoriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPersistentDirectoriesFieldBuilder()
-                    : null;
+            persistentDirectoriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPersistentDirectoriesFieldBuilder() : null;
           } else {
             persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_);
           }
@@ -19106,10 +16382,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             ephemeralDirectoriesBuilder_ = null;
             ephemeralDirectories_ = other.ephemeralDirectories_;
             bitField0_ = (bitField0_ & ~0x00004000);
-            ephemeralDirectoriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEphemeralDirectoriesFieldBuilder()
-                    : null;
+            ephemeralDirectoriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEphemeralDirectoriesFieldBuilder() : null;
           } else {
             ephemeralDirectoriesBuilder_.addAllMessages(other.ephemeralDirectories_);
           }
@@ -19139,10 +16414,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             readinessChecksBuilder_ = null;
             readinessChecks_ = other.readinessChecks_;
             bitField0_ = (bitField0_ & ~0x00020000);
-            readinessChecksBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getReadinessChecksFieldBuilder()
-                    : null;
+            readinessChecksBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getReadinessChecksFieldBuilder() : null;
           } else {
             readinessChecksBuilder_.addAllMessages(other.readinessChecks_);
           }
@@ -19179,10 +16453,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00100000);
-            conditionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConditionsFieldBuilder()
-                    : null;
+            conditionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConditionsFieldBuilder() : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -19217,191 +16490,179 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                uid_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 32:
-              {
-                reconciling_ = input.readBool();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 32
-            case 42:
-              {
-                com.google.protobuf.MapEntry annotations__ =
-                    input.readMessage(
-                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableAnnotations()
-                    .getMutableMap()
-                    .put(annotations__.getKey(), annotations__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 50
-            case 58:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000100;
-                break;
-              } // case 66
-            case 74:
-              {
-                etag_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000200;
-                break;
-              } // case 74
-            case 82:
-              {
-                input.readMessage(getIdleTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000400;
-                break;
-              } // case 82
-            case 90:
-              {
-                input.readMessage(getRunningTimeoutFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000800;
-                break;
-              } // case 90
-            case 98:
-              {
-                input.readMessage(getHostFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00001000;
-                break;
-              } // case 98
-            case 106:
-              {
-                com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
-                    input.readMessage(
-                        com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory
-                            .parser(),
-                        extensionRegistry);
-                if (persistentDirectoriesBuilder_ == null) {
-                  ensurePersistentDirectoriesIsMutable();
-                  persistentDirectories_.add(m);
-                } else {
-                  persistentDirectoriesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 106
-            case 114:
-              {
-                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00008000;
-                break;
-              } // case 114
-            case 120:
-              {
-                degraded_ = input.readBool();
-                bitField0_ |= 0x00080000;
-                break;
-              } // case 120
-            case 130:
-              {
-                com.google.rpc.Status m =
-                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-                if (conditionsBuilder_ == null) {
-                  ensureConditionsIsMutable();
-                  conditions_.add(m);
-                } else {
-                  conditionsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 130
-            case 138:
-              {
-                input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00010000;
-                break;
-              } // case 138
-            case 146:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 146
-            case 154:
-              {
-                com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck m =
-                    input.readMessage(
-                        com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
-                            .parser(),
-                        extensionRegistry);
-                if (readinessChecksBuilder_ == null) {
-                  ensureReadinessChecksIsMutable();
-                  readinessChecks_.add(m);
-                } else {
-                  readinessChecksBuilder_.addMessage(m);
-                }
-                break;
-              } // case 154
-            case 160:
-              {
-                enableAuditAgent_ = input.readBool();
-                bitField0_ |= 0x00200000;
-                break;
-              } // case 160
-            case 178:
-              {
-                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory m =
-                    input.readMessage(
-                        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
-                            .parser(),
-                        extensionRegistry);
-                if (ephemeralDirectoriesBuilder_ == null) {
-                  ensureEphemeralDirectoriesIsMutable();
-                  ephemeralDirectories_.add(m);
-                } else {
-                  ephemeralDirectoriesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 178
-            case 186:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureReplicaZonesIsMutable();
-                replicaZones_.add(s);
-                break;
-              } // case 186
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              uid_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 32: {
+              reconciling_ = input.readBool();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 32
+            case 42: {
+              com.google.protobuf.MapEntry
+              annotations__ = input.readMessage(
+                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableAnnotations().getMutableMap().put(
+                  annotations__.getKey(), annotations__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 50
+            case 58: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getDeleteTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000100;
+              break;
+            } // case 66
+            case 74: {
+              etag_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000200;
+              break;
+            } // case 74
+            case 82: {
+              input.readMessage(
+                  getIdleTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000400;
+              break;
+            } // case 82
+            case 90: {
+              input.readMessage(
+                  getRunningTimeoutFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000800;
+              break;
+            } // case 90
+            case 98: {
+              input.readMessage(
+                  getHostFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00001000;
+              break;
+            } // case 98
+            case 106: {
+              com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
+                  input.readMessage(
+                      com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.parser(),
+                      extensionRegistry);
+              if (persistentDirectoriesBuilder_ == null) {
+                ensurePersistentDirectoriesIsMutable();
+                persistentDirectories_.add(m);
+              } else {
+                persistentDirectoriesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 106
+            case 114: {
+              input.readMessage(
+                  getContainerFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00008000;
+              break;
+            } // case 114
+            case 120: {
+              degraded_ = input.readBool();
+              bitField0_ |= 0x00080000;
+              break;
+            } // case 120
+            case 130: {
+              com.google.rpc.Status m =
+                  input.readMessage(
+                      com.google.rpc.Status.parser(),
+                      extensionRegistry);
+              if (conditionsBuilder_ == null) {
+                ensureConditionsIsMutable();
+                conditions_.add(m);
+              } else {
+                conditionsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 130
+            case 138: {
+              input.readMessage(
+                  getEncryptionKeyFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00010000;
+              break;
+            } // case 138
+            case 146: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 146
+            case 154: {
+              com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck m =
+                  input.readMessage(
+                      com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.parser(),
+                      extensionRegistry);
+              if (readinessChecksBuilder_ == null) {
+                ensureReadinessChecksIsMutable();
+                readinessChecks_.add(m);
+              } else {
+                readinessChecksBuilder_.addMessage(m);
+              }
+              break;
+            } // case 154
+            case 160: {
+              enableAuditAgent_ = input.readBool();
+              bitField0_ |= 0x00200000;
+              break;
+            } // case 160
+            case 178: {
+              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory m =
+                  input.readMessage(
+                      com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.parser(),
+                      extensionRegistry);
+              if (ephemeralDirectoriesBuilder_ == null) {
+                ensureEphemeralDirectoriesIsMutable();
+                ephemeralDirectories_.add(m);
+              } else {
+                ephemeralDirectoriesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 178
+            case 186: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureReplicaZonesIsMutable();
+              replicaZones_.add(s);
+              break;
+            } // case 186
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -19411,25 +16672,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Full name of this workstation configuration.
      * 
* * 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; @@ -19438,21 +16696,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * 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 { @@ -19460,35 +16717,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -19498,21 +16748,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Full name of this workstation configuration.
      * 
* * 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(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -19522,20 +16768,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -19544,21 +16788,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -19566,35 +16809,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -19604,21 +16840,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -19628,21 +16860,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object uid_ = ""; /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -19651,22 +16881,21 @@ public java.lang.String getUid() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - public com.google.protobuf.ByteString getUidBytes() { + public com.google.protobuf.ByteString + getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uid_ = b; return b; } else { @@ -19674,37 +16903,30 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -19714,22 +16936,18 @@ public Builder clearUid() { return this; } /** - * - * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -19737,17 +16955,14 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { return this; } - private boolean reconciling_; + private boolean reconciling_ ; /** - * - * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ @java.lang.Override @@ -19755,15 +16970,12 @@ public boolean getReconciling() { return reconciling_; } /** - * - * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -19775,15 +16987,12 @@ public Builder setReconciling(boolean value) { return this; } /** - * - * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -19793,8 +17002,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField annotations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> annotations_; private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -19803,12 +17012,11 @@ public Builder clearReconciling() { } return annotations_; } - private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = com.google.protobuf.MapField.newMapField( + AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -19817,168 +17025,153 @@ public Builder clearReconciling() { onChanged(); return annotations_; } - public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotations().getMap().containsKey(key); } - /** Use {@link #getAnnotationsMap()} instead. */ + /** + * Use {@link #getAnnotationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( + public /* nullable */ +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap().clear(); + internalGetMutableAnnotations().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); + public Builder removeAnnotations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { + public java.util.Map + getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableAnnotations().getMutableMap().put(key, value); + public Builder putAnnotations( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); + public Builder putAllAnnotations( + java.util.Map values) { + internalGetMutableAnnotations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -19987,13 +17180,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -20004,21 +17194,20 @@ public int getLabelsCount() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /** Use {@link #getLabelsMap()} instead. */
+    /**
+     * Use {@link #getLabelsMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -20033,8 +17222,6 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -20045,19 +17232,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */ java.lang.String getLabelsOrDefault(
+    public /* nullable */
+java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-        java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -20068,25 +17253,23 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
-
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap().clear();
+      internalGetMutableLabels().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -20096,22 +17279,23 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableLabels().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableLabels() {
+    public java.util.Map
+        getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -20121,20 +17305,17 @@ public java.util.Map getMutableLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      if (value == null) {
-        throw new NullPointerException("map value");
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
-     *
-     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -20144,66 +17325,49 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(java.util.Map values) {
-      internalGetMutableLabels().getMutableMap().putAll(values);
+    public Builder putAllLabels(
+        java.util.Map values) {
+      internalGetMutableLabels().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        createTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -20219,17 +17383,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -20240,21 +17401,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -20267,15 +17424,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -20288,15 +17441,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -20304,48 +17453,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -20353,61 +17490,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -20423,18 +17541,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -20445,22 +17560,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -20473,16 +17584,12 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -20495,16 +17602,12 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -20512,50 +17615,38 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -20563,58 +17654,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -20630,17 +17702,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -20651,21 +17720,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && deleteTime_ != null - && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) && + deleteTime_ != null && + deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -20678,15 +17743,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -20699,15 +17760,11 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -20715,48 +17772,36 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -20764,8 +17809,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -20773,13 +17816,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -20788,8 +17831,6 @@ public java.lang.String getEtag() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -20797,14 +17838,15 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - public com.google.protobuf.ByteString getEtagBytes() { + public com.google.protobuf.ByteString + getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); etag_ = b; return b; } else { @@ -20812,8 +17854,6 @@ public com.google.protobuf.ByteString getEtagBytes() { } } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -20821,22 +17861,18 @@ public com.google.protobuf.ByteString getEtagBytes() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtag( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -20844,7 +17880,6 @@ public Builder setEtag(java.lang.String value) {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEtag() { @@ -20854,8 +17889,6 @@ public Builder clearEtag() { return this; } /** - * - * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -20863,14 +17896,12 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEtagBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -20880,13 +17911,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration idleTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - idleTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -20899,17 +17925,13 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleTimeout field is set. */ public boolean hasIdleTimeout() { return ((bitField0_ & 0x00000400) != 0); } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -20922,23 +17944,17 @@ public boolean hasIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleTimeout. */ public com.google.protobuf.Duration getIdleTimeout() { if (idleTimeoutBuilder_ == null) { - return idleTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleTimeout_; + return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } else { return idleTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -20951,8 +17967,7 @@ public com.google.protobuf.Duration getIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { @@ -20968,8 +17983,6 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -20982,10 +17995,10 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setIdleTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (idleTimeoutBuilder_ == null) { idleTimeout_ = builderForValue.build(); } else { @@ -20996,8 +18009,6 @@ public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForVal return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -21010,14 +18021,13 @@ public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForVal
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && idleTimeout_ != null - && idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) && + idleTimeout_ != null && + idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getIdleTimeoutBuilder().mergeFrom(value); } else { idleTimeout_ = value; @@ -21030,8 +18040,6 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -21044,8 +18052,7 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearIdleTimeout() { bitField0_ = (bitField0_ & ~0x00000400); @@ -21058,8 +18065,6 @@ public Builder clearIdleTimeout() { return this; } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -21072,8 +18077,7 @@ public Builder clearIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { bitField0_ |= 0x00000400; @@ -21081,8 +18085,6 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { return getIdleTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -21095,21 +18097,17 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { if (idleTimeoutBuilder_ != null) { return idleTimeoutBuilder_.getMessageOrBuilder(); } else { - return idleTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : idleTimeout_; + return idleTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } } /** - * - * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -21122,21 +18120,17 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getIdleTimeoutFieldBuilder() { if (idleTimeoutBuilder_ == null) { - idleTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getIdleTimeout(), getParentForChildren(), isClean()); + idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getIdleTimeout(), + getParentForChildren(), + isClean()); idleTimeout_ = null; } return idleTimeoutBuilder_; @@ -21144,13 +18138,8 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { private com.google.protobuf.Duration runningTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - runningTimeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_; /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21176,18 +18165,13 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runningTimeout field is set. */ public boolean hasRunningTimeout() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21213,24 +18197,17 @@ public boolean hasRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The runningTimeout. */ public com.google.protobuf.Duration getRunningTimeout() { if (runningTimeoutBuilder_ == null) { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } else { return runningTimeoutBuilder_.getMessage(); } } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21256,9 +18233,7 @@ public com.google.protobuf.Duration getRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { @@ -21274,8 +18249,6 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21301,11 +18274,10 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRunningTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (runningTimeoutBuilder_ == null) { runningTimeout_ = builderForValue.build(); } else { @@ -21316,8 +18288,6 @@ public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderFor return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21343,15 +18313,13 @@ public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderFor
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && runningTimeout_ != null - && runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) && + runningTimeout_ != null && + runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getRunningTimeoutBuilder().mergeFrom(value); } else { runningTimeout_ = value; @@ -21364,8 +18332,6 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21391,9 +18357,7 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearRunningTimeout() { bitField0_ = (bitField0_ & ~0x00000800); @@ -21406,8 +18370,6 @@ public Builder clearRunningTimeout() { return this; } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21433,9 +18395,7 @@ public Builder clearRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { bitField0_ |= 0x00000800; @@ -21443,8 +18403,6 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { return getRunningTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21470,22 +18428,17 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { if (runningTimeoutBuilder_ != null) { return runningTimeoutBuilder_.getMessageOrBuilder(); } else { - return runningTimeout_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : runningTimeout_; + return runningTimeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; } } /** - * - * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -21511,22 +18464,17 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getRunningTimeoutFieldBuilder() { if (runningTimeoutBuilder_ == null) { - runningTimeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getRunningTimeout(), getParentForChildren(), isClean()); + runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getRunningTimeout(), + getParentForChildren(), + isClean()); runningTimeout_ = null; } return runningTimeoutBuilder_; @@ -21534,58 +18482,39 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> - hostBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> hostBuilder_; /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the host field is set. */ public boolean hasHost() { return ((bitField0_ & 0x00001000) != 0); } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The host. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { if (hostBuilder_ == null) { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } else { return hostBuilder_.getMessage(); } } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Host value) { if (hostBuilder_ == null) { @@ -21601,15 +18530,11 @@ public Builder setHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Ho return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setHost( com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder builderForValue) { @@ -21623,23 +18548,17 @@ public Builder setHost( return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Host value) { if (hostBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && host_ != null - && host_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Host - .getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) && + host_ != null && + host_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) { getHostBuilder().mergeFrom(value); } else { host_ = value; @@ -21652,15 +18571,11 @@ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig. return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00001000); @@ -21673,15 +18588,11 @@ public Builder clearHost() { return this; } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder getHostBuilder() { bitField0_ |= 0x00001000; @@ -21689,87 +18600,61 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder getHo return getHostFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder() { if (hostBuilder_ != null) { return hostBuilder_.getMessageOrBuilder(); } else { - return host_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() - : host_; + return host_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; } } /** - * - * *
      * Optional. Runtime host for the workstation.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> getHostFieldBuilder() { if (hostBuilder_ == null) { - hostBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( - getHost(), getParentForChildren(), isClean()); + hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( + getHost(), + getParentForChildren(), + isClean()); host_ = null; } return hostBuilder_; } - private java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> - persistentDirectories_ = java.util.Collections.emptyList(); - + private java.util.List persistentDirectories_ = + java.util.Collections.emptyList(); private void ensurePersistentDirectoriesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - persistentDirectories_ = - new java.util.ArrayList< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory>( - persistentDirectories_); + persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> - persistentDirectoriesBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> - getPersistentDirectoriesList() { + public java.util.List getPersistentDirectoriesList() { if (persistentDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(persistentDirectories_); } else { @@ -21777,15 +18662,11 @@ private void ensurePersistentDirectoriesIsMutable() { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public int getPersistentDirectoriesCount() { if (persistentDirectoriesBuilder_ == null) { @@ -21795,18 +18676,13 @@ public int getPersistentDirectoriesCount() { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { return persistentDirectories_.get(index); } else { @@ -21814,19 +18690,14 @@ public int getPersistentDirectoriesCount() { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21840,20 +18711,14 @@ public Builder setPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.set(index, builderForValue.build()); @@ -21864,18 +18729,13 @@ public Builder setPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addPersistentDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + public Builder addPersistentDirectories(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21889,19 +18749,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -21915,19 +18770,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPersistentDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(builderForValue.build()); @@ -21938,20 +18788,14 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addPersistentDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(index, builderForValue.build()); @@ -21962,24 +18806,18 @@ public Builder addPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllPersistentDirectories( - java.lang.Iterable< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> - values) { + java.lang.Iterable values) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, persistentDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, persistentDirectories_); onChanged(); } else { persistentDirectoriesBuilder_.addAllMessages(values); @@ -21987,15 +18825,11 @@ public Builder addAllPersistentDirectories( return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearPersistentDirectories() { if (persistentDirectoriesBuilder_ == null) { @@ -22008,15 +18842,11 @@ public Builder clearPersistentDirectories() { return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removePersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { @@ -22029,54 +18859,39 @@ public Builder removePersistentDirectories(int index) { return this; } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - getPersistentDirectoriesBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( + int index) { return getPersistentDirectoriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index) { if (persistentDirectoriesBuilder_ == null) { - return persistentDirectories_.get(index); - } else { + return persistentDirectories_.get(index); } else { return persistentDirectoriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> - getPersistentDirectoriesOrBuilderList() { + public java.util.List + getPersistentDirectoriesOrBuilderList() { if (persistentDirectoriesBuilder_ != null) { return persistentDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -22084,71 +18899,45 @@ public Builder removePersistentDirectories(int index) { } } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - addPersistentDirectoriesBuilder() { - return getPersistentDirectoriesFieldBuilder() - .addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder - addPersistentDirectoriesBuilder(int index) { - return getPersistentDirectoriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( + int index) { + return getPersistentDirectoriesFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); } /** - * - * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder> - getPersistentDirectoriesBuilderList() { + public java.util.List + getPersistentDirectoriesBuilderList() { return getPersistentDirectoriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesFieldBuilder() { if (persistentDirectoriesBuilder_ == null) { - persistentDirectoriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig - .PersistentDirectoryOrBuilder>( + persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder>( persistentDirectories_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), @@ -22158,40 +18947,27 @@ public Builder removePersistentDirectories(int index) { return persistentDirectoriesBuilder_; } - private java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory> - ephemeralDirectories_ = java.util.Collections.emptyList(); - + private java.util.List ephemeralDirectories_ = + java.util.Collections.emptyList(); private void ensureEphemeralDirectoriesIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { - ephemeralDirectories_ = - new java.util.ArrayList< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory>( - ephemeralDirectories_); + ephemeralDirectories_ = new java.util.ArrayList(ephemeralDirectories_); bitField0_ |= 0x00004000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> - ephemeralDirectoriesBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> ephemeralDirectoriesBuilder_; /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getEphemeralDirectoriesList() { + public java.util.List getEphemeralDirectoriesList() { if (ephemeralDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(ephemeralDirectories_); } else { @@ -22199,16 +18975,12 @@ private void ensureEphemeralDirectoriesIsMutable() { } } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public int getEphemeralDirectoriesCount() { if (ephemeralDirectoriesBuilder_ == null) { @@ -22218,19 +18990,14 @@ public int getEphemeralDirectoriesCount() { } } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - getEphemeralDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories(int index) { if (ephemeralDirectoriesBuilder_ == null) { return ephemeralDirectories_.get(index); } else { @@ -22238,20 +19005,15 @@ public int getEphemeralDirectoriesCount() { } } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEphemeralDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { if (ephemeralDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -22265,21 +19027,15 @@ public Builder setEphemeralDirectories( return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEphemeralDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder builderForValue) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); ephemeralDirectories_.set(index, builderForValue.build()); @@ -22290,19 +19046,14 @@ public Builder setEphemeralDirectories( return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addEphemeralDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { + public Builder addEphemeralDirectories(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { if (ephemeralDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -22316,20 +19067,15 @@ public Builder addEphemeralDirectories( return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEphemeralDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { if (ephemeralDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -22343,20 +19089,15 @@ public Builder addEphemeralDirectories( return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEphemeralDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder builderForValue) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); ephemeralDirectories_.add(builderForValue.build()); @@ -22367,21 +19108,15 @@ public Builder addEphemeralDirectories( return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addEphemeralDirectories( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder builderForValue) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); ephemeralDirectories_.add(index, builderForValue.build()); @@ -22392,24 +19127,19 @@ public Builder addEphemeralDirectories( return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllEphemeralDirectories( - java.lang.Iterable< - ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory> - values) { + java.lang.Iterable values) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ephemeralDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ephemeralDirectories_); onChanged(); } else { ephemeralDirectoriesBuilder_.addAllMessages(values); @@ -22417,16 +19147,12 @@ public Builder addAllEphemeralDirectories( return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEphemeralDirectories() { if (ephemeralDirectoriesBuilder_ == null) { @@ -22439,16 +19165,12 @@ public Builder clearEphemeralDirectories() { return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeEphemeralDirectories(int index) { if (ephemeralDirectoriesBuilder_ == null) { @@ -22461,57 +19183,42 @@ public Builder removeEphemeralDirectories(int index) { return this; } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder - getEphemeralDirectoriesBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder getEphemeralDirectoriesBuilder( + int index) { return getEphemeralDirectoriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder - getEphemeralDirectoriesOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder getEphemeralDirectoriesOrBuilder( + int index) { if (ephemeralDirectoriesBuilder_ == null) { - return ephemeralDirectories_.get(index); - } else { + return ephemeralDirectories_.get(index); } else { return ephemeralDirectoriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> - getEphemeralDirectoriesOrBuilderList() { + public java.util.List + getEphemeralDirectoriesOrBuilderList() { if (ephemeralDirectoriesBuilder_ != null) { return ephemeralDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -22519,73 +19226,48 @@ public Builder removeEphemeralDirectories(int index) { } } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder - addEphemeralDirectoriesBuilder() { - return getEphemeralDirectoriesFieldBuilder() - .addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder addEphemeralDirectoriesBuilder() { + return getEphemeralDirectoriesFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance()); } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder - addEphemeralDirectoriesBuilder(int index) { - return getEphemeralDirectoriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder addEphemeralDirectoriesBuilder( + int index) { + return getEphemeralDirectoriesFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance()); } /** - * - * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder> - getEphemeralDirectoriesBuilderList() { + public java.util.List + getEphemeralDirectoriesBuilderList() { return getEphemeralDirectoriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> getEphemeralDirectoriesFieldBuilder() { if (ephemeralDirectoriesBuilder_ == null) { - ephemeralDirectoriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder>( + ephemeralDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder>( ephemeralDirectories_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), @@ -22597,64 +19279,44 @@ public Builder removeEphemeralDirectories(int index) { private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> - containerBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> containerBuilder_; /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00008000) != 0); } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The container. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { if (containerBuilder_ == null) { - return container_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; } else { return containerBuilder_.getMessage(); } } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setContainer( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { + public Builder setContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -22668,16 +19330,12 @@ public Builder setContainer( return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setContainer( com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder builderForValue) { @@ -22691,25 +19349,18 @@ public Builder setContainer( return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeContainer( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { + public Builder mergeContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { if (containerBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) - && container_ != null - && container_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.Container - .getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) && + container_ != null && + container_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) { getContainerBuilder().mergeFrom(value); } else { container_ = value; @@ -22722,16 +19373,12 @@ public Builder mergeContainer( return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00008000); @@ -22744,84 +19391,60 @@ public Builder clearContainer() { return this; } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder - getContainerBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder getContainerBuilder() { bitField0_ |= 0x00008000; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder - getContainerOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { - return container_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() - : container_; + return container_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; } } /** - * - * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> getContainerFieldBuilder() { if (containerBuilder_ == null) { - containerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>( - getContainer(), getParentForChildren(), isClean()); + containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>( + getContainer(), + getParentForChildren(), + isClean()); container_ = null; } return containerBuilder_; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - encryptionKey_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> - encryptionKeyBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_; /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -22843,18 +19466,13 @@ public Builder clearContainer() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00010000) != 0); } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -22876,26 +19494,17 @@ public boolean hasEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The encryptionKey. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - getEncryptionKey() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -22917,12 +19526,9 @@ public boolean hasEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public Builder setEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -22936,8 +19542,6 @@ public Builder setEncryptionKey( return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -22959,13 +19563,10 @@ public Builder setEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder setEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { @@ -22976,8 +19577,6 @@ public Builder setEncryptionKey( return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -22999,18 +19598,13 @@ public Builder setEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public Builder mergeEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && encryptionKey_ != null - && encryptionKey_ - != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) && + encryptionKey_ != null && + encryptionKey_ != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; @@ -23023,8 +19617,6 @@ public Builder mergeEncryptionKey( return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -23046,9 +19638,7 @@ public Builder mergeEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00010000); @@ -23061,8 +19651,6 @@ public Builder clearEncryptionKey() { return this; } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -23084,19 +19672,14 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder - getEncryptionKeyBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { bitField0_ |= 0x00010000; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -23118,24 +19701,17 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null - ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .getDefaultInstance() - : encryptionKey_; + return encryptionKey_ == null ? + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; } } /** - * - * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -23157,63 +19733,44 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey - .Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig - .CustomerEncryptionKeyOrBuilder>( - getEncryptionKey(), getParentForChildren(), isClean()); + encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), + getParentForChildren(), + isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } - private java.util.List - readinessChecks_ = java.util.Collections.emptyList(); - + private java.util.List readinessChecks_ = + java.util.Collections.emptyList(); private void ensureReadinessChecksIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { - readinessChecks_ = - new java.util.ArrayList< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck>( - readinessChecks_); + readinessChecks_ = new java.util.ArrayList(readinessChecks_); bitField0_ |= 0x00020000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> - readinessChecksBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> readinessChecksBuilder_; /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getReadinessChecksList() { + public java.util.List getReadinessChecksList() { if (readinessChecksBuilder_ == null) { return java.util.Collections.unmodifiableList(readinessChecks_); } else { @@ -23221,17 +19778,13 @@ private void ensureReadinessChecksIsMutable() { } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public int getReadinessChecksCount() { if (readinessChecksBuilder_ == null) { @@ -23241,20 +19794,15 @@ public int getReadinessChecksCount() { } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { if (readinessChecksBuilder_ == null) { return readinessChecks_.get(index); } else { @@ -23262,17 +19810,13 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck get } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadinessChecks( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { @@ -23289,22 +19833,16 @@ public Builder setReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadinessChecks( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.set(index, builderForValue.build()); @@ -23315,20 +19853,15 @@ public Builder setReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder addReadinessChecks( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { + public Builder addReadinessChecks(com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { if (readinessChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -23342,17 +19875,13 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addReadinessChecks( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { @@ -23369,21 +19898,16 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addReadinessChecks( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder - builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.add(builderForValue.build()); @@ -23394,22 +19918,16 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addReadinessChecks( - int index, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder - builderForValue) { + int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.add(index, builderForValue.build()); @@ -23420,25 +19938,20 @@ public Builder addReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllReadinessChecks( - java.lang.Iterable< - ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck> - values) { + java.lang.Iterable values) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readinessChecks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, readinessChecks_); onChanged(); } else { readinessChecksBuilder_.addAllMessages(values); @@ -23446,17 +19959,13 @@ public Builder addAllReadinessChecks( return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadinessChecks() { if (readinessChecksBuilder_ == null) { @@ -23469,17 +19978,13 @@ public Builder clearReadinessChecks() { return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeReadinessChecks(int index) { if (readinessChecksBuilder_ == null) { @@ -23492,60 +19997,45 @@ public Builder removeReadinessChecks(int index) { return this; } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder - getReadinessChecksBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder getReadinessChecksBuilder( + int index) { return getReadinessChecksFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder - getReadinessChecksOrBuilder(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( + int index) { if (readinessChecksBuilder_ == null) { - return readinessChecks_.get(index); - } else { + return readinessChecks_.get(index); } else { return readinessChecksBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> - getReadinessChecksOrBuilderList() { + public java.util.List + getReadinessChecksOrBuilderList() { if (readinessChecksBuilder_ != null) { return readinessChecksBuilder_.getMessageOrBuilderList(); } else { @@ -23553,76 +20043,51 @@ public Builder removeReadinessChecks(int index) { } } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder - addReadinessChecksBuilder() { - return getReadinessChecksFieldBuilder() - .addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder() { + return getReadinessChecksFieldBuilder().addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance()); } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder - addReadinessChecksBuilder(int index) { - return getReadinessChecksFieldBuilder() - .addBuilder( - index, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck - .getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder( + int index) { + return getReadinessChecksFieldBuilder().addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance()); } /** - * - * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder> - getReadinessChecksBuilderList() { + public java.util.List + getReadinessChecksBuilderList() { return getReadinessChecksFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksFieldBuilder() { if (readinessChecksBuilder_ == null) { - readinessChecksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder>( + readinessChecksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder>( readinessChecks_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), @@ -23634,7 +20099,6 @@ public Builder removeReadinessChecks(int index) { private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReplicaZonesIsMutable() { if (!replicaZones_.isModifiable()) { replicaZones_ = new com.google.protobuf.LazyStringArrayList(replicaZones_); @@ -23642,8 +20106,6 @@ private void ensureReplicaZonesIsMutable() { bitField0_ |= 0x00040000; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23654,19 +20116,15 @@ private void ensureReplicaZonesIsMutable() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList + getReplicaZonesList() { replicaZones_.makeImmutable(); return replicaZones_; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23677,18 +20135,13 @@ public com.google.protobuf.ProtocolStringList getReplicaZonesList() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23699,10 +20152,7 @@ public int getReplicaZonesCount() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -23710,8 +20160,6 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23722,19 +20170,15 @@ public java.lang.String getReplicaZones(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString + getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23745,18 +20189,14 @@ public com.google.protobuf.ByteString getReplicaZonesBytes(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index to set the value at. * @param value The replicaZones to set. * @return This builder for chaining. */ - public Builder setReplicaZones(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplicaZones( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReplicaZonesIsMutable(); replicaZones_.set(index, value); bitField0_ |= 0x00040000; @@ -23764,8 +20204,6 @@ public Builder setReplicaZones(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23776,17 +20214,13 @@ public Builder setReplicaZones(int index, java.lang.String value) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param value The replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZones(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReplicaZones( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureReplicaZonesIsMutable(); replicaZones_.add(value); bitField0_ |= 0x00040000; @@ -23794,8 +20228,6 @@ public Builder addReplicaZones(java.lang.String value) { return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23806,23 +20238,20 @@ public Builder addReplicaZones(java.lang.String value) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param values The replicaZones to add. * @return This builder for chaining. */ - public Builder addAllReplicaZones(java.lang.Iterable values) { + public Builder addAllReplicaZones( + java.lang.Iterable values) { ensureReplicaZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaZones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, replicaZones_); bitField0_ |= 0x00040000; onChanged(); return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23833,22 +20262,17 @@ public Builder addAllReplicaZones(java.lang.Iterable values) {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearReplicaZones() { - replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000); - ; + replicaZones_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000);; onChanged(); return this; } /** - * - * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -23859,17 +20283,13 @@ public Builder clearReplicaZones() {
      * Immutable after the workstation configuration is created.
      * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes of the replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addReplicaZonesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureReplicaZonesIsMutable(); replicaZones_.add(value); @@ -23878,10 +20298,8 @@ public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { return this; } - private boolean degraded_; + private boolean degraded_ ; /** - * - * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -23890,7 +20308,6 @@ public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ @java.lang.Override @@ -23898,8 +20315,6 @@ public boolean getDegraded() { return degraded_; } /** - * - * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -23908,7 +20323,6 @@ public boolean getDegraded() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The degraded to set. * @return This builder for chaining. */ @@ -23920,8 +20334,6 @@ public Builder setDegraded(boolean value) { return this; } /** - * - * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -23930,7 +20342,6 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -23940,29 +20351,24 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = java.util.Collections.emptyList(); - + private java.util.List conditions_ = + java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00100000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00100000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -23972,15 +20378,11 @@ public java.util.List getConditionsList() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -23990,15 +20392,11 @@ public int getConditionsCount() { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -24008,17 +20406,14 @@ public com.google.rpc.Status getConditions(int index) { } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status value) { + public Builder setConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -24032,17 +20427,14 @@ public Builder setConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -24053,15 +20445,11 @@ public Builder setConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -24077,17 +20465,14 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status value) { + public Builder addConditions( + int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -24101,17 +20486,14 @@ public Builder addConditions(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -24122,17 +20504,14 @@ public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions( + int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -24143,20 +20522,18 @@ public Builder addConditions(int index, com.google.rpc.Status.Builder builderFor return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAllConditions(java.lang.Iterable values) { + public Builder addAllConditions( + java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -24164,15 +20541,11 @@ public Builder addAllConditions(java.lang.Iterable * Output only. Status conditions describing the current resource state. *
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -24185,15 +20558,11 @@ public Builder clearConditions() { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -24206,49 +20575,39 @@ public Builder removeConditions(int index) { return this; } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder getConditionsBuilder(int index) { + public com.google.rpc.Status.Builder getConditionsBuilder( + int index) { return getConditionsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); - } else { + return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsOrBuilderList() { + public java.util.List + getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -24256,68 +20615,56 @@ public java.util.List getConditionsOrB } } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder( + com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.rpc.Status.Builder addConditionsBuilder(int index) { - return getConditionsFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, com.google.rpc.Status.getDefaultInstance()); } /** - * - * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getConditionsBuilderList() { + public java.util.List + getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - conditions_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + conditions_, + ((bitField0_ & 0x00100000) != 0), + getParentForChildren(), + isClean()); conditions_ = null; } return conditionsBuilder_; } - private boolean enableAuditAgent_; + private boolean enableAuditAgent_ ; /** - * - * *
      * Optional. Whether to enable Linux `auditd` logging on the workstation. When
      * enabled, a service account must also be specified that has
@@ -24327,7 +20674,6 @@ public java.util.List getConditionsBuilderList()
      * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableAuditAgent. */ @java.lang.Override @@ -24335,8 +20681,6 @@ public boolean getEnableAuditAgent() { return enableAuditAgent_; } /** - * - * *
      * Optional. Whether to enable Linux `auditd` logging on the workstation. When
      * enabled, a service account must also be specified that has
@@ -24346,7 +20690,6 @@ public boolean getEnableAuditAgent() {
      * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The enableAuditAgent to set. * @return This builder for chaining. */ @@ -24358,8 +20701,6 @@ public Builder setEnableAuditAgent(boolean value) { return this; } /** - * - * *
      * Optional. Whether to enable Linux `auditd` logging on the workstation. When
      * enabled, a service account must also be specified that has
@@ -24369,7 +20710,6 @@ public Builder setEnableAuditAgent(boolean value) {
      * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearEnableAuditAgent() { @@ -24378,9 +20718,9 @@ public Builder clearEnableAuditAgent() { 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); } @@ -24390,12 +20730,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig) private static final com.google.cloud.workstations.v1beta.WorkstationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig(); } @@ -24404,27 +20744,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -24439,4 +20779,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java similarity index 73% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java index 61e9f33aa87f..e6ce097e464c 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java @@ -1,185 +1,140 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationConfigOrBuilder - extends +public interface WorkstationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAnnotationsCount(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -191,8 +146,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -202,13 +155,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -218,10 +173,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -232,13 +186,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -248,128 +200,94 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -377,13 +295,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -391,14 +306,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -411,15 +324,11 @@ java.lang.String getLabelsOrDefault(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the idleTimeout field is set. */ boolean hasIdleTimeout(); /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -432,15 +341,11 @@ java.lang.String getLabelsOrDefault(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The idleTimeout. */ com.google.protobuf.Duration getIdleTimeout(); /** - * - * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -453,14 +358,11 @@ java.lang.String getLabelsOrDefault(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder(); /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -486,15 +388,11 @@ java.lang.String getLabelsOrDefault(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the runningTimeout field is set. */ boolean hasRunningTimeout(); /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -520,15 +418,11 @@ java.lang.String getLabelsOrDefault(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; * @return The runningTimeout. */ com.google.protobuf.Duration getRunningTimeout(); /** - * - * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -554,238 +448,161 @@ java.lang.String getLabelsOrDefault(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder(); /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the host field is set. */ boolean hasHost(); /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The host. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost(); /** - * - * *
    * Optional. Runtime host for the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getPersistentDirectoriesList(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory - getPersistentDirectories(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ int getPersistentDirectoriesCount(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + java.util.List getPersistentDirectoriesOrBuilderList(); /** - * - * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder - getPersistentDirectoriesOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( + int index); /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getEphemeralDirectoriesList(); /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories( - int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories(int index); /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ int getEphemeralDirectoriesCount(); /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> + java.util.List getEphemeralDirectoriesOrBuilderList(); /** - * - * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder - getEphemeralDirectoriesOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder getEphemeralDirectoriesOrBuilder( + int index); /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the container field is set. */ boolean hasContainer(); /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; * @return The container. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer(); /** - * - * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder(); /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -807,16 +624,11 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEph
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -838,16 +650,11 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEph
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; * @return The encryptionKey. */ com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); /** - * - * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -869,92 +676,65 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEph
    * Immutable after the workstation configuration is created.
    * 
* - * - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; - * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder - getEncryptionKeyOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getReadinessChecksList(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks( - int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks(int index); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ int getReadinessChecksCount(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List< - ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> + java.util.List getReadinessChecksOrBuilderList(); /** - * - * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder - getReadinessChecksOrBuilder(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( + int index); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -965,16 +745,12 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadine
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return A list containing the replicaZones. */ - java.util.List getReplicaZonesList(); + java.util.List + getReplicaZonesList(); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -985,16 +761,11 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadine
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @return The count of replicaZones. */ int getReplicaZonesCount(); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -1005,17 +776,12 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadine
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the element to return. * @return The replicaZones at the given index. */ java.lang.String getReplicaZones(int index); /** - * - * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -1026,18 +792,14 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadine
    * Immutable after the workstation configuration is created.
    * 
* - * - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; - * - * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - com.google.protobuf.ByteString getReplicaZonesBytes(int index); + com.google.protobuf.ByteString + getReplicaZonesBytes(int index); /** - * - * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -1046,70 +808,55 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadine
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The degraded. */ boolean getDegraded(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsList(); + java.util.List + getConditionsList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.rpc.Status getConditions(int index); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConditionsCount(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConditionsOrBuilderList(); + java.util.List + getConditionsOrBuilderList(); /** - * - * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder( + int index); /** - * - * *
    * Optional. Whether to enable Linux `auditd` logging on the workstation. When
    * enabled, a service account must also be specified that has
@@ -1119,7 +866,6 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadine
    * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The enableAuditAgent. */ boolean getEnableAuditAgent(); diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java similarity index 100% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java similarity index 75% rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java index bc51b54ff883..1f1acb95fc0d 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java +++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java @@ -1,183 +1,138 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationOrBuilder - extends +public interface WorkstationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.Workstation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Full name of this workstation.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Full name of this workstation.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uid. */ java.lang.String getUid(); /** - * - * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uid. */ - com.google.protobuf.ByteString getUidBytes(); + com.google.protobuf.ByteString + getUidBytes(); /** - * - * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The reconciling. */ boolean getReconciling(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getAnnotationsCount(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsAnnotations( + java.lang.String key); + /** + * Use {@link #getAnnotationsMap()} instead. */ - boolean containsAnnotations(java.lang.String key); - /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map getAnnotations(); + java.util.Map + getAnnotations(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getAnnotationsMap(); + java.util.Map + getAnnotationsMap(); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ - java.lang.String getAnnotationsOrDefault( +java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getAnnotationsOrThrow(java.lang.String key); + java.lang.String getAnnotationsOrThrow( + java.lang.String key); /** - * - * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -189,8 +144,6 @@ java.lang.String getAnnotationsOrDefault(
    */
   int getLabelsCount();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -200,13 +153,15 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(java.lang.String key);
-  /** Use {@link #getLabelsMap()} instead. */
+  boolean containsLabels(
+      java.lang.String key);
+  /**
+   * Use {@link #getLabelsMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getLabels();
+  java.util.Map
+  getLabels();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -216,10 +171,9 @@ java.lang.String getAnnotationsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getLabelsMap();
+  java.util.Map
+  getLabelsMap();
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -230,13 +184,11 @@ java.lang.String getAnnotationsOrDefault(
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getLabelsOrDefault(
+java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -246,166 +198,121 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(java.lang.String key);
+  java.lang.String getLabelsOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -413,13 +320,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The etag. */ java.lang.String getEtag(); /** - * - * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -427,43 +331,31 @@ java.lang.String getLabelsOrDefault(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for etag. */ - com.google.protobuf.ByteString getEtagBytes(); + com.google.protobuf.ByteString + getEtagBytes(); /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. Current state of the workstation.
    * 
* - * - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.workstations.v1beta.Workstation.State getState(); /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -473,13 +365,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -489,14 +378,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); /** - * - * *
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -506,8 +393,6 @@ java.lang.String getLabelsOrDefault(
    */
   int getEnvCount();
   /**
-   *
-   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -515,13 +400,15 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsEnv(java.lang.String key);
-  /** Use {@link #getEnvMap()} instead. */
+  boolean containsEnv(
+      java.lang.String key);
+  /**
+   * Use {@link #getEnvMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getEnv();
+  java.util.Map
+  getEnv();
   /**
-   *
-   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -529,10 +416,9 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map getEnvMap();
+  java.util.Map
+  getEnvMap();
   /**
-   *
-   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -541,13 +427,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-  java.lang.String getEnvOrDefault(
+java.lang.String getEnvOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -555,5 +439,6 @@ java.lang.String getEnvOrDefault(
    *
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getEnvOrThrow(java.lang.String key);
+  java.lang.String getEnvOrThrow(
+      java.lang.String key);
 }
diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java
new file mode 100644
index 000000000000..0c09805a03d1
--- /dev/null
+++ b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java
@@ -0,0 +1,1054 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/workstations/v1beta/workstations.proto
+
+package com.google.cloud.workstations.v1beta;
+
+public final class WorkstationsProto {
+  private WorkstationsProto() {}
+  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_workstations_v1beta_WorkstationCluster_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_Workstation_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n3google/cloud/workstations/v1beta/works" +
+      "tations.proto\022 google.cloud.workstations" +
+      ".v1beta\032\034google/api/annotations.proto\032\027g" +
+      "oogle/api/client.proto\032\037google/api/field" +
+      "_behavior.proto\032\031google/api/resource.pro" +
+      "to\032#google/longrunning/operations.proto\032" +
+      "\036google/protobuf/duration.proto\032 google/" +
+      "protobuf/field_mask.proto\032\037google/protob" +
+      "uf/timestamp.proto\032\027google/rpc/status.pr" +
+      "oto\"\246\t\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t" +
+      "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(" +
+      "\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022`\n\013an" +
+      "notations\030\005 \003(\0132E.google.cloud.workstati" +
+      "ons.v1beta.WorkstationCluster.Annotation" +
+      "sEntryB\004\342A\001\001\022V\n\006labels\030\017 \003(\0132@.google.cl" +
+      "oud.workstations.v1beta.WorkstationClust" +
+      "er.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 \001(" +
+      "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013u" +
+      "pdate_time\030\007 \001(\0132\032.google.protobuf.Times" +
+      "tampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google" +
+      ".protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB" +
+      "\004\342A\001\001\022\025\n\007network\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwo" +
+      "rk\030\013 \001(\tB\004\342A\001\005\022\036\n\020control_plane_ip\030\020 \001(\t" +
+      "B\004\342A\001\003\022o\n\026private_cluster_config\030\014 \001(\0132I" +
+      ".google.cloud.workstations.v1beta.Workst" +
+      "ationCluster.PrivateClusterConfigB\004\342A\001\001\022" +
+      "\026\n\010degraded\030\r \001(\010B\004\342A\001\003\022,\n\nconditions\030\016 " +
+      "\003(\0132\022.google.rpc.StatusB\004\342A\001\003\032\243\001\n\024Privat" +
+      "eClusterConfig\022%\n\027enable_private_endpoin" +
+      "t\030\001 \001(\010B\004\342A\001\005\022\036\n\020cluster_hostname\030\002 \001(\tB" +
+      "\004\342A\001\003\022$\n\026service_attachment_uri\030\003 \001(\tB\004\342" +
+      "A\001\003\022\036\n\020allowed_projects\030\004 \003(\tB\004\342A\001\001\0322\n\020A" +
+      "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
+      "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" +
+      "alue\030\002 \001(\t:\0028\001:\263\001\352A\257\001\n.workstations.goog" +
+      "leapis.com/WorkstationCluster\022Qprojects/" +
+      "{project}/locations/{location}/workstati" +
+      "onClusters/{workstation_cluster}*\023workst" +
+      "ationClusters2\022workstationClusterR\001\001\"\375\036\n" +
+      "\021WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014disp" +
+      "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022" +
+      "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022_\n\013annotation" +
+      "s\030\005 \003(\0132D.google.cloud.workstations.v1be" +
+      "ta.WorkstationConfig.AnnotationsEntryB\004\342" +
+      "A\001\001\022U\n\006labels\030\022 \003(\0132?.google.cloud.works" +
+      "tations.v1beta.WorkstationConfig.LabelsE" +
+      "ntryB\004\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google" +
+      ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" +
+      "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" +
+      "\0225\n\013delete_time\030\010 \001(\0132\032.google.protobuf." +
+      "TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\0225\n\014i" +
+      "dle_timeout\030\n \001(\0132\031.google.protobuf.Dura" +
+      "tionB\004\342A\001\001\0228\n\017running_timeout\030\013 \001(\0132\031.go" +
+      "ogle.protobuf.DurationB\004\342A\001\001\022L\n\004host\030\014 \001" +
+      "(\01328.google.cloud.workstations.v1beta.Wo" +
+      "rkstationConfig.HostB\004\342A\001\001\022m\n\026persistent" +
+      "_directories\030\r \003(\0132G.google.cloud.workst" +
+      "ations.v1beta.WorkstationConfig.Persiste" +
+      "ntDirectoryB\004\342A\001\001\022k\n\025ephemeral_directori" +
+      "es\030\026 \003(\0132F.google.cloud.workstations.v1b" +
+      "eta.WorkstationConfig.EphemeralDirectory" +
+      "B\004\342A\001\001\022V\n\tcontainer\030\016 \001(\0132=.google.cloud" +
+      ".workstations.v1beta.WorkstationConfig.C" +
+      "ontainerB\004\342A\001\001\022g\n\016encryption_key\030\021 \001(\0132I" +
+      ".google.cloud.workstations.v1beta.Workst" +
+      "ationConfig.CustomerEncryptionKeyB\004\342A\001\005\022" +
+      "b\n\020readiness_checks\030\023 \003(\0132B.google.cloud" +
+      ".workstations.v1beta.WorkstationConfig.R" +
+      "eadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030\027 \003" +
+      "(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\ncon" +
+      "ditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A\001\003\022" +
+      " \n\022enable_audit_agent\030\024 \001(\010B\004\342A\001\001\032\266\010\n\004Ho" +
+      "st\022\\\n\014gce_instance\030\001 \001(\0132D.google.cloud." +
+      "workstations.v1beta.WorkstationConfig.Ho" +
+      "st.GceInstanceH\000\032\305\007\n\013GceInstance\022\032\n\014mach" +
+      "ine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_account\030" +
+      "\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scopes\030\003 " +
+      "\003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpool_si" +
+      "ze\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030\014 \001(\005" +
+      "B\004\342A\001\003\022)\n\033disable_public_ip_addresses\030\006 " +
+      "\001(\010B\004\342A\001\001\022*\n\034enable_nested_virtualizatio" +
+      "n\030\007 \001(\010B\004\342A\001\001\022\206\001\n\030shielded_instance_conf" +
+      "ig\030\010 \001(\0132^.google.cloud.workstations.v1b" +
+      "eta.WorkstationConfig.Host.GceInstance.G" +
+      "ceShieldedInstanceConfigB\004\342A\001\001\022\216\001\n\034confi" +
+      "dential_instance_config\030\n \001(\0132b.google.c" +
+      "loud.workstations.v1beta.WorkstationConf" +
+      "ig.Host.GceInstance.GceConfidentialInsta" +
+      "nceConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001" +
+      "(\005B\004\342A\001\001\022l\n\014accelerators\030\013 \003(\0132P.google." +
+      "cloud.workstations.v1beta.WorkstationCon" +
+      "fig.Host.GceInstance.AcceleratorB\004\342A\001\001\032\203" +
+      "\001\n\031GceShieldedInstanceConfig\022 \n\022enable_s" +
+      "ecure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_vtpm\030\002 " +
+      "\001(\010B\004\342A\001\001\022)\n\033enable_integrity_monitoring" +
+      "\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialInstanceC" +
+      "onfig\022)\n\033enable_confidential_compute\030\001 \001" +
+      "(\010B\004\342A\001\001\0326\n\013Accelerator\022\022\n\004type\030\001 \001(\tB\004\342" +
+      "A\001\001\022\023\n\005count\030\002 \001(\005B\004\342A\001\001B\010\n\006config\032\223\004\n\023P" +
+      "ersistentDirectory\022s\n\006gce_pd\030\002 \001(\0132a.goo" +
+      "gle.cloud.workstations.v1beta.Workstatio" +
+      "nConfig.PersistentDirectory.GceRegionalP" +
+      "ersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001" +
+      "\001\032\332\002\n\031GceRegionalPersistentDisk\022\025\n\007size_" +
+      "gb\030\001 \001(\005B\004\342A\001\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n" +
+      "\tdisk_type\030\003 \001(\tB\004\342A\001\001\022\035\n\017source_snapsho" +
+      "t\030\005 \001(\tB\004\342A\001\001\022\215\001\n\016reclaim_policy\030\004 \001(\0162o" +
+      ".google.cloud.workstations.v1beta.Workst" +
+      "ationConfig.PersistentDirectory.GceRegio" +
+      "nalPersistentDisk.ReclaimPolicyB\004\342A\001\001\"G\n" +
+      "\rReclaimPolicy\022\036\n\032RECLAIM_POLICY_UNSPECI" +
+      "FIED\020\000\022\n\n\006DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016direct" +
+      "ory_type\032\257\002\n\022EphemeralDirectory\022j\n\006gce_p" +
+      "d\030\003 \001(\0132X.google.cloud.workstations.v1be" +
+      "ta.WorkstationConfig.EphemeralDirectory." +
+      "GcePersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB" +
+      "\004\342A\001\002\032\200\001\n\021GcePersistentDisk\022\027\n\tdisk_type" +
+      "\030\001 \001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\002 \001(\tB\004\342" +
+      "A\001\001\022\032\n\014source_image\030\003 \001(\tB\004\342A\001\001\022\027\n\tread_" +
+      "only\030\004 \001(\010B\004\342A\001\001B\020\n\016directory_type\032\210\002\n\tC" +
+      "ontainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command" +
+      "\030\002 \003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022Y\n\003env\030" +
+      "\004 \003(\0132F.google.cloud.workstations.v1beta" +
+      ".WorkstationConfig.Container.EnvEntryB\004\342" +
+      "A\001\001\022\031\n\013working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as" +
+      "_user\030\006 \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001" +
+      "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032U\n\025CustomerEncrypt" +
+      "ionKey\022\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key" +
+      "_service_account\030\002 \001(\tB\004\342A\001\005\0328\n\016Readines" +
+      "sCheck\022\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005" +
+      "B\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" +
+      "\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key" +
+      "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workst" +
+      "ations.googleapis.com/WorkstationConfig\022" +
+      "yprojects/{project}/locations/{location}" +
+      "/workstationClusters/{workstation_cluste" +
+      "r}/workstationConfigs/{workstation_confi" +
+      "g}*\022workstationConfigs2\021workstationConfi" +
+      "gR\001\001\"\213\t\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014di" +
+      "splay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001" +
+      "\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022Y\n\013annotati" +
+      "ons\030\005 \003(\0132>.google.cloud.workstations.v1" +
+      "beta.Workstation.AnnotationsEntryB\004\342A\001\001\022" +
+      "O\n\006labels\030\r \003(\01329.google.cloud.workstati" +
+      "ons.v1beta.Workstation.LabelsEntryB\004\342A\001\001" +
+      "\0225\n\013create_time\030\006 \001(\0132\032.google.protobuf." +
+      "TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\0132\032.g" +
+      "oogle.protobuf.TimestampB\004\342A\001\003\0224\n\nstart_" +
+      "time\030\016 \001(\0132\032.google.protobuf.TimestampB\004" +
+      "\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google.proto" +
+      "buf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022" +
+      "H\n\005state\030\n \001(\01623.google.cloud.workstatio" +
+      "ns.v1beta.Workstation.StateB\004\342A\001\003\022\022\n\004hos" +
+      "t\030\013 \001(\tB\004\342A\001\003\022I\n\003env\030\014 \003(\01326.google.clou" +
+      "d.workstations.v1beta.Workstation.EnvEnt" +
+      "ryB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(" +
+      "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" +
+      "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032*\n\010EnvEntry\022" +
+      "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"l\n\005State" +
+      "\022\025\n\021STATE_UNSPECIFIED\020\000\022\022\n\016STATE_STARTIN" +
+      "G\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n\016STATE_STOPPING" +
+      "\020\003\022\021\n\rSTATE_STOPPED\020\004:\342\001\352A\336\001\n\'workstatio" +
+      "ns.googleapis.com/Workstation\022\224\001projects" +
+      "/{project}/locations/{location}/workstat" +
+      "ionClusters/{workstation_cluster}/workst" +
+      "ationConfigs/{workstation_config}/workst" +
+      "ations/{workstation}*\014workstations2\013work" +
+      "stationR\001\001\"e\n\034GetWorkstationClusterReque" +
+      "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.workstations." +
+      "googleapis.com/WorkstationCluster\"\234\001\n\036Li" +
+      "stWorkstationClustersRequest\022G\n\006parent\030\001" +
+      " \001(\tB7\342A\001\002\372A0\022.workstations.googleapis.c" +
+      "om/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005" +
+      "B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\243\001\n\037Lis" +
+      "tWorkstationClustersResponse\022R\n\024workstat" +
+      "ion_clusters\030\001 \003(\01324.google.cloud.workst" +
+      "ations.v1beta.WorkstationCluster\022\027\n\017next" +
+      "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206" +
+      "\002\n\037CreateWorkstationClusterRequest\022G\n\006pa" +
+      "rent\030\001 \001(\tB7\342A\001\002\372A0\022.workstations.google" +
+      "apis.com/WorkstationCluster\022$\n\026workstati" +
+      "on_cluster_id\030\002 \001(\tB\004\342A\001\002\022W\n\023workstation" +
+      "_cluster\030\003 \001(\01324.google.cloud.workstatio" +
+      "ns.v1beta.WorkstationClusterB\004\342A\001\002\022\033\n\rva" +
+      "lidate_only\030\004 \001(\010B\004\342A\001\001\"\353\001\n\037UpdateWorkst" +
+      "ationClusterRequest\022W\n\023workstation_clust" +
+      "er\030\001 \001(\01324.google.cloud.workstations.v1b" +
+      "eta.WorkstationClusterB\004\342A\001\002\0225\n\013update_m" +
+      "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342" +
+      "A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallo" +
+      "w_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037DeleteWorkstat" +
+      "ionClusterRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0" +
+      "\n.workstations.googleapis.com/Workstatio" +
+      "nCluster\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n" +
+      "\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"c" +
+      "\n\033GetWorkstationConfigRequest\022D\n\004name\030\001 " +
+      "\001(\tB6\342A\001\002\372A/\n-workstations.googleapis.co" +
+      "m/WorkstationConfig\"\233\001\n\035ListWorkstationC" +
+      "onfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n." +
+      "workstations.googleapis.com/WorkstationC" +
+      "luster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" +
+      "token\030\003 \001(\tB\004\342A\001\001\"\240\001\n\036ListWorkstationCon" +
+      "figsResponse\022P\n\023workstation_configs\030\001 \003(" +
+      "\01323.google.cloud.workstations.v1beta.Wor" +
+      "kstationConfig\022\027\n\017next_page_token\030\002 \001(\t\022" +
+      "\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsableWorks" +
+      "tationConfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A" +
+      "\001\002\372A0\n.workstations.googleapis.com/Works" +
+      "tationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030" +
+      "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\246\001\n$ListUsableW" +
+      "orkstationConfigsResponse\022P\n\023workstation" +
+      "_configs\030\001 \003(\01323.google.cloud.workstatio" +
+      "ns.v1beta.WorkstationConfig\022\027\n\017next_page" +
+      "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\002\n\036Cr" +
+      "eateWorkstationConfigRequest\022G\n\006parent\030\001" +
+      " \001(\tB7\342A\001\002\372A0\n.workstations.googleapis.c" +
+      "om/WorkstationCluster\022#\n\025workstation_con" +
+      "fig_id\030\002 \001(\tB\004\342A\001\002\022U\n\022workstation_config" +
+      "\030\003 \001(\01323.google.cloud.workstations.v1bet" +
+      "a.WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_on" +
+      "ly\030\004 \001(\010B\004\342A\001\001\"\350\001\n\036UpdateWorkstationConf" +
+      "igRequest\022U\n\022workstation_config\030\001 \001(\01323." +
+      "google.cloud.workstations.v1beta.Worksta" +
+      "tionConfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032." +
+      "google.protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalid" +
+      "ate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 " +
+      "\001(\010B\004\342A\001\001\"\254\001\n\036DeleteWorkstationConfigReq" +
+      "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstation" +
+      "s.googleapis.com/WorkstationConfig\022\033\n\rva" +
+      "lidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342" +
+      "A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstati" +
+      "onRequest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workst" +
+      "ations.googleapis.com/Workstation\"\224\001\n\027Li" +
+      "stWorkstationsRequest\022F\n\006parent\030\001 \001(\tB6\342" +
+      "A\001\002\372A/\n-workstations.googleapis.com/Work" +
+      "stationConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030" +
+      "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\231\001\n\030ListWorksta" +
+      "tionsResponse\022C\n\014workstations\030\001 \003(\0132-.go" +
+      "ogle.cloud.workstations.v1beta.Workstati" +
+      "on\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unr" +
+      "eachable\030\003 \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorks" +
+      "tationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n" +
+      "-workstations.googleapis.com/Workstation" +
+      "Config\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" +
+      "token\030\003 \001(\tB\004\342A\001\001\"\223\001\n\036ListUsableWorkstat" +
+      "ionsResponse\022C\n\014workstations\030\001 \003(\0132-.goo" +
+      "gle.cloud.workstations.v1beta.Workstatio" +
+      "n\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" +
+      "e\030\003 \003(\t\"\347\001\n\030CreateWorkstationRequest\022F\n\006" +
+      "parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog" +
+      "leapis.com/WorkstationConfig\022\034\n\016workstat" +
+      "ion_id\030\002 \001(\tB\004\342A\001\002\022H\n\013workstation\030\003 \001(\0132" +
+      "-.google.cloud.workstations.v1beta.Works" +
+      "tationB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001" +
+      "\001\"\325\001\n\030UpdateWorkstationRequest\022H\n\013workst" +
+      "ation\030\001 \001(\0132-.google.cloud.workstations." +
+      "v1beta.WorkstationB\004\342A\001\002\0225\n\013update_mask\030" +
+      "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022" +
+      "\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_mi" +
+      "ssing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030DeleteWorkstationR" +
+      "equest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstati" +
+      "ons.googleapis.com/Workstation\022\033\n\rvalida" +
+      "te_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"" +
+      "\212\001\n\027StartWorkstationRequest\022>\n\004name\030\001 \001(" +
+      "\tB0\342A\001\002\372A)\n\'workstations.googleapis.com/" +
+      "Workstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001" +
+      "\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211\001\n\026StopWorkstation" +
+      "Request\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstat" +
+      "ions.googleapis.com/Workstation\022\033\n\rvalid" +
+      "ate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001" +
+      "\"\316\001\n\032GenerateAccessTokenRequest\0221\n\013expir" +
+      "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" +
+      "H\000\022(\n\003ttl\030\003 \001(\0132\031.google.protobuf.Durati" +
+      "onH\000\022E\n\013workstation\030\001 \001(\tB0\342A\001\002\372A)\n\'work" +
+      "stations.googleapis.com/WorkstationB\014\n\ne" +
+      "xpiration\"d\n\033GenerateAccessTokenResponse" +
+      "\022\024\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 " +
+      "\001(\0132\032.google.protobuf.Timestamp\"\207\002\n\021Oper" +
+      "ationMetadata\0225\n\013create_time\030\001 \001(\0132\032.goo" +
+      "gle.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time" +
+      "\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" +
+      "\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A" +
+      "\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n\026requ" +
+      "ested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_ve" +
+      "rsion\030\007 \001(\tB\004\342A\001\0032\337+\n\014Workstations\022\331\001\n\025G" +
+      "etWorkstationCluster\022>.google.cloud.work" +
+      "stations.v1beta.GetWorkstationClusterReq" +
+      "uest\0324.google.cloud.workstations.v1beta." +
+      "WorkstationCluster\"J\332A\004name\202\323\344\223\002=\022;/v1be" +
+      "ta/{name=projects/*/locations/*/workstat" +
+      "ionClusters/*}\022\354\001\n\027ListWorkstationCluste" +
+      "rs\022@.google.cloud.workstations.v1beta.Li" +
+      "stWorkstationClustersRequest\032A.google.cl" +
+      "oud.workstations.v1beta.ListWorkstationC" +
+      "lustersResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1bet" +
+      "a/{parent=projects/*/locations/*}/workst" +
+      "ationClusters\022\265\002\n\030CreateWorkstationClust" +
+      "er\022A.google.cloud.workstations.v1beta.Cr" +
+      "eateWorkstationClusterRequest\032\035.google.l" +
+      "ongrunning.Operation\"\266\001\312A\'\n\022WorkstationC" +
+      "luster\022\021OperationMetadata\332A1parent,works" +
+      "tation_cluster,workstation_cluster_id\202\323\344" +
+      "\223\002R\";/v1beta/{parent=projects/*/location" +
+      "s/*}/workstationClusters:\023workstation_cl" +
+      "uster\022\267\002\n\030UpdateWorkstationCluster\022A.goo" +
+      "gle.cloud.workstations.v1beta.UpdateWork" +
+      "stationClusterRequest\032\035.google.longrunni" +
+      "ng.Operation\"\270\001\312A\'\n\022WorkstationCluster\022\021" +
+      "OperationMetadata\332A\037workstation_cluster," +
+      "update_mask\202\323\344\223\002f2O/v1beta/{workstation_" +
+      "cluster.name=projects/*/locations/*/work" +
+      "stationClusters/*}:\023workstation_cluster\022" +
+      "\362\001\n\030DeleteWorkstationCluster\022A.google.cl" +
+      "oud.workstations.v1beta.DeleteWorkstatio" +
+      "nClusterRequest\032\035.google.longrunning.Ope" +
+      "ration\"t\312A\'\n\022WorkstationCluster\022\021Operati" +
+      "onMetadata\332A\004name\202\323\344\223\002=*;/v1beta/{name=p" +
+      "rojects/*/locations/*/workstationCluster" +
+      "s/*}\022\353\001\n\024GetWorkstationConfig\022=.google.c" +
+      "loud.workstations.v1beta.GetWorkstationC" +
+      "onfigRequest\0323.google.cloud.workstations" +
+      ".v1beta.WorkstationConfig\"_\332A\004name\202\323\344\223\002R" +
+      "\022P/v1beta/{name=projects/*/locations/*/w" +
+      "orkstationClusters/*/workstationConfigs/" +
+      "*}\022\376\001\n\026ListWorkstationConfigs\022?.google.c" +
+      "loud.workstations.v1beta.ListWorkstation" +
+      "ConfigsRequest\032@.google.cloud.workstatio" +
+      "ns.v1beta.ListWorkstationConfigsResponse" +
+      "\"a\332A\006parent\202\323\344\223\002R\022P/v1beta/{parent=proje" +
+      "cts/*/locations/*/workstationClusters/*}" +
+      "/workstationConfigs\022\233\002\n\034ListUsableWorkst" +
+      "ationConfigs\022E.google.cloud.workstations" +
+      ".v1beta.ListUsableWorkstationConfigsRequ" +
+      "est\032F.google.cloud.workstations.v1beta.L" +
+      "istUsableWorkstationConfigsResponse\"l\332A\006" +
+      "parent\202\323\344\223\002]\022[/v1beta/{parent=projects/*" +
+      "/locations/*/workstationClusters/*}/work" +
+      "stationConfigs:listUsable\022\304\002\n\027CreateWork" +
+      "stationConfig\022@.google.cloud.workstation" +
+      "s.v1beta.CreateWorkstationConfigRequest\032" +
+      "\035.google.longrunning.Operation\"\307\001\312A&\n\021Wo" +
+      "rkstationConfig\022\021OperationMetadata\332A/par" +
+      "ent,workstation_config,workstation_confi" +
+      "g_id\202\323\344\223\002f\"P/v1beta/{parent=projects/*/l" +
+      "ocations/*/workstationClusters/*}/workst" +
+      "ationConfigs:\022workstation_config\022\306\002\n\027Upd" +
+      "ateWorkstationConfig\022@.google.cloud.work" +
+      "stations.v1beta.UpdateWorkstationConfigR" +
+      "equest\032\035.google.longrunning.Operation\"\311\001" +
+      "\312A&\n\021WorkstationConfig\022\021OperationMetadat" +
+      "a\332A\036workstation_config,update_mask\202\323\344\223\002y" +
+      "2c/v1beta/{workstation_config.name=proje" +
+      "cts/*/locations/*/workstationClusters/*/" +
+      "workstationConfigs/*}:\022workstation_confi" +
+      "g\022\205\002\n\027DeleteWorkstationConfig\022@.google.c" +
+      "loud.workstations.v1beta.DeleteWorkstati" +
+      "onConfigRequest\032\035.google.longrunning.Ope" +
+      "ration\"\210\001\312A&\n\021WorkstationConfig\022\021Operati" +
+      "onMetadata\332A\004name\202\323\344\223\002R*P/v1beta/{name=p" +
+      "rojects/*/locations/*/workstationCluster" +
+      "s/*/workstationConfigs/*}\022\350\001\n\016GetWorksta" +
+      "tion\0227.google.cloud.workstations.v1beta." +
+      "GetWorkstationRequest\032-.google.cloud.wor" +
+      "kstations.v1beta.Workstation\"n\332A\004name\202\323\344" +
+      "\223\002a\022_/v1beta/{name=projects/*/locations/" +
+      "*/workstationClusters/*/workstationConfi" +
+      "gs/*/workstations/*}\022\373\001\n\020ListWorkstation" +
+      "s\0229.google.cloud.workstations.v1beta.Lis" +
+      "tWorkstationsRequest\032:.google.cloud.work" +
+      "stations.v1beta.ListWorkstationsResponse" +
+      "\"p\332A\006parent\202\323\344\223\002a\022_/v1beta/{parent=proje" +
+      "cts/*/locations/*/workstationClusters/*/" +
+      "workstationConfigs/*}/workstations\022\230\002\n\026L" +
+      "istUsableWorkstations\022?.google.cloud.wor" +
+      "kstations.v1beta.ListUsableWorkstationsR" +
+      "equest\032@.google.cloud.workstations.v1bet" +
+      "a.ListUsableWorkstationsResponse\"{\332A\006par" +
+      "ent\202\323\344\223\002l\022j/v1beta/{parent=projects/*/lo" +
+      "cations/*/workstationClusters/*/workstat" +
+      "ionConfigs/*}/workstations:listUsable\022\254\002" +
+      "\n\021CreateWorkstation\022:.google.cloud.works" +
+      "tations.v1beta.CreateWorkstationRequest\032" +
+      "\035.google.longrunning.Operation\"\273\001\312A \n\013Wo" +
+      "rkstation\022\021OperationMetadata\332A!parent,wo" +
+      "rkstation,workstation_id\202\323\344\223\002n\"_/v1beta/" +
+      "{parent=projects/*/locations/*/workstati" +
+      "onClusters/*/workstationConfigs/*}/works" +
+      "tations:\013workstation\022\256\002\n\021UpdateWorkstati" +
+      "on\022:.google.cloud.workstations.v1beta.Up" +
+      "dateWorkstationRequest\032\035.google.longrunn" +
+      "ing.Operation\"\275\001\312A \n\013Workstation\022\021Operat" +
+      "ionMetadata\332A\027workstation,update_mask\202\323\344" +
+      "\223\002z2k/v1beta/{workstation.name=projects/" +
+      "*/locations/*/workstationClusters/*/work" +
+      "stationConfigs/*/workstations/*}:\013workst" +
+      "ation\022\202\002\n\021DeleteWorkstation\022:.google.clo" +
+      "ud.workstations.v1beta.DeleteWorkstation" +
+      "Request\032\035.google.longrunning.Operation\"\221" +
+      "\001\312A \n\013Workstation\022\021OperationMetadata\332A\004n" +
+      "ame\202\323\344\223\002a*_/v1beta/{name=projects/*/loca",
+      "tions/*/workstationClusters/*/workstatio" +
+      "nConfigs/*/workstations/*}\022\211\002\n\020StartWork" +
+      "station\0229.google.cloud.workstations.v1be" +
+      "ta.StartWorkstationRequest\032\035.google.long" +
+      "running.Operation\"\232\001\312A \n\013Workstation\022\021Op" +
+      "erationMetadata\332A\004name\202\323\344\223\002j\"e/v1beta/{n" +
+      "ame=projects/*/locations/*/workstationCl" +
+      "usters/*/workstationConfigs/*/workstatio" +
+      "ns/*}:start:\001*\022\206\002\n\017StopWorkstation\0228.goo" +
+      "gle.cloud.workstations.v1beta.StopWorkst" +
+      "ationRequest\032\035.google.longrunning.Operat" +
+      "ion\"\231\001\312A \n\013Workstation\022\021OperationMetadat" +
+      "a\332A\004name\202\323\344\223\002i\"d/v1beta/{name=projects/*" +
+      "/locations/*/workstationClusters/*/works" +
+      "tationConfigs/*/workstations/*}:stop:\001*\022" +
+      "\250\002\n\023GenerateAccessToken\022<.google.cloud.w" +
+      "orkstations.v1beta.GenerateAccessTokenRe" +
+      "quest\032=.google.cloud.workstations.v1beta" +
+      ".GenerateAccessTokenResponse\"\223\001\332A\013workst" +
+      "ation\202\323\344\223\002\177\"z/v1beta/{workstation=projec" +
+      "ts/*/locations/*/workstationClusters/*/w" +
+      "orkstationConfigs/*/workstations/*}:gene" +
+      "rateAccessToken:\001*\032O\312A\033workstations.goog" +
+      "leapis.com\322A.https://www.googleapis.com/" +
+      "auth/cloud-platformB\205\001\n$com.google.cloud" +
+      ".workstations.v1betaB\021WorkstationsProtoP" +
+      "\001ZHcloud.google.com/go/workstations/apiv" +
+      "1beta/workstationspb;workstationspbb\006pro" +
+      "to3"
+    };
+    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.longrunning.OperationsProto.getDescriptor(),
+          com.google.protobuf.DurationProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+          com.google.rpc.StatusProto.getDescriptor(),
+        });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "ControlPlaneIp", "PrivateClusterConfig", "Degraded", "Conditions", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor,
+        new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(2);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "EphemeralDirectories", "Container", "EncryptionKey", "ReadinessChecks", "ReplicaZones", "Degraded", "Conditions", "EnableAuditAgent", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor,
+        new java.lang.String[] { "GceInstance", "Config", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor,
+        new java.lang.String[] { "MachineType", "ServiceAccount", "ServiceAccountScopes", "Tags", "PoolSize", "PooledInstances", "DisablePublicIpAddresses", "EnableNestedVirtualization", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", "Accelerators", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor,
+        new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor,
+        new java.lang.String[] { "EnableConfidentialCompute", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(2);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor,
+        new java.lang.String[] { "Type", "Count", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor,
+        new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor,
+        new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(2);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor,
+        new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor,
+        new java.lang.String[] { "DiskType", "SourceSnapshot", "SourceImage", "ReadOnly", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(3);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor,
+        new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(4);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor,
+        new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(5);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor,
+        new java.lang.String[] { "Path", "Port", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(6);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(7);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_Workstation_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_Workstation_descriptor,
+        new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "StartTime", "DeleteTime", "Etag", "State", "Host", "Env", });
+    internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(1);
+    internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor =
+      internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(2);
+    internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor,
+        new java.lang.String[] { "Key", "Value", });
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor,
+        new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", });
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor,
+        new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", });
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor,
+        new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", });
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor,
+        new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", });
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor,
+        new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor,
+        new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", });
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor,
+        new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", });
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor,
+        new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", });
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor =
+      getDescriptor().getMessageTypes().get(16);
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor,
+        new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", });
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(17);
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(18);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(19);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor,
+        new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor =
+      getDescriptor().getMessageTypes().get(20);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor =
+      getDescriptor().getMessageTypes().get(21);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor,
+        new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", });
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(22);
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor,
+        new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", });
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(23);
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor,
+        new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", });
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(24);
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor,
+        new java.lang.String[] { "Name", "ValidateOnly", "Etag", });
+    internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(25);
+    internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor,
+        new java.lang.String[] { "Name", "ValidateOnly", "Etag", });
+    internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor =
+      getDescriptor().getMessageTypes().get(26);
+    internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor,
+        new java.lang.String[] { "Name", "ValidateOnly", "Etag", });
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor =
+      getDescriptor().getMessageTypes().get(27);
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor,
+        new java.lang.String[] { "ExpireTime", "Ttl", "Workstation", "Expiration", });
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor =
+      getDescriptor().getMessageTypes().get(28);
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor,
+        new java.lang.String[] { "AccessToken", "ExpireTime", });
+    internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor =
+      getDescriptor().getMessageTypes().get(29);
+    internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor,
+        new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", });
+    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.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    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.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.rpc.StatusProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto
similarity index 100%
rename from java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto
rename to owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
diff --git a/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
rename to owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java

From c8b9e97d048d65d94e0be0eb7bca175104ae454f Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Mon, 8 Jan 2024 21:48:17 +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
---
 java-websecurityscanner/README.md             |     2 +-
 .../v1/WebSecurityScannerClient.java          |     0
 .../v1/WebSecurityScannerSettings.java        |     1 -
 .../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  |     0
 .../v1alpha/WebSecurityScannerClient.java     |     0
 .../v1alpha/WebSecurityScannerSettings.java   |     1 -
 .../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  |     0
 .../v1beta/WebSecurityScannerClient.java      |     0
 .../v1beta/WebSecurityScannerSettings.java    |     1 -
 .../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  |     0
 .../reflect-config.json                       |     0
 .../reflect-config.json                       |     0
 .../reflect-config.json                       |     0
 .../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            |  1844 +++
 .../v1alpha/WebSecurityScannerGrpc.java       |  1865 +++
 .../v1beta/WebSecurityScannerGrpc.java        |  1859 +++
 .../websecurityscanner/v1/CrawledUrl.java     |   463 +-
 .../v1/CrawledUrlOrBuilder.java               |    45 +-
 .../v1/CrawledUrlProto.java                   |    69 +
 .../v1/CreateScanConfigRequest.java           |   437 +-
 .../v1/CreateScanConfigRequestOrBuilder.java  |    35 +-
 .../v1/DeleteScanConfigRequest.java           |   342 +-
 .../v1/DeleteScanConfigRequestOrBuilder.java  |    27 +-
 .../cloud/websecurityscanner/v1/Finding.java  |  1942 ++-
 .../v1/FindingAddonProto.java                 |   182 +
 .../v1/FindingOrBuilder.java                  |   202 +-
 .../websecurityscanner/v1/FindingProto.java   |   126 +
 .../v1/FindingTypeStats.java                  |   353 +-
 .../v1/FindingTypeStatsOrBuilder.java         |    30 +-
 .../v1/FindingTypeStatsProto.java             |    69 +
 .../cloud/websecurityscanner/v1/Form.java     |   420 +-
 .../websecurityscanner/v1/FormOrBuilder.java  |    45 +-
 .../v1/GetFindingRequest.java                 |   322 +-
 .../v1/GetFindingRequestOrBuilder.java        |    27 +-
 .../v1/GetScanConfigRequest.java              |   322 +-
 .../v1/GetScanConfigRequestOrBuilder.java     |    27 +-
 .../v1/GetScanRunRequest.java                 |   322 +-
 .../v1/GetScanRunRequestOrBuilder.java        |    27 +-
 .../v1/ListCrawledUrlsRequest.java            |   435 +-
 .../v1/ListCrawledUrlsRequestOrBuilder.java   |    39 +-
 .../v1/ListCrawledUrlsResponse.java           |   488 +-
 .../v1/ListCrawledUrlsResponseOrBuilder.java  |    45 +-
 .../v1/ListFindingTypeStatsRequest.java       |   357 +-
 .../ListFindingTypeStatsRequestOrBuilder.java |    27 +-
 .../v1/ListFindingTypeStatsResponse.java      |   535 +-
 ...ListFindingTypeStatsResponseOrBuilder.java |    48 +-
 .../v1/ListFindingsRequest.java               |   499 +-
 .../v1/ListFindingsRequestOrBuilder.java      |    48 +-
 .../v1/ListFindingsResponse.java              |   483 +-
 .../v1/ListFindingsResponseOrBuilder.java     |    45 +-
 .../v1/ListScanConfigsRequest.java            |   435 +-
 .../v1/ListScanConfigsRequestOrBuilder.java   |    39 +-
 .../v1/ListScanConfigsResponse.java           |   488 +-
 .../v1/ListScanConfigsResponseOrBuilder.java  |    45 +-
 .../v1/ListScanRunsRequest.java               |   425 +-
 .../v1/ListScanRunsRequestOrBuilder.java      |    39 +-
 .../v1/ListScanRunsResponse.java              |   483 +-
 .../v1/ListScanRunsResponseOrBuilder.java     |    45 +-
 .../v1/OutdatedLibrary.java                   |   502 +-
 .../v1/OutdatedLibraryOrBuilder.java          |    54 +-
 .../websecurityscanner/v1/ScanConfig.java     |  5162 ++++---
 .../v1/ScanConfigError.java                   |   773 +-
 .../v1/ScanConfigErrorOrBuilder.java          |    33 +-
 .../v1/ScanConfigErrorProto.java              |   106 +
 .../v1/ScanConfigOrBuilder.java               |   132 +-
 .../v1/ScanConfigProto.java                   |   220 +
 .../cloud/websecurityscanner/v1/ScanRun.java  |  1244 +-
 .../v1/ScanRunErrorTrace.java                 |   556 +-
 .../v1/ScanRunErrorTraceOrBuilder.java        |    35 +-
 .../v1/ScanRunErrorTraceProto.java            |    83 +
 .../websecurityscanner/v1/ScanRunLog.java     |   716 +-
 .../v1/ScanRunLogOrBuilder.java               |    57 +-
 .../v1/ScanRunLogProto.java                   |    92 +
 .../v1/ScanRunOrBuilder.java                  |   105 +-
 .../websecurityscanner/v1/ScanRunProto.java   |   107 +
 .../v1/ScanRunWarningTrace.java               |   405 +-
 .../v1/ScanRunWarningTraceOrBuilder.java      |    24 +-
 .../v1/ScanRunWarningTraceProto.java          |    75 +
 .../v1/StartScanRunRequest.java               |   322 +-
 .../v1/StartScanRunRequestOrBuilder.java      |    27 +-
 .../v1/StopScanRunRequest.java                |   322 +-
 .../v1/StopScanRunRequestOrBuilder.java       |    27 +-
 .../v1/UpdateScanConfigRequest.java           |   457 +-
 .../v1/UpdateScanConfigRequestOrBuilder.java  |    34 +-
 .../v1/ViolatingResource.java                 |   394 +-
 .../v1/ViolatingResourceOrBuilder.java        |    36 +-
 .../v1/VulnerableHeaders.java                 |  1203 +-
 .../v1/VulnerableHeadersOrBuilder.java        |    71 +-
 .../v1/VulnerableParameters.java              |   358 +-
 .../v1/VulnerableParametersOrBuilder.java     |    36 +-
 .../v1/WebSecurityScannerProto.java           |   408 +
 .../cloud/websecurityscanner/v1/Xss.java      |   713 +-
 .../websecurityscanner/v1/XssOrBuilder.java   |    60 +-
 .../cloud/websecurityscanner/v1/Xxe.java      |   433 +-
 .../websecurityscanner/v1/XxeOrBuilder.java   |    33 +-
 .../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                   |   466 +-
 .../v1alpha/CrawledUrlOrBuilder.java          |    45 +-
 .../v1alpha/CrawledUrlProto.java              |    67 +
 .../v1alpha/CreateScanConfigRequest.java      |   531 +-
 .../CreateScanConfigRequestOrBuilder.java     |    97 +
 .../v1alpha/DeleteScanConfigRequest.java      |   385 +-
 .../DeleteScanConfigRequestOrBuilder.java     |    56 +
 .../websecurityscanner/v1alpha/Finding.java   |  1779 ++-
 .../v1alpha/FindingAddonProto.java            |   139 +
 .../v1alpha/FindingName.java                  |     0
 .../v1alpha/FindingOrBuilder.java             |   184 +-
 .../v1alpha/FindingProto.java                 |   121 +
 .../v1alpha/FindingTypeStats.java             |   360 +-
 .../v1alpha/FindingTypeStatsOrBuilder.java    |    27 +-
 .../v1alpha/FindingTypeStatsProto.java        |    74 +
 .../v1alpha/GetFindingRequest.java            |   360 +-
 .../v1alpha/GetFindingRequestOrBuilder.java   |    58 +
 .../v1alpha/GetScanConfigRequest.java         |   373 +-
 .../GetScanConfigRequestOrBuilder.java        |    56 +
 .../v1alpha/GetScanRunRequest.java            |   360 +-
 .../v1alpha/GetScanRunRequestOrBuilder.java   |    58 +
 .../v1alpha/ListCrawledUrlsRequest.java       |   488 +-
 .../ListCrawledUrlsRequestOrBuilder.java      |    47 +-
 .../v1alpha/ListCrawledUrlsResponse.java      |   512 +-
 .../ListCrawledUrlsResponseOrBuilder.java     |    42 +-
 .../v1alpha/ListFindingTypeStatsRequest.java  |   395 +-
 .../ListFindingTypeStatsRequestOrBuilder.java |    58 +
 .../v1alpha/ListFindingTypeStatsResponse.java |   583 +-
 ...ListFindingTypeStatsResponseOrBuilder.java |    89 +
 .../v1alpha/ListFindingsRequest.java          |   550 +-
 .../v1alpha/ListFindingsRequestOrBuilder.java |    56 +-
 .../v1alpha/ListFindingsResponse.java         |   490 +-
 .../ListFindingsResponseOrBuilder.java        |    45 +-
 .../v1alpha/ListScanConfigsRequest.java       |   488 +-
 .../ListScanConfigsRequestOrBuilder.java      |    47 +-
 .../v1alpha/ListScanConfigsResponse.java      |   512 +-
 .../ListScanConfigsResponseOrBuilder.java     |    42 +-
 .../v1alpha/ListScanRunsRequest.java          |   476 +-
 .../v1alpha/ListScanRunsRequestOrBuilder.java |    47 +-
 .../v1alpha/ListScanRunsResponse.java         |   490 +-
 .../ListScanRunsResponseOrBuilder.java        |    45 +-
 .../v1alpha/OutdatedLibrary.java              |   502 +-
 .../v1alpha/OutdatedLibraryOrBuilder.java     |    54 +-
 .../v1alpha/ProjectName.java                  |     0
 .../v1alpha/ScanConfig.java                   |  3888 +++--
 .../v1alpha/ScanConfigName.java               |     0
 .../v1alpha/ScanConfigOrBuilder.java          |   161 +-
 .../v1alpha/ScanConfigProto.java              |   183 +
 .../websecurityscanner/v1alpha/ScanRun.java   |   933 +-
 .../v1alpha/ScanRunName.java                  |     0
 .../v1alpha/ScanRunOrBuilder.java             |    73 +-
 .../v1alpha/ScanRunProto.java                 |   103 +
 .../v1alpha/StartScanRunRequest.java          |   373 +-
 .../v1alpha/StartScanRunRequestOrBuilder.java |    56 +
 .../v1alpha/StopScanRunRequest.java           |   370 +-
 .../v1alpha/StopScanRunRequestOrBuilder.java  |    58 +
 .../v1alpha/UpdateScanConfigRequest.java      |   559 +-
 .../UpdateScanConfigRequestOrBuilder.java     |    55 +-
 .../v1alpha/ViolatingResource.java            |   404 +-
 .../v1alpha/ViolatingResourceOrBuilder.java   |    36 +-
 .../v1alpha/VulnerableHeaders.java            |  1263 +-
 .../v1alpha/VulnerableHeadersOrBuilder.java   |    87 +-
 .../v1alpha/VulnerableParameters.java         |   381 +-
 .../VulnerableParametersOrBuilder.java        |    36 +-
 .../v1alpha/WebSecurityScannerProto.java      |   441 +
 .../cloud/websecurityscanner/v1alpha/Xss.java |   423 +-
 .../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 |   466 +-
 .../v1beta/CrawledUrlOrBuilder.java           |    45 +-
 .../v1beta/CrawledUrlProto.java               |    70 +
 .../v1beta/CreateScanConfigRequest.java       |   528 +-
 .../CreateScanConfigRequestOrBuilder.java     |    97 +
 .../v1beta/DeleteScanConfigRequest.java       |   385 +-
 .../DeleteScanConfigRequestOrBuilder.java     |    56 +
 .../websecurityscanner/v1beta/Finding.java    |  1720 ++-
 .../v1beta/FindingAddonProto.java             |   156 +
 .../v1beta/FindingName.java                   |     0
 .../v1beta/FindingOrBuilder.java              |   174 +-
 .../v1beta/FindingProto.java                  |   117 +
 .../v1beta/FindingTypeStats.java              |   353 +-
 .../v1beta/FindingTypeStatsOrBuilder.java     |    30 +-
 .../v1beta/FindingTypeStatsProto.java         |    70 +
 .../cloud/websecurityscanner/v1beta/Form.java |   423 +-
 .../v1beta/FormOrBuilder.java                 |    45 +-
 .../v1beta/GetFindingRequest.java             |   360 +-
 .../v1beta/GetFindingRequestOrBuilder.java    |    58 +
 .../v1beta/GetScanConfigRequest.java          |   373 +-
 .../v1beta/GetScanConfigRequestOrBuilder.java |    56 +
 .../v1beta/GetScanRunRequest.java             |   360 +-
 .../v1beta/GetScanRunRequestOrBuilder.java    |    58 +
 .../v1beta/ListCrawledUrlsRequest.java        |   484 +-
 .../ListCrawledUrlsRequestOrBuilder.java      |    47 +-
 .../v1beta/ListCrawledUrlsResponse.java       |   512 +-
 .../ListCrawledUrlsResponseOrBuilder.java     |    45 +-
 .../v1beta/ListFindingTypeStatsRequest.java   |   388 +-
 .../ListFindingTypeStatsRequestOrBuilder.java |    58 +
 .../v1beta/ListFindingTypeStatsResponse.java  |   575 +-
 ...ListFindingTypeStatsResponseOrBuilder.java |    47 +-
 .../v1beta/ListFindingsRequest.java           |   547 +-
 .../v1beta/ListFindingsRequestOrBuilder.java  |    56 +-
 .../v1beta/ListFindingsResponse.java          |   490 +-
 .../v1beta/ListFindingsResponseOrBuilder.java |    45 +-
 .../v1beta/ListScanConfigsRequest.java        |   484 +-
 .../ListScanConfigsRequestOrBuilder.java      |    47 +-
 .../v1beta/ListScanConfigsResponse.java       |   512 +-
 .../ListScanConfigsResponseOrBuilder.java     |    45 +-
 .../v1beta/ListScanRunsRequest.java           |   473 +-
 .../v1beta/ListScanRunsRequestOrBuilder.java  |    47 +-
 .../v1beta/ListScanRunsResponse.java          |   490 +-
 .../v1beta/ListScanRunsResponseOrBuilder.java |    45 +-
 .../v1beta/OutdatedLibrary.java               |   502 +-
 .../v1beta/OutdatedLibraryOrBuilder.java      |    54 +-
 .../v1beta/ProjectName.java                   |     0
 .../websecurityscanner/v1beta/ScanConfig.java |  4178 ++++--
 .../v1beta/ScanConfigError.java               |   773 +-
 .../v1beta/ScanConfigErrorOrBuilder.java      |    33 +-
 .../v1beta/ScanConfigErrorProto.java          |   107 +
 .../v1beta/ScanConfigName.java                |     0
 .../v1beta/ScanConfigOrBuilder.java           |   184 +-
 .../v1beta/ScanConfigProto.java               |   198 +
 .../websecurityscanner/v1beta/ScanRun.java    |  1324 +-
 .../v1beta/ScanRunErrorTrace.java             |   570 +-
 .../v1beta/ScanRunErrorTraceOrBuilder.java    |    35 +-
 .../v1beta/ScanRunErrorTraceProto.java        |    84 +
 .../v1beta/ScanRunName.java                   |     0
 .../v1beta/ScanRunOrBuilder.java              |   110 +-
 .../v1beta/ScanRunProto.java                  |   119 +
 .../v1beta/ScanRunWarningTrace.java           |   421 +-
 .../v1beta/ScanRunWarningTraceOrBuilder.java  |    24 +-
 .../v1beta/ScanRunWarningTraceProto.java      |    75 +
 .../v1beta/StartScanRunRequest.java           |   370 +-
 .../v1beta/StartScanRunRequestOrBuilder.java  |    56 +
 .../v1beta/StopScanRunRequest.java            |   360 +-
 .../v1beta/StopScanRunRequestOrBuilder.java   |    58 +
 .../v1beta/UpdateScanConfigRequest.java       |   556 +-
 .../UpdateScanConfigRequestOrBuilder.java     |    55 +-
 .../v1beta/ViolatingResource.java             |   404 +-
 .../v1beta/ViolatingResourceOrBuilder.java    |    36 +-
 .../v1beta/VulnerableHeaders.java             |  1257 +-
 .../v1beta/VulnerableHeadersOrBuilder.java    |    87 +-
 .../v1beta/VulnerableParameters.java          |   381 +-
 .../v1beta/VulnerableParametersOrBuilder.java |    36 +-
 .../v1beta/WebSecurityScannerProto.java       |   443 +
 .../cloud/websecurityscanner/v1beta/Xss.java  |   420 +-
 .../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
 java-workflow-executions/README.md            |     2 +-
 .../executions/v1/ExecutionsClient.java       |     0
 .../executions/v1/ExecutionsSettings.java     |     1 -
 .../executions/v1/gapic_metadata.json         |     0
 .../workflows/executions/v1/package-info.java |     0
 .../executions/v1/stub/ExecutionsStub.java    |     0
 .../v1/stub/ExecutionsStubSettings.java       |     0
 .../stub/GrpcExecutionsCallableFactory.java   |     0
 .../v1/stub/GrpcExecutionsStub.java           |     1 -
 .../HttpJsonExecutionsCallableFactory.java    |     0
 .../v1/stub/HttpJsonExecutionsStub.java       |     0
 .../executions/v1beta/ExecutionsClient.java   |     0
 .../executions/v1beta/ExecutionsSettings.java |     1 -
 .../executions/v1beta/gapic_metadata.json     |     0
 .../executions/v1beta/package-info.java       |     0
 .../v1beta/stub/ExecutionsStub.java           |     0
 .../v1beta/stub/ExecutionsStubSettings.java   |     0
 .../stub/GrpcExecutionsCallableFactory.java   |     0
 .../v1beta/stub/GrpcExecutionsStub.java       |     1 -
 .../HttpJsonExecutionsCallableFactory.java    |     0
 .../v1beta/stub/HttpJsonExecutionsStub.java   |     0
 .../reflect-config.json                       |     0
 .../reflect-config.json                       |     0
 .../v1/ExecutionsClientHttpJsonTest.java      |     0
 .../executions/v1/ExecutionsClientTest.java   |     0
 .../executions/v1/MockExecutions.java         |     0
 .../executions/v1/MockExecutionsImpl.java     |     0
 .../v1beta/ExecutionsClientHttpJsonTest.java  |     0
 .../v1beta/ExecutionsClientTest.java          |     0
 .../executions/v1beta/MockExecutions.java     |     0
 .../executions/v1beta/MockExecutionsImpl.java |     0
 .../executions/v1/ExecutionsGrpc.java         |   755 +
 .../executions/v1beta/ExecutionsGrpc.java     |   759 +
 .../executions/v1/CancelExecutionRequest.java |   373 +-
 .../v1/CancelExecutionRequestOrBuilder.java   |    58 +
 .../executions/v1/CreateExecutionRequest.java |   516 +-
 .../v1/CreateExecutionRequestOrBuilder.java   |    99 +
 .../workflows/executions/v1/Execution.java    |  5580 ++++---
 .../executions/v1/ExecutionName.java          |     0
 .../executions/v1/ExecutionOrBuilder.java     |   215 +-
 .../executions/v1/ExecutionView.java          |    86 +-
 .../executions/v1/ExecutionsProto.java        |   374 +
 .../executions/v1/GetExecutionRequest.java    |   454 +-
 .../v1/GetExecutionRequestOrBuilder.java      |    49 +-
 .../executions/v1/ListExecutionsRequest.java  |   711 +-
 .../v1/ListExecutionsRequestOrBuilder.java    |    79 +-
 .../executions/v1/ListExecutionsResponse.java |   491 +-
 .../v1/ListExecutionsResponseOrBuilder.java   |    45 +-
 .../workflows/executions/v1/WorkflowName.java |     0
 .../workflows/executions/v1/executions.proto  |     0
 .../v1beta/CancelExecutionRequest.java        |   385 +-
 .../CancelExecutionRequestOrBuilder.java      |    58 +
 .../v1beta/CreateExecutionRequest.java        |   528 +-
 .../CreateExecutionRequestOrBuilder.java      |    99 +
 .../executions/v1beta/Execution.java          |  1520 +-
 .../executions/v1beta/ExecutionName.java      |     0
 .../executions/v1beta/ExecutionOrBuilder.java |   122 +-
 .../executions/v1beta/ExecutionView.java      |    86 +-
 .../executions/v1beta/ExecutionsProto.java    |   238 +
 .../v1beta/GetExecutionRequest.java           |   467 +-
 .../v1beta/GetExecutionRequestOrBuilder.java  |    49 +-
 .../v1beta/ListExecutionsRequest.java         |   582 +-
 .../ListExecutionsRequestOrBuilder.java       |    61 +-
 .../v1beta/ListExecutionsResponse.java        |   512 +-
 .../ListExecutionsResponseOrBuilder.java      |    45 +-
 .../executions/v1beta/WorkflowName.java       |     0
 .../executions/v1beta/executions.proto        |     0
 .../cancelexecution/AsyncCancelExecution.java |     0
 .../cancelexecution/SyncCancelExecution.java  |     0
 .../SyncCancelExecutionExecutionname.java     |     0
 .../SyncCancelExecutionString.java            |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../SyncCreateSetCredentialsProvider1.java    |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../createexecution/AsyncCreateExecution.java |     0
 .../createexecution/SyncCreateExecution.java  |     0
 .../SyncCreateExecutionStringExecution.java   |     0
 ...cCreateExecutionWorkflownameExecution.java |     0
 .../getexecution/AsyncGetExecution.java       |     0
 .../getexecution/SyncGetExecution.java        |     0
 .../SyncGetExecutionExecutionname.java        |     0
 .../getexecution/SyncGetExecutionString.java  |     0
 .../listexecutions/AsyncListExecutions.java   |     0
 .../AsyncListExecutionsPaged.java             |     0
 .../listexecutions/SyncListExecutions.java    |     0
 .../SyncListExecutionsString.java             |     0
 .../SyncListExecutionsWorkflowname.java       |     0
 .../createexecution/SyncCreateExecution.java  |     0
 .../createexecution/SyncCreateExecution.java  |     0
 .../cancelexecution/AsyncCancelExecution.java |     0
 .../cancelexecution/SyncCancelExecution.java  |     0
 .../SyncCancelExecutionExecutionname.java     |     0
 .../SyncCancelExecutionString.java            |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../SyncCreateSetCredentialsProvider1.java    |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../createexecution/AsyncCreateExecution.java |     0
 .../createexecution/SyncCreateExecution.java  |     0
 .../SyncCreateExecutionStringExecution.java   |     0
 ...cCreateExecutionWorkflownameExecution.java |     0
 .../getexecution/AsyncGetExecution.java       |     0
 .../getexecution/SyncGetExecution.java        |     0
 .../SyncGetExecutionExecutionname.java        |     0
 .../getexecution/SyncGetExecutionString.java  |     0
 .../listexecutions/AsyncListExecutions.java   |     0
 .../AsyncListExecutionsPaged.java             |     0
 .../listexecutions/SyncListExecutions.java    |     0
 .../SyncListExecutionsString.java             |     0
 .../SyncListExecutionsWorkflowname.java       |     0
 .../createexecution/SyncCreateExecution.java  |     0
 .../createexecution/SyncCreateExecution.java  |     0
 java-workflows/README.md                      |     2 +-
 .../cloud/workflows/v1/WorkflowsClient.java   |     0
 .../cloud/workflows/v1/WorkflowsSettings.java |     1 -
 .../cloud/workflows/v1/gapic_metadata.json    |     0
 .../cloud/workflows/v1/package-info.java      |     0
 .../v1/stub/GrpcWorkflowsCallableFactory.java |     0
 .../workflows/v1/stub/GrpcWorkflowsStub.java  |     1 -
 .../HttpJsonWorkflowsCallableFactory.java     |     0
 .../v1/stub/HttpJsonWorkflowsStub.java        |     1 -
 .../workflows/v1/stub/WorkflowsStub.java      |     0
 .../v1/stub/WorkflowsStubSettings.java        |     0
 .../workflows/v1beta/WorkflowsClient.java     |     0
 .../workflows/v1beta/WorkflowsSettings.java   |     1 -
 .../workflows/v1beta/gapic_metadata.json      |     0
 .../cloud/workflows/v1beta/package-info.java  |     0
 .../stub/GrpcWorkflowsCallableFactory.java    |     0
 .../v1beta/stub/GrpcWorkflowsStub.java        |     1 -
 .../HttpJsonWorkflowsCallableFactory.java     |     0
 .../v1beta/stub/HttpJsonWorkflowsStub.java    |     1 -
 .../workflows/v1beta/stub/WorkflowsStub.java  |     0
 .../v1beta/stub/WorkflowsStubSettings.java    |     0
 .../reflect-config.json                       |     0
 .../reflect-config.json                       |     0
 .../cloud/workflows/v1/MockLocations.java     |     0
 .../cloud/workflows/v1/MockLocationsImpl.java |     0
 .../cloud/workflows/v1/MockWorkflows.java     |     0
 .../cloud/workflows/v1/MockWorkflowsImpl.java |     0
 .../v1/WorkflowsClientHttpJsonTest.java       |     0
 .../workflows/v1/WorkflowsClientTest.java     |     0
 .../cloud/workflows/v1beta/MockWorkflows.java |     0
 .../workflows/v1beta/MockWorkflowsImpl.java   |     0
 .../v1beta/WorkflowsClientHttpJsonTest.java   |     0
 .../workflows/v1beta/WorkflowsClientTest.java |     0
 .../cloud/workflows/v1/WorkflowsGrpc.java     |   577 +-
 .../cloud/workflows/v1beta/WorkflowsGrpc.java |   582 +-
 .../workflows/v1/CreateWorkflowRequest.java   |   564 +-
 .../v1/CreateWorkflowRequestOrBuilder.java    |    64 +-
 .../workflows/v1/DeleteWorkflowRequest.java   |   347 +-
 .../v1/DeleteWorkflowRequestOrBuilder.java    |    56 +
 .../workflows/v1/GetWorkflowRequest.java      |   419 +-
 .../v1/GetWorkflowRequestOrBuilder.java       |    44 +-
 .../workflows/v1/ListWorkflowsRequest.java    |   596 +-
 .../v1/ListWorkflowsRequestOrBuilder.java     |    65 +-
 .../workflows/v1/ListWorkflowsResponse.java   |   588 +-
 .../v1/ListWorkflowsResponseOrBuilder.java    |    63 +-
 .../cloud/workflows/v1/LocationName.java      |     0
 .../cloud/workflows/v1/OperationMetadata.java |   633 +-
 .../v1/OperationMetadataOrBuilder.java        |    61 +-
 .../workflows/v1/UpdateWorkflowRequest.java   |   484 +-
 .../v1/UpdateWorkflowRequestOrBuilder.java    |    46 +-
 .../google/cloud/workflows/v1/Workflow.java   |  2570 ++--
 .../cloud/workflows/v1/WorkflowName.java      |     0
 .../cloud/workflows/v1/WorkflowOrBuilder.java |   260 +-
 .../cloud/workflows/v1/WorkflowsProto.java    |   320 +
 .../google/cloud/workflows/v1/workflows.proto |     0
 .../v1beta/CreateWorkflowRequest.java         |   567 +-
 .../CreateWorkflowRequestOrBuilder.java       |    64 +-
 .../v1beta/DeleteWorkflowRequest.java         |   350 +-
 .../DeleteWorkflowRequestOrBuilder.java       |    56 +
 .../workflows/v1beta/GetWorkflowRequest.java  |   347 +-
 .../v1beta/GetWorkflowRequestOrBuilder.java   |    56 +
 .../v1beta/ListWorkflowsRequest.java          |   599 +-
 .../v1beta/ListWorkflowsRequestOrBuilder.java |    65 +-
 .../v1beta/ListWorkflowsResponse.java         |   591 +-
 .../ListWorkflowsResponseOrBuilder.java       |    63 +-
 .../cloud/workflows/v1beta/LocationName.java  |     0
 .../workflows/v1beta/OperationMetadata.java   |   637 +-
 .../v1beta/OperationMetadataOrBuilder.java    |    61 +-
 .../v1beta/UpdateWorkflowRequest.java         |   487 +-
 .../UpdateWorkflowRequestOrBuilder.java       |    46 +-
 .../cloud/workflows/v1beta/Workflow.java      |  1463 +-
 .../cloud/workflows/v1beta/WorkflowName.java  |     0
 .../workflows/v1beta/WorkflowOrBuilder.java   |   164 +-
 .../workflows/v1beta/WorkflowsProto.java      |   271 +
 .../cloud/workflows/v1beta/workflows.proto    |     0
 .../getworkflow/SyncGetWorkflow.java          |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../SyncCreateSetCredentialsProvider1.java    |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../createworkflow/AsyncCreateWorkflow.java   |     0
 .../AsyncCreateWorkflowLRO.java               |     0
 .../createworkflow/SyncCreateWorkflow.java    |     0
 ...ateWorkflowLocationnameWorkflowString.java |     0
 ...yncCreateWorkflowStringWorkflowString.java |     0
 .../deleteworkflow/AsyncDeleteWorkflow.java   |     0
 .../AsyncDeleteWorkflowLRO.java               |     0
 .../deleteworkflow/SyncDeleteWorkflow.java    |     0
 .../SyncDeleteWorkflowString.java             |     0
 .../SyncDeleteWorkflowWorkflowname.java       |     0
 .../getlocation/AsyncGetLocation.java         |     0
 .../getlocation/SyncGetLocation.java          |     0
 .../getworkflow/AsyncGetWorkflow.java         |     0
 .../getworkflow/SyncGetWorkflow.java          |     0
 .../getworkflow/SyncGetWorkflowString.java    |     0
 .../SyncGetWorkflowWorkflowname.java          |     0
 .../listlocations/AsyncListLocations.java     |     0
 .../AsyncListLocationsPaged.java              |     0
 .../listlocations/SyncListLocations.java      |     0
 .../listworkflows/AsyncListWorkflows.java     |     0
 .../AsyncListWorkflowsPaged.java              |     0
 .../listworkflows/SyncListWorkflows.java      |     0
 .../SyncListWorkflowsLocationname.java        |     0
 .../SyncListWorkflowsString.java              |     0
 .../updateworkflow/AsyncUpdateWorkflow.java   |     0
 .../AsyncUpdateWorkflowLRO.java               |     0
 .../updateworkflow/SyncUpdateWorkflow.java    |     0
 .../SyncUpdateWorkflowWorkflowFieldmask.java  |     0
 .../getworkflow/SyncGetWorkflow.java          |     0
 .../getworkflow/SyncGetWorkflow.java          |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../SyncCreateSetCredentialsProvider1.java    |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../createworkflow/AsyncCreateWorkflow.java   |     0
 .../AsyncCreateWorkflowLRO.java               |     0
 .../createworkflow/SyncCreateWorkflow.java    |     0
 ...ateWorkflowLocationnameWorkflowString.java |     0
 ...yncCreateWorkflowStringWorkflowString.java |     0
 .../deleteworkflow/AsyncDeleteWorkflow.java   |     0
 .../AsyncDeleteWorkflowLRO.java               |     0
 .../deleteworkflow/SyncDeleteWorkflow.java    |     0
 .../SyncDeleteWorkflowString.java             |     0
 .../SyncDeleteWorkflowWorkflowname.java       |     0
 .../getworkflow/AsyncGetWorkflow.java         |     0
 .../getworkflow/SyncGetWorkflow.java          |     0
 .../getworkflow/SyncGetWorkflowString.java    |     0
 .../SyncGetWorkflowWorkflowname.java          |     0
 .../listworkflows/AsyncListWorkflows.java     |     0
 .../AsyncListWorkflowsPaged.java              |     0
 .../listworkflows/SyncListWorkflows.java      |     0
 .../SyncListWorkflowsLocationname.java        |     0
 .../SyncListWorkflowsString.java              |     0
 .../updateworkflow/AsyncUpdateWorkflow.java   |     0
 .../AsyncUpdateWorkflowLRO.java               |     0
 .../updateworkflow/SyncUpdateWorkflow.java    |     0
 .../SyncUpdateWorkflowWorkflowFieldmask.java  |     0
 .../getworkflow/SyncGetWorkflow.java          |     0
 java-workstations/README.md                   |     2 +-
 .../workstations/v1/WorkstationsClient.java   |     0
 .../workstations/v1/WorkstationsSettings.java |     1 -
 .../cloud/workstations/v1/gapic_metadata.json |     0
 .../cloud/workstations/v1/package-info.java   |     0
 .../stub/GrpcWorkstationsCallableFactory.java |     0
 .../v1/stub/GrpcWorkstationsStub.java         |     1 -
 .../HttpJsonWorkstationsCallableFactory.java  |     0
 .../v1/stub/HttpJsonWorkstationsStub.java     |     1 -
 .../v1/stub/WorkstationsStub.java             |     0
 .../v1/stub/WorkstationsStubSettings.java     |     0
 .../v1beta/WorkstationsClient.java            |     0
 .../v1beta/WorkstationsSettings.java          |     1 -
 .../workstations/v1beta/gapic_metadata.json   |     0
 .../workstations/v1beta/package-info.java     |     0
 .../stub/GrpcWorkstationsCallableFactory.java |     0
 .../v1beta/stub/GrpcWorkstationsStub.java     |     1 -
 .../HttpJsonWorkstationsCallableFactory.java  |     0
 .../v1beta/stub/HttpJsonWorkstationsStub.java |     1 -
 .../v1beta/stub/WorkstationsStub.java         |     0
 .../v1beta/stub/WorkstationsStubSettings.java |     0
 .../reflect-config.json                       |     0
 .../reflect-config.json                       |     0
 .../cloud/workstations/v1/MockIAMPolicy.java  |     0
 .../workstations/v1/MockIAMPolicyImpl.java    |     0
 .../cloud/workstations/v1/MockLocations.java  |     0
 .../workstations/v1/MockLocationsImpl.java    |     0
 .../workstations/v1/MockWorkstations.java     |     0
 .../workstations/v1/MockWorkstationsImpl.java |     0
 .../v1/WorkstationsClientHttpJsonTest.java    |     0
 .../v1/WorkstationsClientTest.java            |     0
 .../workstations/v1beta/MockIAMPolicy.java    |     0
 .../v1beta/MockIAMPolicyImpl.java             |     0
 .../workstations/v1beta/MockLocations.java    |     0
 .../v1beta/MockLocationsImpl.java             |     0
 .../workstations/v1beta/MockWorkstations.java |     0
 .../v1beta/MockWorkstationsImpl.java          |     0
 .../WorkstationsClientHttpJsonTest.java       |     0
 .../v1beta/WorkstationsClientTest.java        |     0
 .../workstations/v1/WorkstationsGrpc.java     |  2684 ++++
 .../workstations/v1beta/WorkstationsGrpc.java |  2700 ++++
 .../v1/CreateWorkstationClusterRequest.java   |   644 +-
 ...ateWorkstationClusterRequestOrBuilder.java |    67 +-
 .../v1/CreateWorkstationConfigRequest.java    |   641 +-
 ...eateWorkstationConfigRequestOrBuilder.java |    67 +-
 .../v1/CreateWorkstationRequest.java          |   599 +-
 .../v1/CreateWorkstationRequestOrBuilder.java |    67 +-
 .../v1/DeleteWorkstationClusterRequest.java   |   516 +-
 ...eteWorkstationClusterRequestOrBuilder.java |    50 +-
 .../v1/DeleteWorkstationConfigRequest.java    |   516 +-
 ...leteWorkstationConfigRequestOrBuilder.java |    50 +-
 .../v1/DeleteWorkstationRequest.java          |   456 +-
 .../v1/DeleteWorkstationRequestOrBuilder.java |    47 +-
 .../v1/GenerateAccessTokenRequest.java        |   588 +-
 .../GenerateAccessTokenRequestOrBuilder.java  |    51 +-
 .../v1/GenerateAccessTokenResponse.java       |   421 +-
 .../GenerateAccessTokenResponseOrBuilder.java |    35 +-
 .../v1/GetWorkstationClusterRequest.java      |   360 +-
 ...GetWorkstationClusterRequestOrBuilder.java |    54 +
 .../v1/GetWorkstationConfigRequest.java       |   360 +-
 .../GetWorkstationConfigRequestOrBuilder.java |    54 +
 .../v1/GetWorkstationRequest.java             |   350 +-
 .../v1/GetWorkstationRequestOrBuilder.java    |    54 +
 .../ListUsableWorkstationConfigsRequest.java  |   492 +-
 ...bleWorkstationConfigsRequestOrBuilder.java |    47 +-
 .../ListUsableWorkstationConfigsResponse.java |   678 +-
 ...leWorkstationConfigsResponseOrBuilder.java |    60 +-
 .../v1/ListUsableWorkstationsRequest.java     |   473 +-
 ...istUsableWorkstationsRequestOrBuilder.java |    47 +-
 .../v1/ListUsableWorkstationsResponse.java    |   614 +-
 ...stUsableWorkstationsResponseOrBuilder.java |    63 +-
 .../v1/ListWorkstationClustersRequest.java    |   479 +-
 ...stWorkstationClustersRequestOrBuilder.java |    47 +-
 .../v1/ListWorkstationClustersResponse.java   |   697 +-
 ...tWorkstationClustersResponseOrBuilder.java |    75 +-
 .../v1/ListWorkstationConfigsRequest.java     |   473 +-
 ...istWorkstationConfigsRequestOrBuilder.java |    47 +-
 .../v1/ListWorkstationConfigsResponse.java    |   665 +-
 ...stWorkstationConfigsResponseOrBuilder.java |    60 +-
 .../v1/ListWorkstationsRequest.java           |   453 +-
 .../v1/ListWorkstationsRequestOrBuilder.java  |    47 +-
 .../v1/ListWorkstationsResponse.java          |   588 +-
 .../v1/ListWorkstationsResponseOrBuilder.java |    63 +-
 .../cloud/workstations/v1/LocationName.java   |     0
 .../workstations/v1/OperationMetadata.java    |   824 +-
 .../v1/OperationMetadataOrBuilder.java        |    91 +-
 .../v1/StartWorkstationRequest.java           |   456 +-
 .../v1/StartWorkstationRequestOrBuilder.java  |    47 +-
 .../v1/StopWorkstationRequest.java            |   456 +-
 .../v1/StopWorkstationRequestOrBuilder.java   |    47 +-
 .../v1/UpdateWorkstationClusterRequest.java   |   634 +-
 ...ateWorkstationClusterRequestOrBuilder.java |    61 +-
 .../v1/UpdateWorkstationConfigRequest.java    |   631 +-
 ...dateWorkstationConfigRequestOrBuilder.java |    61 +-
 .../v1/UpdateWorkstationRequest.java          |   589 +-
 .../v1/UpdateWorkstationRequestOrBuilder.java |    61 +-
 .../cloud/workstations/v1/Workstation.java    |  1842 ++-
 .../workstations/v1/WorkstationCluster.java   |  2862 ++--
 .../v1/WorkstationClusterName.java            |     0
 .../v1/WorkstationClusterOrBuilder.java       |   273 +-
 .../workstations/v1/WorkstationConfig.java    |  9512 +++++++-----
 .../v1/WorkstationConfigName.java             |     0
 .../v1/WorkstationConfigOrBuilder.java        |   432 +-
 .../workstations/v1/WorkstationName.java      |     0
 .../workstations/v1/WorkstationOrBuilder.java |   223 +-
 .../workstations/v1/WorkstationsProto.java    |  1135 ++
 .../cloud/workstations/v1/workstations.proto  |     0
 .../CreateWorkstationClusterRequest.java      |   656 +-
 ...ateWorkstationClusterRequestOrBuilder.java |    67 +-
 .../CreateWorkstationConfigRequest.java       |   656 +-
 ...eateWorkstationConfigRequestOrBuilder.java |    67 +-
 .../v1beta/CreateWorkstationRequest.java      |   610 +-
 .../CreateWorkstationRequestOrBuilder.java    |    67 +-
 .../DeleteWorkstationClusterRequest.java      |   528 +-
 ...eteWorkstationClusterRequestOrBuilder.java |    50 +-
 .../DeleteWorkstationConfigRequest.java       |   528 +-
 ...leteWorkstationConfigRequestOrBuilder.java |    50 +-
 .../v1beta/DeleteWorkstationRequest.java      |   466 +-
 .../DeleteWorkstationRequestOrBuilder.java    |    47 +-
 .../v1beta/GenerateAccessTokenRequest.java    |   611 +-
 .../GenerateAccessTokenRequestOrBuilder.java  |    54 +-
 .../v1beta/GenerateAccessTokenResponse.java   |   434 +-
 .../GenerateAccessTokenResponseOrBuilder.java |    35 +-
 .../v1beta/GetWorkstationClusterRequest.java  |   381 +-
 ...GetWorkstationClusterRequestOrBuilder.java |    54 +
 .../v1beta/GetWorkstationConfigRequest.java   |   373 +-
 .../GetWorkstationConfigRequestOrBuilder.java |    54 +
 .../v1beta/GetWorkstationRequest.java         |   350 +-
 .../GetWorkstationRequestOrBuilder.java       |    54 +
 .../ListUsableWorkstationConfigsRequest.java  |   505 +-
 ...bleWorkstationConfigsRequestOrBuilder.java |    47 +-
 .../ListUsableWorkstationConfigsResponse.java |   733 +-
 ...leWorkstationConfigsResponseOrBuilder.java |    74 +-
 .../v1beta/ListUsableWorkstationsRequest.java |   488 +-
 ...istUsableWorkstationsRequestOrBuilder.java |    47 +-
 .../ListUsableWorkstationsResponse.java       |   613 +-
 ...stUsableWorkstationsResponseOrBuilder.java |    63 +-
 .../ListWorkstationClustersRequest.java       |   491 +-
 ...stWorkstationClustersRequestOrBuilder.java |    47 +-
 .../ListWorkstationClustersResponse.java      |   725 +-
 ...tWorkstationClustersResponseOrBuilder.java |    74 +-
 .../v1beta/ListWorkstationConfigsRequest.java |   488 +-
 ...istWorkstationConfigsRequestOrBuilder.java |    47 +-
 .../ListWorkstationConfigsResponse.java       |   715 +-
 ...stWorkstationConfigsResponseOrBuilder.java |    74 +-
 .../v1beta/ListWorkstationsRequest.java       |   463 +-
 .../ListWorkstationsRequestOrBuilder.java     |    47 +-
 .../v1beta/ListWorkstationsResponse.java      |   585 +-
 .../ListWorkstationsResponseOrBuilder.java    |    63 +-
 .../workstations/v1beta/LocationName.java     |     0
 .../v1beta/OperationMetadata.java             |   827 +-
 .../v1beta/OperationMetadataOrBuilder.java    |    91 +-
 .../v1beta/StartWorkstationRequest.java       |   466 +-
 .../StartWorkstationRequestOrBuilder.java     |    47 +-
 .../v1beta/StopWorkstationRequest.java        |   456 +-
 .../StopWorkstationRequestOrBuilder.java      |    47 +-
 .../UpdateWorkstationClusterRequest.java      |   646 +-
 ...ateWorkstationClusterRequestOrBuilder.java |    61 +-
 .../UpdateWorkstationConfigRequest.java       |   646 +-
 ...dateWorkstationConfigRequestOrBuilder.java |    61 +-
 .../v1beta/UpdateWorkstationRequest.java      |   600 +-
 .../UpdateWorkstationRequestOrBuilder.java    |    61 +-
 .../workstations/v1beta/Workstation.java      |  2078 ++-
 .../v1beta/WorkstationCluster.java            |  2873 ++--
 .../v1beta/WorkstationClusterName.java        |     0
 .../v1beta/WorkstationClusterOrBuilder.java   |   273 +-
 .../v1beta/WorkstationConfig.java             | 12284 ++++++++++------
 .../v1beta/WorkstationConfigName.java         |     0
 .../v1beta/WorkstationConfigOrBuilder.java    |   482 +-
 .../workstations/v1beta/WorkstationName.java  |     0
 .../v1beta/WorkstationOrBuilder.java          |   253 +-
 .../v1beta/WorkstationsProto.java             |  1227 ++
 .../workstations/v1beta/workstations.proto    |     0
 .../SyncGetWorkstationCluster.java            |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../SyncCreateSetCredentialsProvider1.java    |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../AsyncCreateWorkstation.java               |     0
 .../AsyncCreateWorkstationLRO.java            |     0
 .../SyncCreateWorkstation.java                |     0
 ...ateWorkstationStringWorkstationString.java |     0
 ...orkstationconfignameWorkstationString.java |     0
 .../AsyncCreateWorkstationCluster.java        |     0
 .../AsyncCreateWorkstationClusterLRO.java     |     0
 .../SyncCreateWorkstationCluster.java         |     0
 ...rLocationnameWorkstationclusterString.java |     0
 ...ClusterStringWorkstationclusterString.java |     0
 .../AsyncCreateWorkstationConfig.java         |     0
 .../AsyncCreateWorkstationConfigLRO.java      |     0
 .../SyncCreateWorkstationConfig.java          |     0
 ...onConfigStringWorkstationconfigString.java |     0
 ...ionclusternameWorkstationconfigString.java |     0
 .../AsyncDeleteWorkstation.java               |     0
 .../AsyncDeleteWorkstationLRO.java            |     0
 .../SyncDeleteWorkstation.java                |     0
 .../SyncDeleteWorkstationString.java          |     0
 .../SyncDeleteWorkstationWorkstationname.java |     0
 .../AsyncDeleteWorkstationCluster.java        |     0
 .../AsyncDeleteWorkstationClusterLRO.java     |     0
 .../SyncDeleteWorkstationCluster.java         |     0
 .../SyncDeleteWorkstationClusterString.java   |     0
 ...kstationClusterWorkstationclustername.java |     0
 .../AsyncDeleteWorkstationConfig.java         |     0
 .../AsyncDeleteWorkstationConfigLRO.java      |     0
 .../SyncDeleteWorkstationConfig.java          |     0
 .../SyncDeleteWorkstationConfigString.java    |     0
 ...orkstationConfigWorkstationconfigname.java |     0
 .../AsyncGenerateAccessToken.java             |     0
 .../SyncGenerateAccessToken.java              |     0
 .../SyncGenerateAccessTokenString.java        |     0
 ...yncGenerateAccessTokenWorkstationname.java |     0
 .../getiampolicy/AsyncGetIamPolicy.java       |     0
 .../getiampolicy/SyncGetIamPolicy.java        |     0
 .../getworkstation/AsyncGetWorkstation.java   |     0
 .../getworkstation/SyncGetWorkstation.java    |     0
 .../SyncGetWorkstationString.java             |     0
 .../SyncGetWorkstationWorkstationname.java    |     0
 .../AsyncGetWorkstationCluster.java           |     0
 .../SyncGetWorkstationCluster.java            |     0
 .../SyncGetWorkstationClusterString.java      |     0
 ...kstationClusterWorkstationclustername.java |     0
 .../AsyncGetWorkstationConfig.java            |     0
 .../SyncGetWorkstationConfig.java             |     0
 .../SyncGetWorkstationConfigString.java       |     0
 ...orkstationConfigWorkstationconfigname.java |     0
 .../AsyncListUsableWorkstationConfigs.java    |     0
 ...syncListUsableWorkstationConfigsPaged.java |     0
 .../SyncListUsableWorkstationConfigs.java     |     0
 ...yncListUsableWorkstationConfigsString.java |     0
 ...kstationConfigsWorkstationclustername.java |     0
 .../AsyncListUsableWorkstations.java          |     0
 .../AsyncListUsableWorkstationsPaged.java     |     0
 .../SyncListUsableWorkstations.java           |     0
 .../SyncListUsableWorkstationsString.java     |     0
 ...ableWorkstationsWorkstationconfigname.java |     0
 .../AsyncListWorkstationClusters.java         |     0
 .../AsyncListWorkstationClustersPaged.java    |     0
 .../SyncListWorkstationClusters.java          |     0
 ...ncListWorkstationClustersLocationname.java |     0
 .../SyncListWorkstationClustersString.java    |     0
 .../AsyncListWorkstationConfigs.java          |     0
 .../AsyncListWorkstationConfigsPaged.java     |     0
 .../SyncListWorkstationConfigs.java           |     0
 .../SyncListWorkstationConfigsString.java     |     0
 ...kstationConfigsWorkstationclustername.java |     0
 .../AsyncListWorkstations.java                |     0
 .../AsyncListWorkstationsPaged.java           |     0
 .../SyncListWorkstations.java                 |     0
 .../SyncListWorkstationsString.java           |     0
 ...ListWorkstationsWorkstationconfigname.java |     0
 .../setiampolicy/AsyncSetIamPolicy.java       |     0
 .../setiampolicy/SyncSetIamPolicy.java        |     0
 .../AsyncStartWorkstation.java                |     0
 .../AsyncStartWorkstationLRO.java             |     0
 .../SyncStartWorkstation.java                 |     0
 .../SyncStartWorkstationString.java           |     0
 .../SyncStartWorkstationWorkstationname.java  |     0
 .../stopworkstation/AsyncStopWorkstation.java |     0
 .../AsyncStopWorkstationLRO.java              |     0
 .../stopworkstation/SyncStopWorkstation.java  |     0
 .../SyncStopWorkstationString.java            |     0
 .../SyncStopWorkstationWorkstationname.java   |     0
 .../AsyncTestIamPermissions.java              |     0
 .../SyncTestIamPermissions.java               |     0
 .../AsyncUpdateWorkstation.java               |     0
 .../AsyncUpdateWorkstationLRO.java            |     0
 .../SyncUpdateWorkstation.java                |     0
 ...UpdateWorkstationWorkstationFieldmask.java |     0
 .../AsyncUpdateWorkstationCluster.java        |     0
 .../AsyncUpdateWorkstationClusterLRO.java     |     0
 .../SyncUpdateWorkstationCluster.java         |     0
 ...ionClusterWorkstationclusterFieldmask.java |     0
 .../AsyncUpdateWorkstationConfig.java         |     0
 .../AsyncUpdateWorkstationConfigLRO.java      |     0
 .../SyncUpdateWorkstationConfig.java          |     0
 ...ationConfigWorkstationconfigFieldmask.java |     0
 .../SyncGetWorkstationCluster.java            |     0
 .../SyncGetWorkstationCluster.java            |     0
 .../SyncCreateSetCredentialsProvider.java     |     0
 .../SyncCreateSetCredentialsProvider1.java    |     0
 .../create/SyncCreateSetEndpoint.java         |     0
 .../AsyncCreateWorkstation.java               |     0
 .../AsyncCreateWorkstationLRO.java            |     0
 .../SyncCreateWorkstation.java                |     0
 ...ateWorkstationStringWorkstationString.java |     0
 ...orkstationconfignameWorkstationString.java |     0
 .../AsyncCreateWorkstationCluster.java        |     0
 .../AsyncCreateWorkstationClusterLRO.java     |     0
 .../SyncCreateWorkstationCluster.java         |     0
 ...rLocationnameWorkstationclusterString.java |     0
 ...ClusterStringWorkstationclusterString.java |     0
 .../AsyncCreateWorkstationConfig.java         |     0
 .../AsyncCreateWorkstationConfigLRO.java      |     0
 .../SyncCreateWorkstationConfig.java          |     0
 ...onConfigStringWorkstationconfigString.java |     0
 ...ionclusternameWorkstationconfigString.java |     0
 .../AsyncDeleteWorkstation.java               |     0
 .../AsyncDeleteWorkstationLRO.java            |     0
 .../SyncDeleteWorkstation.java                |     0
 .../SyncDeleteWorkstationString.java          |     0
 .../SyncDeleteWorkstationWorkstationname.java |     0
 .../AsyncDeleteWorkstationCluster.java        |     0
 .../AsyncDeleteWorkstationClusterLRO.java     |     0
 .../SyncDeleteWorkstationCluster.java         |     0
 .../SyncDeleteWorkstationClusterString.java   |     0
 ...kstationClusterWorkstationclustername.java |     0
 .../AsyncDeleteWorkstationConfig.java         |     0
 .../AsyncDeleteWorkstationConfigLRO.java      |     0
 .../SyncDeleteWorkstationConfig.java          |     0
 .../SyncDeleteWorkstationConfigString.java    |     0
 ...orkstationConfigWorkstationconfigname.java |     0
 .../AsyncGenerateAccessToken.java             |     0
 .../SyncGenerateAccessToken.java              |     0
 .../SyncGenerateAccessTokenString.java        |     0
 ...yncGenerateAccessTokenWorkstationname.java |     0
 .../getiampolicy/AsyncGetIamPolicy.java       |     0
 .../getiampolicy/SyncGetIamPolicy.java        |     0
 .../getworkstation/AsyncGetWorkstation.java   |     0
 .../getworkstation/SyncGetWorkstation.java    |     0
 .../SyncGetWorkstationString.java             |     0
 .../SyncGetWorkstationWorkstationname.java    |     0
 .../AsyncGetWorkstationCluster.java           |     0
 .../SyncGetWorkstationCluster.java            |     0
 .../SyncGetWorkstationClusterString.java      |     0
 ...kstationClusterWorkstationclustername.java |     0
 .../AsyncGetWorkstationConfig.java            |     0
 .../SyncGetWorkstationConfig.java             |     0
 .../SyncGetWorkstationConfigString.java       |     0
 ...orkstationConfigWorkstationconfigname.java |     0
 .../AsyncListUsableWorkstationConfigs.java    |     0
 ...syncListUsableWorkstationConfigsPaged.java |     0
 .../SyncListUsableWorkstationConfigs.java     |     0
 ...yncListUsableWorkstationConfigsString.java |     0
 ...kstationConfigsWorkstationclustername.java |     0
 .../AsyncListUsableWorkstations.java          |     0
 .../AsyncListUsableWorkstationsPaged.java     |     0
 .../SyncListUsableWorkstations.java           |     0
 .../SyncListUsableWorkstationsString.java     |     0
 ...ableWorkstationsWorkstationconfigname.java |     0
 .../AsyncListWorkstationClusters.java         |     0
 .../AsyncListWorkstationClustersPaged.java    |     0
 .../SyncListWorkstationClusters.java          |     0
 ...ncListWorkstationClustersLocationname.java |     0
 .../SyncListWorkstationClustersString.java    |     0
 .../AsyncListWorkstationConfigs.java          |     0
 .../AsyncListWorkstationConfigsPaged.java     |     0
 .../SyncListWorkstationConfigs.java           |     0
 .../SyncListWorkstationConfigsString.java     |     0
 ...kstationConfigsWorkstationclustername.java |     0
 .../AsyncListWorkstations.java                |     0
 .../AsyncListWorkstationsPaged.java           |     0
 .../SyncListWorkstations.java                 |     0
 .../SyncListWorkstationsString.java           |     0
 ...ListWorkstationsWorkstationconfigname.java |     0
 .../setiampolicy/AsyncSetIamPolicy.java       |     0
 .../setiampolicy/SyncSetIamPolicy.java        |     0
 .../AsyncStartWorkstation.java                |     0
 .../AsyncStartWorkstationLRO.java             |     0
 .../SyncStartWorkstation.java                 |     0
 .../SyncStartWorkstationString.java           |     0
 .../SyncStartWorkstationWorkstationname.java  |     0
 .../stopworkstation/AsyncStopWorkstation.java |     0
 .../AsyncStopWorkstationLRO.java              |     0
 .../stopworkstation/SyncStopWorkstation.java  |     0
 .../SyncStopWorkstationString.java            |     0
 .../SyncStopWorkstationWorkstationname.java   |     0
 .../AsyncTestIamPermissions.java              |     0
 .../SyncTestIamPermissions.java               |     0
 .../AsyncUpdateWorkstation.java               |     0
 .../AsyncUpdateWorkstationLRO.java            |     0
 .../SyncUpdateWorkstation.java                |     0
 ...UpdateWorkstationWorkstationFieldmask.java |     0
 .../AsyncUpdateWorkstationCluster.java        |     0
 .../AsyncUpdateWorkstationClusterLRO.java     |     0
 .../SyncUpdateWorkstationCluster.java         |     0
 ...ionClusterWorkstationclusterFieldmask.java |     0
 .../AsyncUpdateWorkstationConfig.java         |     0
 .../AsyncUpdateWorkstationConfigLRO.java      |     0
 .../SyncUpdateWorkstationConfig.java          |     0
 ...ationConfigWorkstationconfigFieldmask.java |     0
 .../SyncGetWorkstationCluster.java            |     0
 .../v1/WebSecurityScannerGrpc.java            |  1371 --
 .../v1/CrawledUrlProto.java                   |    56 -
 .../v1/FindingAddonProto.java                 |   160 -
 .../websecurityscanner/v1/FindingProto.java   |    94 -
 .../v1/FindingTypeStatsProto.java             |    56 -
 .../v1/ScanConfigErrorProto.java              |    93 -
 .../v1/ScanConfigProto.java                   |   175 -
 .../v1/ScanRunErrorTraceProto.java            |    68 -
 .../v1/ScanRunLogProto.java                   |    70 -
 .../websecurityscanner/v1/ScanRunProto.java   |    82 -
 .../v1/ScanRunWarningTraceProto.java          |    62 -
 .../v1/WebSecurityScannerProto.java           |   376 -
 .../v1alpha/WebSecurityScannerGrpc.java       |  1371 --
 .../v1alpha/CrawledUrlProto.java              |    54 -
 .../CreateScanConfigRequestOrBuilder.java     |    58 -
 .../DeleteScanConfigRequestOrBuilder.java     |    31 -
 .../v1alpha/FindingAddonProto.java            |   119 -
 .../v1alpha/FindingProto.java                 |    92 -
 .../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      |   409 -
 .../v1beta/WebSecurityScannerGrpc.java        |  1371 --
 .../v1beta/CrawledUrlProto.java               |    57 -
 .../CreateScanConfigRequestOrBuilder.java     |    58 -
 .../DeleteScanConfigRequestOrBuilder.java     |    31 -
 .../v1beta/FindingAddonProto.java             |   135 -
 .../v1beta/FindingProto.java                  |    87 -
 .../v1beta/FindingTypeStatsProto.java         |    57 -
 .../v1beta/GetFindingRequestOrBuilder.java    |    33 -
 .../v1beta/GetScanConfigRequestOrBuilder.java |    31 -
 .../v1beta/GetScanRunRequestOrBuilder.java    |    33 -
 .../ListFindingTypeStatsRequestOrBuilder.java |    33 -
 .../v1beta/ScanConfigErrorProto.java          |    94 -
 .../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       |   411 -
 .../executions/v1/ExecutionsGrpc.java         |   599 -
 .../v1/CancelExecutionRequestOrBuilder.java   |    33 -
 .../v1/CreateExecutionRequestOrBuilder.java   |    60 -
 .../executions/v1/ExecutionsProto.java        |   318 -
 .../executions/v1beta/ExecutionsGrpc.java     |   599 -
 .../CancelExecutionRequestOrBuilder.java      |    33 -
 .../CreateExecutionRequestOrBuilder.java      |    60 -
 .../executions/v1beta/ExecutionsProto.java    |   208 -
 .../v1/DeleteWorkflowRequestOrBuilder.java    |    31 -
 .../cloud/workflows/v1/WorkflowsProto.java    |   281 -
 .../DeleteWorkflowRequestOrBuilder.java       |    31 -
 .../v1beta/GetWorkflowRequestOrBuilder.java   |    31 -
 .../workflows/v1beta/WorkflowsProto.java      |   238 -
 .../workstations/v1/WorkstationsGrpc.java     |  1969 ---
 ...GetWorkstationClusterRequestOrBuilder.java |    29 -
 .../GetWorkstationConfigRequestOrBuilder.java |    29 -
 .../v1/GetWorkstationRequestOrBuilder.java    |    29 -
 .../workstations/v1/WorkstationsProto.java    |   983 --
 .../workstations/v1beta/WorkstationsGrpc.java |  1969 ---
 ...GetWorkstationClusterRequestOrBuilder.java |    29 -
 .../GetWorkstationConfigRequestOrBuilder.java |    29 -
 .../GetWorkstationRequestOrBuilder.java       |    29 -
 .../v1beta/WorkstationsProto.java             |  1054 --
 versions.txt                                  |     2 +-
 1156 files changed, 124087 insertions(+), 74583 deletions(-)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java (99%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java (99%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java (99%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java (99%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java (99%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java (99%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java (100%)
 create mode 100644 java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
 create mode 100644 java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java
 create mode 100644 java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java (62%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java (72%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java (82%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java (55%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java (56%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java (55%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java (63%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java (56%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java (59%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java (72%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java (73%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java (74%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java (68%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java (82%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java (74%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java (72%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java (77%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java (75%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java (85%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java (55%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java (55%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java (78%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java (55%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java (60%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java (59%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xss.java (72%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java (72%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java (62%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java (59%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java (59%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java (72%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java (80%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java (61%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java (63%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java (61%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java (63%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java (62%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java (59%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java (58%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java (61%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java (66%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java (61%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java (66%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java (78%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java (73%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java (83%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java (61%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java (62%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java (55%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java (51%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java (66%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java (60%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java (61%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java (59%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java (60%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java (71%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java (84%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java (54%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java (63%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java (61%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java (63%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java (66%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java (62%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java (60%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java (59%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java (60%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java (68%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java (61%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java (61%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java (66%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java (74%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java (68%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java (77%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java (71%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java (77%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java (84%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java (66%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java (55%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java (61%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java (63%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java (67%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java (55%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java (64%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java (51%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java (60%)
 create mode 100644 java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java (70%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java (65%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1 => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1alpha => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java (100%)
 rename {owl-bot-staging/java-websecurityscanner/v1beta => java-websecurityscanner}/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java (99%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java (99%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java (99%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java (99%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java (100%)
 create mode 100644 java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java
 create mode 100644 java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java (61%)
 create mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java (60%)
 create mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java (68%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java (75%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java (67%)
 create mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequest.java (62%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java (50%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java (71%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java (74%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java (71%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java (70%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java (60%)
 create mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java (59%)
 create mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java (70%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java (71%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java (67%)
 create mode 100644 java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequest.java (61%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java (50%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java (65%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java (64%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java (70%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java (70%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1 => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflow-executions/v1beta => java-workflow-executions}/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java (99%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java (99%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java (99%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java (99%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java (99%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java (99%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java (50%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java (50%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java (65%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java (60%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java (62%)
 create mode 100644 java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java (68%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java (61%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java (71%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java (70%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java (72%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java (71%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java (71%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java (73%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java (64%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java (58%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java (69%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java (76%)
 create mode 100644 java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java (65%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java (60%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java (62%)
 create mode 100644 java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java (63%)
 create mode 100644 java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java (71%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java (70%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java (72%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java (71%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java (70%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java (73%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java (63%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java (58%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java (69%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java (78%)
 create mode 100644 java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/proto-google-cloud-workflows-v1beta/src/main/proto/google/cloud/workflows/v1beta/workflows.proto (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/AsyncCreateWorkflowLRO.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/AsyncGetLocation.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getlocation/SyncGetLocation.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/AsyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/getworkflow/SyncGetWorkflowWorkflowname.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocations.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/AsyncListLocationsPaged.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listlocations/SyncListLocations.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflows.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/AsyncListWorkflowsPaged.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflows.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsLocationname.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/listworkflows/SyncListWorkflowsString.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java (100%)
 rename {owl-bot-staging/java-workflows/v1 => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1/workflowssettings/getworkflow/SyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/stub/workflowsstubsettings/getworkflow/SyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/AsyncCreateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/AsyncCreateWorkflowLRO.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/SyncCreateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/SyncCreateWorkflowLocationnameWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/createworkflow/SyncCreateWorkflowStringWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/AsyncDeleteWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/AsyncDeleteWorkflowLRO.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/SyncDeleteWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/SyncDeleteWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/deleteworkflow/SyncDeleteWorkflowWorkflowname.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/AsyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/SyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/SyncGetWorkflowString.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/getworkflow/SyncGetWorkflowWorkflowname.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/AsyncListWorkflows.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/AsyncListWorkflowsPaged.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/SyncListWorkflows.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/SyncListWorkflowsLocationname.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/listworkflows/SyncListWorkflowsString.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/AsyncUpdateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/AsyncUpdateWorkflowLRO.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/SyncUpdateWorkflow.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflows/updateworkflow/SyncUpdateWorkflowWorkflowFieldmask.java (100%)
 rename {owl-bot-staging/java-workflows/v1beta => java-workflows}/samples/snippets/generated/com/google/cloud/workflows/v1beta/workflowssettings/getworkflow/SyncGetWorkflow.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsClient.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/WorkstationsSettings.java (99%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/package-info.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/GrpcWorkstationsStub.java (99%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/HttpJsonWorkstationsStub.java (99%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStub.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/WorkstationsStubSettings.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsClient.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsSettings.java (99%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/gapic_metadata.json (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/package-info.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/GrpcWorkstationsStub.java (99%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsCallableFactory.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/HttpJsonWorkstationsStub.java (99%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStub.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/WorkstationsStubSettings.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1/reflect-config.json (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/main/resources/META-INF/native-image/com.google.cloud.workstations.v1beta/reflect-config.json (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockIAMPolicyImpl.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocations.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockLocationsImpl.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/MockWorkstationsImpl.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1/WorkstationsClientTest.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockIAMPolicyImpl.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocations.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockLocationsImpl.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/MockWorkstationsImpl.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientHttpJsonTest.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/google-cloud-workstations/src/test/java/com/google/cloud/workstations/v1beta/WorkstationsClientTest.java (100%)
 create mode 100644 java-workstations/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java
 create mode 100644 java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java (61%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java (61%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java (53%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java (62%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java (62%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java (57%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java (70%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java (73%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java (68%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java (68%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java (60%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java (60%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java (61%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java (62%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java (68%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java (73%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java (64%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java (70%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java (71%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java (68%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java (68%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java (64%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java (69%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java (73%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java (72%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java (73%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java (70%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java (74%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java (57%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java (57%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java (65%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java (66%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java (68%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java (74%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java (69%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java (75%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java (75%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java (61%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java (61%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java (53%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java (62%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java (62%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java (57%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java (70%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java (72%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java (68%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java (59%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java (60%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java (63%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java (62%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java (66%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java (71%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java (72%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java (67%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java (63%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java (67%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java (69%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java (54%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java (73%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java (74%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java (70%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java (74%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java (66%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java (57%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java (67%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java (57%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java (62%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java (62%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java (65%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java (63%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java (65%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java (68%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java (74%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java (67%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java (73%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java (75%)
 create mode 100644 java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java (100%)
 rename {owl-bot-staging/java-workstations/v1 => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java (100%)
 rename {owl-bot-staging/java-workstations/v1beta => java-workstations}/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java (100%)
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1beta/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java
 delete mode 100644 owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java
 delete mode 100644 owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java
 delete mode 100644 owl-bot-staging/java-workstations/v1/grpc-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsGrpc.java
 delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java
 delete mode 100644 owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java
 delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java
 delete mode 100644 owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java

diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md
index 548b3ebfc4f5..37504b248ac5 100644
--- a/java-websecurityscanner/README.md
+++ b/java-websecurityscanner/README.md
@@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
 [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
 [stability-image]: https://img.shields.io/badge/stability-stable-green
 [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg
-[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.30.0
+[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.32.0
 [authentication]: https://github.com/googleapis/google-cloud-java#authentication
 [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
 [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClient.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
similarity index 99%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
index 8f75d53fdf74..21481975d16c 100644
--- a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerSettings.java
+++ b/java-websecurityscanner/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;
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/gapic_metadata.json
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/package-info.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerCallableFactory.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
similarity index 99%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
index 6d73b5dad531..32f2bfc139d4 100644
--- a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/GrpcWebSecurityScannerStub.java
+++ b/java-websecurityscanner/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/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerCallableFactory.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/HttpJsonWebSecurityScannerStub.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStub.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/WebSecurityScannerStubSettings.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClient.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
similarity index 99%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
index 4ab0c879ef89..5db2a32b6938 100644
--- a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerSettings.java
+++ b/java-websecurityscanner/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;
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/gapic_metadata.json
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/package-info.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerCallableFactory.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
similarity index 99%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
index 5c7193c25706..68db73b7e91d 100644
--- a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/GrpcWebSecurityScannerStub.java
+++ b/java-websecurityscanner/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/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerCallableFactory.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/HttpJsonWebSecurityScannerStub.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStub.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/WebSecurityScannerStubSettings.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClient.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
similarity index 99%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
index 12a72ea8b5e7..dd08f7863b36 100644
--- a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerSettings.java
+++ b/java-websecurityscanner/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;
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/gapic_metadata.json
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/package-info.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerCallableFactory.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
similarity index 99%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
index e70d5cee4d7b..004fb321b182 100644
--- a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/GrpcWebSecurityScannerStub.java
+++ b/java-websecurityscanner/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/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerCallableFactory.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/HttpJsonWebSecurityScannerStub.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStub.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/WebSecurityScannerStubSettings.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1/reflect-config.json
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1alpha/reflect-config.json
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/main/resources/META-INF/native-image/com.google.cloud.websecurityscanner.v1beta/reflect-config.json
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScanner.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/MockWebSecurityScannerImpl.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientHttpJsonTest.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerClientTest.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScanner.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/MockWebSecurityScannerImpl.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientHttpJsonTest.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1alpha/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerClientTest.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScanner.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/MockWebSecurityScannerImpl.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientHttpJsonTest.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java
similarity index 100%
rename from owl-bot-staging/java-websecurityscanner/v1beta/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java
rename to java-websecurityscanner/google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerClientTest.java
diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
new file mode 100644
index 000000000000..2039e6ad9e97
--- /dev/null
+++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
@@ -0,0 +1,1844 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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 java.lang.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 interface AsyncService { + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default void deleteScanConfig( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void startScanRun( + com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void listCrawledUrls( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCrawledUrlsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a Finding.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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); + } + } + + /** + * Base class for the server implementation of the service WebSecurityScanner. + * + *
+   * 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, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WebSecurityScannerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. + * + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, + com.google.protobuf.Empty>(service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>(service, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( + service, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( + service, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + + 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 java.lang.String methodName; + + WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java new file mode 100644 index 000000000000..a1c3863a95b5 --- /dev/null +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerGrpc.java @@ -0,0 +1,1865 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 java.lang.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 interface AsyncService { + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default void deleteScanConfig( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void startScanRun( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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); + } + } + + /** + * Base class for the server implementation of the service WebSecurityScanner. + * + *
+   * 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, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WebSecurityScannerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. + * + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, + com.google.protobuf.Empty>(service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( + service, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( + service, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + + 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 java.lang.String methodName; + + WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java new file mode 100644 index 000000000000..95d2e71ddfcf --- /dev/null +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java @@ -0,0 +1,1859 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 java.lang.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 interface AsyncService { + + /** + * + * + *
+     * Creates a new ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default void deleteScanConfig( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScanConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanConfig.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default void startScanRun( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartScanRunMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a ScanRun.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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.
+     * 
+ */ + default 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); + } + } + + /** + * Base class for the server implementation of the service WebSecurityScanner. + * + *
+   * 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, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WebSecurityScannerGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. + * + *
+   * 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); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. + * + *
+   * 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + 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>( + service, METHODID_CREATE_SCAN_CONFIG))) + .addMethod( + getDeleteScanConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, + com.google.protobuf.Empty>(service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, 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>( + service, METHODID_GET_FINDING))) + .addMethod( + getListFindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( + service, METHODID_LIST_FINDINGS))) + .addMethod( + getListFindingTypeStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( + service, METHODID_LIST_FINDING_TYPE_STATS))) + .build(); + } + + 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 java.lang.String methodName; + + WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java index 04c11f84adee..e93604423f06 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrl.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +47,39 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -65,30 +88,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 { @@ -97,14 +120,18 @@ public java.lang.String getHttpMethod() { } public static final int URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ @java.lang.Override @@ -113,29 +140,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 { @@ -144,14 +171,18 @@ public java.lang.String getUrl() { } public static final int BODY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -160,29 +191,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 { @@ -191,6 +222,7 @@ public java.lang.String getBody() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +234,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_); } @@ -239,19 +270,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,98 +304,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
@@ -375,33 +409,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -413,9 +446,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
@@ -434,8 +467,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.CrawledUrl result =
+          new com.google.cloud.websecurityscanner.v1.CrawledUrl(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -457,38 +493,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.CrawledUrl res
     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;
@@ -496,7 +533,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_;
         bitField0_ |= 0x00000001;
@@ -538,27 +576,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              httpMethod_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              url_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              body_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                httpMethod_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                url_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                body_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -568,23 +610,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -593,21 +638,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 { @@ -615,30 +661,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } httpMethod_ = value; bitField0_ |= 0x00000001; 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() { @@ -648,18 +701,22 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000001; @@ -669,18 +726,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; @@ -689,20 +748,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 { @@ -710,28 +770,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return This builder for chaining. */ public Builder clearUrl() { @@ -741,17 +808,21 @@ public Builder clearUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; @@ -761,18 +832,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; @@ -781,20 +854,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 { @@ -802,28 +876,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } body_ = value; bitField0_ |= 0x00000004; 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() { @@ -833,26 +914,30 @@ public Builder clearBody() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000004; 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); } @@ -862,12 +947,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(); } @@ -876,27 +961,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +996,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java similarity index 62% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java index 1ded75efae49..10698623cc5e 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java new file mode 100644 index 000000000000..2a3c4dbfe401 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\205\002\n&com" + + ".google.cloud.websecurityscanner.v1B\017Cra" + + "wledUrlProtoP\001ZVcloud.google.com/go/webs" + + "ecurityscanner/apiv1/websecurityscannerp" + + "b;websecurityscannerpb\252\002\"Google.Cloud.We" + + "bSecurityScanner.V1\312\002\"Google\\Cloud\\WebSe" + + "curityScanner\\V1\352\002%Google::Cloud::WebSec" + + "urityScanner::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java index 1c85dea9d96f..0025d203654a 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequest.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +84,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 { @@ -95,11 +118,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 @@ -107,18 +133,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.
    * 
@@ -127,10 +160,13 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigOrBuilder() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() + : scanConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +178,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_); } @@ -163,8 +198,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +208,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +244,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,13 +388,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(); } @@ -371,21 +410,23 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.CreateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null - ? scanConfig_ - : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); } } @@ -393,38 +434,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.CreateScanConf 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; @@ -432,7 +474,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_; bitField0_ |= 0x00000001; @@ -467,24 +511,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getScanConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +539,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -519,21 +567,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 { @@ -541,30 +590,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -574,18 +630,22 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,34 +655,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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.
      * 
@@ -643,6 +716,8 @@ public Builder setScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig v return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -661,6 +736,8 @@ public Builder setScanConfig( return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -669,9 +746,10 @@ public Builder setScanConfig( */ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig value) { if (scanConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - scanConfig_ != null && - scanConfig_ != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && scanConfig_ != null + && scanConfig_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -684,6 +762,8 @@ public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -701,6 +781,8 @@ public Builder clearScanConfig() { return this; } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -713,6 +795,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBu return getScanConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ScanConfig to be created.
      * 
@@ -723,11 +807,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.
      * 
@@ -735,21 +822,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); } @@ -759,41 +849,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -805,9 +897,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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java index ea34e72e0893..b632a4aec652 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CreateScanConfigRequestOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java index 7296f4a846ba..6e4df03038d8 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequest.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +84,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 { @@ -93,6 +116,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +128,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_); } @@ -129,15 +152,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +180,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +319,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(); } @@ -312,13 +341,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,38 +362,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.DeleteScanConf 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; @@ -368,7 +402,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_; bitField0_ |= 0x00000001; @@ -400,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +458,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +486,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 { @@ -467,30 +509,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +549,31 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,41 +583,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +631,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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java index ddf4170352e3..e429ff5c3951 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/DeleteScanConfigRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java similarity index 72% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java index 3ad16e7808e5..d55d837677fc 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +54,38 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
-  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.
      * 
@@ -72,6 +94,8 @@ public enum Severity */ SEVERITY_UNSPECIFIED(0), /** + * + * *
      * Critical severity.
      * 
@@ -80,6 +104,8 @@ public enum Severity */ CRITICAL(1), /** + * + * *
      * High severity.
      * 
@@ -88,6 +114,8 @@ public enum Severity */ HIGH(2), /** + * + * *
      * Medium severity.
      * 
@@ -96,6 +124,8 @@ public enum Severity */ MEDIUM(3), /** + * + * *
      * Low severity.
      * 
@@ -107,6 +137,8 @@ public enum Severity ; /** + * + * *
      * No severity specified. The default value.
      * 
@@ -115,6 +147,8 @@ public enum Severity */ public static final int SEVERITY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Critical severity.
      * 
@@ -123,6 +157,8 @@ public enum Severity */ public static final int CRITICAL_VALUE = 1; /** + * + * *
      * High severity.
      * 
@@ -131,6 +167,8 @@ public enum Severity */ public static final int HIGH_VALUE = 2; /** + * + * *
      * Medium severity.
      * 
@@ -139,6 +177,8 @@ public enum Severity */ public static final int MEDIUM_VALUE = 3; /** + * + * *
      * Low severity.
      * 
@@ -147,7 +187,6 @@ public enum Severity */ public static final int LOW_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -172,51 +211,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; @@ -234,9 +275,12 @@ private Severity(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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}'.
@@ -244,6 +288,7 @@ private Severity(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -252,14 +297,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}'.
@@ -267,16 +313,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 { @@ -285,9 +330,12 @@ public java.lang.String getName() { } public static final int FINDING_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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:
@@ -295,6 +343,7 @@ public java.lang.String getName() {
    * 
* * string finding_type = 2; + * * @return The findingType. */ @java.lang.Override @@ -303,14 +352,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:
@@ -318,16 +368,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,39 +387,58 @@ public java.lang.String getFindingType() { public static final int SEVERITY_FIELD_NUMBER = 17; 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]; + * + * * @return The severity. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { - com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.forNumber(severity_); - return result == null ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Finding.Severity getSeverity() { + com.google.cloud.websecurityscanner.v1.Finding.Severity result = + com.google.cloud.websecurityscanner.v1.Finding.Severity.forNumber(severity_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Finding.Severity.UNRECOGNIZED + : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -379,30 +447,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 { @@ -411,15 +479,19 @@ public java.lang.String getHttpMethod() { } public static final int FUZZED_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -428,30 +500,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 { @@ -460,14 +532,18 @@ public java.lang.String getFuzzedUrl() { } public static final int BODY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") 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 @@ -476,29 +552,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 { @@ -507,14 +583,18 @@ public java.lang.String getBody() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Output only. The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ @java.lang.Override @@ -523,29 +603,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 { @@ -554,15 +634,19 @@ public java.lang.String getDescription() { } public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; + @SuppressWarnings("serial") 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 @@ -571,30 +655,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 { @@ -603,15 +687,19 @@ public java.lang.String getReproductionUrl() { } public static final int FRAME_URL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") 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 @@ -620,30 +708,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 { @@ -652,14 +740,18 @@ public java.lang.String getFrameUrl() { } public static final int FINAL_URL_FIELD_NUMBER = 9; + @SuppressWarnings("serial") 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 @@ -668,29 +760,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 { @@ -699,15 +791,19 @@ public java.lang.String getFinalUrl() { } public static final int TRACKING_ID_FIELD_NUMBER = 10; + @SuppressWarnings("serial") 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 @@ -716,30 +812,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 { @@ -750,12 +846,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 @@ -763,12 +862,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 @@ -776,6 +878,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.
@@ -791,11 +895,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 @@ -803,18 +910,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.
    * 
@@ -822,19 +936,25 @@ 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() { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + public com.google.cloud.websecurityscanner.v1.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } 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 @@ -842,19 +962,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.
@@ -863,18 +990,24 @@ 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() {
-    return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance() : violatingResource_;
+  public com.google.cloud.websecurityscanner.v1.ViolatingResourceOrBuilder
+      getViolatingResourceOrBuilder() {
+    return violatingResource_ == null
+        ? com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()
+        : violatingResource_;
   }
 
   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 @@ -882,18 +1015,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.
    * 
@@ -901,19 +1041,26 @@ 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() { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + public com.google.cloud.websecurityscanner.v1.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } 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 @@ -921,39 +1068,54 @@ 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() { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } 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 @@ -961,11 +1123,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 @@ -973,6 +1138,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.
    * 
@@ -987,11 +1154,16 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { public static final int XXE_FIELD_NUMBER = 18; private com.google.cloud.websecurityscanner.v1.Xxe xxe_; /** + * + * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the xxe field is set. */ @java.lang.Override @@ -999,11 +1171,16 @@ public boolean hasXxe() { return xxe_ != null; } /** + * + * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The xxe. */ @java.lang.Override @@ -1011,11 +1188,15 @@ public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; } /** + * + * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { @@ -1023,6 +1204,7 @@ public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1034,8 +1216,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_); } @@ -1084,7 +1265,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_); } if (xxe_ != null) { @@ -1130,36 +1313,31 @@ 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_); } if (xxe_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, getXxe()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getXxe()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1169,68 +1347,52 @@ 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 (hasXxe() != other.hasXxe()) return false; if (hasXxe()) { - if (!getXxe() - .equals(other.getXxe())) return false; + if (!getXxe().equals(other.getXxe())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1298,99 +1460,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.
@@ -1398,33 +1565,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1479,9 +1645,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
@@ -1500,8 +1666,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.Finding result =
+          new com.google.cloud.websecurityscanner.v1.Finding(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1542,39 +1711,35 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Finding result
         result.trackingId_ = trackingId_;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.form_ = formBuilder_ == null
-            ? form_
-            : formBuilder_.build();
+        result.form_ = formBuilder_ == null ? form_ : formBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.outdatedLibrary_ = outdatedLibraryBuilder_ == null
-            ? outdatedLibrary_
-            : outdatedLibraryBuilder_.build();
+        result.outdatedLibrary_ =
+            outdatedLibraryBuilder_ == null ? outdatedLibrary_ : outdatedLibraryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.violatingResource_ = violatingResourceBuilder_ == null
-            ? violatingResource_
-            : violatingResourceBuilder_.build();
+        result.violatingResource_ =
+            violatingResourceBuilder_ == null
+                ? violatingResource_
+                : violatingResourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.vulnerableHeaders_ = vulnerableHeadersBuilder_ == null
-            ? vulnerableHeaders_
-            : vulnerableHeadersBuilder_.build();
+        result.vulnerableHeaders_ =
+            vulnerableHeadersBuilder_ == null
+                ? vulnerableHeaders_
+                : vulnerableHeadersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.vulnerableParameters_ = vulnerableParametersBuilder_ == null
-            ? vulnerableParameters_
-            : vulnerableParametersBuilder_.build();
+        result.vulnerableParameters_ =
+            vulnerableParametersBuilder_ == null
+                ? vulnerableParameters_
+                : vulnerableParametersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.xss_ = xssBuilder_ == null
-            ? xss_
-            : xssBuilder_.build();
+        result.xss_ = xssBuilder_ == null ? xss_ : xssBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
-        result.xxe_ = xxeBuilder_ == null
-            ? xxe_
-            : xxeBuilder_.build();
+        result.xxe_ = xxeBuilder_ == null ? xxe_ : xxeBuilder_.build();
       }
     }
 
@@ -1582,38 +1747,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Finding result
     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;
@@ -1722,116 +1888,124 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              findingType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              httpMethod_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 34: {
-              fuzzedUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 34
-            case 42: {
-              body_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              reproductionUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              frameUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              finalUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              trackingId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getOutdatedLibraryFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getViolatingResourceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getVulnerableParametersFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getXssFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 114
-            case 122: {
-              input.readMessage(
-                  getVulnerableHeadersFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 122
-            case 130: {
-              input.readMessage(
-                  getFormFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 130
-            case 136: {
-              severity_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 136
-            case 146: {
-              input.readMessage(
-                  getXxeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00020000;
-              break;
-            } // case 146
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                findingType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                httpMethod_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 34:
+              {
+                fuzzedUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 34
+            case 42:
+              {
+                body_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                reproductionUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                frameUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                finalUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                trackingId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(
+                    getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(
+                    getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 114
+            case 122:
+              {
+                input.readMessage(
+                    getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 122
+            case 130:
+              {
+                input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 130
+            case 136:
+              {
+                severity_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 136
+            case 146:
+              {
+                input.readMessage(getXxeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00020000;
+                break;
+              } // case 146
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1841,10 +2015,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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}'.
@@ -1852,13 +2029,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; @@ -1867,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}'.
@@ -1874,15 +2053,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 { @@ -1890,6 +2068,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}'.
@@ -1897,18 +2077,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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}'.
@@ -1916,6 +2100,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1925,6 +2110,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1932,12 +2119,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1947,6 +2136,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:
@@ -1954,13 +2145,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; @@ -1969,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:
@@ -1976,15 +2169,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 { @@ -1992,6 +2184,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:
@@ -1999,18 +2193,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) { - if (value == null) { throw new NullPointerException(); } - findingType_ = value; - bitField0_ |= 0x00000002; + public Builder setFindingType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + findingType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2018,6 +2216,7 @@ public Builder setFindingType(
      * 
* * string finding_type = 2; + * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -2027,6 +2226,8 @@ public Builder clearFindingType() { return this; } /** + * + * *
      * Output only. The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -2034,12 +2235,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000002; @@ -2049,22 +2252,33 @@ 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. */ @@ -2075,24 +2289,37 @@ public Builder setSeverityValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.Finding.Severity result = com.google.cloud.websecurityscanner.v1.Finding.Severity.forNumber(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.forNumber(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. */ @@ -2106,11 +2333,16 @@ public Builder setSeverity(com.google.cloud.websecurityscanner.v1.Finding.Severi 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() { @@ -2122,19 +2354,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; @@ -2143,21 +2377,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 { @@ -2165,30 +2400,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } httpMethod_ = value; bitField0_ |= 0x00000008; 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() { @@ -2198,18 +2440,22 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000008; @@ -2219,19 +2465,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; @@ -2240,21 +2488,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 { @@ -2262,30 +2511,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFuzzedUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fuzzedUrl_ = value; bitField0_ |= 0x00000010; 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() { @@ -2295,18 +2551,22 @@ public Builder clearFuzzedUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fuzzedUrl_ = value; bitField0_ |= 0x00000010; @@ -2316,18 +2576,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; @@ -2336,20 +2598,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 { @@ -2357,28 +2620,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } body_ = value; bitField0_ |= 0x00000020; 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() { @@ -2388,17 +2658,21 @@ public Builder clearBody() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000020; @@ -2408,18 +2682,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; @@ -2428,20 +2704,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 { @@ -2449,28 +2726,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. The description of the vulnerability.
      * 
* * string description = 6; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2480,17 +2764,21 @@ public Builder clearDescription() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000040; @@ -2500,19 +2788,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; @@ -2521,21 +2811,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 { @@ -2543,30 +2834,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReproductionUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reproductionUrl_ = value; bitField0_ |= 0x00000080; 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() { @@ -2576,18 +2874,22 @@ public Builder clearReproductionUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reproductionUrl_ = value; bitField0_ |= 0x00000080; @@ -2597,19 +2899,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; @@ -2618,21 +2922,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 { @@ -2640,30 +2945,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFrameUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } frameUrl_ = value; bitField0_ |= 0x00000100; 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() { @@ -2673,18 +2985,22 @@ public Builder clearFrameUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); frameUrl_ = value; bitField0_ |= 0x00000100; @@ -2694,18 +3010,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; @@ -2714,20 +3032,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 { @@ -2735,28 +3054,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFinalUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } finalUrl_ = value; bitField0_ |= 0x00000200; 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() { @@ -2766,17 +3092,21 @@ public Builder clearFinalUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); finalUrl_ = value; bitField0_ |= 0x00000200; @@ -2786,19 +3116,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; @@ -2807,21 +3139,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 { @@ -2829,30 +3162,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTrackingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } trackingId_ = value; bitField0_ |= 0x00000400; 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() { @@ -2862,18 +3202,22 @@ public Builder clearTrackingId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); trackingId_ = value; bitField0_ |= 0x00000400; @@ -2883,36 +3227,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 ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * 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.
@@ -2934,6 +3291,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.
@@ -2941,8 +3300,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();
       } else {
@@ -2953,6 +3311,8 @@ public Builder setForm(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2962,9 +3322,9 @@ public Builder setForm(
      */
     public Builder mergeForm(com.google.cloud.websecurityscanner.v1.Form value) {
       if (formBuilder_ == null) {
-        if (((bitField0_ & 0x00000800) != 0) &&
-          form_ != null &&
-          form_ != com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000800) != 0)
+            && form_ != null
+            && form_ != com.google.cloud.websecurityscanner.v1.Form.getDefaultInstance()) {
           getFormBuilder().mergeFrom(value);
         } else {
           form_ = value;
@@ -2977,6 +3337,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.
@@ -2995,6 +3357,8 @@ public Builder clearForm() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3008,6 +3372,8 @@ public com.google.cloud.websecurityscanner.v1.Form.Builder getFormBuilder() {
       return getFormFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -3019,11 +3385,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.
@@ -3032,14 +3401,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_;
@@ -3047,41 +3419,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 ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * 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(); @@ -3095,6 +3481,8 @@ public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1.Outdate return this; } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3113,17 +3501,21 @@ 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 (((bitField0_ & 0x00001000) != 0) && - outdatedLibrary_ != null && - outdatedLibrary_ != com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && outdatedLibrary_ != null + && outdatedLibrary_ + != com.google.cloud.websecurityscanner.v1.OutdatedLibrary.getDefaultInstance()) { getOutdatedLibraryBuilder().mergeFrom(value); } else { outdatedLibrary_ = value; @@ -3136,6 +3528,8 @@ public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1.Outda return this; } /** + * + * *
      * Output only. An addon containing information about outdated libraries.
      * 
@@ -3153,33 +3547,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() { bitField0_ |= 0x00001000; 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.
      * 
@@ -3187,14 +3590,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_; @@ -3202,36 +3608,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 ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * 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.
@@ -3239,7 +3658,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();
@@ -3253,6 +3673,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.
@@ -3272,6 +3694,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.
@@ -3279,11 +3703,13 @@ 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 (((bitField0_ & 0x00002000) != 0) &&
-          violatingResource_ != null &&
-          violatingResource_ != com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()) {
+        if (((bitField0_ & 0x00002000) != 0)
+            && violatingResource_ != null
+            && violatingResource_
+                != com.google.cloud.websecurityscanner.v1.ViolatingResource.getDefaultInstance()) {
           getViolatingResourceBuilder().mergeFrom(value);
         } else {
           violatingResource_ = value;
@@ -3296,6 +3722,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.
@@ -3314,6 +3742,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.
@@ -3321,12 +3751,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() {
       bitField0_ |= 0x00002000;
       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.
@@ -3334,15 +3767,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.
@@ -3351,14 +3788,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_;
@@ -3366,41 +3806,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 ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * 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(); @@ -3414,6 +3868,8 @@ public Builder setVulnerableHeaders(com.google.cloud.websecurityscanner.v1.Vulne return this; } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3432,17 +3888,21 @@ 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 (((bitField0_ & 0x00004000) != 0) && - vulnerableHeaders_ != null && - vulnerableHeaders_ != com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) + && vulnerableHeaders_ != null + && vulnerableHeaders_ + != com.google.cloud.websecurityscanner.v1.VulnerableHeaders.getDefaultInstance()) { getVulnerableHeadersBuilder().mergeFrom(value); } else { vulnerableHeaders_ = value; @@ -3455,6 +3915,8 @@ public Builder mergeVulnerableHeaders(com.google.cloud.websecurityscanner.v1.Vul return this; } /** + * + * *
      * Output only. An addon containing information about vulnerable or missing HTTP headers.
      * 
@@ -3472,33 +3934,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() { bitField0_ |= 0x00004000; 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.
      * 
@@ -3506,14 +3977,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_; @@ -3521,44 +3995,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 ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * 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(); @@ -3572,12 +4063,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) { @@ -3591,18 +4085,24 @@ 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 (((bitField0_ & 0x00008000) != 0) && - vulnerableParameters_ != null && - vulnerableParameters_ != com.google.cloud.websecurityscanner.v1.VulnerableParameters.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && vulnerableParameters_ != null + && vulnerableParameters_ + != com.google.cloud.websecurityscanner.v1.VulnerableParameters + .getDefaultInstance()) { getVulnerableParametersBuilder().mergeFrom(value); } else { vulnerableParameters_ = value; @@ -3615,12 +4115,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() { bitField0_ = (bitField0_ & ~0x00008000); @@ -3633,51 +4136,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() { bitField0_ |= 0x00008000; 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_; @@ -3685,34 +4203,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 ((bitField0_ & 0x00010000) != 0); } /** + * + * *
      * 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.
      * 
@@ -3733,14 +4264,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(); } else { @@ -3751,6 +4283,8 @@ public Builder setXss( return this; } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3759,9 +4293,9 @@ public Builder setXss( */ public Builder mergeXss(com.google.cloud.websecurityscanner.v1.Xss value) { if (xssBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - xss_ != null && - xss_ != com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) + && xss_ != null + && xss_ != com.google.cloud.websecurityscanner.v1.Xss.getDefaultInstance()) { getXssBuilder().mergeFrom(value); } else { xss_ = value; @@ -3774,6 +4308,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.
      * 
@@ -3791,6 +4327,8 @@ public Builder clearXss() { return this; } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3803,6 +4341,8 @@ public com.google.cloud.websecurityscanner.v1.Xss.Builder getXssBuilder() { return getXssFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An addon containing information reported for an XSS, if any.
      * 
@@ -3813,11 +4353,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.
      * 
@@ -3825,14 +4368,17 @@ 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_; @@ -3840,39 +4386,58 @@ public com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder() { private com.google.cloud.websecurityscanner.v1.Xxe xxe_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder> xxeBuilder_; + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + xxeBuilder_; /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the xxe field is set. */ public boolean hasXxe() { return ((bitField0_ & 0x00020000) != 0); } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The xxe. */ public com.google.cloud.websecurityscanner.v1.Xxe getXxe() { if (xxeBuilder_ == null) { - return xxe_ == null ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; + return xxe_ == null + ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() + : xxe_; } else { return xxeBuilder_.getMessage(); } } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { if (xxeBuilder_ == null) { @@ -3888,14 +4453,17 @@ public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { return this; } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setXxe( - com.google.cloud.websecurityscanner.v1.Xxe.Builder builderForValue) { + public Builder setXxe(com.google.cloud.websecurityscanner.v1.Xxe.Builder builderForValue) { if (xxeBuilder_ == null) { xxe_ = builderForValue.build(); } else { @@ -3906,17 +4474,21 @@ public Builder setXxe( return this; } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { if (xxeBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) && - xxe_ != null && - xxe_ != com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance()) { + if (((bitField0_ & 0x00020000) != 0) + && xxe_ != null + && xxe_ != com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance()) { getXxeBuilder().mergeFrom(value); } else { xxe_ = value; @@ -3929,11 +4501,15 @@ public Builder mergeXxe(com.google.cloud.websecurityscanner.v1.Xxe value) { return this; } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearXxe() { bitField0_ = (bitField0_ & ~0x00020000); @@ -3946,11 +4522,15 @@ public Builder clearXxe() { return this; } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.websecurityscanner.v1.Xxe.Builder getXxeBuilder() { bitField0_ |= 0x00020000; @@ -3958,43 +4538,55 @@ public com.google.cloud.websecurityscanner.v1.Xxe.Builder getXxeBuilder() { return getXxeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder() { if (xxeBuilder_ != null) { return xxeBuilder_.getMessageOrBuilder(); } else { - return xxe_ == null ? - com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() : xxe_; + return xxe_ == null + ? com.google.cloud.websecurityscanner.v1.Xxe.getDefaultInstance() + : xxe_; } } /** + * + * *
      * Output only. An addon containing information reported for an XXE, if any.
      * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder> + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder> getXxeFieldBuilder() { if (xxeBuilder_ == null) { - xxeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.websecurityscanner.v1.Xxe, com.google.cloud.websecurityscanner.v1.Xxe.Builder, com.google.cloud.websecurityscanner.v1.XxeOrBuilder>( - getXxe(), - getParentForChildren(), - isClean()); + xxeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.websecurityscanner.v1.Xxe, + com.google.cloud.websecurityscanner.v1.Xxe.Builder, + com.google.cloud.websecurityscanner.v1.XxeOrBuilder>( + getXxe(), getParentForChildren(), isClean()); xxe_ = null; } return xxeBuilder_; } + @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); } @@ -4004,12 +4596,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(); } @@ -4018,27 +4610,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4053,6 +4645,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java new file mode 100644 index 000000000000..d8faf4672ab8 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java @@ -0,0 +1,182 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_websecurityscanner_v1_Xxe_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\017\"\251" + + "\001\n\003Xxe\022\025\n\rpayload_value\030\001 \001(\t\022J\n\020payload" + + "_location\030\002 \001(\01620.google.cloud.websecuri" + + "tyscanner.v1.Xxe.Location\"?\n\010Location\022\030\n" + + "\024LOCATION_UNSPECIFIED\020\000\022\031\n\025COMPLETE_REQU" + + "EST_BODY\020\001B\207\002\n&com.google.cloud.websecur" + + "ityscanner.v1B\021FindingAddonProtoP\001ZVclou" + + "d.google.com/go/websecurityscanner/apiv1" + + "/websecurityscannerpb;websecurityscanner" + + "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" + + "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" + + "oogle::Cloud::WebSecurityScanner::V1b\006pr" + + "oto3" + }; + 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", + }); + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor, + new java.lang.String[] { + "PayloadValue", "PayloadLocation", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java similarity index 82% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java index 49d6e61296b5..73438feb8fe2 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.
    * 
@@ -416,29 +544,43 @@ public interface FindingOrBuilder extends com.google.cloud.websecurityscanner.v1.XssOrBuilder getXssOrBuilder(); /** + * + * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the xxe field is set. */ boolean hasXxe(); /** + * + * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The xxe. */ com.google.cloud.websecurityscanner.v1.Xxe getXxe(); /** + * + * *
    * Output only. An addon containing information reported for an XXE, if any.
    * 
* - * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.websecurityscanner.v1.Xxe xxe = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.websecurityscanner.v1.XxeOrBuilder getXxeOrBuilder(); } diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java new file mode 100644 index 000000000000..ed4dbd6ad588 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java @@ -0,0 +1,126 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\"\356\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + + "type\030\002 \001(\t\022L\n\010severity\030\021 \001(\01624.google.cl" + + "oud.websecurityscanner.v1.Finding.Severi" + + "tyB\004\342A\001\003\022\023\n\013http_method\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\020reproduction_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\0226\n\004form\030\020 \001(\0132(.google.cloud.w" + + "ebsecurityscanner.v1.Form\022M\n\020outdated_li" + + "brary\030\013 \001(\01323.google.cloud.websecuritysc" + + "anner.v1.OutdatedLibrary\022Q\n\022violating_re" + + "source\030\014 \001(\01325.google.cloud.websecuritys" + + "canner.v1.ViolatingResource\022Q\n\022vulnerabl" + + "e_headers\030\017 \001(\01325.google.cloud.websecuri" + + "tyscanner.v1.VulnerableHeaders\022W\n\025vulner" + + "able_parameters\030\r \001(\01328.google.cloud.web" + + "securityscanner.v1.VulnerableParameters\022" + + "4\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritys" + + "canner.v1.Xss\022:\n\003xxe\030\022 \001(\0132\'.google.clou" + + "d.websecurityscanner.v1.XxeB\004\342A\001\003\"Q\n\010Sev" + + "erity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITI" + + "CAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\204\001\352" + + "A\200\001\n)websecurityscanner.googleapis.com/F" + + "inding\022Sprojects/{project}/scanConfigs/{" + + "scan_config}/scanRuns/{scan_run}/finding" + + "s/{finding}B\202\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\014FindingProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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.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", + "Xxe", + }); + 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java index 986eb1c1b718..71fd4df4328f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStats.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,48 +28,54 @@
  *
  * 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();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -61,29 +84,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 { @@ -94,11 +117,14 @@ public java.lang.String getFindingType() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_ = 0; /** + * + * *
    * Output only. The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -107,6 +133,7 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +145,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_); } @@ -139,8 +165,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -150,17 +175,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,98 +206,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.
@@ -281,33 +311,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -318,9 +347,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
@@ -339,8 +368,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.FindingTypeStats result =
+          new com.google.cloud.websecurityscanner.v1.FindingTypeStats(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -359,38 +391,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.FindingTypeSta
     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;
@@ -398,7 +431,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_;
         bitField0_ |= 0x00000001;
@@ -433,22 +467,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              findingType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              findingCount_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                findingType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                findingCount_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -458,22 +495,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -482,20 +522,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 { @@ -503,28 +544,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFindingType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } findingType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -534,17 +582,21 @@ public Builder clearFindingType() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000001; @@ -552,13 +604,16 @@ public Builder setFindingTypeBytes( 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 @@ -566,11 +621,14 @@ 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. */ @@ -582,11 +640,14 @@ public Builder setFindingCount(int value) { 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() { @@ -595,9 +656,9 @@ public Builder clearFindingCount() { 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); } @@ -607,12 +668,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(); } @@ -621,27 +682,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,6 +717,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java index 23a22c0513bb..fa98a7b8c87e 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsOrBuilder.java @@ -1,38 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java new file mode 100644 index 000000000000..3e0ca17081b5 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\213\002\n&com.google.cloud.websecurityscann" + + "er.v1B\025FindingTypeStatsProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java index 42587ac83db7..e2e47f432d92 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Form.java @@ -1,59 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.emptyList(); + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Form(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,29 +84,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 { @@ -93,38 +115,47 @@ public java.lang.String getActionUri() { } public static final int FIELDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * ! 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. */ @@ -132,20 +163,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; @@ -157,8 +191,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_); } @@ -193,17 +226,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,146 +258,149 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; actionUri_ = ""; - fields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -384,8 +419,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.Form result = + new com.google.cloud.websecurityscanner.v1.Form(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,38 +443,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Form result) { 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; @@ -486,23 +525,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - actionUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureFieldsIsMutable(); - fields_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + actionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,22 +554,25 @@ public Builder mergeFrom( } // finally 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; @@ -536,20 +581,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 { @@ -557,28 +603,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } actionUri_ = value; bitField0_ |= 0x00000001; 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() { @@ -588,17 +641,21 @@ public Builder clearActionUri() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); actionUri_ = value; bitField0_ |= 0x00000001; @@ -608,6 +665,7 @@ public Builder setActionUriBytes( private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFieldsIsMutable() { if (!fields_.isModifiable()) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); @@ -615,35 +673,43 @@ private void ensureFieldsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * ! 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() { fields_.makeImmutable(); 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. */ @@ -651,31 +717,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFieldsIsMutable(); fields_.set(index, value); bitField0_ |= 0x00000002; @@ -683,17 +755,21 @@ public Builder setFields( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFieldsIsMutable(); fields_.add(value); bitField0_ |= 0x00000002; @@ -701,50 +777,58 @@ public Builder addFields( 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return This builder for chaining. */ public Builder clearFields() { - fields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); @@ -752,9 +836,9 @@ public Builder addFieldsBytes( 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); } @@ -764,12 +848,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(); } @@ -778,27 +862,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +897,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java index 07e70a5bff0d..493692b6f39d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FormOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java index 794d5a0a8db8..452964625f61 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the Finding to be returned. The name follows the
    * format of
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,14 +85,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
@@ -77,16 +101,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 { @@ -95,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +130,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_); } @@ -131,15 +154,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +182,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,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 @@ -314,8 +342,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.GetFindingRequest result = + new com.google.cloud.websecurityscanner.v1.GetFindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +362,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.GetFindingRequ 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; @@ -370,7 +402,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_; bitField0_ |= 0x00000001; @@ -402,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,10 +457,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -433,13 +471,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; @@ -448,6 +486,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -455,15 +495,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 { @@ -471,6 +510,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -478,18 +519,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -497,6 +542,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,6 +552,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the Finding to be returned. The name follows the
      * format of
@@ -513,21 +561,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +587,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(); } @@ -551,27 +601,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java index 0b92e26a907c..bcdbae2e0c71 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetFindingRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java index 884533b2a878..6fd3ec9551c2 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequest.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +84,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 { @@ -93,6 +116,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +128,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_); } @@ -129,15 +152,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +180,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +319,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 @@ -312,8 +340,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.GetScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.GetScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +360,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.GetScanConfigR 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; @@ -368,7 +400,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_; bitField0_ |= 0x00000001; @@ -400,17 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +455,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +483,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 { @@ -467,30 +506,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +546,31 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,12 +580,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(); } @@ -544,27 +594,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +629,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java index eb1926cd724e..971030526994 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanConfigRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java index faeaf9325788..e98d8a9b5e0a 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the ScanRun to be returned. The name follows the
    * format of
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,14 +85,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
@@ -77,16 +101,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 { @@ -95,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +130,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_); } @@ -131,15 +154,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +182,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,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 @@ -314,8 +342,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.GetScanRunRequest result = + new com.google.cloud.websecurityscanner.v1.GetScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +362,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.GetScanRunRequ 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; @@ -370,7 +402,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_; bitField0_ |= 0x00000001; @@ -402,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,10 +457,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -433,13 +471,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; @@ -448,6 +486,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -455,15 +495,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 { @@ -471,6 +510,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -478,18 +519,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -497,6 +542,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,6 +552,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be returned. The name follows the
      * format of
@@ -513,21 +561,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +587,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(); } @@ -551,27 +601,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java index 46d95644eec8..876db93a0207 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/GetScanRunRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java index a3da304f32e0..0196e80716fa 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -55,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -63,14 +86,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
@@ -78,16 +102,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 { @@ -96,9 +119,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -106,6 +132,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -114,14 +141,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.
@@ -129,16 +157,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 { @@ -149,6 +176,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -156,6 +185,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -164,6 +194,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +206,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_); } @@ -202,8 +232,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,19 +242,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -249,131 +276,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,13 +417,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(); } @@ -406,13 +439,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result = + new com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -429,38 +466,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListCrawledUrl 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; @@ -468,7 +506,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_; bitField0_ |= 0x00000001; @@ -508,27 +548,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,10 +582,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -549,13 +596,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; @@ -564,6 +611,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -571,15 +620,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 { @@ -587,6 +635,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -594,18 +644,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -613,6 +667,7 @@ public Builder setParent(
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -622,6 +677,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -629,12 +686,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -644,6 +703,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.
@@ -651,13 +712,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; @@ -666,6 +727,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.
@@ -673,15 +736,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 { @@ -689,6 +751,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.
@@ -696,18 +760,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -715,6 +783,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -724,6 +793,8 @@ public Builder clearPageToken() { 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.
@@ -731,12 +802,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -744,8 +817,10 @@ public Builder setPageTokenBytes( 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
@@ -753,6 +828,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -760,6 +836,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
@@ -767,6 +845,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -778,6 +857,8 @@ public Builder setPageSize(int value) { 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
@@ -785,6 +866,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -793,9 +875,9 @@ public Builder clearPageSize() { 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); } @@ -805,12 +887,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(); } @@ -819,27 +902,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +937,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java index f7e82ce1fb50..bb51cc4072cd 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java index f20572f37604..8a7778b14a05 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List crawledUrls_; /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getCraw return crawledUrls_; } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde return crawledUrls_.get(index); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +157,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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,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)); } @@ -184,8 +218,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_); @@ -198,17 +231,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,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(); } @@ -394,14 +432,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.L } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +467,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListCrawledUrl 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; @@ -463,7 +507,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()) { @@ -482,9 +528,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_); } @@ -521,30 +568,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.CrawledUrl m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), - extensionRegistry); - if (crawledUrlsBuilder_ == null) { - ensureCrawledUrlsIsMutable(); - crawledUrls_.add(m); - } else { - crawledUrlsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +604,30 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +642,8 @@ public java.util.List getCraw } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -597,6 +658,8 @@ public int getCrawledUrlsCount() { } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -611,6 +674,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl getCrawledUrls(int inde } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -632,6 +697,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -650,6 +717,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -670,6 +739,8 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1.CrawledUrl return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -691,6 +762,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -709,6 +782,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -727,6 +802,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -737,8 +814,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); @@ -746,6 +822,8 @@ public Builder addAllCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -763,6 +841,8 @@ public Builder clearCrawledUrls() { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -780,6 +860,8 @@ public Builder removeCrawledUrls(int index) { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -791,6 +873,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrl.Builder getCrawledUrlsB return getCrawledUrlsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -800,19 +884,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 { @@ -820,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1.CrawledUrlOrBuilder getCrawledUrls } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -827,10 +916,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.
      * 
@@ -839,30 +930,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_; @@ -870,19 +967,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; @@ -891,21 +990,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 { @@ -913,30 +1013,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1053,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1087,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1135,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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java index f89e91b7178a..ffbbc54afebf 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListCrawledUrlsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java similarity index 63% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java index e6e620eca647..63b2f85f2fb4 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -62,14 +85,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
@@ -77,16 +101,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 { @@ -95,6 +118,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +130,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_); } @@ -131,15 +154,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +182,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,14 +323,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 @@ -314,13 +346,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result = + new com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -331,46 +367,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingTyp 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_; bitField0_ |= 0x00000001; @@ -402,17 +443,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,10 +465,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -433,13 +479,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; @@ -448,6 +494,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -455,15 +503,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 { @@ -471,6 +518,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -478,18 +527,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -497,6 +550,7 @@ public Builder setParent(
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -506,6 +560,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -513,21 +569,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,41 +595,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,9 +643,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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java index d00ea56d0c1e..616aba4d37f8 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java index 46cc4a2f7af2..860eeeb84ea2 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponse.java @@ -1,110 +1,147 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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; @@ -116,8 +153,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)); } @@ -131,8 +167,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +177,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,131 +207,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,14 +354,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 @@ -333,14 +377,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -352,7 +400,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.L } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse result) { int from_bitField0_ = bitField0_; } @@ -360,46 +409,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingTyp 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()) { @@ -418,9 +472,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_); } @@ -452,25 +507,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.FindingTypeStats m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), - extensionRegistry); - if (findingTypeStatsBuilder_ == null) { - ensureFindingTypeStatsIsMutable(); - findingTypeStats_.add(m); - } else { - findingTypeStatsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -480,28 +537,39 @@ public Builder mergeFrom( } // finally 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 { @@ -509,11 +577,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) { @@ -523,11 +594,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) { @@ -537,11 +611,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) { @@ -558,14 +635,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()); @@ -576,13 +657,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(); @@ -596,11 +681,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) { @@ -617,11 +705,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) { @@ -635,14 +726,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()); @@ -653,18 +748,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); @@ -672,11 +770,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) { @@ -689,11 +790,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) { @@ -706,39 +810,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 { @@ -746,45 +861,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(), @@ -793,9 +925,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); } @@ -805,41 +937,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,9 +985,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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java similarity index 59% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java index 7a7d5d416af3..2ffc7466d2bf 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingTypeStatsResponseOrBuilder.java @@ -1,52 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java similarity index 72% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java index bdbd3389c9e0..fc3a426cd78c 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +45,32 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource name, which should be a scan run resource name in the
    * format
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -64,14 +87,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
@@ -79,16 +103,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 { @@ -97,9 +120,12 @@ public java.lang.String getParent() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -108,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2; + * * @return The filter. */ @java.lang.Override @@ -116,14 +143,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>.
@@ -132,16 +160,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 { @@ -150,9 +177,12 @@ public java.lang.String getFilter() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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.
@@ -160,6 +190,7 @@ public java.lang.String getFilter() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -168,14 +199,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.
@@ -183,16 +215,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 { @@ -203,6 +234,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -210,6 +243,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -218,6 +252,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -262,8 +296,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,21 +306,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,131 +343,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +485,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 @@ -471,8 +506,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ListFindingsRequest result = + new com.google.cloud.websecurityscanner.v1.ListFindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -497,38 +535,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingsRe 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; @@ -536,7 +575,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_; bitField0_ |= 0x00000001; @@ -581,32 +621,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,10 +661,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -627,13 +675,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; @@ -642,6 +690,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -649,15 +699,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 { @@ -665,6 +714,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -672,18 +723,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -691,6 +746,7 @@ public Builder setParent(
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -700,6 +756,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource name, which should be a scan run resource name in the
      * format
@@ -707,12 +765,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -722,6 +782,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -730,13 +792,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; @@ -745,6 +807,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -753,15 +817,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 { @@ -769,6 +832,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -777,18 +842,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -797,6 +866,7 @@ public Builder setFilter(
      * 
* * string filter = 2; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -806,6 +876,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -814,12 +886,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -829,6 +903,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.
@@ -836,13 +912,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; @@ -851,6 +927,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.
@@ -858,15 +936,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 { @@ -874,6 +951,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.
@@ -881,18 +960,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; 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.
@@ -900,6 +983,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -909,6 +993,8 @@ public Builder clearPageToken() { 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.
@@ -916,12 +1002,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -929,8 +1017,10 @@ public Builder setPageTokenBytes( 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
@@ -938,6 +1028,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -945,6 +1036,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
@@ -952,6 +1045,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -963,6 +1057,8 @@ public Builder setPageSize(int value) { 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
@@ -970,6 +1066,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -978,9 +1075,9 @@ public Builder clearPageSize() { 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); } @@ -990,12 +1087,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(); } @@ -1004,27 +1101,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java index 7e5d643be178..e67d1c331821 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java index bf3f68dc4832..c7d54a72d9cf 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List findings_; /** + * + * *
    * The list of Findings returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getFinding return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getFindingsCount() { return findings_.size(); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1.Finding getFindings(int index) { return findings_.get(index); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -100,21 +130,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -123,30 +156,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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,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)); } @@ -184,8 +217,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_); @@ -198,17 +230,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +409,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 @@ -394,14 +430,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListFindingsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1.ListFindingsResponse result) { if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -424,38 +464,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListFindingsRe 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; @@ -463,7 +504,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()) { @@ -482,9 +524,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_); } @@ -521,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.Finding m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.Finding.parser(), - extensionRegistry); - if (findingsBuilder_ == null) { - ensureFindingsIsMutable(); - findings_.add(m); - } else { - findingsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.Finding.parser(), extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +599,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +636,8 @@ public java.util.List getFinding } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -597,6 +652,8 @@ public int getFindingsCount() { } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -611,14 +668,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(); @@ -632,6 +690,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -650,6 +710,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -670,14 +732,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(); @@ -691,6 +754,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -709,6 +774,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -727,6 +794,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -737,8 +806,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); @@ -746,6 +814,8 @@ public Builder addAllFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -763,6 +833,8 @@ public Builder clearFindings() { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -780,39 +852,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 { @@ -820,6 +897,8 @@ public com.google.cloud.websecurityscanner.v1.FindingOrBuilder getFindingsOrBuil } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -827,42 +906,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_; @@ -870,19 +955,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; @@ -891,21 +978,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 { @@ -913,30 +1001,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1041,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,12 +1075,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(); } @@ -990,27 +1089,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListFindingsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java index c01bc8a11633..b6a9976dd897 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListFindingsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java index 0ba6419f04a0..af7499bd584d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +44,39 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,30 +85,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 { @@ -94,9 +117,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -104,6 +130,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -112,14 +139,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.
@@ -127,16 +155,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 { @@ -147,6 +174,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -154,6 +183,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -162,6 +192,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +204,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_); } @@ -200,8 +230,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +240,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,131 +274,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,13 +415,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(); } @@ -404,13 +437,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result = + new com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -427,38 +464,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanConfig 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; @@ -466,7 +504,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_; bitField0_ |= 0x00000001; @@ -506,27 +546,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,23 +580,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -561,21 +608,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 { @@ -583,30 +631,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -616,18 +671,22 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -637,6 +696,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.
@@ -644,13 +705,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; @@ -659,6 +720,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.
@@ -666,15 +729,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 { @@ -682,6 +744,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.
@@ -689,18 +753,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -708,6 +776,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -717,6 +786,8 @@ public Builder clearPageToken() { 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.
@@ -724,12 +795,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -737,8 +810,10 @@ public Builder setPageTokenBytes( 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
@@ -746,6 +821,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -753,6 +829,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
@@ -760,6 +838,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -771,6 +850,8 @@ public Builder setPageSize(int value) { 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
@@ -778,6 +859,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -786,9 +868,9 @@ public Builder clearPageSize() { 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); } @@ -798,12 +880,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(); } @@ -812,27 +895,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanConfigsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java index 8f4b750315e0..b69d9574693b 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java index 4fe6bae6c6f0..197333e604ca 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List scanConfigs_; /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getScan return scanConfigs_; } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde return scanConfigs_.get(index); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +157,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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,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)); } @@ -184,8 +218,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_); @@ -198,17 +231,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,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(); } @@ -394,14 +432,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.L } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ListScanConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,38 +467,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanConfig 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; @@ -463,7 +507,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()) { @@ -482,9 +528,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_); } @@ -521,30 +568,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.ScanConfig m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), - extensionRegistry); - if (scanConfigsBuilder_ == null) { - ensureScanConfigsIsMutable(); - scanConfigs_.add(m); - } else { - scanConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +604,30 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +642,8 @@ public java.util.List getScan } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -597,6 +658,8 @@ public int getScanConfigsCount() { } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -611,6 +674,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfigs(int inde } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -632,6 +697,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -650,6 +717,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -670,6 +739,8 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1.ScanConfig return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -691,6 +762,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -709,6 +782,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -727,6 +802,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -737,8 +814,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); @@ -746,6 +822,8 @@ public Builder addAllScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -763,6 +841,8 @@ public Builder clearScanConfigs() { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -780,6 +860,8 @@ public Builder removeScanConfigs(int index) { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -791,6 +873,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigsB return getScanConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -800,19 +884,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 { @@ -820,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigs } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -827,10 +916,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.
      * 
@@ -839,30 +930,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_; @@ -870,19 +967,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; @@ -891,21 +990,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 { @@ -913,30 +1013,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1053,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1087,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1135,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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java index 8292317f010a..5a46ada7b384 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java index 304a26e45897..7bc5a3307b53 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +44,39 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,30 +85,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 { @@ -94,9 +117,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -104,6 +130,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -112,14 +139,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.
@@ -127,16 +155,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 { @@ -147,6 +174,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -154,6 +183,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -162,6 +192,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +204,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_); } @@ -200,8 +230,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +240,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,131 +274,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +415,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 @@ -404,8 +436,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ListScanRunsRequest result = + new com.google.cloud.websecurityscanner.v1.ListScanRunsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +462,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanRunsRe 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; @@ -466,7 +502,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_; bitField0_ |= 0x00000001; @@ -506,27 +543,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,23 +577,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -561,21 +605,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 { @@ -583,30 +628,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -616,18 +668,22 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -637,6 +693,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.
@@ -644,13 +702,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; @@ -659,6 +717,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.
@@ -666,15 +726,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 { @@ -682,6 +741,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.
@@ -689,18 +750,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -708,6 +773,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -717,6 +783,8 @@ public Builder clearPageToken() { 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.
@@ -724,12 +792,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -737,8 +807,10 @@ public Builder setPageTokenBytes( 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
@@ -746,6 +818,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -753,6 +826,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
@@ -760,6 +835,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -771,6 +847,8 @@ public Builder setPageSize(int value) { 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
@@ -778,6 +856,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -786,9 +865,9 @@ public Builder clearPageSize() { 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); } @@ -798,12 +877,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(); } @@ -812,27 +891,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java index a460a3f62eaf..353caa0973cb 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java index 21685cd3cc57..8820f5c87ed4 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List scanRuns_; /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getScanRun return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRun getScanRuns(int index) { return scanRuns_.get(index); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -100,21 +130,24 @@ 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; + @SuppressWarnings("serial") 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 @@ -123,30 +156,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 { @@ -155,6 +188,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +200,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)); } @@ -184,8 +217,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_); @@ -198,17 +230,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +263,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +409,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 @@ -394,14 +430,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1.ListScanRunsResponse result) { if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -424,38 +464,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ListScanRunsRe 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; @@ -463,7 +504,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()) { @@ -482,9 +524,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_); } @@ -521,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.ScanRun m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.ScanRun.parser(), - extensionRegistry); - if (scanRunsBuilder_ == null) { - ensureScanRunsIsMutable(); - scanRuns_.add(m); - } else { - scanRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.ScanRun.parser(), extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +599,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +636,8 @@ public java.util.List getScanRun } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -597,6 +652,8 @@ public int getScanRunsCount() { } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -611,14 +668,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(); @@ -632,6 +690,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -650,6 +710,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -670,14 +732,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(); @@ -691,6 +754,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -709,6 +774,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -727,6 +794,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -737,8 +806,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); @@ -746,6 +814,8 @@ public Builder addAllScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -763,6 +833,8 @@ public Builder clearScanRuns() { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -780,39 +852,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 { @@ -820,6 +897,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRunOrBuilder getScanRunsOrBuil } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -827,42 +906,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_; @@ -870,19 +955,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; @@ -891,21 +978,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 { @@ -913,30 +1001,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1041,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,12 +1075,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(); } @@ -990,27 +1089,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ListScanRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java index d453492c98fe..32f0c089864d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ListScanRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java index 49ee994e2da0..5eedbb3dba3d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibrary.java @@ -1,60 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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_ = ""; - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutdatedLibrary(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object libraryName_ = ""; /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ @java.lang.Override @@ -63,29 +85,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 { @@ -94,14 +116,18 @@ public java.lang.String getLibraryName() { } public static final int VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -110,29 +136,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 { @@ -141,38 +167,47 @@ public java.lang.String getVersion() { } public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -180,20 +215,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; @@ -205,8 +243,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_); } @@ -247,19 +284,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,146 +320,150 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; libraryName_ = ""; version_ = ""; - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -443,8 +482,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.OutdatedLibrary result = + new com.google.cloud.websecurityscanner.v1.OutdatedLibrary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -467,38 +509,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.OutdatedLibrar 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; @@ -506,7 +549,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_; bitField0_ |= 0x00000001; @@ -553,28 +597,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - libraryName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLearnMoreUrlsIsMutable(); - learnMoreUrls_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + libraryName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,22 +632,25 @@ public Builder mergeFrom( } // finally 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; @@ -608,20 +659,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 { @@ -629,28 +681,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLibraryName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } libraryName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return This builder for chaining. */ public Builder clearLibraryName() { @@ -660,17 +719,21 @@ public Builder clearLibraryName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); libraryName_ = value; bitField0_ |= 0x00000001; @@ -680,18 +743,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; @@ -700,20 +765,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 { @@ -721,28 +787,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { @@ -752,17 +825,21 @@ public Builder clearVersion() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000002; @@ -772,6 +849,7 @@ public Builder setVersionBytes( private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLearnMoreUrlsIsMutable() { if (!learnMoreUrls_.isModifiable()) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); @@ -779,35 +857,43 @@ private void ensureLearnMoreUrlsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * 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() { learnMoreUrls_.makeImmutable(); 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. */ @@ -815,31 +901,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLearnMoreUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); bitField0_ |= 0x00000004; @@ -847,17 +939,21 @@ public Builder setLearnMoreUrls( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addLearnMoreUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); bitField0_ |= 0x00000004; @@ -865,50 +961,58 @@ public Builder addLearnMoreUrls( 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_); bitField0_ |= 0x00000004; 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() { - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); @@ -916,9 +1020,9 @@ public Builder addLearnMoreUrlsBytes( 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); } @@ -928,12 +1032,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(); } @@ -942,27 +1046,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,6 +1081,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java index cd49366c8fbf..eb23f6b06583 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/OutdatedLibraryOrBuilder.java @@ -1,90 +1,126 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java index 0eadbd5075ff..d389df1efcc2 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfig.java @@ -1,66 +1,86 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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_ = ""; - startingUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); userAgent_ = 0; - blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); exportToSecurityCommandCenter_ = 0; riskLevel_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScanConfig(); } - 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.
      * 
@@ -69,6 +89,8 @@ public enum UserAgent */ USER_AGENT_UNSPECIFIED(0), /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -77,6 +99,8 @@ public enum UserAgent */ CHROME_LINUX(1), /** + * + * *
      * Chrome on Android.
      * 
@@ -85,6 +109,8 @@ public enum UserAgent */ CHROME_ANDROID(2), /** + * + * *
      * Safari on IPhone.
      * 
@@ -96,6 +122,8 @@ public enum UserAgent ; /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -104,6 +132,8 @@ public enum UserAgent */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -112,6 +142,8 @@ public enum UserAgent */ public static final int CHROME_LINUX_VALUE = 1; /** + * + * *
      * Chrome on Android.
      * 
@@ -120,6 +152,8 @@ public enum UserAgent */ public static final int CHROME_ANDROID_VALUE = 2; /** + * + * *
      * Safari on IPhone.
      * 
@@ -128,7 +162,6 @@ public enum UserAgent */ public static final int SAFARI_IPHONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -153,50 +186,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; @@ -214,6 +250,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
@@ -222,9 +260,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.
      * 
@@ -233,6 +272,8 @@ public enum RiskLevel */ RISK_LEVEL_UNSPECIFIED(0), /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -241,6 +282,8 @@ public enum RiskLevel */ NORMAL(1), /** + * + * *
      * Lower impact scanning
      * 
@@ -252,6 +295,8 @@ public enum RiskLevel ; /** + * + * *
      * Use default, which is NORMAL.
      * 
@@ -260,6 +305,8 @@ public enum RiskLevel */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -268,6 +315,8 @@ public enum RiskLevel */ public static final int NORMAL_VALUE = 1; /** + * + * *
      * Lower impact scanning
      * 
@@ -276,7 +325,6 @@ public enum RiskLevel */ public static final int LOW_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -301,49 +349,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; @@ -361,16 +411,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.
      * 
@@ -379,6 +433,8 @@ public enum ExportToSecurityCommandCenter */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** + * + * *
      * Export results of this scan to Security Command Center.
      * 
@@ -387,6 +443,8 @@ public enum ExportToSecurityCommandCenter */ ENABLED(1), /** + * + * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -398,6 +456,8 @@ public enum ExportToSecurityCommandCenter ; /** + * + * *
      * Use default, which is ENABLED.
      * 
@@ -406,6 +466,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.
      * 
@@ -414,6 +476,8 @@ public enum ExportToSecurityCommandCenter */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * Do not export results of this scan to Security Command Center.
      * 
@@ -422,7 +486,6 @@ public enum ExportToSecurityCommandCenter */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -447,10 +510,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; } } @@ -458,29 +525,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(); @@ -488,8 +557,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; @@ -506,198 +574,271 @@ 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 [deprecated = true]; - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. - * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ - @java.lang.Deprecated boolean hasGoogleAccount(); + @java.lang.Deprecated + boolean hasGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. - * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ - @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount(); + @java.lang.Deprecated + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount + getGoogleAccount(); /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder(); + @java.lang.Deprecated + 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(); - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); + 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(); } - 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); } - @java.lang.Deprecated public interface GoogleAccountOrBuilder extends + @java.lang.Deprecated + 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} */ - @java.lang.Deprecated public static final class GoogleAccount extends - com.google.protobuf.GeneratedMessageV3 implements + @java.lang.Deprecated + 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_ = ""; @@ -705,33 +846,40 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GoogleAccount(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
        * Required. The user name of the Google account.
        * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -740,29 +888,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 { @@ -771,15 +919,19 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -788,30 +940,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 { @@ -820,6 +972,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -831,8 +984,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_); } @@ -862,17 +1014,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -893,90 +1046,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 @@ -986,39 +1153,45 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1029,19 +1202,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); } @@ -1049,14 +1226,20 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -1070,46 +1253,56 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Aut 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_; bitField0_ |= 0x00000001; @@ -1146,22 +1339,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1171,22 +1367,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -1195,20 +1394,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 { @@ -1216,28 +1416,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } - username_ = value; + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Required. The user name of the Google account.
          * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1247,17 +1454,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -1267,19 +1478,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; @@ -1288,21 +1501,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 { @@ -1310,30 +1524,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -1343,24 +1564,29 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1373,41 +1599,46 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1419,94 +1650,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_ = ""; @@ -1515,33 +1766,40 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomAccount(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
        * Required. The user name of the custom account.
        * 
* * string username = 1; + * * @return The username. */ @java.lang.Override @@ -1550,29 +1808,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 { @@ -1581,15 +1839,19 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -1598,30 +1860,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 { @@ -1630,14 +1892,18 @@ public java.lang.String getPassword() { } public static final int LOGIN_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object loginUrl_ = ""; /** + * + * *
        * Required. The login form URL of the website.
        * 
* * string login_url = 3; + * * @return The loginUrl. */ @java.lang.Override @@ -1646,29 +1912,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 { @@ -1677,6 +1943,7 @@ public java.lang.String getLoginUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1688,8 +1955,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_); } @@ -1725,19 +1991,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1760,90 +2026,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 @@ -1853,39 +2133,45 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1897,19 +2183,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); } @@ -1917,14 +2207,20 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAccount result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -1941,46 +2237,56 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Aut 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_; bitField0_ |= 0x00000001; @@ -2022,27 +2328,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - loginUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + loginUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2052,22 +2362,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -2076,20 +2389,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 { @@ -2097,28 +2411,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Required. The user name of the custom account.
          * 
* * string username = 1; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -2128,17 +2449,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -2148,19 +2473,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; @@ -2169,21 +2496,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 { @@ -2191,30 +2519,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -2224,18 +2559,22 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; @@ -2245,18 +2584,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; @@ -2265,20 +2606,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 { @@ -2286,28 +2628,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLoginUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Required. The login form URL of the website.
          * 
* * string login_url = 3; + * * @return This builder for chaining. */ public Builder clearLoginUrl() { @@ -2317,23 +2666,28 @@ public Builder clearLoginUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2346,41 +2700,46 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2392,164 +2751,213 @@ 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(); - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapCredentialsCase getIapCredentialsCase(); + 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(); } - 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -2558,30 +2966,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 { @@ -2590,6 +2999,7 @@ public java.lang.String getTargetAudienceClientId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2602,7 +3012,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_); } @@ -2616,7 +3026,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2626,15 +3038,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; - - if (!getTargetAudienceClientId() - .equals(other.getTargetAudienceClientId())) return false; + 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2653,90 +3072,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 @@ -2746,40 +3194,47 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2789,19 +3244,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); } @@ -2809,14 +3271,25 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.IapTestServiceAccountInfo result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential + .IapTestServiceAccountInfo + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.targetAudienceClientId_ = targetAudienceClientId_; @@ -2827,46 +3300,60 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Aut 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) { + 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.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_; bitField0_ |= 0x00000001; @@ -2898,17 +3385,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - targetAudienceClientId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + targetAudienceClientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2918,23 +3407,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -2943,21 +3436,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 { @@ -2965,30 +3460,39 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetAudienceClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetAudienceClientId_ = value; bitField0_ |= 0x00000001; 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() { @@ -2998,24 +3502,30 @@ public Builder clearTargetAudienceClientId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetAudienceClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetAudienceClientId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3028,41 +3538,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3074,21 +3591,26 @@ 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; + @SuppressWarnings("serial") 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; } @@ -3104,30 +3626,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 @@ -3135,38 +3664,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; @@ -3178,10 +3727,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_); } getUnknownFields().writeTo(output); } @@ -3193,8 +3745,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3204,18 +3760,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: @@ -3244,90 +3803,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 @@ -3337,39 +3910,45 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3383,19 +3962,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); } @@ -3403,23 +3986,29 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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 (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { + private void buildPartialOneofs( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCredential result) { result.iapCredentialsCase_ = iapCredentialsCase_; result.iapCredentials_ = this.iapCredentials_; - if (iapCredentialsCase_ == 1 && - iapTestServiceAccountInfoBuilder_ != null) { + if (iapCredentialsCase_ == 1 && iapTestServiceAccountInfoBuilder_ != null) { result.iapCredentials_ = iapTestServiceAccountInfoBuilder_.build(); } } @@ -3428,54 +4017,66 @@ private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1.ScanConfi 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.getUnknownFields()); onChanged(); @@ -3503,19 +4104,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIapTestServiceAccountInfoFieldBuilder().getBuilder(), - extensionRegistry); - iapCredentialsCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getIapTestServiceAccountInfoFieldBuilder().getBuilder(), extensionRegistry); + iapCredentialsCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3525,12 +4127,12 @@ public Builder mergeFrom( } // finally 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() { @@ -3543,14 +4145,25 @@ public Builder clearIapCredentials() { private int bitField0_; 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 @@ -3558,37 +4171,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(); @@ -3602,15 +4233,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(); @@ -3621,19 +4258,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; } @@ -3649,12 +4301,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) { @@ -3673,53 +4329,87 @@ 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; @@ -3728,6 +4418,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCrede onChanged(); return iapTestServiceAccountInfoBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3740,41 +4431,46 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3786,23 +4482,28 @@ 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; + @SuppressWarnings("serial") 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 { - @java.lang.Deprecated GOOGLE_ACCOUNT(1), + @java.lang.Deprecated + GOOGLE_ACCOUNT(1), CUSTOM_ACCOUNT(2), IAP_CREDENTIAL(4), AUTHENTICATION_NOT_SET(0); private final int value; + private AuthenticationCase(int value) { this.value = value; } @@ -3818,78 +4519,110 @@ 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 [deprecated = true]; - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. - * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasGoogleAccount() { + @java.lang.Deprecated + public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
      * Authentication using a Google account.
      * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. - * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + @java.lang.Deprecated + 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 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + @java.lang.Deprecated + 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 @@ -3897,42 +4630,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 @@ -3940,36 +4693,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; @@ -3981,16 +4750,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_); } getUnknownFields().writeTo(output); } @@ -4002,16 +4779,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4021,26 +4807,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: @@ -4078,89 +4862,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 @@ -4170,39 +4960,42 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4222,14 +5015,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 @@ -4243,30 +5038,32 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { + private void buildPartialOneofs( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication result) { result.authenticationCase_ = authenticationCase_; result.authentication_ = this.authentication_; - if (authenticationCase_ == 1 && - googleAccountBuilder_ != null) { + if (authenticationCase_ == 1 && googleAccountBuilder_ != null) { result.authentication_ = googleAccountBuilder_.build(); } - if (authenticationCase_ == 2 && - customAccountBuilder_ != null) { + if (authenticationCase_ == 2 && customAccountBuilder_ != null) { result.authentication_ = customAccountBuilder_.build(); } - if (authenticationCase_ == 4 && - iapCredentialBuilder_ != null) { + if (authenticationCase_ == 4 && iapCredentialBuilder_ != null) { result.authentication_ = iapCredentialBuilder_.build(); } } @@ -4275,62 +5072,73 @@ private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1.ScanConfi 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.getUnknownFields()); onChanged(); @@ -4358,33 +5166,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGoogleAccountFieldBuilder().getBuilder(), - extensionRegistry); - authenticationCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomAccountFieldBuilder().getBuilder(), - extensionRegistry); - authenticationCase_ = 2; - break; - } // case 18 - case 34: { - input.readMessage( - getIapCredentialFieldBuilder().getBuilder(), - extensionRegistry); - authenticationCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + case 34: + { + input.readMessage(getIapCredentialFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4394,12 +5200,12 @@ public Builder mergeFrom( } // finally 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() { @@ -4412,53 +5218,80 @@ public Builder clearAuthentication() { private int bitField0_; 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 [deprecated = true]; - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. - * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return Whether the googleAccount field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasGoogleAccount() { + @java.lang.Deprecated + public boolean hasGoogleAccount() { return authenticationCase_ == 1; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; - * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is deprecated. - * See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * + * @deprecated google.cloud.websecurityscanner.v1.ScanConfig.Authentication.google_account is + * deprecated. See google/cloud/websecurityscanner/v1/scan_config.proto;l=80 * @return The googleAccount. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount getGoogleAccount() { + @java.lang.Deprecated + 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 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + @java.lang.Deprecated + public Builder setGoogleAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { if (googleAccountBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4472,14 +5305,20 @@ public Builder clearAuthentication() { return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setGoogleAccount( - com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder builderForValue) { + @java.lang.Deprecated + public Builder setGoogleAccount( + com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder + builderForValue) { if (googleAccountBuilder_ == null) { authentication_ = builderForValue.build(); onChanged(); @@ -4490,18 +5329,32 @@ public Builder clearAuthentication() { return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder mergeGoogleAccount(com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount value) { + @java.lang.Deprecated + 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; } @@ -4517,13 +5370,18 @@ public Builder clearAuthentication() { return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearGoogleAccount() { + @java.lang.Deprecated + public Builder clearGoogleAccount() { if (googleAccountBuilder_ == null) { if (authenticationCase_ == 1) { authenticationCase_ = 0; @@ -4540,50 +5398,80 @@ public Builder clearAuthentication() { return this; } /** + * + * *
        * Authentication using a Google account.
        * 
* - * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount.Builder getGoogleAccountBuilder() { + @java.lang.Deprecated + 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 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccountOrBuilder getGoogleAccountOrBuilder() { + @java.lang.Deprecated + 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 [deprecated = true]; + * + * .google.cloud.websecurityscanner.v1.ScanConfig.Authentication.GoogleAccount google_account = 1 [deprecated = true]; + * */ 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(); + 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_, + 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; @@ -4594,13 +5482,23 @@ public Builder clearAuthentication() { } 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 @@ -4608,35 +5506,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(); @@ -4650,14 +5562,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(); @@ -4668,18 +5585,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; } @@ -4695,11 +5625,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) { @@ -4718,50 +5652,78 @@ 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(); + 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_, + 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; @@ -4772,13 +5734,23 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.CustomAc } 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 @@ -4786,35 +5758,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(); @@ -4828,14 +5814,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(); @@ -4846,18 +5837,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; } @@ -4873,11 +5877,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) { @@ -4896,50 +5904,78 @@ 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(); + 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_, + 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; @@ -4948,6 +5984,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.IapCrede onChanged(); return iapCredentialBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4960,41 +5997,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5006,17 +6046,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
@@ -5025,10 +6068,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
@@ -5037,10 +6083,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
@@ -5053,57 +6102,65 @@ 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(); } - 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
@@ -5112,6 +6169,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -5119,6 +6177,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
@@ -5127,13 +6187,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
@@ -5145,17 +6210,22 @@ public com.google.protobuf.Timestamp getScheduleTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
-      return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
+      return scheduleTime_ == null
+          ? com.google.protobuf.Timestamp.getDefaultInstance()
+          : scheduleTime_;
     }
 
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_ = 0;
     /**
+     *
+     *
      * 
      * Required. The duration of time between executions in days.
      * 
* * int32 interval_duration_days = 2; + * * @return The intervalDurationDays. */ @java.lang.Override @@ -5164,6 +6234,7 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5175,8 +6246,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()); } @@ -5193,12 +6263,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5208,20 +6276,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5245,89 +6312,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 @@ -5337,39 +6409,41 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5384,13 +6458,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(); } @@ -5405,18 +6480,21 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result = + new com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scheduleTime_ = scheduleTimeBuilder_ == null - ? scheduleTime_ - : scheduleTimeBuilder_.build(); + result.scheduleTime_ = + scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.intervalDurationDays_ = intervalDurationDays_; @@ -5427,38 +6505,41 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig.Sch 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; @@ -5466,7 +6547,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()); } @@ -5499,24 +6582,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getScheduleTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - intervalDurationDays_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + intervalDurationDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5526,12 +6610,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -5540,12 +6630,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * 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
@@ -5554,16 +6647,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
@@ -5587,6 +6685,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
@@ -5596,8 +6696,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();
         } else {
@@ -5608,6 +6707,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
@@ -5619,9 +6720,9 @@ public Builder setScheduleTime(
        */
       public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            scheduleTime_ != null &&
-            scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && scheduleTime_ != null
+              && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getScheduleTimeBuilder().mergeFrom(value);
           } else {
             scheduleTime_ = value;
@@ -5634,6 +6735,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
@@ -5654,6 +6757,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
@@ -5669,6 +6774,8 @@ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
         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
@@ -5682,11 +6789,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
@@ -5697,26 +6807,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 @@ -5724,11 +6840,14 @@ 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. */ @@ -5740,11 +6859,14 @@ public Builder setIntervalDurationDays(int value) { return this; } /** + * + * *
        * Required. The duration of time between executions in days.
        * 
* * int32 interval_duration_days = 2; + * * @return This builder for chaining. */ public Builder clearIntervalDurationDays() { @@ -5753,6 +6875,7 @@ public Builder clearIntervalDurationDays() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5765,12 +6888,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(); } @@ -5779,27 +6903,28 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5814,13 +6939,15 @@ 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; + @SuppressWarnings("serial") 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
@@ -5828,6 +6955,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule getDefaultInst
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -5836,14 +6964,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
@@ -5851,16 +6980,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 { @@ -5869,14 +6997,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -5885,29 +7017,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 { @@ -5918,6 +7050,8 @@ public java.lang.String getDisplayName() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_ = 0; /** + * + * *
    * 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
@@ -5926,6 +7060,7 @@ public java.lang.String getDisplayName() {
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -5934,38 +7069,47 @@ public int getMaxQps() { } public static final int STARTING_URLS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -5973,28 +7117,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 @@ -6002,19 +7151,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.
@@ -6023,72 +7179,95 @@ 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() {
-    return authentication_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance() : authentication_;
+  public com.google.cloud.websecurityscanner.v1.ScanConfig.AuthenticationOrBuilder
+      getAuthenticationOrBuilder() {
+    return authentication_ == null
+        ? com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance()
+        : authentication_;
   }
 
   public static final int USER_AGENT_FIELD_NUMBER = 6;
   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; + * * @return The userAgent. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.forNumber(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent getUserAgent() { + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.forNumber(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.UNRECOGNIZED + : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -6096,28 +7275,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 @@ -6125,18 +7309,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.
    * 
@@ -6144,73 +7335,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() { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() : schedule_; + public com.google.cloud.websecurityscanner.v1.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } public static final int EXPORT_TO_SECURITY_COMMAND_CENTER_FIELD_NUMBER = 10; 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; + * + * * @return The exportToSecurityCommandCenter. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber( + 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_ = 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; + * * @return The riskLevel. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.forNumber(riskLevel_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel getRiskLevel() { + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = + com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.forNumber(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_ = false; /** + * + * *
    * Whether the scan config is managed by Web Security Scanner, output
    * only.
    * 
* * bool managed_scan = 13; + * * @return The managedScan. */ @java.lang.Override @@ -6221,12 +7447,15 @@ public boolean getManagedScan() { public static final int STATIC_IP_SCAN_FIELD_NUMBER = 14; private boolean staticIpScan_ = false; /** + * + * *
    * 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 @@ -6237,11 +7466,14 @@ public boolean getStaticIpScan() { public static final int IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER = 15; private boolean ignoreHttpStatusErrors_ = false; /** + * + * *
    * Whether to keep scanning even if most requests return HTTP error codes.
    * 
* * bool ignore_http_status_errors = 15; + * * @return The ignoreHttpStatusErrors. */ @java.lang.Override @@ -6250,6 +7482,7 @@ public boolean getIgnoreHttpStatusErrors() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6261,8 +7494,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_); } @@ -6278,7 +7510,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++) { @@ -6287,10 +7521,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) { @@ -6318,8 +7557,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; @@ -6330,12 +7568,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; @@ -6346,28 +7584,28 @@ 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_); } if (ignoreHttpStatusErrors_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, ignoreHttpStatusErrors_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, ignoreHttpStatusErrors_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6377,42 +7615,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.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 (getIgnoreHttpStatusErrors() - != other.getIgnoreHttpStatusErrors()) return false; + if (getManagedScan() != other.getManagedScan()) return false; + if (getStaticIpScan() != other.getStaticIpScan()) return false; + if (getIgnoreHttpStatusErrors() != other.getIgnoreHttpStatusErrors()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -6453,145 +7682,146 @@ 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 = (37 * hash) + IGNORE_HTTP_STATUS_ERRORS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIgnoreHttpStatusErrors()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreHttpStatusErrors()); hash = (29 * hash) + getUnknownFields().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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6599,16 +7829,14 @@ public Builder clear() { name_ = ""; displayName_ = ""; maxQps_ = 0; - startingUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); authentication_ = null; if (authenticationBuilder_ != null) { authenticationBuilder_.dispose(); authenticationBuilder_ = null; } userAgent_ = 0; - blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); schedule_ = null; if (scheduleBuilder_ != null) { scheduleBuilder_.dispose(); @@ -6623,9 +7851,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 @@ -6644,8 +7872,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.ScanConfig result = + new com.google.cloud.websecurityscanner.v1.ScanConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -6666,9 +7897,8 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig res result.startingUrls_ = startingUrls_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.authentication_ = authenticationBuilder_ == null - ? authentication_ - : authenticationBuilder_.build(); + result.authentication_ = + authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.userAgent_ = userAgent_; @@ -6678,9 +7908,7 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig res result.blacklistPatterns_ = blacklistPatterns_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.schedule_ = scheduleBuilder_ == null - ? schedule_ - : scheduleBuilder_.build(); + result.schedule_ = scheduleBuilder_ == null ? schedule_ : scheduleBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { result.exportToSecurityCommandCenter_ = exportToSecurityCommandCenter_; @@ -6703,38 +7931,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfig res 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; @@ -6742,7 +7971,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_; bitField0_ |= 0x00000001; @@ -6826,83 +8056,93 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - maxQps_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStartingUrlsIsMutable(); - startingUrls_.add(s); - break; - } // case 34 - case 42: { - input.readMessage( - getAuthenticationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - userAgent_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureBlacklistPatternsIsMutable(); - blacklistPatterns_.add(s); - break; - } // case 58 - case 66: { - input.readMessage( - getScheduleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 80: { - exportToSecurityCommandCenter_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 80 - case 96: { - riskLevel_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 96 - case 104: { - managedScan_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 104 - case 112: { - staticIpScan_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 112 - case 120: { - ignoreHttpStatusErrors_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 120 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxQps_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStartingUrlsIsMutable(); + startingUrls_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + userAgent_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlacklistPatternsIsMutable(); + blacklistPatterns_.add(s); + break; + } // case 58 + case 66: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 80: + { + exportToSecurityCommandCenter_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 80 + case 96: + { + riskLevel_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 96 + case 104: + { + managedScan_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 104 + case 112: + { + staticIpScan_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 112 + case 120: + { + ignoreHttpStatusErrors_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 120 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6912,10 +8152,13 @@ public Builder mergeFrom( } // finally 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
@@ -6923,13 +8166,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; @@ -6938,6 +8181,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
@@ -6945,15 +8190,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 { @@ -6961,6 +8205,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
@@ -6968,18 +8214,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -6987,6 +8237,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -6996,6 +8247,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -7003,12 +8256,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -7018,18 +8273,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; @@ -7038,20 +8295,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 { @@ -7059,28 +8317,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The user provided display name of the ScanConfig.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -7090,17 +8355,21 @@ public Builder clearDisplayName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -7108,8 +8377,10 @@ public Builder setDisplayNameBytes( 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
@@ -7118,6 +8389,7 @@ public Builder setDisplayNameBytes(
      * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -7125,6 +8397,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
@@ -7133,6 +8407,7 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; + * * @param value The maxQps to set. * @return This builder for chaining. */ @@ -7144,6 +8419,8 @@ public Builder setMaxQps(int value) { 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
@@ -7152,6 +8429,7 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; + * * @return This builder for chaining. */ public Builder clearMaxQps() { @@ -7163,6 +8441,7 @@ public Builder clearMaxQps() { private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStartingUrlsIsMutable() { if (!startingUrls_.isModifiable()) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); @@ -7170,35 +8449,43 @@ private void ensureStartingUrlsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
      * 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() { startingUrls_.makeImmutable(); 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. */ @@ -7206,31 +8493,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStartingUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); bitField0_ |= 0x00000008; @@ -7238,17 +8531,21 @@ public Builder setStartingUrls( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartingUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartingUrlsIsMutable(); startingUrls_.add(value); bitField0_ |= 0x00000008; @@ -7256,50 +8553,58 @@ public Builder addStartingUrls( 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_); bitField0_ |= 0x00000008; 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() { - startingUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); @@ -7310,44 +8615,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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(); @@ -7361,12 +8683,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) { @@ -7380,18 +8705,24 @@ 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 (((bitField0_ & 0x00000010) != 0) && - authentication_ != null && - authentication_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && authentication_ != null + && authentication_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.Authentication + .getDefaultInstance()) { getAuthenticationBuilder().mergeFrom(value); } else { authentication_ = value; @@ -7404,12 +8735,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -7422,51 +8756,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() { bitField0_ |= 0x00000010; 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_; @@ -7474,22 +8823,29 @@ 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. */ @@ -7500,24 +8856,33 @@ public Builder setUserAgentValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1.ScanConfig.UserAgent.forNumber(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.forNumber(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. */ @@ -7531,11 +8896,14 @@ public Builder setUserAgent(com.google.cloud.websecurityscanner.v1.ScanConfig.Us 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() { @@ -7547,6 +8915,7 @@ public Builder clearUserAgent() { private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureBlacklistPatternsIsMutable() { if (!blacklistPatterns_.isModifiable()) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); @@ -7554,38 +8923,46 @@ private void ensureBlacklistPatternsIsMutable() { bitField0_ |= 0x00000040; } /** + * + * *
      * 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() { blacklistPatterns_.makeImmutable(); 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. */ @@ -7593,33 +8970,39 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBlacklistPatterns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); bitField0_ |= 0x00000040; @@ -7627,18 +9010,22 @@ public Builder setBlacklistPatterns( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addBlacklistPatterns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); bitField0_ |= 0x00000040; @@ -7646,53 +9033,61 @@ public Builder addBlacklistPatterns( 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_); bitField0_ |= 0x00000040; 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() { - blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040);; + blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; 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 bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); @@ -7703,34 +9098,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 ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * 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.
      * 
@@ -7751,6 +9159,8 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.Sch return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7769,6 +9179,8 @@ public Builder setSchedule( return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7777,9 +9189,11 @@ public Builder setSchedule( */ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule value) { if (scheduleBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - schedule_ != null && - schedule_ != com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && schedule_ != null + && schedule_ + != com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule + .getDefaultInstance()) { getScheduleBuilder().mergeFrom(value); } else { schedule_ = value; @@ -7792,6 +9206,8 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1.ScanConfig.S return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7809,6 +9225,8 @@ public Builder clearSchedule() { return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -7821,21 +9239,27 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Schedule.Builder getSch 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.
      * 
@@ -7843,14 +9267,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_; @@ -7858,24 +9285,35 @@ 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. */ @@ -7886,30 +9324,47 @@ public Builder setExportToSecurityCommandCenterValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + public com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1.ScanConfig.ExportToSecurityCommandCenter.forNumber( + 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(); } @@ -7919,12 +9374,17 @@ public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscan 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() { @@ -7936,22 +9396,29 @@ 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. */ @@ -7962,24 +9429,33 @@ public Builder setRiskLevelValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1.ScanConfig.RiskLevel.forNumber(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.forNumber(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. */ @@ -7993,11 +9469,14 @@ public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1.ScanConfig.Ri 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() { @@ -8007,14 +9486,17 @@ public Builder clearRiskLevel() { 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 @@ -8022,12 +9504,15 @@ 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. */ @@ -8039,12 +9524,15 @@ public Builder setManagedScan(boolean value) { 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() { @@ -8054,14 +9542,17 @@ public Builder clearManagedScan() { 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 @@ -8069,12 +9560,15 @@ 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. */ @@ -8086,12 +9580,15 @@ public Builder setStaticIpScan(boolean value) { 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() { @@ -8101,13 +9598,16 @@ public Builder clearStaticIpScan() { return this; } - private boolean ignoreHttpStatusErrors_ ; + private boolean ignoreHttpStatusErrors_; /** + * + * *
      * Whether to keep scanning even if most requests return HTTP error codes.
      * 
* * bool ignore_http_status_errors = 15; + * * @return The ignoreHttpStatusErrors. */ @java.lang.Override @@ -8115,11 +9615,14 @@ public boolean getIgnoreHttpStatusErrors() { return ignoreHttpStatusErrors_; } /** + * + * *
      * Whether to keep scanning even if most requests return HTTP error codes.
      * 
* * bool ignore_http_status_errors = 15; + * * @param value The ignoreHttpStatusErrors to set. * @return This builder for chaining. */ @@ -8131,11 +9634,14 @@ public Builder setIgnoreHttpStatusErrors(boolean value) { return this; } /** + * + * *
      * Whether to keep scanning even if most requests return HTTP error codes.
      * 
* * bool ignore_http_status_errors = 15; + * * @return This builder for chaining. */ public Builder clearIgnoreHttpStatusErrors() { @@ -8144,9 +9650,9 @@ public Builder clearIgnoreHttpStatusErrors() { 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); } @@ -8156,12 +9662,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(); } @@ -8170,27 +9676,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8205,6 +9711,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java similarity index 74% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java index a2aae1d8335f..c305661e899b 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigError.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,25 +47,28 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
-  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.
@@ -56,9 +77,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -67,6 +89,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.
@@ -76,6 +100,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.
@@ -85,6 +111,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.
@@ -94,6 +122,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.
@@ -103,6 +133,8 @@ public enum Code
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -111,6 +143,8 @@ public enum Code */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** + * + * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -119,6 +153,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.
@@ -128,6 +164,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.
@@ -137,6 +175,8 @@ public enum Code
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
+     *
+     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -145,6 +185,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).
      * 
@@ -153,6 +195,8 @@ public enum Code */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** + * + * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -161,6 +205,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.
@@ -170,6 +216,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
+     *
+     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -178,6 +226,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.
@@ -187,6 +237,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
+     *
+     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -195,6 +247,8 @@ public enum Code */ DUPLICATE_SCAN_NAME(16, 16), /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -203,6 +257,8 @@ public enum Code */ INVALID_FIELD_VALUE(17, 18), /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -211,6 +267,8 @@ public enum Code */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** + * + * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -219,6 +277,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.
@@ -228,6 +288,8 @@ public enum Code
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -236,6 +298,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
@@ -246,6 +310,8 @@ public enum Code
      */
     MALFORMED_FILTER(22, 22),
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -254,6 +320,8 @@ public enum Code */ MALFORMED_RESOURCE_NAME(23, 23), /** + * + * *
      * The current project is not in an active state.
      * 
@@ -262,6 +330,8 @@ public enum Code */ PROJECT_INACTIVE(24, 24), /** + * + * *
      * A required field is not set.
      * 
@@ -270,6 +340,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.
@@ -279,6 +351,8 @@ public enum Code
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -287,6 +361,8 @@ public enum Code */ SCAN_ALREADY_RUNNING(27, 27), /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -295,6 +371,8 @@ public enum Code */ SCAN_NOT_RUNNING(28, 28), /** + * + * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -303,6 +381,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).
      * 
@@ -311,6 +391,8 @@ public enum Code */ SEED_URL_MALFORMED(30, 30), /** + * + * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -319,6 +401,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.
@@ -328,6 +412,8 @@ public enum Code
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
+     *
+     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -336,6 +422,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.
@@ -345,6 +433,8 @@ public enum Code
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
+     *
+     *
      * 
      * The Web Security Scanner service account is not configured under the
      * project.
@@ -354,6 +444,8 @@ public enum Code
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -362,6 +454,8 @@ public enum Code */ TOO_MANY_SCANS(36, 37), /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -370,6 +464,8 @@ public enum Code */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** + * + * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -378,6 +474,8 @@ public enum Code */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -386,6 +484,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.
@@ -395,6 +495,8 @@ public enum Code
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
+     *
+     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -406,6 +508,8 @@ public enum Code ; /** + * + * *
      * There is no error.
      * 
@@ -414,6 +518,8 @@ public enum Code */ public static final Code OK = CODE_UNSPECIFIED; /** + * + * *
      * There is no error.
      * 
@@ -422,6 +528,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * There is no error.
      * 
@@ -430,6 +538,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.
@@ -439,6 +549,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.
@@ -448,6 +560,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.
@@ -457,6 +571,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.
@@ -466,6 +582,8 @@ public enum Code
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -474,6 +592,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.
      * 
@@ -482,6 +602,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.
@@ -491,6 +613,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.
@@ -500,6 +624,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.
      * 
@@ -508,6 +634,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).
      * 
@@ -516,6 +644,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.
      * 
@@ -524,6 +654,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.
@@ -533,6 +665,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.
      * 
@@ -541,6 +675,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.
@@ -550,6 +686,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.
      * 
@@ -558,6 +696,8 @@ public enum Code */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -566,6 +706,8 @@ public enum Code */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -574,6 +716,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.
      * 
@@ -582,6 +726,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.
@@ -591,6 +737,8 @@ public enum Code
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -599,6 +747,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
@@ -609,6 +759,8 @@ public enum Code
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -617,6 +769,8 @@ public enum Code */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** + * + * *
      * The current project is not in an active state.
      * 
@@ -625,6 +779,8 @@ public enum Code */ public static final int PROJECT_INACTIVE_VALUE = 24; /** + * + * *
      * A required field is not set.
      * 
@@ -633,6 +789,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.
@@ -642,6 +800,8 @@ public enum Code
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -650,6 +810,8 @@ public enum Code */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -658,6 +820,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.
      * 
@@ -666,6 +830,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).
      * 
@@ -674,6 +840,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.
      * 
@@ -682,6 +850,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.
@@ -691,6 +861,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.
      * 
@@ -699,6 +871,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.
@@ -708,6 +882,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.
@@ -717,6 +893,8 @@ public enum Code
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -725,6 +903,8 @@ public enum Code */ public static final int TOO_MANY_SCANS_VALUE = 37; /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -733,6 +913,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.
      * 
@@ -741,6 +923,8 @@ public enum Code */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -749,6 +933,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.
@@ -758,6 +944,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.
      * 
@@ -766,7 +954,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( @@ -791,91 +978,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; @@ -897,33 +1167,47 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; 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; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.forNumber(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanConfigError.Code getCode() { + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = + com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.forNumber(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.UNRECOGNIZED + : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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
@@ -932,6 +1216,7 @@ private Code(int index, int value) {
    * 
* * string field_name = 2; + * * @return The fieldName. */ @java.lang.Override @@ -940,14 +1225,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
@@ -956,16 +1242,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 { @@ -974,6 +1259,7 @@ public java.lang.String getFieldName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -985,9 +1271,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_)) { @@ -1002,9 +1289,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_); @@ -1017,16 +1305,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1048,98 +1336,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
@@ -1149,33 +1443,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1186,9 +1479,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
@@ -1207,8 +1500,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.ScanConfigError result =
+          new com.google.cloud.websecurityscanner.v1.ScanConfigError(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1227,38 +1523,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanConfigErro
     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;
@@ -1266,7 +1563,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());
       }
@@ -1301,22 +1599,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              fieldName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                fieldName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1326,26 +1627,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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. */ @@ -1356,24 +1665,33 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1.ScanConfigError.Code.forNumber(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.forNumber(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. */ @@ -1387,11 +1705,14 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanConfigError.Co 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() { @@ -1403,6 +1724,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
@@ -1411,13 +1734,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; @@ -1426,6 +1749,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
@@ -1434,15 +1759,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 { @@ -1450,6 +1774,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
@@ -1458,18 +1784,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fieldName_ = value; bitField0_ |= 0x00000002; 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
@@ -1478,6 +1808,7 @@ public Builder setFieldName(
      * 
* * string field_name = 2; + * * @return This builder for chaining. */ public Builder clearFieldName() { @@ -1487,6 +1818,8 @@ public Builder clearFieldName() { 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
@@ -1495,21 +1828,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fieldName_ = value; bitField0_ |= 0x00000002; 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); } @@ -1519,12 +1854,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(); } @@ -1533,27 +1868,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1568,6 +1903,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java index c95f6cd7cffb..a00e47dbc021 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java new file mode 100644 index 000000000000..a2bfc0d7e822 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\212\002\n&com.google.cloud.websec" + + "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" + + "Vcloud.google.com/go/websecurityscanner/" + + "apiv1/websecurityscannerpb;websecuritysc" + + "annerpb\252\002\"Google.Cloud.WebSecurityScanne" + + "r.V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V" + + "1\352\002%Google::Cloud::WebSecurityScanner::V" + + "1b\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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java similarity index 82% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java index 882ee270fe97..50d338c833a3 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,73 +299,99 @@ 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(); /** + * + * *
    * Whether to keep scanning even if most requests return HTTP error codes.
    * 
* * bool ignore_http_status_errors = 15; + * * @return The ignoreHttpStatusErrors. */ boolean getIgnoreHttpStatusErrors(); diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java new file mode 100644 index 000000000000..afa75420ffb2 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java @@ -0,0 +1,220 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\"\305\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" + + "\022!\n\031ignore_http_status_errors\030\017 \001(\010\032\330\005\n\016" + + "Authentication\022i\n\016google_account\030\001 \001(\0132K" + + ".google.cloud.websecurityscanner.v1.Scan" + + "Config.Authentication.GoogleAccountB\002\030\001H" + + "\000\022e\n\016custom_account\030\002 \001(\0132K.google.cloud" + + ".websecurityscanner.v1.ScanConfig.Authen" + + "tication.CustomAccountH\000\022e\n\016iap_credenti" + + "al\030\004 \001(\0132K.google.cloud.websecurityscann" + + "er.v1.ScanConfig.Authentication.IapCrede" + + "ntialH\000\0327\n\rGoogleAccount\022\020\n\010username\030\001 \001" + + "(\t\022\020\n\010password\030\002 \001(\t:\002\030\001\032F\n\rCustomAccoun" + + "t\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n" + + "\tlogin_url\030\003 \001(\t\032\371\001\n\rIapCredential\022\216\001\n\035i" + + "ap_test_service_account_info\030\001 \001(\0132e.goo" + + "gle.cloud.websecurityscanner.v1.ScanConf" + + "ig.Authentication.IapCredential.IapTestS" + + "erviceAccountInfoH\000\032D\n\031IapTestServiceAcc" + + "ountInfo\022\'\n\031target_audience_client_id\030\001 " + + "\001(\tB\004\342A\001\002B\021\n\017iap_credentialsB\020\n\016authenti" + + "cation\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022\036\n\026interva" + + "l_duration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026US" + + "ER_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\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000" + + "\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurit" + + "yCommandCenter\0221\n-EXPORT_TO_SECURITY_COM" + + "MAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014" + + "\n\010DISABLED\020\002B\205\002\n&com.google.cloud.websec" + + "urityscanner.v1B\017ScanConfigProtoP\001ZVclou" + + "d.google.com/go/websecurityscanner/apiv1" + + "/websecurityscannerpb;websecurityscanner" + + "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" + + "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" + + "oogle::Cloud::WebSecurityScanner::V1b\006pr" + + "oto3" + }; + 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", + "IgnoreHttpStatusErrors", + }); + 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java similarity index 74% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java index 74d4197ba4a6..12e7d9663400 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRun.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +47,38 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
-  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.
@@ -66,6 +88,8 @@ public enum ExecutionState
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -74,6 +98,8 @@ public enum ExecutionState */ QUEUED(1), /** + * + * *
      * The scan is in progress.
      * 
@@ -82,6 +108,8 @@ public enum ExecutionState */ SCANNING(2), /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -93,6 +121,8 @@ public enum ExecutionState ; /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -102,6 +132,8 @@ public enum ExecutionState
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -110,6 +142,8 @@ public enum ExecutionState */ public static final int QUEUED_VALUE = 1; /** + * + * *
      * The scan is in progress.
      * 
@@ -118,6 +152,8 @@ public enum ExecutionState */ public static final int SCANNING_VALUE = 2; /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -126,7 +162,6 @@ public enum ExecutionState */ public static final int FINISHED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -151,50 +186,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; @@ -212,15 +248,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.
@@ -230,6 +269,8 @@ public enum ResultState
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -238,6 +279,8 @@ public enum ResultState */ SUCCESS(1), /** + * + * *
      * The scan finished with errors.
      * 
@@ -246,6 +289,8 @@ public enum ResultState */ ERROR(2), /** + * + * *
      * The scan was terminated by user.
      * 
@@ -257,6 +302,8 @@ public enum ResultState ; /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -266,6 +313,8 @@ public enum ResultState
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -274,6 +323,8 @@ public enum ResultState */ public static final int SUCCESS_VALUE = 1; /** + * + * *
      * The scan finished with errors.
      * 
@@ -282,6 +333,8 @@ public enum ResultState */ public static final int ERROR_VALUE = 2; /** + * + * *
      * The scan was terminated by user.
      * 
@@ -290,7 +343,6 @@ public enum ResultState */ public static final int KILLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -315,50 +367,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; @@ -376,9 +429,12 @@ private ResultState(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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}'.
@@ -386,6 +442,7 @@ private ResultState(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -394,14 +451,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}'.
@@ -409,16 +467,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 { @@ -429,65 +486,90 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; 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; + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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_ = 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; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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 @@ -495,11 +577,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 @@ -507,6 +592,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.
    * 
@@ -521,12 +608,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 @@ -534,12 +624,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 @@ -547,6 +640,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.
@@ -562,12 +657,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_ = 0L;
   /**
+   *
+   *
    * 
    * 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 @@ -578,6 +676,8 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_ = 0L; /** + * + * *
    * 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
@@ -586,6 +686,7 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -596,11 +697,14 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_ = false; /** + * + * *
    * Output only. Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -611,6 +715,8 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_ = 0; /** + * + * *
    * Output only. The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -619,6 +725,7 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -629,12 +736,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 @@ -642,19 +752,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.
@@ -663,72 +780,94 @@ 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() {
-    return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
+  public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder
+      getErrorTraceOrBuilder() {
+    return errorTrace_ == null
+        ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()
+        : errorTrace_;
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
   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; @@ -740,15 +879,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) { @@ -787,45 +929,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -835,42 +971,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -897,14 +1025,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()) { @@ -920,99 +1045,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
@@ -1020,33 +1150,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1084,9 +1213,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
@@ -1105,9 +1234,12 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1136,14 +1268,10 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRun result
         result.resultState_ = resultState_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.urlsCrawledCount_ = urlsCrawledCount_;
@@ -1158,9 +1286,7 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRun result
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.errorTrace_ = errorTraceBuilder_ == null
-            ? errorTrace_
-            : errorTraceBuilder_.build();
+        result.errorTrace_ = errorTraceBuilder_ == null ? errorTrace_ : errorTraceBuilder_.build();
       }
     }
 
@@ -1168,38 +1294,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRun result
     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;
@@ -1258,9 +1385,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1.ScanRun other) {
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            warningTracesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getWarningTracesFieldBuilder() : null;
+            warningTracesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getWarningTracesFieldBuilder()
+                    : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1292,81 +1420,87 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              executionState_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              resultState_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              urlsCrawledCount_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              urlsTestedCount_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              hasVulnerabilities_ = input.readBool();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 72: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 72
-            case 82: {
-              input.readMessage(
-                  getErrorTraceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace m =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(),
-                      extensionRegistry);
-              if (warningTracesBuilder_ == null) {
-                ensureWarningTracesIsMutable();
-                warningTraces_.add(m);
-              } else {
-                warningTracesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 90
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                executionState_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                resultState_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
+                urlsCrawledCount_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                urlsTestedCount_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                hasVulnerabilities_ = input.readBool();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 72:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 72
+            case 82:
+              {
+                input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace m =
+                    input.readMessage(
+                        com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.parser(),
+                        extensionRegistry);
+                if (warningTracesBuilder_ == null) {
+                  ensureWarningTracesIsMutable();
+                  warningTraces_.add(m);
+                } else {
+                  warningTracesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1376,10 +1510,13 @@ public Builder mergeFrom(
       } // finally
       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}'.
@@ -1387,13 +1524,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; @@ -1402,6 +1539,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}'.
@@ -1409,15 +1548,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 { @@ -1425,6 +1563,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}'.
@@ -1432,18 +1572,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1451,6 +1595,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1460,6 +1605,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1467,12 +1614,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1482,22 +1631,29 @@ 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. */ @@ -1508,28 +1664,38 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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.forNumber(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(); } @@ -1539,11 +1705,14 @@ public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun. 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() { @@ -1555,24 +1724,31 @@ 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. */ @@ -1583,30 +1759,40 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1616,12 +1802,15 @@ public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.Res 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() { @@ -1633,24 +1822,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1661,6 +1859,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1681,14 +1881,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(); } else { @@ -1699,6 +1900,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1707,9 +1910,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1722,6 +1925,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1739,6 +1944,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1751,6 +1958,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which the ScanRun started.
      * 
@@ -1761,11 +1970,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.
      * 
@@ -1773,14 +1983,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_; @@ -1788,26 +2001,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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() { @@ -1818,6 +2040,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.
@@ -1839,6 +2063,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.
@@ -1846,8 +2072,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();
       } else {
@@ -1858,6 +2083,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.
@@ -1867,9 +2094,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1882,6 +2109,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.
@@ -1900,6 +2129,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.
@@ -1913,6 +2144,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1924,11 +2157,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.
@@ -1937,27 +2171,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 @@ -1965,12 +2205,15 @@ 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. */ @@ -1982,12 +2225,15 @@ public Builder setUrlsCrawledCount(long value) { 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() { @@ -1997,8 +2243,10 @@ public Builder clearUrlsCrawledCount() { 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
@@ -2007,6 +2255,7 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -2014,6 +2263,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
@@ -2022,6 +2273,7 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -2033,6 +2285,8 @@ public Builder setUrlsTestedCount(long value) { 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
@@ -2041,6 +2295,7 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -2050,13 +2305,16 @@ public Builder clearUrlsTestedCount() { 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 @@ -2064,11 +2322,14 @@ 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. */ @@ -2080,11 +2341,14 @@ public Builder setHasVulnerabilities(boolean value) { return this; } /** + * + * *
      * Output only. Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { @@ -2094,8 +2358,10 @@ public Builder clearHasVulnerabilities() { 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.
@@ -2104,6 +2370,7 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -2111,6 +2378,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.
@@ -2119,6 +2388,7 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; + * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -2130,6 +2400,8 @@ public Builder setProgressPercent(int value) { return this; } /** + * + * *
      * Output only. The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2138,6 +2410,7 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -2149,36 +2422,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 ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * 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.
@@ -2200,6 +2486,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.
@@ -2219,6 +2507,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.
@@ -2228,9 +2518,10 @@ public Builder setErrorTrace(
      */
     public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace value) {
       if (errorTraceBuilder_ == null) {
-        if (((bitField0_ & 0x00000200) != 0) &&
-          errorTrace_ != null &&
-          errorTrace_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && errorTrace_ != null
+            && errorTrace_
+                != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) {
           getErrorTraceBuilder().mergeFrom(value);
         } else {
           errorTrace_ = value;
@@ -2243,6 +2534,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.
@@ -2261,6 +2554,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.
@@ -2274,6 +2569,8 @@ public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Builder getError
       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.
@@ -2281,15 +2578,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.
@@ -2298,39 +2599,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_ & 0x00000400) != 0)) {
-        warningTraces_ = new java.util.ArrayList(warningTraces_);
+        warningTraces_ =
+            new java.util.ArrayList(
+                warningTraces_);
         bitField0_ |= 0x00000400;
-       }
+      }
     }
 
     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 { @@ -2338,11 +2652,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) { @@ -2352,11 +2669,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) { @@ -2366,11 +2686,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) { @@ -2387,14 +2710,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()); @@ -2405,13 +2732,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(); @@ -2425,11 +2756,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) { @@ -2446,11 +2780,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) { @@ -2464,14 +2801,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()); @@ -2482,18 +2823,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); @@ -2501,11 +2845,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) { @@ -2518,11 +2865,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) { @@ -2535,39 +2885,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 { @@ -2575,45 +2936,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_ & 0x00000400) != 0), getParentForChildren(), @@ -2622,9 +3002,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); } @@ -2634,12 +3014,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(); } @@ -2648,27 +3028,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2683,6 +3063,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java similarity index 72% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java index 520b21901ac4..c9faaaf4d7dc 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,40 +28,44 @@
  *
  * 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();
   }
 
-  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.
@@ -53,9 +74,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -64,6 +86,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -72,6 +96,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.
@@ -81,6 +107,8 @@ public enum Code
      */
     SCAN_CONFIG_ISSUE(2),
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -90,6 +118,8 @@ public enum Code
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
+     *
+     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -98,6 +128,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.
@@ -107,6 +139,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
@@ -120,6 +154,8 @@ public enum Code
     ;
 
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -128,6 +164,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -136,6 +174,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.
@@ -145,6 +185,8 @@ public enum Code
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -154,6 +196,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.
      * 
@@ -162,6 +206,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.
@@ -171,6 +217,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
@@ -181,7 +229,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(
@@ -206,53 +253,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;
@@ -272,32 +325,45 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   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; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.forNumber(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = + com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.forNumber(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
@@ -305,6 +371,7 @@ private Code(int value) {
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -312,6 +379,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
@@ -319,13 +388,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
@@ -335,13 +409,18 @@ 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() {
-    return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance() : scanConfigError_;
+  public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder
+      getScanConfigErrorOrBuilder() {
+    return scanConfigError_ == null
+        ? com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()
+        : scanConfigError_;
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_ = 0;
   /**
+   *
+   *
    * 
    * 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
@@ -349,6 +428,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanCo
    * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -357,6 +437,7 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,9 +449,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) { @@ -388,17 +470,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -408,21 +489,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -448,98 +528,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.
@@ -547,33 +633,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -589,9 +674,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
@@ -610,8 +695,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace result =
+          new com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -622,9 +710,8 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunErrorTr
         result.code_ = code_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.scanConfigError_ = scanConfigErrorBuilder_ == null
-            ? scanConfigError_
-            : scanConfigErrorBuilder_.build();
+        result.scanConfigError_ =
+            scanConfigErrorBuilder_ == null ? scanConfigError_ : scanConfigErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.mostCommonHttpErrorCode_ = mostCommonHttpErrorCode_;
@@ -635,38 +722,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunErrorTr
     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;
@@ -674,7 +762,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());
       }
@@ -710,29 +799,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getScanConfigErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              mostCommonHttpErrorCode_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getScanConfigErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                mostCommonHttpErrorCode_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -742,26 +833,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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. */ @@ -772,24 +871,33 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code.forNumber(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.forNumber(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. */ @@ -803,11 +911,14 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace. 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() { @@ -819,8 +930,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
@@ -828,12 +944,15 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -841,16 +960,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
@@ -859,7 +983,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();
@@ -873,6 +998,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
@@ -893,6 +1020,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
@@ -901,11 +1030,13 @@ 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 (((bitField0_ & 0x00000002) != 0) &&
-          scanConfigError_ != null &&
-          scanConfigError_ != com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && scanConfigError_ != null
+            && scanConfigError_
+                != com.google.cloud.websecurityscanner.v1.ScanConfigError.getDefaultInstance()) {
           getScanConfigErrorBuilder().mergeFrom(value);
         } else {
           scanConfigError_ = value;
@@ -918,6 +1049,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
@@ -937,6 +1070,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
@@ -945,12 +1080,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() {
       bitField0_ |= 0x00000002;
       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
@@ -959,15 +1097,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
@@ -977,21 +1119,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
@@ -999,6 +1146,7 @@ public com.google.cloud.websecurityscanner.v1.ScanConfigErrorOrBuilder getScanCo
      * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1006,6 +1154,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
@@ -1013,6 +1163,7 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; + * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ @@ -1024,6 +1175,8 @@ public Builder setMostCommonHttpErrorCode(int value) { 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
@@ -1031,6 +1184,7 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; + * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { @@ -1039,9 +1193,9 @@ public Builder clearMostCommonHttpErrorCode() { 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); } @@ -1051,12 +1205,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(); } @@ -1065,27 +1219,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,6 +1254,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java index 469625b4b802..1ef8b49e0231 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java new file mode 100644 index 000000000000..ac502e0dd0fc --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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" + + "\214\002\n&com.google.cloud.websecurityscanner." + + "v1B\026ScanRunErrorTraceProtoP\001ZVcloud.goog" + + "le.com/go/websecurityscanner/apiv1/webse" + + "curityscannerpb;websecurityscannerpb\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.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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java index 1c92df1cf2b2..64dc7b550038 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLog.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,33 +50,38 @@ private ScanRunLog() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRunLog();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object summary_ = "";
   /**
+   *
+   *
    * 
    * Human friendly message about the event.
    * 
* * string summary = 1; + * * @return The summary. */ @java.lang.Override @@ -67,29 +90,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 { @@ -98,14 +121,18 @@ public java.lang.String getSummary() { } public static final int NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the ScanRun being logged.
    * 
* * string name = 2; + * * @return The name. */ @java.lang.Override @@ -114,29 +141,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 { @@ -147,59 +174,82 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 3; 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; + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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_ = 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; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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_ = 0L; /** * int64 urls_crawled_count = 5; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -211,6 +261,7 @@ public long getUrlsCrawledCount() { private long urlsTestedCount_ = 0L; /** * int64 urls_tested_count = 6; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -222,6 +273,7 @@ public long getUrlsTestedCount() { private boolean hasFindings_ = false; /** * bool has_findings = 7; + * * @return The hasFindings. */ @java.lang.Override @@ -233,6 +285,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 @@ -241,21 +294,26 @@ 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() { - return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() : errorTrace_; + public com.google.cloud.websecurityscanner.v1.ScanRunErrorTraceOrBuilder + getErrorTraceOrBuilder() { + return errorTrace_ == null + ? com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance() + : errorTrace_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,18 +325,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) { @@ -308,29 +369,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -340,29 +399,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -384,14 +438,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(); @@ -402,98 +453,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.
@@ -504,33 +560,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -551,9 +606,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
@@ -572,8 +627,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.ScanRunLog result =
+          new com.google.cloud.websecurityscanner.v1.ScanRunLog(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -602,9 +660,7 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunLog res
         result.hasFindings_ = hasFindings_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.errorTrace_ = errorTraceBuilder_ == null
-            ? errorTrace_
-            : errorTraceBuilder_.build();
+        result.errorTrace_ = errorTraceBuilder_ == null ? errorTrace_ : errorTraceBuilder_.build();
       }
     }
 
@@ -612,38 +668,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunLog res
     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;
@@ -651,7 +708,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_;
         bitField0_ |= 0x00000001;
@@ -706,54 +764,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              summary_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              executionState_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              resultState_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              urlsCrawledCount_ = input.readInt64();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 48: {
-              urlsTestedCount_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              hasFindings_ = input.readBool();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 66: {
-              input.readMessage(
-                  getErrorTraceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                summary_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                executionState_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                resultState_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                urlsCrawledCount_ = input.readInt64();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 48:
+              {
+                urlsTestedCount_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                hasFindings_ = input.readBool();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 66:
+              {
+                input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -763,22 +828,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -787,20 +855,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 { @@ -808,28 +877,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setSummary(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } summary_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Human friendly message about the event.
      * 
* * string summary = 1; + * * @return This builder for chaining. */ public Builder clearSummary() { @@ -839,17 +915,21 @@ public Builder clearSummary() { 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(); } + public Builder setSummaryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); summary_ = value; bitField0_ |= 0x00000001; @@ -859,18 +939,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; @@ -879,20 +961,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 { @@ -900,28 +983,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun being logged.
      * 
* * string name = 2; + * * @return This builder for chaining. */ public Builder clearName() { @@ -931,17 +1021,21 @@ public Builder clearName() { 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000002; @@ -951,22 +1045,29 @@ 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. */ @@ -977,28 +1078,38 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1.ScanRun.ExecutionState.forNumber(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.forNumber(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(); } @@ -1008,11 +1119,14 @@ public Builder setExecutionState(com.google.cloud.websecurityscanner.v1.ScanRun. 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() { @@ -1024,22 +1138,29 @@ 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. */ @@ -1050,28 +1171,38 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1081,11 +1212,14 @@ public Builder setResultState(com.google.cloud.websecurityscanner.v1.ScanRun.Res 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() { @@ -1095,9 +1229,10 @@ public Builder clearResultState() { return this; } - private long urlsCrawledCount_ ; + private long urlsCrawledCount_; /** * int64 urls_crawled_count = 5; + * * @return The urlsCrawledCount. */ @java.lang.Override @@ -1106,6 +1241,7 @@ public long getUrlsCrawledCount() { } /** * int64 urls_crawled_count = 5; + * * @param value The urlsCrawledCount to set. * @return This builder for chaining. */ @@ -1118,6 +1254,7 @@ public Builder setUrlsCrawledCount(long value) { } /** * int64 urls_crawled_count = 5; + * * @return This builder for chaining. */ public Builder clearUrlsCrawledCount() { @@ -1127,9 +1264,10 @@ public Builder clearUrlsCrawledCount() { return this; } - private long urlsTestedCount_ ; + private long urlsTestedCount_; /** * int64 urls_tested_count = 6; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -1138,6 +1276,7 @@ public long getUrlsTestedCount() { } /** * int64 urls_tested_count = 6; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -1150,6 +1289,7 @@ public Builder setUrlsTestedCount(long value) { } /** * int64 urls_tested_count = 6; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -1159,9 +1299,10 @@ public Builder clearUrlsTestedCount() { return this; } - private boolean hasFindings_ ; + private boolean hasFindings_; /** * bool has_findings = 7; + * * @return The hasFindings. */ @java.lang.Override @@ -1170,6 +1311,7 @@ public boolean getHasFindings() { } /** * bool has_findings = 7; + * * @param value The hasFindings to set. * @return This builder for chaining. */ @@ -1182,6 +1324,7 @@ public Builder setHasFindings(boolean value) { } /** * bool has_findings = 7; + * * @return This builder for chaining. */ public Builder clearHasFindings() { @@ -1193,9 +1336,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() { @@ -1203,18 +1350,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) { @@ -1228,9 +1376,7 @@ public Builder setErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunError onChanged(); 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) { @@ -1242,14 +1388,13 @@ public Builder setErrorTrace( onChanged(); 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 (((bitField0_ & 0x00000080) != 0) && - errorTrace_ != null && - errorTrace_ != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && errorTrace_ != null + && errorTrace_ + != com.google.cloud.websecurityscanner.v1.ScanRunErrorTrace.getDefaultInstance()) { getErrorTraceBuilder().mergeFrom(value); } else { errorTrace_ = value; @@ -1261,9 +1406,7 @@ public Builder mergeErrorTrace(com.google.cloud.websecurityscanner.v1.ScanRunErr onChanged(); return this; } - /** - * .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; - */ + /** .google.cloud.websecurityscanner.v1.ScanRunErrorTrace error_trace = 8; */ public Builder clearErrorTrace() { bitField0_ = (bitField0_ & ~0x00000080); errorTrace_ = null; @@ -1274,44 +1417,43 @@ public Builder clearErrorTrace() { onChanged(); 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() { bitField0_ |= 0x00000080; 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); } @@ -1321,12 +1463,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(); } @@ -1335,27 +1477,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1370,6 +1512,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunLog getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java similarity index 75% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java index daef3296ac7a..d98e46d84c47 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogOrBuilder.java @@ -1,120 +1,161 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java new file mode 100644 index 000000000000..cead5c71145e --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java @@ -0,0 +1,92 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\205\002\n&com.google.cloud.websecurit" + + "yscanner.v1B\017ScanRunLogProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java similarity index 85% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java index cba66f0a8cd7..eb0493ed1a47 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java new file mode 100644 index 000000000000..3c58248ef391 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\202\002\n&com.google.cloud.websecu" + + "rityscanner.v1B\014ScanRunProtoP\001ZVcloud.go" + + "ogle.com/go/websecurityscanner/apiv1/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + + "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + + "e::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java index 605ddfa4ee85..7dcfef2797db 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,40 +29,44 @@
  *
  * 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();
   }
 
-  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.
@@ -54,9 +75,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -65,6 +87,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
@@ -75,6 +99,8 @@ public enum Code
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
+     *
+     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -84,6 +110,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,
@@ -94,6 +122,8 @@ public enum Code
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -102,6 +132,8 @@ public enum Code */ BLOCKED_BY_IAP(4), /** + * + * *
      * Indicates that no seeds is found for a scan
      * 
@@ -113,6 +145,8 @@ public enum Code ; /** + * + * *
      * Default value is never used.
      * 
@@ -121,6 +155,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
@@ -131,6 +167,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.
@@ -140,6 +178,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,
@@ -150,6 +190,8 @@ public enum Code
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -158,6 +200,8 @@ public enum Code */ public static final int BLOCKED_BY_IAP_VALUE = 4; /** + * + * *
      * Indicates that no seeds is found for a scan
      * 
@@ -166,7 +210,6 @@ public enum Code */ public static final int NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -191,52 +234,57 @@ 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; - case 5: return NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN; - 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; + case 5: + return NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN; + 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; @@ -256,30 +304,42 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; 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; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.forNumber(code_); - return result == null ? com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = + com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.forNumber(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; @@ -291,9 +351,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_); } getUnknownFields().writeTo(output); @@ -305,9 +366,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -317,12 +379,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -344,98 +407,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
@@ -444,33 +513,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,9 +548,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
@@ -501,8 +569,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace result =
+          new com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -518,38 +589,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ScanRunWarning
     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;
@@ -557,7 +629,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());
       }
@@ -587,17 +660,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -607,26 +682,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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. */ @@ -637,24 +720,33 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code.forNumber(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.forNumber(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. */ @@ -668,11 +760,14 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1.ScanRunWarningTrac return this; } /** + * + * *
      * Output only. Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1.ScanRunWarningTrace.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -681,9 +776,9 @@ public Builder clearCode() { 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); } @@ -693,12 +788,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(); } @@ -707,27 +802,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,6 +837,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ScanRunWarningTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java index bfd08704852f..544870bb2942 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java new file mode 100644 index 000000000000..671db304bb8a --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java @@ -0,0 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\"\225\002\n\023ScanRunWarning" + + "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + + "curityscanner.v1.ScanRunWarningTrace.Cod" + + "e\"\261\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\004\022*\n&NO_STARTING_URL_FOU" + + "ND_FOR_MANAGED_SCAN\020\005B\216\002\n&com.google.clo" + + "ud.websecurityscanner.v1B\030ScanRunWarning" + + "TraceProtoP\001ZVcloud.google.com/go/websec" + + "urityscanner/apiv1/websecurityscannerpb;" + + "websecurityscannerpb\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_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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java index dc5edee70b80..e988b3dc0dd8 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequest.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +84,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 { @@ -93,6 +116,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +128,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_); } @@ -129,15 +152,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +180,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +319,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 @@ -312,8 +340,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.StartScanRunRequest result = + new com.google.cloud.websecurityscanner.v1.StartScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -329,38 +360,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.StartScanRunRe 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; @@ -368,7 +400,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_; bitField0_ |= 0x00000001; @@ -400,17 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +455,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +483,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 { @@ -467,30 +506,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +546,31 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,12 +580,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(); } @@ -544,27 +594,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,6 +629,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StartScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java index 78720ba52fa4..153ba90c04f0 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StartScanRunRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java index 161bede274cb..151d1acb3966 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequest.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the ScanRun to be stopped. The name follows the
    * format of
@@ -54,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -62,14 +85,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
@@ -77,16 +101,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 { @@ -95,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +130,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_); } @@ -131,15 +154,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +182,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,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 @@ -314,8 +342,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.StopScanRunRequest result = + new com.google.cloud.websecurityscanner.v1.StopScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -331,38 +362,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.StopScanRunReq 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; @@ -370,7 +402,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_; bitField0_ |= 0x00000001; @@ -402,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,10 +457,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -433,13 +471,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; @@ -448,6 +486,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -455,15 +495,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 { @@ -471,6 +510,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -478,18 +519,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -497,6 +542,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -506,6 +552,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the ScanRun to be stopped. The name follows the
      * format of
@@ -513,21 +561,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +587,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(); } @@ -551,27 +601,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java index f48ebe772751..87a091f0a033 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/StopScanRunRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java index e28e698010ce..9e14a7cd70e0 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequest.java @@ -1,50 +1,70 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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
@@ -52,6 +72,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ @java.lang.Override @@ -59,6 +80,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
@@ -66,13 +89,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
@@ -83,12 +111,16 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig getScanConfig() {
    */
   @java.lang.Override
   public com.google.cloud.websecurityscanner.v1.ScanConfigOrBuilder getScanConfigOrBuilder() {
-    return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance() : scanConfig_;
+    return scanConfig_ == null
+        ? com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()
+        : scanConfig_;
   }
 
   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
@@ -96,6 +128,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 @@ -103,6 +136,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. The update mask applies to the resource. For the `FieldMask` definition,
    * see
@@ -110,6 +145,7 @@ public boolean hasUpdateMask() {
    * 
* * .google.protobuf.FieldMask update_mask = 3; + * * @return The updateMask. */ @java.lang.Override @@ -117,6 +153,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
@@ -131,6 +169,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -142,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 (scanConfig_ != null) {
       output.writeMessage(2, getScanConfig());
     }
@@ -160,12 +198,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 += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -175,22 +211,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -217,131 +252,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,13 +400,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(); } @@ -381,23 +422,23 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.UpdateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null - ? scanConfig_ - : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -405,38 +446,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.UpdateScanConf 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; @@ -444,7 +486,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()); } @@ -477,26 +521,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getScanConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,12 +549,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -519,12 +568,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.websecurityscanner.v1.ScanConfig scan_config = 2; + * * @return Whether the scanConfig field is set. */ public boolean hasScanConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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
@@ -532,16 +584,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
@@ -564,6 +621,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
@@ -584,6 +643,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
@@ -594,9 +655,10 @@ public Builder setScanConfig(
      */
     public Builder mergeScanConfig(com.google.cloud.websecurityscanner.v1.ScanConfig value) {
       if (scanConfigBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          scanConfig_ != null &&
-          scanConfig_ != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && scanConfig_ != null
+            && scanConfig_
+                != com.google.cloud.websecurityscanner.v1.ScanConfig.getDefaultInstance()) {
           getScanConfigBuilder().mergeFrom(value);
         } else {
           scanConfig_ = value;
@@ -609,6 +671,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
@@ -628,6 +692,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
@@ -642,6 +708,8 @@ public com.google.cloud.websecurityscanner.v1.ScanConfig.Builder getScanConfigBu
       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
@@ -654,11 +722,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
@@ -668,14 +739,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_;
@@ -683,8 +757,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
@@ -692,12 +771,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -705,16 +787,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
@@ -737,6 +824,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -745,8 +834,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();
       } else {
@@ -757,6 +845,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -767,9 +857,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -782,6 +872,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -801,6 +893,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -815,6 +909,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The update mask applies to the resource. For the `FieldMask` definition,
      * see
@@ -827,11 +923,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
@@ -841,21 +940,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);
     }
 
@@ -865,41 +967,43 @@ 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 {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  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 {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -911,9 +1015,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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
index ca4f2db0837b..f2e0ad0f5500 100644
--- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
+++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/UpdateScanConfigRequestOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
similarity index 68%
rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
index 9ec739cdb392..501aecf1ae7d 100644
--- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
+++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResource.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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,33 +45,38 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object contentType_ = "";
   /**
+   *
+   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ @java.lang.Override @@ -62,29 +85,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 { @@ -93,14 +116,18 @@ public java.lang.String getContentType() { } public static final int RESOURCE_URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object resourceUrl_ = ""; /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ @java.lang.Override @@ -109,29 +136,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 { @@ -140,6 +167,7 @@ public java.lang.String getResourceUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,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(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -182,17 +209,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,98 +240,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.
@@ -313,33 +345,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,9 +381,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
@@ -371,8 +402,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1.ViolatingResource result =
+          new com.google.cloud.websecurityscanner.v1.ViolatingResource(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -391,38 +425,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.ViolatingResou
     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;
@@ -430,7 +465,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_;
         bitField0_ |= 0x00000001;
@@ -467,22 +503,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              contentType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              resourceUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                contentType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                resourceUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -492,22 +531,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -516,20 +558,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 { @@ -537,28 +580,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } contentType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return This builder for chaining. */ public Builder clearContentType() { @@ -568,17 +618,21 @@ public Builder clearContentType() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00000001; @@ -588,18 +642,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; @@ -608,20 +664,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 { @@ -629,28 +686,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceUrl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -660,26 +724,30 @@ public Builder clearResourceUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceUrl_ = value; bitField0_ |= 0x00000002; 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); } @@ -689,12 +757,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(); } @@ -703,27 +771,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,6 +806,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java index e4000fa52f38..b6252fa30c6d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ViolatingResourceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java index 3a08217dd37d..9fca281e80e9 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeaders.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,84 +44,99 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableHeaders(); } - 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_ = ""; @@ -111,33 +144,38 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Header(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -146,29 +184,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 { @@ -177,14 +215,18 @@ public java.lang.String getName() { } public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -193,29 +235,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 { @@ -224,6 +266,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +278,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_); } @@ -266,17 +308,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,89 +339,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 @@ -390,39 +437,42 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,13 +483,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(); } @@ -454,13 +505,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result = + new com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -474,46 +529,52 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.VulnerableHead 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_; bitField0_ |= 0x00000001; @@ -550,22 +611,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -575,22 +639,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -599,20 +666,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 { @@ -620,28 +688,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -651,17 +726,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -671,18 +750,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; @@ -691,20 +772,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 { @@ -712,28 +794,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -743,23 +832,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -772,41 +866,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -818,16 +915,19 @@ 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; + @SuppressWarnings("serial") private java.util.List headers_; /** + * + * *
    * List of vulnerable headers.
    * 
@@ -835,10 +935,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.
    * 
@@ -846,11 +949,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.
    * 
@@ -862,6 +968,8 @@ public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * List of vulnerable headers.
    * 
@@ -873,6 +981,8 @@ public com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header getHeader return headers_.get(index); } /** + * + * *
    * List of vulnerable headers.
    * 
@@ -880,73 +990,99 @@ 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; + @SuppressWarnings("serial") - 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; @@ -958,8 +1094,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)); } @@ -976,12 +1111,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -991,17 +1124,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1027,131 +1159,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1174,9 +1311,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 @@ -1195,14 +1332,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1.VulnerableHeaders result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -1231,38 +1372,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.VulnerableHead 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; @@ -1270,7 +1412,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()) { @@ -1289,9 +1432,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_); } @@ -1315,9 +1459,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_); } @@ -1349,38 +1494,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(m); - } else { - headersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (missingHeadersBuilder_ == null) { - ensureMissingHeadersIsMutable(); - missingHeaders_.add(m); - } else { - missingHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1.VulnerableHeaders.Header.parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1390,28 +1538,39 @@ public Builder mergeFrom( } // finally 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 { @@ -1419,11 +1578,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) { @@ -1433,11 +1595,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) { @@ -1447,11 +1612,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) { @@ -1468,14 +1636,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()); @@ -1486,13 +1658,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(); @@ -1506,11 +1682,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) { @@ -1527,11 +1706,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) { @@ -1545,14 +1727,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()); @@ -1563,18 +1749,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); @@ -1582,11 +1772,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) { @@ -1599,11 +1792,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) { @@ -1616,39 +1812,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 { @@ -1656,74 +1863,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 { @@ -1731,11 +1965,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) { @@ -1745,13 +1983,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 { @@ -1759,11 +2002,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) { @@ -1780,14 +2027,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()); @@ -1798,13 +2050,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(); @@ -1818,11 +2075,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) { @@ -1839,11 +2100,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) { @@ -1857,14 +2122,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()); @@ -1875,18 +2145,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); @@ -1894,11 +2169,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) { @@ -1911,11 +2190,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) { @@ -1928,39 +2211,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 { @@ -1968,45 +2265,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(), @@ -2015,9 +2334,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); } @@ -2027,12 +2346,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(); } @@ -2041,27 +2360,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2076,6 +2395,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java similarity index 60% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java index 0c7a2d04301b..c729c6bbd3d4 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableHeadersOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java index 819a98e59cf6..7bb8dfa59416 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParameters.java @@ -1,82 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.emptyList(); + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableParameters(); } - 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; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -84,20 +111,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; @@ -109,8 +139,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)); } @@ -139,15 +168,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -169,144 +198,148 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - parameterNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -325,8 +358,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.VulnerableParameters result = + new com.google.cloud.websecurityscanner.v1.VulnerableParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -343,38 +379,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.VulnerablePara 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; @@ -382,7 +419,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_; @@ -419,18 +457,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureParameterNamesIsMutable(); - parameterNames_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -440,10 +480,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureParameterNamesIsMutable() { if (!parameterNames_.isModifiable()) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); @@ -451,35 +493,43 @@ private void ensureParameterNamesIsMutable() { 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() { parameterNames_.makeImmutable(); 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. */ @@ -487,31 +537,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParameterNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureParameterNamesIsMutable(); parameterNames_.set(index, value); bitField0_ |= 0x00000001; @@ -519,17 +575,21 @@ public Builder setParameterNames( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addParameterNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureParameterNamesIsMutable(); parameterNames_.add(value); bitField0_ |= 0x00000001; @@ -537,50 +597,58 @@ public Builder addParameterNames( 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return This builder for chaining. */ public Builder clearParameterNames() { - parameterNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); @@ -588,9 +656,9 @@ public Builder addParameterNamesBytes( 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); } @@ -600,12 +668,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(); } @@ -614,27 +682,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,6 +717,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.VulnerableParameters getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java similarity index 59% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java index 101f456a00ea..adfd6f950cc1 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/VulnerableParametersOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java new file mode 100644 index 000000000000..b4e1a034c376 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java @@ -0,0 +1,408 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\032\027google/api/client.proto\0324goog" + + "le/cloud/websecurityscanner/v1/crawled_u" + + "rl.proto\0320google/cloud/websecurityscanne" + + "r/v1/finding.proto\032;google/cloud/websecu" + + "rityscanner/v1/finding_type_stats.proto\032" + + "4google/cloud/websecurityscanner/v1/scan" + + "_config.proto\0321google/cloud/websecuritys" + + "canner/v1/scan_run.proto\032\033google/protobu" + + "f/empty.proto\032 google/protobuf/field_mas" + + "k.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.emptyList(); + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; attackVector_ = 0; storedXssSeedingUrl_ = ""; @@ -29,34 +46,38 @@ private Xss() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Xss(); } - 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.
      * 
@@ -65,6 +86,8 @@ public enum AttackVector */ ATTACK_VECTOR_UNSPECIFIED(0), /** + * + * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -73,6 +96,8 @@ public enum AttackVector */ LOCAL_STORAGE(1), /** + * + * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -81,6 +106,8 @@ public enum AttackVector */ SESSION_STORAGE(2), /** + * + * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -89,6 +116,8 @@ public enum AttackVector */ WINDOW_NAME(3), /** + * + * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -97,6 +126,8 @@ public enum AttackVector */ REFERRER(4), /** + * + * *
      * The attack comes from fuzzing an input element.
      * 
@@ -105,6 +136,8 @@ public enum AttackVector */ FORM_INPUT(5), /** + * + * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -113,6 +146,8 @@ public enum AttackVector */ COOKIE(6), /** + * + * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -121,6 +156,8 @@ public enum AttackVector */ POST_MESSAGE(7), /** + * + * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -129,6 +166,8 @@ public enum AttackVector */ GET_PARAMETERS(8), /** + * + * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -137,6 +176,8 @@ public enum AttackVector */ URL_FRAGMENT(9), /** + * + * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -145,6 +186,8 @@ public enum AttackVector */ HTML_COMMENT(10), /** + * + * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -153,6 +196,8 @@ public enum AttackVector */ POST_PARAMETERS(11), /** + * + * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -161,6 +206,8 @@ public enum AttackVector */ PROTOCOL(12), /** + * + * *
      * The attack comes from the server side and is stored.
      * 
@@ -169,6 +216,8 @@ public enum AttackVector */ STORED_XSS(13), /** + * + * *
      * The attack is a Same-Origin Method Execution attack via a GET parameter.
      * 
@@ -177,6 +226,8 @@ public enum AttackVector */ SAME_ORIGIN(14), /** + * + * *
      * The attack payload is received from a third-party host via a URL that is
      * user-controllable
@@ -189,6 +240,8 @@ public enum AttackVector
     ;
 
     /**
+     *
+     *
      * 
      * Unknown attack vector.
      * 
@@ -197,6 +250,8 @@ public enum AttackVector */ public static final int ATTACK_VECTOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The attack comes from fuzzing the browser's localStorage.
      * 
@@ -205,6 +260,8 @@ public enum AttackVector */ public static final int LOCAL_STORAGE_VALUE = 1; /** + * + * *
      * The attack comes from fuzzing the browser's sessionStorage.
      * 
@@ -213,6 +270,8 @@ public enum AttackVector */ public static final int SESSION_STORAGE_VALUE = 2; /** + * + * *
      * The attack comes from fuzzing the window's name property.
      * 
@@ -221,6 +280,8 @@ public enum AttackVector */ public static final int WINDOW_NAME_VALUE = 3; /** + * + * *
      * The attack comes from fuzzing the referrer property.
      * 
@@ -229,6 +290,8 @@ public enum AttackVector */ public static final int REFERRER_VALUE = 4; /** + * + * *
      * The attack comes from fuzzing an input element.
      * 
@@ -237,6 +300,8 @@ public enum AttackVector */ public static final int FORM_INPUT_VALUE = 5; /** + * + * *
      * The attack comes from fuzzing the browser's cookies.
      * 
@@ -245,6 +310,8 @@ public enum AttackVector */ public static final int COOKIE_VALUE = 6; /** + * + * *
      * The attack comes from hijacking the post messaging mechanism.
      * 
@@ -253,6 +320,8 @@ public enum AttackVector */ public static final int POST_MESSAGE_VALUE = 7; /** + * + * *
      * The attack comes from fuzzing parameters in the url.
      * 
@@ -261,6 +330,8 @@ public enum AttackVector */ public static final int GET_PARAMETERS_VALUE = 8; /** + * + * *
      * The attack comes from fuzzing the fragment in the url.
      * 
@@ -269,6 +340,8 @@ public enum AttackVector */ public static final int URL_FRAGMENT_VALUE = 9; /** + * + * *
      * The attack comes from fuzzing the HTML comments.
      * 
@@ -277,6 +350,8 @@ public enum AttackVector */ public static final int HTML_COMMENT_VALUE = 10; /** + * + * *
      * The attack comes from fuzzing the POST parameters.
      * 
@@ -285,6 +360,8 @@ public enum AttackVector */ public static final int POST_PARAMETERS_VALUE = 11; /** + * + * *
      * The attack comes from fuzzing the protocol.
      * 
@@ -293,6 +370,8 @@ public enum AttackVector */ public static final int PROTOCOL_VALUE = 12; /** + * + * *
      * The attack comes from the server side and is stored.
      * 
@@ -301,6 +380,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.
      * 
@@ -309,6 +390,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
@@ -318,7 +401,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(
@@ -343,62 +425,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;
@@ -416,38 +511,47 @@ private AttackVector(int value) {
   }
 
   public static final int STACK_TRACES_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringArrayList stackTraces_ =
       com.google.protobuf.LazyStringArrayList.emptyList();
   /**
+   *
+   *
    * 
    * 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. */ @@ -455,28 +559,34 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -485,29 +595,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 { @@ -518,38 +628,53 @@ public java.lang.String getErrorMessage() { public static final int ATTACK_VECTOR_FIELD_NUMBER = 3; 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; + * * @return The attackVector. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.forNumber(attackVector_); - return result == null ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xss.AttackVector getAttackVector() { + com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = + com.google.cloud.websecurityscanner.v1.Xss.AttackVector.forNumber(attackVector_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xss.AttackVector.UNRECOGNIZED + : result; } public static final int STORED_XSS_SEEDING_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -558,29 +683,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 { @@ -589,6 +714,7 @@ public java.lang.String getStoredXssSeedingUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -600,15 +726,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_)) { @@ -634,9 +761,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_); @@ -649,20 +777,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -689,138 +815,141 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - stackTraces_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; attackVector_ = 0; storedXssSeedingUrl_ = ""; @@ -828,9 +957,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 @@ -849,8 +978,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.Xss result = + new com.google.cloud.websecurityscanner.v1.Xss(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -876,38 +1008,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Xss result) { 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; @@ -965,33 +1098,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStackTracesIsMutable(); - stackTraces_.add(s); - break; - } // case 10 - case 18: { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - attackVector_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - storedXssSeedingUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + attackVector_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + storedXssSeedingUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1001,10 +1139,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStackTracesIsMutable() { if (!stackTraces_.isModifiable()) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); @@ -1012,35 +1152,43 @@ private void ensureStackTracesIsMutable() { 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() { stackTraces_.makeImmutable(); 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. */ @@ -1048,31 +1196,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStackTraces(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStackTracesIsMutable(); stackTraces_.set(index, value); bitField0_ |= 0x00000001; @@ -1080,17 +1234,21 @@ public Builder setStackTraces( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStackTraces(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStackTracesIsMutable(); stackTraces_.add(value); bitField0_ |= 0x00000001; @@ -1098,50 +1256,58 @@ public Builder addStackTraces( 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_); bitField0_ |= 0x00000001; 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() { - stackTraces_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); @@ -1152,18 +1318,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; @@ -1172,20 +1340,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 { @@ -1193,28 +1362,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -1224,17 +1400,21 @@ public Builder clearErrorMessage() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; @@ -1244,22 +1424,29 @@ 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. */ @@ -1270,24 +1457,33 @@ public Builder setAttackVectorValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1.Xss.AttackVector result = com.google.cloud.websecurityscanner.v1.Xss.AttackVector.forNumber(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.forNumber(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. */ @@ -1301,11 +1497,14 @@ public Builder setAttackVector(com.google.cloud.websecurityscanner.v1.Xss.Attack 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() { @@ -1317,18 +1516,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; @@ -1337,20 +1538,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 { @@ -1358,28 +1560,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStoredXssSeedingUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } storedXssSeedingUrl_ = value; bitField0_ |= 0x00000008; 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() { @@ -1389,26 +1598,30 @@ public Builder clearStoredXssSeedingUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStoredXssSeedingUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); storedXssSeedingUrl_ = value; bitField0_ |= 0x00000008; 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); } @@ -1418,12 +1631,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(); } @@ -1432,27 +1645,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1467,6 +1680,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java similarity index 72% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java index 881b7416d7f4..50b23b50f8ac 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XssOrBuilder.java @@ -1,109 +1,151 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java index dd024a0596d0..61669226f08a 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/Xxe.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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 XXE.
  * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} */ -public final class Xxe extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Xxe extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.websecurityscanner.v1.Xxe) XxeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Xxe.newBuilder() to construct. private Xxe(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Xxe() { payloadValue_ = ""; payloadLocation_ = 0; @@ -26,34 +44,38 @@ private Xxe() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Xxe(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xxe.class, com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + com.google.cloud.websecurityscanner.v1.Xxe.class, + com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); } /** + * + * *
    * Locations within a request where XML was substituted.
    * 
* * Protobuf enum {@code google.cloud.websecurityscanner.v1.Xxe.Location} */ - public enum Location - implements com.google.protobuf.ProtocolMessageEnum { + public enum Location implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown Location.
      * 
@@ -62,6 +84,8 @@ public enum Location */ LOCATION_UNSPECIFIED(0), /** + * + * *
      * The XML payload replaced the complete request body.
      * 
@@ -73,6 +97,8 @@ public enum Location ; /** + * + * *
      * Unknown Location.
      * 
@@ -81,6 +107,8 @@ public enum Location */ public static final int LOCATION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The XML payload replaced the complete request body.
      * 
@@ -89,7 +117,6 @@ public enum Location */ public static final int COMPLETE_REQUEST_BODY_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -114,48 +141,47 @@ public static Location valueOf(int value) { */ public static Location forNumber(int value) { switch (value) { - case 0: return LOCATION_UNSPECIFIED; - case 1: return COMPLETE_REQUEST_BODY; - default: return null; + case 0: + return LOCATION_UNSPECIFIED; + case 1: + return COMPLETE_REQUEST_BODY; + 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< - Location> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Location findValueByNumber(int number) { - return Location.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 Location findValueByNumber(int number) { + return Location.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.Xxe.getDescriptor().getEnumTypes().get(0); } private static final Location[] VALUES = values(); - public static Location valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Location 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; @@ -173,15 +199,19 @@ private Location(int value) { } public static final int PAYLOAD_VALUE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object payloadValue_ = ""; /** + * + * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; + * * @return The payloadValue. */ @java.lang.Override @@ -190,30 +220,30 @@ public java.lang.String getPayloadValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payloadValue_ = s; return s; } } /** + * + * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; + * * @return The bytes for payloadValue. */ @java.lang.Override - public com.google.protobuf.ByteString - getPayloadValueBytes() { + public com.google.protobuf.ByteString getPayloadValueBytes() { java.lang.Object ref = payloadValue_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); payloadValue_ = b; return b; } else { @@ -224,30 +254,42 @@ public java.lang.String getPayloadValue() { public static final int PAYLOAD_LOCATION_FIELD_NUMBER = 2; private int payloadLocation_ = 0; /** + * + * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @return The enum numeric value on the wire for payloadLocation. */ - @java.lang.Override public int getPayloadLocationValue() { + @java.lang.Override + public int getPayloadLocationValue() { return payloadLocation_; } /** + * + * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @return The payloadLocation. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { - com.google.cloud.websecurityscanner.v1.Xxe.Location result = com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); - return result == null ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { + com.google.cloud.websecurityscanner.v1.Xxe.Location result = + com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,12 +301,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(payloadValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payloadValue_); } - if (payloadLocation_ != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + if (payloadLocation_ + != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { output.writeEnum(2, payloadLocation_); } getUnknownFields().writeTo(output); @@ -279,9 +321,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payloadValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, payloadValue_); } - if (payloadLocation_ != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, payloadLocation_); + if (payloadLocation_ + != com.google.cloud.websecurityscanner.v1.Xxe.Location.LOCATION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, payloadLocation_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,15 +333,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.Xxe)) { return super.equals(obj); } - com.google.cloud.websecurityscanner.v1.Xxe other = (com.google.cloud.websecurityscanner.v1.Xxe) obj; + com.google.cloud.websecurityscanner.v1.Xxe other = + (com.google.cloud.websecurityscanner.v1.Xxe) obj; - if (!getPayloadValue() - .equals(other.getPayloadValue())) return false; + if (!getPayloadValue().equals(other.getPayloadValue())) return false; if (payloadLocation_ != other.payloadLocation_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -321,132 +363,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.websecurityscanner.v1.Xxe parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe 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.Xxe 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.Xxe parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.websecurityscanner.v1.Xxe parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.websecurityscanner.v1.Xxe 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.Xxe 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.Xxe 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.Xxe 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 XXE.
    * 
* * Protobuf type {@code google.cloud.websecurityscanner.v1.Xxe} */ - 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.Xxe) com.google.cloud.websecurityscanner.v1.XxeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.websecurityscanner.v1.FindingAddonProto.internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.websecurityscanner.v1.Xxe.class, com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); + com.google.cloud.websecurityscanner.v1.Xxe.class, + com.google.cloud.websecurityscanner.v1.Xxe.Builder.class); } // Construct using com.google.cloud.websecurityscanner.v1.Xxe.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -457,9 +503,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_Xxe_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.websecurityscanner.v1.FindingAddonProto + .internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; } @java.lang.Override @@ -478,8 +524,11 @@ public com.google.cloud.websecurityscanner.v1.Xxe build() { @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xxe buildPartial() { - com.google.cloud.websecurityscanner.v1.Xxe result = new com.google.cloud.websecurityscanner.v1.Xxe(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1.Xxe result = + new com.google.cloud.websecurityscanner.v1.Xxe(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -498,38 +547,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1.Xxe result) { 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.Xxe) { - return mergeFrom((com.google.cloud.websecurityscanner.v1.Xxe)other); + return mergeFrom((com.google.cloud.websecurityscanner.v1.Xxe) other); } else { super.mergeFrom(other); return this; @@ -572,22 +622,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - payloadValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - payloadLocation_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + payloadValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + payloadLocation_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,23 +650,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object payloadValue_ = ""; /** + * + * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; + * * @return The payloadValue. */ public java.lang.String getPayloadValue() { java.lang.Object ref = payloadValue_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payloadValue_ = s; return s; @@ -622,21 +678,22 @@ public java.lang.String getPayloadValue() { } } /** + * + * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; + * * @return The bytes for payloadValue. */ - public com.google.protobuf.ByteString - getPayloadValueBytes() { + public com.google.protobuf.ByteString getPayloadValueBytes() { java.lang.Object ref = payloadValue_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); payloadValue_ = b; return b; } else { @@ -644,30 +701,37 @@ public java.lang.String getPayloadValue() { } } /** + * + * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; + * * @param value The payloadValue to set. * @return This builder for chaining. */ - public Builder setPayloadValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPayloadValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } payloadValue_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; + * * @return This builder for chaining. */ public Builder clearPayloadValue() { @@ -677,18 +741,22 @@ public Builder clearPayloadValue() { return this; } /** + * + * *
      * The XML string that triggered the XXE vulnerability. Non-payload values
      * might be redacted.
      * 
* * string payload_value = 1; + * * @param value The bytes for payloadValue to set. * @return This builder for chaining. */ - public Builder setPayloadValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPayloadValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); payloadValue_ = value; bitField0_ |= 0x00000001; @@ -698,22 +766,29 @@ public Builder setPayloadValueBytes( private int payloadLocation_ = 0; /** + * + * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @return The enum numeric value on the wire for payloadLocation. */ - @java.lang.Override public int getPayloadLocationValue() { + @java.lang.Override + public int getPayloadLocationValue() { return payloadLocation_; } /** + * + * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @param value The enum numeric value on the wire for payloadLocation to set. * @return This builder for chaining. */ @@ -724,24 +799,33 @@ public Builder setPayloadLocationValue(int value) { return this; } /** + * + * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @return The payloadLocation. */ @java.lang.Override public com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation() { - com.google.cloud.websecurityscanner.v1.Xxe.Location result = com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); - return result == null ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED : result; + com.google.cloud.websecurityscanner.v1.Xxe.Location result = + com.google.cloud.websecurityscanner.v1.Xxe.Location.forNumber(payloadLocation_); + return result == null + ? com.google.cloud.websecurityscanner.v1.Xxe.Location.UNRECOGNIZED + : result; } /** + * + * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @param value The payloadLocation to set. * @return This builder for chaining. */ @@ -755,11 +839,14 @@ public Builder setPayloadLocation(com.google.cloud.websecurityscanner.v1.Xxe.Loc return this; } /** + * + * *
      * Location within the request where the payload was placed.
      * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @return This builder for chaining. */ public Builder clearPayloadLocation() { @@ -768,9 +855,9 @@ public Builder clearPayloadLocation() { 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); } @@ -780,12 +867,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.websecurityscanner.v1.Xxe) } // @@protoc_insertion_point(class_scope:google.cloud.websecurityscanner.v1.Xxe) private static final com.google.cloud.websecurityscanner.v1.Xxe DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.websecurityscanner.v1.Xxe(); } @@ -794,27 +881,27 @@ public static com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Xxe parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Xxe parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -829,6 +916,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1.Xxe getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java index 478f22f8d20c..764c37a8360e 100644 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/XxeOrBuilder.java @@ -1,49 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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 XxeOrBuilder extends +public interface XxeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.websecurityscanner.v1.Xxe) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; + * * @return The payloadValue. */ java.lang.String getPayloadValue(); /** + * + * *
    * The XML string that triggered the XXE vulnerability. Non-payload values
    * might be redacted.
    * 
* * string payload_value = 1; + * * @return The bytes for payloadValue. */ - com.google.protobuf.ByteString - getPayloadValueBytes(); + com.google.protobuf.ByteString getPayloadValueBytes(); /** + * + * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @return The enum numeric value on the wire for payloadLocation. */ int getPayloadLocationValue(); /** + * + * *
    * Location within the request where the payload was placed.
    * 
* * .google.cloud.websecurityscanner.v1.Xxe.Location payload_location = 2; + * * @return The payloadLocation. */ com.google.cloud.websecurityscanner.v1.Xxe.Location getPayloadLocation(); diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/crawled_url.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_addon.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/finding_type_stats.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_config_error.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto b/java-websecurityscanner/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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_error_trace.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_log.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto b/java-websecurityscanner/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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/scan_run_warning_trace.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/src/main/proto/google/cloud/websecurityscanner/v1/web_security_scanner.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java index 58d0d3662d0c..175901c890ea 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrl.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +47,39 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -65,30 +88,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 { @@ -97,14 +120,18 @@ public java.lang.String getHttpMethod() { } public static final int URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** + * + * *
    * Output only. The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ @java.lang.Override @@ -113,29 +140,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 { @@ -144,14 +171,18 @@ public java.lang.String getUrl() { } public static final int BODY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -160,29 +191,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 { @@ -191,6 +222,7 @@ public java.lang.String getBody() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +234,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_); } @@ -239,19 +270,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,98 +304,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
@@ -375,33 +410,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -413,9 +447,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
@@ -434,8 +468,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1alpha.CrawledUrl result =
+          new com.google.cloud.websecurityscanner.v1alpha.CrawledUrl(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -457,38 +494,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.CrawledUr
     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;
@@ -496,7 +534,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_;
         bitField0_ |= 0x00000001;
@@ -538,27 +577,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              httpMethod_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              url_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              body_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                httpMethod_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                url_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                body_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -568,23 +611,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -593,21 +639,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 { @@ -615,30 +662,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } httpMethod_ = value; bitField0_ |= 0x00000001; 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() { @@ -648,18 +702,22 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000001; @@ -669,18 +727,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; @@ -689,20 +749,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 { @@ -710,28 +771,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. The URL that was crawled.
      * 
* * string url = 2; + * * @return This builder for chaining. */ public Builder clearUrl() { @@ -741,17 +809,21 @@ public Builder clearUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; @@ -761,18 +833,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; @@ -781,20 +855,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 { @@ -802,28 +877,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } body_ = value; bitField0_ |= 0x00000004; 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() { @@ -833,26 +915,30 @@ public Builder clearBody() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000004; 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); } @@ -862,12 +948,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(); } @@ -876,27 +962,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +997,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java similarity index 62% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java index 16190d960a01..3dd7ba4b3c82 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java new file mode 100644 index 000000000000..7ad2dcd8f22b --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java @@ -0,0 +1,67 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\235\001\n+com.google.cloud.websecurityscann" + + "er.v1alphaB\017CrawledUrlProtoP\001Z[cloud.goo" + + "gle.com/go/websecurityscanner/apiv1alpha" + + "/websecurityscannerpb;websecurityscanner" + + "pbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java similarity index 59% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java index 3c7b5e822ebb..8b8acf39bfb4 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -95,11 +122,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 @@ -107,30 +139,44 @@ 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() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,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_); } @@ -163,8 +208,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,14 +400,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 @@ -371,21 +423,23 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.CreateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null - ? scanConfig_ - : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); } } @@ -393,46 +447,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.CreateSca 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_; bitField0_ |= 0x00000001; @@ -467,24 +526,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getScanConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +554,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -519,21 +584,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 { @@ -541,30 +609,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -574,18 +653,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +680,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -643,11 +747,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) { @@ -661,17 +769,22 @@ 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 (((bitField0_ & 0x00000002) != 0) && - scanConfig_ != null && - scanConfig_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && scanConfig_ != null + && scanConfig_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -684,11 +797,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +818,15 @@ 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() { bitField0_ |= 0x00000002; @@ -713,43 +834,56 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon 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); } @@ -759,41 +893,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -805,9 +941,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..2fad9e813b59 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java similarity index 59% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java index c36e22bc790f..3064a96b58dc 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,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_); } @@ -129,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,14 +325,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 @@ -312,13 +348,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,46 +369,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.DeleteSca 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_; bitField0_ |= 0x00000001; @@ -400,17 +445,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +467,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +497,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 { @@ -467,30 +522,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +566,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,41 +602,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +650,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..d96679824d8c --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java similarity index 72% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java index 9af92841034b..ba448f0b7e6a 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +53,38 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
-  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.
      * 
@@ -71,6 +93,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
@@ -82,6 +106,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
@@ -93,6 +119,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
@@ -106,6 +134,8 @@ public enum FindingType
      */
     ROSETTA_FLASH(5),
     /**
+     *
+     *
      * 
      * A cross-site scripting (XSS) bug is found via JavaScript callback. For
      * detailed explanations on XSS, see
@@ -116,6 +146,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
@@ -132,6 +164,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.
@@ -141,6 +175,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.
@@ -150,6 +186,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.
@@ -159,6 +197,8 @@ public enum FindingType
      */
     XSS_ANGULAR_CALLBACK(8),
     /**
+     *
+     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -167,6 +207,8 @@ public enum FindingType */ INVALID_HEADER(9), /** + * + * *
      * Misspelled security header name.
      * 
@@ -175,6 +217,8 @@ public enum FindingType */ MISSPELLED_SECURITY_HEADER_NAME(10), /** + * + * *
      * Mismatching values in a duplicate security header.
      * 
@@ -186,6 +230,8 @@ public enum FindingType ; /** + * + * *
      * The invalid finding type.
      * 
@@ -194,6 +240,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
@@ -205,6 +253,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
@@ -216,6 +266,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
@@ -229,6 +281,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
@@ -239,6 +293,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
@@ -255,6 +311,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.
@@ -264,6 +322,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.
@@ -273,6 +333,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.
@@ -282,6 +344,8 @@ public enum FindingType
      */
     public static final int XSS_ANGULAR_CALLBACK_VALUE = 8;
     /**
+     *
+     *
      * 
      * A malformed or invalid valued header.
      * 
@@ -290,6 +354,8 @@ public enum FindingType */ public static final int INVALID_HEADER_VALUE = 9; /** + * + * *
      * Misspelled security header name.
      * 
@@ -298,6 +364,8 @@ public enum FindingType */ public static final int MISSPELLED_SECURITY_HEADER_NAME_VALUE = 10; /** + * + * *
      * Mismatching values in a duplicate security header.
      * 
@@ -306,7 +374,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( @@ -331,58 +398,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; @@ -400,9 +478,12 @@ private FindingType(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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}'.
@@ -410,6 +491,7 @@ private FindingType(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -418,14 +500,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}'.
@@ -433,16 +516,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 { @@ -453,39 +535,54 @@ public java.lang.String getName() { public static final int FINDING_TYPE_FIELD_NUMBER = 2; 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; + * * @return The findingType. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(findingType_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(findingType_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED + : result; } public static final int HTTP_METHOD_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -494,30 +591,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 { @@ -526,15 +623,19 @@ public java.lang.String getHttpMethod() { } public static final int FUZZED_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -543,30 +644,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 { @@ -575,14 +676,18 @@ public java.lang.String getFuzzedUrl() { } public static final int BODY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object body_ = ""; /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ @java.lang.Override @@ -591,29 +696,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 { @@ -622,14 +727,18 @@ public java.lang.String getBody() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ @java.lang.Override @@ -638,29 +747,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 { @@ -669,15 +778,19 @@ public java.lang.String getDescription() { } public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; + @SuppressWarnings("serial") 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 @@ -686,30 +799,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 { @@ -718,15 +831,19 @@ public java.lang.String getReproductionUrl() { } public static final int FRAME_URL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") 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 @@ -735,30 +852,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 { @@ -767,14 +884,18 @@ public java.lang.String getFrameUrl() { } public static final int FINAL_URL_FIELD_NUMBER = 9; + @SuppressWarnings("serial") 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 @@ -783,29 +904,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 { @@ -814,15 +935,19 @@ public java.lang.String getFinalUrl() { } public static final int TRACKING_ID_FIELD_NUMBER = 10; + @SuppressWarnings("serial") 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 @@ -831,30 +956,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 { @@ -865,11 +990,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 @@ -877,18 +1005,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.
    * 
@@ -896,19 +1031,26 @@ 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() { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } 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 @@ -916,39 +1058,55 @@ 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() { - return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() : violatingResource_; + public com.google.cloud.websecurityscanner.v1alpha.ViolatingResourceOrBuilder + getViolatingResourceOrBuilder() { + return violatingResource_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance() + : violatingResource_; } 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 @@ -956,38 +1114,54 @@ 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() { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } 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 @@ -995,39 +1169,55 @@ 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() { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1alpha.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } 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 @@ -1035,18 +1225,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.
    * 
@@ -1055,10 +1252,13 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss getXss() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.XssOrBuilder getXssOrBuilder() { - return xss_ == null ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance() + : xss_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1070,12 +1270,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_)) { @@ -1129,9 +1330,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_); @@ -1158,24 +1360,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1185,56 +1383,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1293,98 +1478,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.
@@ -1392,33 +1582,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1462,9 +1651,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
@@ -1483,8 +1672,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1alpha.Finding result =
+          new com.google.cloud.websecurityscanner.v1alpha.Finding(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1522,29 +1714,29 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Finding r
         result.trackingId_ = trackingId_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.outdatedLibrary_ = outdatedLibraryBuilder_ == null
-            ? outdatedLibrary_
-            : outdatedLibraryBuilder_.build();
+        result.outdatedLibrary_ =
+            outdatedLibraryBuilder_ == null ? outdatedLibrary_ : outdatedLibraryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.violatingResource_ = violatingResourceBuilder_ == null
-            ? violatingResource_
-            : violatingResourceBuilder_.build();
+        result.violatingResource_ =
+            violatingResourceBuilder_ == null
+                ? violatingResource_
+                : violatingResourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.vulnerableHeaders_ = vulnerableHeadersBuilder_ == null
-            ? vulnerableHeaders_
-            : vulnerableHeadersBuilder_.build();
+        result.vulnerableHeaders_ =
+            vulnerableHeadersBuilder_ == null
+                ? vulnerableHeaders_
+                : vulnerableHeadersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.vulnerableParameters_ = vulnerableParametersBuilder_ == null
-            ? vulnerableParameters_
-            : vulnerableParametersBuilder_.build();
+        result.vulnerableParameters_ =
+            vulnerableParametersBuilder_ == null
+                ? vulnerableParameters_
+                : vulnerableParametersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.xss_ = xssBuilder_ == null
-            ? xss_
-            : xssBuilder_.build();
+        result.xss_ = xssBuilder_ == null ? xss_ : xssBuilder_.build();
       }
     }
 
@@ -1552,38 +1744,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Finding r
     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;
@@ -1591,7 +1784,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_;
         bitField0_ |= 0x00000001;
@@ -1681,97 +1875,106 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              findingType_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              httpMethod_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              fuzzedUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              body_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              reproductionUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              frameUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              finalUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              trackingId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getOutdatedLibraryFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getViolatingResourceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getVulnerableParametersFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getXssFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 114
-            case 122: {
-              input.readMessage(
-                  getVulnerableHeadersFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 122
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                findingType_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                httpMethod_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                fuzzedUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                body_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                reproductionUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                frameUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                finalUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                trackingId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(
+                    getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(
+                    getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 114
+            case 122:
+              {
+                input.readMessage(
+                    getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 122
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1781,10 +1984,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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}'.
@@ -1792,13 +1998,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; @@ -1807,6 +2013,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}'.
@@ -1814,15 +2022,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 { @@ -1830,6 +2037,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}'.
@@ -1837,18 +2046,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1856,6 +2069,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1865,6 +2079,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1872,12 +2088,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1887,22 +2105,29 @@ 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. */ @@ -1913,28 +2138,38 @@ public Builder setFindingTypeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(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.forNumber(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(); } @@ -1944,11 +2179,14 @@ public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Findin return this; } /** + * + * *
      * The type of the Finding.
      * 
* * .google.cloud.websecurityscanner.v1alpha.Finding.FindingType finding_type = 2; + * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -1960,19 +2198,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; @@ -1981,21 +2221,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 { @@ -2003,30 +2244,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } httpMethod_ = value; bitField0_ |= 0x00000004; 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() { @@ -2036,18 +2284,22 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000004; @@ -2057,19 +2309,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; @@ -2078,21 +2332,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 { @@ -2100,30 +2355,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFuzzedUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fuzzedUrl_ = value; bitField0_ |= 0x00000008; 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() { @@ -2133,18 +2395,22 @@ public Builder clearFuzzedUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fuzzedUrl_ = value; bitField0_ |= 0x00000008; @@ -2154,18 +2420,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; @@ -2174,20 +2442,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 { @@ -2195,28 +2464,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } body_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return This builder for chaining. */ public Builder clearBody() { @@ -2226,17 +2502,21 @@ public Builder clearBody() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000010; @@ -2246,18 +2526,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; @@ -2266,20 +2548,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 { @@ -2287,28 +2570,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2318,17 +2608,21 @@ public Builder clearDescription() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000020; @@ -2338,19 +2632,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; @@ -2359,21 +2655,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 { @@ -2381,30 +2678,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReproductionUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reproductionUrl_ = value; bitField0_ |= 0x00000040; 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() { @@ -2414,18 +2718,22 @@ public Builder clearReproductionUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reproductionUrl_ = value; bitField0_ |= 0x00000040; @@ -2435,19 +2743,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; @@ -2456,21 +2766,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 { @@ -2478,30 +2789,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFrameUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } frameUrl_ = value; bitField0_ |= 0x00000080; 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() { @@ -2511,18 +2829,22 @@ public Builder clearFrameUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); frameUrl_ = value; bitField0_ |= 0x00000080; @@ -2532,18 +2854,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; @@ -2552,20 +2876,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 { @@ -2573,28 +2898,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFinalUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } finalUrl_ = value; bitField0_ |= 0x00000100; 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() { @@ -2604,17 +2936,21 @@ public Builder clearFinalUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); finalUrl_ = value; bitField0_ |= 0x00000100; @@ -2624,19 +2960,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; @@ -2645,21 +2983,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 { @@ -2667,30 +3006,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTrackingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } trackingId_ = value; bitField0_ |= 0x00000200; 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() { @@ -2700,18 +3046,22 @@ public Builder clearTrackingId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); trackingId_ = value; bitField0_ |= 0x00000200; @@ -2721,41 +3071,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 ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * 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(); @@ -2769,6 +3133,8 @@ public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha.Ou return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2787,17 +3153,22 @@ 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 (((bitField0_ & 0x00000400) != 0) && - outdatedLibrary_ != null && - outdatedLibrary_ != com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && outdatedLibrary_ != null + && outdatedLibrary_ + != com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary + .getDefaultInstance()) { getOutdatedLibraryBuilder().mergeFrom(value); } else { outdatedLibrary_ = value; @@ -2810,6 +3181,8 @@ public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1alpha. return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2827,33 +3200,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() { bitField0_ |= 0x00000400; 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.
      * 
@@ -2861,14 +3243,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_; @@ -2876,44 +3261,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 ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * 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(); @@ -2927,12 +3329,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) { @@ -2946,18 +3351,24 @@ 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 (((bitField0_ & 0x00000800) != 0) && - violatingResource_ != null && - violatingResource_ != com.google.cloud.websecurityscanner.v1alpha.ViolatingResource.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && violatingResource_ != null + && violatingResource_ + != com.google.cloud.websecurityscanner.v1alpha.ViolatingResource + .getDefaultInstance()) { getViolatingResourceBuilder().mergeFrom(value); } else { violatingResource_ = value; @@ -2970,12 +3381,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() { bitField0_ = (bitField0_ & ~0x00000800); @@ -2988,51 +3402,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() { bitField0_ |= 0x00000800; 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_; @@ -3040,41 +3469,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 ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * 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(); @@ -3088,11 +3534,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) { @@ -3106,17 +3555,23 @@ 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 (((bitField0_ & 0x00001000) != 0) && - vulnerableHeaders_ != null && - vulnerableHeaders_ != com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && vulnerableHeaders_ != null + && vulnerableHeaders_ + != com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders + .getDefaultInstance()) { getVulnerableHeadersBuilder().mergeFrom(value); } else { vulnerableHeaders_ = value; @@ -3129,11 +3584,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() { bitField0_ = (bitField0_ & ~0x00001000); @@ -3146,48 +3604,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() { bitField0_ |= 0x00001000; 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_; @@ -3195,44 +3668,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 ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * 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(); @@ -3246,12 +3740,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) { @@ -3265,18 +3763,25 @@ 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 (((bitField0_ & 0x00002000) != 0) && - vulnerableParameters_ != null && - vulnerableParameters_ != com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && vulnerableParameters_ != null + && vulnerableParameters_ + != com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters + .getDefaultInstance()) { getVulnerableParametersBuilder().mergeFrom(value); } else { vulnerableParameters_ = value; @@ -3289,12 +3794,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() { bitField0_ = (bitField0_ & ~0x00002000); @@ -3307,51 +3816,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() { bitField0_ |= 0x00002000; 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_; @@ -3359,34 +3886,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 ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * 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.
      * 
@@ -3407,14 +3947,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(); } else { @@ -3425,6 +3966,8 @@ public Builder setXss( return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3433,9 +3976,9 @@ public Builder setXss( */ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { if (xssBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) && - xss_ != null && - xss_ != com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) + && xss_ != null + && xss_ != com.google.cloud.websecurityscanner.v1alpha.Xss.getDefaultInstance()) { getXssBuilder().mergeFrom(value); } else { xss_ = value; @@ -3448,6 +3991,8 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1alpha.Xss value) { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3465,6 +4010,8 @@ public Builder clearXss() { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3477,6 +4024,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Xss.Builder getXssBuilder() { return getXssFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3487,11 +4036,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.
      * 
@@ -3499,21 +4051,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); } @@ -3523,12 +4078,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(); } @@ -3537,27 +4092,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3572,6 +4127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java new file mode 100644 index 000000000000..7af71f6f8860 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\237\001\n+com.goo" + + "gle.cloud.websecurityscanner.v1alphaB\021Fi" + + "ndingAddonProtoP\001Z[cloud.google.com/go/w" + + "ebsecurityscanner/apiv1alpha/websecurity" + + "scannerpb;websecurityscannerpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java similarity index 80% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java index fda89e42dd9c..6f4908776bbe 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java new file mode 100644 index 000000000000..14e39988b3d6 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java @@ -0,0 +1,121 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\232\001\n" + + "+com.google.cloud.websecurityscanner.v1a" + + "lphaB\014FindingProtoP\001Z[cloud.google.com/g" + + "o/websecurityscanner/apiv1alpha/websecur" + + "ityscannerpb;websecurityscannerpbb\006proto" + + "3" + }; + 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java index fbeb77f1248d..e328a9899dbe 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStats.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,73 +28,89 @@
  *
  * 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();
   }
 
-  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_ = 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; + * * @return The findingType. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(findingType_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType getFindingType() { + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = + com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(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_ = 0; /** + * + * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -86,6 +119,7 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,9 +131,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) { @@ -114,13 +149,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -130,16 +165,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,98 +196,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.
@@ -260,33 +301,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -297,13 +337,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();
     }
 
@@ -318,13 +359,17 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result =
+          new com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result) {
+    private void buildPartial0(
+        com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.findingType_ = findingType_;
@@ -338,38 +383,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.FindingTy
     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;
@@ -377,7 +423,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());
       }
@@ -410,22 +458,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              findingType_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 16: {
-              findingCount_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                findingType_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 16:
+              {
+                findingCount_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -435,26 +486,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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. */ @@ -465,28 +524,38 @@ public Builder setFindingTypeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType result = com.google.cloud.websecurityscanner.v1alpha.Finding.FindingType.forNumber(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.forNumber(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(); } @@ -496,11 +565,14 @@ public Builder setFindingType(com.google.cloud.websecurityscanner.v1alpha.Findin 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() { @@ -510,13 +582,16 @@ public Builder clearFindingType() { 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 @@ -524,11 +599,14 @@ 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. */ @@ -540,11 +618,14 @@ public Builder setFindingCount(int value) { return this; } /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return This builder for chaining. */ public Builder clearFindingCount() { @@ -553,9 +634,9 @@ public Builder clearFindingCount() { 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); } @@ -565,12 +646,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(); } @@ -579,27 +661,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -614,6 +696,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java index 2da6562fd3a2..2a7849773702 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsOrBuilder.java @@ -1,37 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java new file mode 100644 index 000000000000..eaf57c402b4d --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java @@ -0,0 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\243\001\n+com.google.cloud.websecuri" + + "tyscanner.v1alphaB\025FindingTypeStatsProto" + + "P\001Z[cloud.google.com/go/websecurityscann" + + "er/apiv1alpha/websecurityscannerpb;webse" + + "curityscannerpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java similarity index 63% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java index 04449612915f..ea6d1fef1dd8 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +325,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(); } @@ -314,13 +347,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result = + new com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,38 +368,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetFindin 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; @@ -370,7 +408,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_; bitField0_ |= 0x00000001; @@ -402,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +464,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +495,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 { @@ -471,32 +521,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +567,34 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +604,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(); } @@ -551,27 +619,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java new file mode 100644 index 000000000000..774d3d7d050b --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java index ce9355fbf5d0..589e1e9e1f18 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,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_); } @@ -129,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +323,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(); } @@ -312,13 +345,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.GetScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,46 +366,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetScanCo 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_; bitField0_ |= 0x00000001; @@ -400,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +493,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 { @@ -467,30 +518,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +562,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,41 +598,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +646,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..99eb3d66330f --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java similarity index 63% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java index 0b42d8fe3471..1b1e119ddef1 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +325,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(); } @@ -314,13 +347,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result = + new com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,38 +368,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.GetScanRu 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; @@ -370,7 +408,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_; bitField0_ |= 0x00000001; @@ -402,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +464,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +495,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 { @@ -471,32 +521,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +567,34 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +604,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(); } @@ -551,27 +619,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..39b270f720d4 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java index 9276362a8416..6ec84a471139 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,35 +44,42 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -63,31 +88,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 { @@ -96,9 +123,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -106,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -114,14 +145,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.
@@ -129,16 +161,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 { @@ -149,6 +180,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -156,6 +189,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -164,6 +198,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +210,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_); } @@ -202,8 +236,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,19 +246,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -249,131 +280,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,14 +423,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 @@ -406,13 +446,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -429,46 +473,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListCrawl 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_; bitField0_ |= 0x00000001; @@ -508,27 +557,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,24 +591,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -564,22 +622,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 { @@ -587,32 +648,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -622,19 +694,25 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -644,6 +722,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.
@@ -651,13 +731,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; @@ -666,6 +746,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.
@@ -673,15 +755,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 { @@ -689,6 +770,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.
@@ -696,18 +779,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -715,6 +802,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -724,6 +812,8 @@ public Builder clearPageToken() { 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.
@@ -731,12 +821,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -744,8 +836,10 @@ public Builder setPageTokenBytes( 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
@@ -753,6 +847,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -760,6 +855,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
@@ -767,6 +864,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -778,6 +876,8 @@ public Builder setPageSize(int value) { 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
@@ -785,6 +885,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -793,9 +894,9 @@ public Builder clearPageSize() { 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); } @@ -805,41 +906,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,9 +954,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java index ea234ea5c7c4..d0ef7ae86259 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java index 446934c17948..dfd02fd3e7d8 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List crawledUrls_; /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -55,10 +77,13 @@ protected java.lang.Object newInstance( * 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.
    * 
@@ -66,11 +91,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.
    * 
@@ -82,6 +109,8 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -93,6 +122,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -106,15 +137,19 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +158,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 { @@ -155,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +202,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)); } @@ -184,8 +219,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_); @@ -198,17 +232,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +265,138 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,14 +413,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 @@ -394,14 +436,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -413,7 +459,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1al } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +471,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListCrawl 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()) { @@ -482,9 +534,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_); } @@ -521,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), - extensionRegistry); - if (crawledUrlsBuilder_ == null) { - ensureCrawledUrlsIsMutable(); - crawledUrls_.add(m); - } else { - crawledUrlsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,28 +610,38 @@ public Builder mergeFrom( } // finally 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 { @@ -583,6 +649,8 @@ public java.util.List ge } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -597,6 +665,8 @@ public int getCrawledUrlsCount() { } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -611,6 +681,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl getCrawledUrls(int } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -632,6 +704,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -650,6 +724,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -670,6 +746,8 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.Crawle return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -691,6 +769,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -709,6 +789,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -727,6 +809,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -734,11 +818,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); @@ -746,6 +830,8 @@ public Builder addAllCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -763,6 +849,8 @@ public Builder clearCrawledUrls() { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -780,6 +868,8 @@ public Builder removeCrawledUrls(int index) { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -791,6 +881,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrl.Builder getCrawled return getCrawledUrlsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -800,19 +892,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 { @@ -820,6 +915,8 @@ public com.google.cloud.websecurityscanner.v1alpha.CrawledUrlOrBuilder getCrawle } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -827,10 +924,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.
      * 
@@ -839,30 +938,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_; @@ -870,19 +975,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; @@ -891,21 +998,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 { @@ -913,30 +1021,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1061,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1095,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1143,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java index 0b93f80c366f..765016f5d3a5 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListCrawledUrlsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java similarity index 59% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java index 4bd3717f1c01..189d20f152de 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,139 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,19 +328,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); } @@ -314,13 +352,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -331,46 +373,52 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindi 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_; bitField0_ |= 0x00000001; @@ -402,17 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +472,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +503,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 { @@ -471,32 +529,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +575,34 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,41 +612,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,9 +661,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 000000000000..b4c4836c9a48 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java similarity index 58% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java index b946480c8832..6420d315b5fe 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponse.java @@ -1,110 +1,155 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") - 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; @@ -116,8 +161,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)); } @@ -131,8 +175,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,15 +185,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,131 +216,139 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,19 +364,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); } @@ -333,14 +388,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -352,7 +411,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1al } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse result) { int from_bitField0_ = bitField0_; } @@ -360,46 +420,52 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindi 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()) { @@ -418,9 +484,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_); } @@ -452,25 +519,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), - extensionRegistry); - if (findingTypeStatsBuilder_ == null) { - ensureFindingTypeStatsIsMutable(); - findingTypeStats_.add(m); - } else { - findingTypeStatsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -480,28 +549,40 @@ public Builder mergeFrom( } // finally 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 { @@ -509,11 +590,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) { @@ -523,13 +608,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 { @@ -537,11 +627,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) { @@ -558,14 +652,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()); @@ -576,13 +675,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(); @@ -596,11 +700,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) { @@ -617,11 +725,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) { @@ -635,14 +747,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()); @@ -653,18 +770,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); @@ -672,11 +793,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) { @@ -689,11 +814,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) { @@ -706,39 +835,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 { @@ -746,45 +889,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(), @@ -793,9 +958,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); } @@ -805,41 +970,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,9 +1019,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java new file mode 100644 index 000000000000..985942743636 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java index f266c75a992c..4584d37afc00 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,35 +45,42 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -64,31 +89,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 { @@ -97,9 +124,12 @@ public java.lang.String getParent() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -108,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -116,14 +147,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>.
@@ -132,16 +164,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 { @@ -150,9 +181,12 @@ public java.lang.String getFilter() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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.
@@ -160,6 +194,7 @@ public java.lang.String getFilter() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -168,14 +203,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.
@@ -183,16 +219,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 { @@ -203,6 +238,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -210,6 +247,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -218,6 +256,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +268,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_); } @@ -262,8 +300,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,21 +310,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,131 +347,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,13 +489,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(); } @@ -471,13 +511,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -497,46 +541,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindi 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_; bitField0_ |= 0x00000001; @@ -581,32 +629,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,24 +669,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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,22 +700,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 { @@ -665,32 +726,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -700,19 +772,25 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -722,6 +800,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -730,13 +810,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; @@ -745,6 +825,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -753,15 +835,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 { @@ -769,6 +850,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -777,18 +860,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -797,6 +884,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -806,6 +894,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -814,12 +904,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -829,6 +921,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.
@@ -836,13 +930,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; @@ -851,6 +945,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.
@@ -858,15 +954,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 { @@ -874,6 +969,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.
@@ -881,18 +978,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; 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.
@@ -900,6 +1001,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -909,6 +1011,8 @@ public Builder clearPageToken() { 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.
@@ -916,12 +1020,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -929,8 +1035,10 @@ public Builder setPageTokenBytes( 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
@@ -938,6 +1046,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -945,6 +1054,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
@@ -952,6 +1063,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -963,6 +1075,8 @@ public Builder setPageSize(int value) { 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
@@ -970,6 +1084,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -978,9 +1093,9 @@ public Builder clearPageSize() { 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); } @@ -990,41 +1105,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,9 +1153,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java index 0ea028905674..a0230a0d506f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java index b6cb98e7771f..1e4333a27b22 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List findings_; /** + * + * *
    * The list of Findings returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getFi return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getFindingsCount() { return findings_.size(); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index return findings_.get(index); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +157,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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,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)); } @@ -184,8 +218,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_); @@ -198,17 +231,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,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(); } @@ -394,14 +432,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1al } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +467,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListFindi 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()) { @@ -482,9 +529,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_); } @@ -521,30 +569,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1alpha.Finding m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), - extensionRegistry); - if (findingsBuilder_ == null) { - ensureFindingsIsMutable(); - findings_.add(m); - } else { - findingsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.Finding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +605,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +642,8 @@ public java.util.List getFi } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -597,6 +658,8 @@ public int getFindingsCount() { } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -611,6 +674,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding getFindings(int index } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -632,6 +697,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -650,6 +717,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -670,6 +739,8 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1alpha.Finding v return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -691,6 +762,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -709,6 +782,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -727,6 +802,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -737,8 +814,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); @@ -746,6 +822,8 @@ public Builder addAllFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -763,6 +841,8 @@ public Builder clearFindings() { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -780,6 +860,8 @@ public Builder removeFindings(int index) { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -791,6 +873,8 @@ public com.google.cloud.websecurityscanner.v1alpha.Finding.Builder getFindingsBu return getFindingsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Findings returned.
      * 
@@ -800,19 +884,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 { @@ -820,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1alpha.FindingOrBuilder getFindingsO } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -827,10 +916,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.
      * 
@@ -839,30 +930,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_; @@ -870,19 +967,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; @@ -891,21 +990,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 { @@ -913,30 +1013,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1053,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1087,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1135,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java index 08fb2b10c3ea..6523c3a4e8a9 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java index d57727db1ef3..ee8653676165 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +44,41 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,30 +87,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 { @@ -94,9 +121,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -104,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -112,14 +143,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.
@@ -127,16 +159,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 { @@ -147,6 +178,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -154,6 +187,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -162,6 +196,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +208,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_); } @@ -200,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,131 +278,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,14 +421,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 @@ -404,13 +444,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -427,46 +471,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanC 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_; bitField0_ |= 0x00000001; @@ -506,27 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,23 +589,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -561,21 +619,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 { @@ -583,30 +644,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -616,18 +688,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -637,6 +715,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.
@@ -644,13 +724,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; @@ -659,6 +739,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.
@@ -666,15 +748,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 { @@ -682,6 +763,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.
@@ -689,18 +772,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -708,6 +795,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -717,6 +805,8 @@ public Builder clearPageToken() { 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.
@@ -724,12 +814,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -737,8 +829,10 @@ public Builder setPageTokenBytes( 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
@@ -746,6 +840,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -753,6 +848,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
@@ -760,6 +857,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -771,6 +869,8 @@ public Builder setPageSize(int value) { 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
@@ -778,6 +878,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -786,9 +887,9 @@ public Builder clearPageSize() { 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); } @@ -798,41 +899,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,9 +947,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java index 57f8ce2df873..832a604e0c04 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java index bd001588bc9e..604a98ab242f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List scanConfigs_; /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -55,10 +77,13 @@ protected java.lang.Object newInstance( * 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.
    * 
@@ -66,11 +91,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.
    * 
@@ -82,6 +109,8 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -93,6 +122,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -106,15 +137,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +158,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 { @@ -155,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +202,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)); } @@ -184,8 +219,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_); @@ -198,17 +232,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +265,138 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,14 +413,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 @@ -394,14 +436,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -413,7 +459,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1al } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +471,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanC 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()) { @@ -482,9 +534,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_); } @@ -521,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), - extensionRegistry); - if (scanConfigsBuilder_ == null) { - ensureScanConfigsIsMutable(); - scanConfigs_.add(m); - } else { - scanConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,28 +610,38 @@ public Builder mergeFrom( } // finally 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 { @@ -583,6 +649,8 @@ public java.util.List ge } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -597,6 +665,8 @@ public int getScanConfigsCount() { } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -611,6 +681,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getScanConfigs(int } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -632,6 +704,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -650,6 +724,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -670,6 +746,8 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1alpha.ScanCo return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -691,6 +769,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -709,6 +789,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -727,6 +809,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -734,11 +818,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); @@ -746,6 +830,8 @@ public Builder addAllScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -763,6 +849,8 @@ public Builder clearScanConfigs() { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -780,6 +868,8 @@ public Builder removeScanConfigs(int index) { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -791,6 +881,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon return getScanConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -800,19 +892,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 { @@ -820,6 +915,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfigOrBuilder getScanCo } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -827,10 +924,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.
      * 
@@ -839,30 +938,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_; @@ -870,19 +975,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; @@ -891,21 +998,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 { @@ -913,30 +1021,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1061,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1095,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1143,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java index 03bb5e60d1f6..5cf5b916c10a 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java similarity index 66% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java index 3d1e14246919..f8bfd3250d59 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +44,41 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,30 +87,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 { @@ -94,9 +121,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -104,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -112,14 +143,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.
@@ -127,16 +159,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 { @@ -147,6 +178,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -154,6 +187,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -162,6 +196,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +208,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_); } @@ -200,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,131 +278,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,13 +419,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(); } @@ -404,13 +441,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result = + new com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -427,46 +468,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanR 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_; bitField0_ |= 0x00000001; @@ -506,27 +551,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,23 +585,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -561,21 +615,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 { @@ -583,30 +640,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -616,18 +684,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -637,6 +711,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.
@@ -644,13 +720,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; @@ -659,6 +735,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.
@@ -666,15 +744,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 { @@ -682,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.
@@ -689,18 +768,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -708,6 +791,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -717,6 +801,8 @@ public Builder clearPageToken() { 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.
@@ -724,12 +810,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -737,8 +825,10 @@ public Builder setPageTokenBytes( 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
@@ -746,6 +836,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -753,6 +844,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
@@ -760,6 +853,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -771,6 +865,8 @@ public Builder setPageSize(int value) { 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
@@ -778,6 +874,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -786,9 +883,9 @@ public Builder clearPageSize() { 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); } @@ -798,41 +895,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,9 +943,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java index 9d35ecb9796a..9aa8ed92664c 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java index a61788f5db88..d3553add58f2 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List scanRuns_; /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getSc return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index return scanRuns_.get(index); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +157,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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,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)); } @@ -184,8 +218,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_); @@ -198,17 +231,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,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(); } @@ -394,14 +432,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1al } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +467,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ListScanR 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()) { @@ -482,9 +529,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_); } @@ -521,30 +569,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1alpha.ScanRun m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), - extensionRegistry); - if (scanRunsBuilder_ == null) { - ensureScanRunsIsMutable(); - scanRuns_.add(m); - } else { - scanRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.ScanRun.parser(), + extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +605,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +642,8 @@ public java.util.List getSc } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -597,6 +658,8 @@ public int getScanRunsCount() { } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -611,6 +674,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getScanRuns(int index } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -632,6 +697,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -650,6 +717,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -670,6 +739,8 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1alpha.ScanRun v return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -691,6 +762,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -709,6 +782,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -727,6 +802,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -737,8 +814,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); @@ -746,6 +822,8 @@ public Builder addAllScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -763,6 +841,8 @@ public Builder clearScanRuns() { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -780,6 +860,8 @@ public Builder removeScanRuns(int index) { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -791,6 +873,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getScanRunsBu return getScanRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -800,19 +884,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 { @@ -820,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getScanRunsO } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -827,10 +916,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.
      * 
@@ -839,30 +930,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_; @@ -870,19 +967,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; @@ -891,21 +990,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 { @@ -913,30 +1013,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1053,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1087,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1135,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java index 2a7099975639..8ba3c48c431f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListScanRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java index e9c6dd727d52..977ab8c0ae98 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibrary.java @@ -1,60 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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_ = ""; - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutdatedLibrary(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object libraryName_ = ""; /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ @java.lang.Override @@ -63,29 +85,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 { @@ -94,14 +116,18 @@ public java.lang.String getLibraryName() { } public static final int VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -110,29 +136,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 { @@ -141,38 +167,47 @@ public java.lang.String getVersion() { } public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -180,20 +215,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; @@ -205,8 +243,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_); } @@ -247,19 +284,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,146 +320,150 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; libraryName_ = ""; version_ = ""; - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -443,8 +482,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary result = + new com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -467,38 +509,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.OutdatedL 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; @@ -506,7 +549,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_; bitField0_ |= 0x00000001; @@ -553,28 +597,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - libraryName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLearnMoreUrlsIsMutable(); - learnMoreUrls_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + libraryName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,22 +632,25 @@ public Builder mergeFrom( } // finally 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; @@ -608,20 +659,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 { @@ -629,28 +681,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLibraryName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } libraryName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return This builder for chaining. */ public Builder clearLibraryName() { @@ -660,17 +719,21 @@ public Builder clearLibraryName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); libraryName_ = value; bitField0_ |= 0x00000001; @@ -680,18 +743,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; @@ -700,20 +765,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 { @@ -721,28 +787,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { @@ -752,17 +825,21 @@ public Builder clearVersion() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000002; @@ -772,6 +849,7 @@ public Builder setVersionBytes( private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLearnMoreUrlsIsMutable() { if (!learnMoreUrls_.isModifiable()) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); @@ -779,35 +857,43 @@ private void ensureLearnMoreUrlsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * 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() { learnMoreUrls_.makeImmutable(); 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. */ @@ -815,31 +901,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLearnMoreUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); bitField0_ |= 0x00000004; @@ -847,17 +939,21 @@ public Builder setLearnMoreUrls( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addLearnMoreUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); bitField0_ |= 0x00000004; @@ -865,50 +961,58 @@ public Builder addLearnMoreUrls( 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_); bitField0_ |= 0x00000004; 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() { - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); @@ -916,9 +1020,9 @@ public Builder addLearnMoreUrlsBytes( 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); } @@ -928,12 +1032,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(); } @@ -942,27 +1046,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,6 +1081,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java index 727833b26b50..f9c5c8c821d6 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/OutdatedLibraryOrBuilder.java @@ -1,90 +1,126 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ProjectName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java similarity index 66% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java index 83ae4f41d25a..76b93252bc6f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,56 +28,59 @@
  *
  * 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_ = "";
-    startingUrls_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList();
     userAgent_ = 0;
-    blacklistPatterns_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList();
     targetPlatforms_ = 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 ScanConfig();
   }
 
-  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.
      * 
@@ -69,6 +89,8 @@ public enum UserAgent */ USER_AGENT_UNSPECIFIED(0), /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -77,6 +99,8 @@ public enum UserAgent */ CHROME_LINUX(1), /** + * + * *
      * Chrome on Android.
      * 
@@ -85,6 +109,8 @@ public enum UserAgent */ CHROME_ANDROID(2), /** + * + * *
      * Safari on IPhone.
      * 
@@ -96,6 +122,8 @@ public enum UserAgent ; /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -104,6 +132,8 @@ public enum UserAgent */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -112,6 +142,8 @@ public enum UserAgent */ public static final int CHROME_LINUX_VALUE = 1; /** + * + * *
      * Chrome on Android.
      * 
@@ -120,6 +152,8 @@ public enum UserAgent */ public static final int CHROME_ANDROID_VALUE = 2; /** + * + * *
      * Safari on IPhone.
      * 
@@ -128,7 +162,6 @@ public enum UserAgent */ public static final int SAFARI_IPHONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -153,50 +186,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; @@ -214,15 +250,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.
@@ -232,6 +271,8 @@ public enum TargetPlatform
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -240,6 +281,8 @@ public enum TargetPlatform */ APP_ENGINE(1), /** + * + * *
      * Google Compute Engine service.
      * 
@@ -251,6 +294,8 @@ public enum TargetPlatform ; /** + * + * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -260,6 +305,8 @@ public enum TargetPlatform
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -268,6 +315,8 @@ public enum TargetPlatform */ public static final int APP_ENGINE_VALUE = 1; /** + * + * *
      * Google Compute Engine service.
      * 
@@ -276,7 +325,6 @@ public enum TargetPlatform */ public static final int COMPUTE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -301,49 +349,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; @@ -360,167 +410,223 @@ 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(); - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); + 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(); } - 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_ = ""; @@ -528,33 +634,40 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GoogleAccount(); } - 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; + @SuppressWarnings("serial") 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 @@ -563,29 +676,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 { @@ -594,15 +707,21 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -611,30 +730,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 { @@ -643,6 +764,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -654,8 +776,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_); } @@ -685,17 +806,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -716,90 +839,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 @@ -809,39 +958,46 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -852,19 +1008,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); } @@ -872,14 +1032,22 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.GoogleAccount + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -893,46 +1061,58 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi 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_; bitField0_ |= 0x00000001; @@ -969,22 +1149,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -994,22 +1177,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -1018,20 +1204,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 { @@ -1039,28 +1226,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -1070,17 +1264,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -1090,19 +1288,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; @@ -1111,21 +1313,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 { @@ -1133,30 +1338,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -1166,24 +1382,31 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1196,41 +1419,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1242,94 +1472,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_ = ""; @@ -1338,33 +1592,40 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomAccount(); } - 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; + @SuppressWarnings("serial") 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 @@ -1373,29 +1634,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 { @@ -1404,15 +1665,21 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -1421,30 +1688,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 { @@ -1453,14 +1722,18 @@ public java.lang.String getPassword() { } public static final int LOGIN_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -1469,29 +1742,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 { @@ -1500,6 +1773,7 @@ public java.lang.String getLoginUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1511,8 +1785,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_); } @@ -1548,19 +1821,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1583,90 +1857,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 @@ -1676,39 +1976,46 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1720,19 +2027,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); } @@ -1740,14 +2051,22 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.CustomAccount + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -1764,46 +2083,58 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi 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_; bitField0_ |= 0x00000001; @@ -1845,27 +2176,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - loginUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + loginUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1875,22 +2210,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -1899,20 +2237,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 { @@ -1920,28 +2259,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -1951,17 +2297,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -1971,19 +2321,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; @@ -1992,21 +2346,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 { @@ -2014,30 +2371,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -2047,18 +2415,24 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; @@ -2068,18 +2442,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; @@ -2088,20 +2464,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 { @@ -2109,28 +2486,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLoginUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } loginUrl_ = value; bitField0_ |= 0x00000004; 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() { @@ -2140,23 +2524,28 @@ public Builder clearLoginUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2169,41 +2558,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2215,22 +2611,26 @@ 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; + @SuppressWarnings("serial") 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; } @@ -2246,30 +2646,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 @@ -2277,42 +2685,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 @@ -2320,36 +2749,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; @@ -2361,13 +2807,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_); } getUnknownFields().writeTo(output); } @@ -2379,12 +2830,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2394,22 +2853,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: @@ -2443,89 +2901,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 @@ -2535,39 +2999,43 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2584,19 +3052,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); } @@ -2605,26 +3076,29 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { + private void buildPartialOneofs( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication result) { result.authenticationCase_ = authenticationCase_; result.authentication_ = this.authentication_; - if (authenticationCase_ == 1 && - googleAccountBuilder_ != null) { + if (authenticationCase_ == 1 && googleAccountBuilder_ != null) { result.authentication_ = googleAccountBuilder_.build(); } - if (authenticationCase_ == 2 && - customAccountBuilder_ != null) { + if (authenticationCase_ == 2 && customAccountBuilder_ != null) { result.authentication_ = customAccountBuilder_.build(); } } @@ -2633,58 +3107,69 @@ private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1alpha.Scan 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.getUnknownFields()); onChanged(); @@ -2712,26 +3197,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGoogleAccountFieldBuilder().getBuilder(), - extensionRegistry); - authenticationCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomAccountFieldBuilder().getBuilder(), - extensionRegistry); - authenticationCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2741,12 +3225,12 @@ public Builder mergeFrom( } // finally 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() { @@ -2759,13 +3243,23 @@ public Builder clearAuthentication() { private int bitField0_; 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 @@ -2773,35 +3267,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(); @@ -2815,14 +3325,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(); @@ -2833,18 +3349,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; } @@ -2860,11 +3390,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) { @@ -2883,50 +3417,83 @@ 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; @@ -2937,13 +3504,23 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Goo } 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 @@ -2951,35 +3528,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(); @@ -2993,14 +3586,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(); @@ -3011,18 +3610,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; } @@ -3038,11 +3651,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) { @@ -3061,50 +3678,83 @@ 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; @@ -3113,6 +3763,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.Cus onChanged(); return customAccountBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3125,41 +3776,45 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3171,17 +3826,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
@@ -3190,10 +3848,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
@@ -3202,10 +3863,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
@@ -3218,57 +3882,65 @@ 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(); } - 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
@@ -3277,6 +3949,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -3284,6 +3957,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
@@ -3292,13 +3967,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
@@ -3310,17 +3990,22 @@ public com.google.protobuf.Timestamp getScheduleTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
-      return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
+      return scheduleTime_ == null
+          ? com.google.protobuf.Timestamp.getDefaultInstance()
+          : scheduleTime_;
     }
 
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_ = 0;
     /**
+     *
+     *
      * 
      * 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 @@ -3329,6 +4014,7 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3340,8 +4026,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()); } @@ -3358,12 +4043,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3373,20 +4056,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3410,89 +4092,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 @@ -3502,39 +4190,42 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3549,13 +4240,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(); } @@ -3570,18 +4262,21 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result = + new com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scheduleTime_ = scheduleTimeBuilder_ == null - ? scheduleTime_ - : scheduleTimeBuilder_.build(); + result.scheduleTime_ = + scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.intervalDurationDays_ = intervalDurationDays_; @@ -3592,46 +4287,52 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi 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()); } @@ -3664,24 +4365,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getScheduleTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - intervalDurationDays_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + intervalDurationDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3691,12 +4393,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -3705,12 +4413,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * 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
@@ -3719,16 +4430,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
@@ -3752,6 +4468,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
@@ -3761,8 +4479,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();
         } else {
@@ -3773,6 +4490,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
@@ -3784,9 +4503,9 @@ public Builder setScheduleTime(
        */
       public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            scheduleTime_ != null &&
-            scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && scheduleTime_ != null
+              && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getScheduleTimeBuilder().mergeFrom(value);
           } else {
             scheduleTime_ = value;
@@ -3799,6 +4518,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
@@ -3819,6 +4540,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
@@ -3834,6 +4557,8 @@ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
         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
@@ -3847,11 +4572,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
@@ -3862,26 +4590,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 @@ -3889,11 +4623,14 @@ 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. */ @@ -3905,11 +4642,14 @@ public Builder setIntervalDurationDays(int value) { 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() { @@ -3918,6 +4658,7 @@ public Builder clearIntervalDurationDays() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3930,41 +4671,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3976,16 +4720,19 @@ 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; + @SuppressWarnings("serial") 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
@@ -3993,6 +4740,7 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule getDefaul
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -4001,14 +4749,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
@@ -4016,16 +4765,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 { @@ -4034,14 +4782,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -4050,29 +4802,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 { @@ -4083,6 +4835,8 @@ public java.lang.String getDisplayName() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_ = 0; /** + * + * *
    * 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
@@ -4091,6 +4845,7 @@ public java.lang.String getDisplayName() {
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -4099,38 +4854,47 @@ public int getMaxQps() { } public static final int STARTING_URLS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -4138,28 +4902,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 @@ -4167,93 +4937,125 @@ 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() { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() : authentication_; + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder() { + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance() + : authentication_; } public static final int USER_AGENT_FIELD_NUMBER = 6; 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; + * * @return The userAgent. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.forNumber(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent getUserAgent() { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.forNumber(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.UNRECOGNIZED + : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -4261,28 +5063,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 @@ -4290,18 +5097,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.
    * 
@@ -4309,43 +5123,68 @@ 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() { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() : schedule_; + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") 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) { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.forNumber(from); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.UNRECOGNIZED : result; + java.lang.Integer, + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform convert( + java.lang.Integer from) { + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform result = + com.google.cloud.websecurityscanner.v1alpha.ScanConfig.TargetPlatform.forNumber( + 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 @@ -4353,40 +5192,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. */ @@ -4394,16 +5248,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 @@ -4411,18 +5269,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.
    * 
@@ -4431,10 +5296,13 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun getLatestRun() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRunOrBuilder getLatestRunOrBuilder() { - return latestRun_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance() + : latestRun_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4446,8 +5314,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_); @@ -4464,7 +5331,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++) { @@ -4499,8 +5368,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; @@ -4511,12 +5379,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; @@ -4527,24 +5395,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4554,39 +5421,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -4637,98 +5497,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
@@ -4736,33 +5602,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -4770,16 +5635,14 @@ public Builder clear() {
       name_ = "";
       displayName_ = "";
       maxQps_ = 0;
-      startingUrls_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList();
       authentication_ = null;
       if (authenticationBuilder_ != null) {
         authenticationBuilder_.dispose();
         authenticationBuilder_ = null;
       }
       userAgent_ = 0;
-      blacklistPatterns_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList();
       schedule_ = null;
       if (scheduleBuilder_ != null) {
         scheduleBuilder_.dispose();
@@ -4796,9 +5659,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
@@ -4817,14 +5680,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.ScanConfig result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.websecurityscanner.v1alpha.ScanConfig result) {
       if (((bitField0_ & 0x00000100) != 0)) {
         targetPlatforms_ = java.util.Collections.unmodifiableList(targetPlatforms_);
         bitField0_ = (bitField0_ & ~0x00000100);
@@ -4848,9 +5715,8 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi
         result.startingUrls_ = startingUrls_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.authentication_ = authenticationBuilder_ == null
-            ? authentication_
-            : authenticationBuilder_.build();
+        result.authentication_ =
+            authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.userAgent_ = userAgent_;
@@ -4860,14 +5726,10 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi
         result.blacklistPatterns_ = blacklistPatterns_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.schedule_ = scheduleBuilder_ == null
-            ? schedule_
-            : scheduleBuilder_.build();
+        result.schedule_ = scheduleBuilder_ == null ? schedule_ : scheduleBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.latestRun_ = latestRunBuilder_ == null
-            ? latestRun_
-            : latestRunBuilder_.build();
+        result.latestRun_ = latestRunBuilder_ == null ? latestRun_ : latestRunBuilder_.build();
       }
     }
 
@@ -4875,38 +5737,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanConfi
     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;
@@ -4914,7 +5777,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_;
         bitField0_ |= 0x00000001;
@@ -4996,82 +5860,88 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              maxQps_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureStartingUrlsIsMutable();
-              startingUrls_.add(s);
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getAuthenticationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              userAgent_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 58: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureBlacklistPatternsIsMutable();
-              blacklistPatterns_.add(s);
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getScheduleFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 72: {
-              int tmpRaw = input.readEnum();
-              ensureTargetPlatformsIsMutable();
-              targetPlatforms_.add(tmpRaw);
-              break;
-            } // case 72
-            case 74: {
-              int length = input.readRawVarint32();
-              int oldLimit = input.pushLimit(length);
-              while(input.getBytesUntilLimit() > 0) {
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                maxQps_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureStartingUrlsIsMutable();
+                startingUrls_.add(s);
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
+                userAgent_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 58:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureBlacklistPatternsIsMutable();
+                blacklistPatterns_.add(s);
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 72:
+              {
                 int tmpRaw = input.readEnum();
                 ensureTargetPlatformsIsMutable();
                 targetPlatforms_.add(tmpRaw);
-              }
-              input.popLimit(oldLimit);
-              break;
-            } // case 74
-            case 90: {
-              input.readMessage(
-                  getLatestRunFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 90
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 72
+            case 74:
+              {
+                int length = input.readRawVarint32();
+                int oldLimit = input.pushLimit(length);
+                while (input.getBytesUntilLimit() > 0) {
+                  int tmpRaw = input.readEnum();
+                  ensureTargetPlatformsIsMutable();
+                  targetPlatforms_.add(tmpRaw);
+                }
+                input.popLimit(oldLimit);
+                break;
+              } // case 74
+            case 90:
+              {
+                input.readMessage(getLatestRunFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 90
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5081,10 +5951,13 @@ public Builder mergeFrom(
       } // finally
       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
@@ -5092,13 +5965,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; @@ -5107,6 +5980,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
@@ -5114,15 +5989,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 { @@ -5130,6 +6004,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
@@ -5137,18 +6013,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5156,6 +6036,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -5165,6 +6046,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5172,12 +6055,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -5187,18 +6072,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; @@ -5207,20 +6094,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 { @@ -5228,28 +6116,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; 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() { @@ -5259,17 +6154,21 @@ public Builder clearDisplayName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -5277,8 +6176,10 @@ public Builder setDisplayNameBytes( 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
@@ -5287,6 +6188,7 @@ public Builder setDisplayNameBytes(
      * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -5294,6 +6196,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
@@ -5302,6 +6206,7 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; + * * @param value The maxQps to set. * @return This builder for chaining. */ @@ -5313,6 +6218,8 @@ public Builder setMaxQps(int value) { 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
@@ -5321,6 +6228,7 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; + * * @return This builder for chaining. */ public Builder clearMaxQps() { @@ -5332,6 +6240,7 @@ public Builder clearMaxQps() { private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStartingUrlsIsMutable() { if (!startingUrls_.isModifiable()) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); @@ -5339,35 +6248,43 @@ private void ensureStartingUrlsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
      * 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() { startingUrls_.makeImmutable(); 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. */ @@ -5375,31 +6292,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStartingUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); bitField0_ |= 0x00000008; @@ -5407,17 +6330,21 @@ public Builder setStartingUrls( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartingUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartingUrlsIsMutable(); startingUrls_.add(value); bitField0_ |= 0x00000008; @@ -5425,50 +6352,58 @@ public Builder addStartingUrls( 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_); bitField0_ |= 0x00000008; 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() { - startingUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; 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 bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); @@ -5479,44 +6414,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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(); @@ -5530,15 +6484,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(); } else { @@ -5549,18 +6507,24 @@ 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 (((bitField0_ & 0x00000010) != 0) && - authentication_ != null && - authentication_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && authentication_ != null + && authentication_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Authentication + .getDefaultInstance()) { getAuthenticationBuilder().mergeFrom(value); } else { authentication_ = value; @@ -5573,12 +6537,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -5591,51 +6558,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() { bitField0_ |= 0x00000010; 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_; @@ -5643,22 +6626,29 @@ 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. */ @@ -5669,28 +6659,38 @@ public Builder setUserAgentValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1alpha.ScanConfig.UserAgent.forNumber(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.forNumber(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(); } @@ -5700,11 +6700,14 @@ public Builder setUserAgent(com.google.cloud.websecurityscanner.v1alpha.ScanConf 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() { @@ -5716,6 +6719,7 @@ public Builder clearUserAgent() { private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureBlacklistPatternsIsMutable() { if (!blacklistPatterns_.isModifiable()) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); @@ -5723,38 +6727,46 @@ private void ensureBlacklistPatternsIsMutable() { bitField0_ |= 0x00000040; } /** + * + * *
      * 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() { blacklistPatterns_.makeImmutable(); 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. */ @@ -5762,33 +6774,39 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBlacklistPatterns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); bitField0_ |= 0x00000040; @@ -5796,18 +6814,22 @@ public Builder setBlacklistPatterns( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addBlacklistPatterns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); bitField0_ |= 0x00000040; @@ -5815,53 +6837,61 @@ public Builder addBlacklistPatterns( 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_); bitField0_ |= 0x00000040; 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() { - blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040);; + blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; 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 bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); @@ -5872,41 +6902,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 ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * 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(); @@ -5920,6 +6964,8 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanConfi return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -5938,17 +6984,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 (((bitField0_ & 0x00000080) != 0) && - schedule_ != null && - schedule_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && schedule_ != null + && schedule_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Schedule + .getDefaultInstance()) { getScheduleBuilder().mergeFrom(value); } else { schedule_ = value; @@ -5961,6 +7012,8 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1alpha.ScanCon return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -5978,33 +7031,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() { bitField0_ |= 0x00000080; 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.
      * 
@@ -6012,21 +7074,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_ & 0x00000100) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -6034,50 +7099,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. @@ -6093,16 +7181,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(); } @@ -6112,17 +7206,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()); @@ -6131,12 +7232,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() { @@ -6146,25 +7252,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. */ @@ -6172,30 +7287,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. */ @@ -6206,17 +7330,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); @@ -6227,34 +7355,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 ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * 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.
      * 
@@ -6275,6 +7416,8 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRun return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6293,6 +7436,8 @@ public Builder setLatestRun( return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6301,9 +7446,10 @@ public Builder setLatestRun( */ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRun value) { if (latestRunBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - latestRun_ != null && - latestRun_ != com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && latestRun_ != null + && latestRun_ + != com.google.cloud.websecurityscanner.v1alpha.ScanRun.getDefaultInstance()) { getLatestRunBuilder().mergeFrom(value); } else { latestRun_ = value; @@ -6316,6 +7462,8 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1alpha.ScanRu return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6333,6 +7481,8 @@ public Builder clearLatestRun() { return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6345,6 +7495,8 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanRun.Builder getLatestRunB return getLatestRunFieldBuilder().getBuilder(); } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6355,11 +7507,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.
      * 
@@ -6367,21 +7522,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); } @@ -6391,12 +7549,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(); } @@ -6405,27 +7563,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6440,6 +7598,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java similarity index 78% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java index 656e32684050..9be779f745c5 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java new file mode 100644 index 000000000000..1c6e9b06d4d4 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java @@ -0,0 +1,183 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\"\265\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032" + + "\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 " + + "\001(\005\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Z\n\016auth" + + "entication\030\005 \001(\0132B.google.cloud.websecur" + + "ityscanner.v1alpha.ScanConfig.Authentica" + + "tion\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud." + + "websecurityscanner.v1alpha.ScanConfig.Us" + + "erAgent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010s" + + "chedule\030\010 \001(\0132<.google.cloud.websecurity" + + "scanner.v1alpha.ScanConfig.Schedule\022\\\n\020t" + + "arget_platforms\030\t \003(\0162B.google.cloud.web" + + "securityscanner.v1alpha.ScanConfig.Targe" + + "tPlatform\022D\n\nlatest_run\030\013 \001(\01320.google.c" + + "loud.websecurityscanner.v1alpha.ScanRun\032" + + "\227\003\n\016Authentication\022j\n\016google_account\030\001 \001" + + "(\0132P.google.cloud.websecurityscanner.v1a" + + "lpha.ScanConfig.Authentication.GoogleAcc" + + "ountH\000\022j\n\016custom_account\030\002 \001(\0132P.google." + + "cloud.websecurityscanner.v1alpha.ScanCon" + + "fig.Authentication.CustomAccountH\000\032@\n\rGo" + + "ogleAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010p" + + "assword\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n" + + "\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB" + + "\005\342A\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authe" + + "ntication\032c\n\010Schedule\0221\n\rschedule_time\030\001" + + " \001(\0132\032.google.protobuf.Timestamp\022$\n\026inte" + + "rval_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAg" + + "ent\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROM" + + "E_LINUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_" + + "IPHONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLA" + + "TFORM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007C" + + "OMPUTE\020\002:_\352A\\\n,websecurityscanner.google" + + "apis.com/ScanConfig\022,projects/{project}/" + + "scanConfigs/{scan_config}B\235\001\n+com.google" + + ".cloud.websecurityscanner.v1alphaB\017ScanC" + + "onfigProtoP\001Z[cloud.google.com/go/websec" + + "urityscanner/apiv1alpha/websecurityscann" + + "erpb;websecurityscannerpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java similarity index 73% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java index e0b646a19248..8cec338dfc34 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRun.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +45,38 @@ private ScanRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScanRun(); } - 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.
@@ -64,6 +86,8 @@ public enum ExecutionState
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -72,6 +96,8 @@ public enum ExecutionState */ QUEUED(1), /** + * + * *
      * The scan is in progress.
      * 
@@ -80,6 +106,8 @@ public enum ExecutionState */ SCANNING(2), /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -91,6 +119,8 @@ public enum ExecutionState ; /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -100,6 +130,8 @@ public enum ExecutionState
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -108,6 +140,8 @@ public enum ExecutionState */ public static final int QUEUED_VALUE = 1; /** + * + * *
      * The scan is in progress.
      * 
@@ -116,6 +150,8 @@ public enum ExecutionState */ public static final int SCANNING_VALUE = 2; /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -124,7 +160,6 @@ public enum ExecutionState */ public static final int FINISHED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -149,50 +184,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; @@ -210,15 +248,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.
@@ -228,6 +269,8 @@ public enum ResultState
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -236,6 +279,8 @@ public enum ResultState */ SUCCESS(1), /** + * + * *
      * The scan finished with errors.
      * 
@@ -244,6 +289,8 @@ public enum ResultState */ ERROR(2), /** + * + * *
      * The scan was terminated by user.
      * 
@@ -255,6 +302,8 @@ public enum ResultState ; /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -264,6 +313,8 @@ public enum ResultState
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -272,6 +323,8 @@ public enum ResultState */ public static final int SUCCESS_VALUE = 1; /** + * + * *
      * The scan finished with errors.
      * 
@@ -280,6 +333,8 @@ public enum ResultState */ public static final int ERROR_VALUE = 2; /** + * + * *
      * The scan was terminated by user.
      * 
@@ -288,7 +343,6 @@ public enum ResultState */ public static final int KILLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -313,50 +367,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; @@ -374,9 +431,12 @@ private ResultState(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -384,6 +444,7 @@ private ResultState(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -392,14 +453,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}'.
@@ -407,16 +469,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 { @@ -427,65 +488,93 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; 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; + * + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.forNumber(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.forNumber( + 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_ = 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; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.forNumber(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.forNumber(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 @@ -493,11 +582,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 @@ -505,6 +597,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time at which the ScanRun started.
    * 
@@ -519,12 +613,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 @@ -532,12 +629,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 @@ -545,6 +645,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.
@@ -560,12 +662,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_ = 0L;
   /**
+   *
+   *
    * 
    * 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 @@ -576,6 +681,8 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_ = 0L; /** + * + * *
    * 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
@@ -584,6 +691,7 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -594,11 +702,14 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_ = false; /** + * + * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -609,6 +720,8 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_ = 0; /** + * + * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -617,6 +730,7 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -625,6 +739,7 @@ public int getProgressPercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -636,15 +751,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) { @@ -677,37 +796,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -717,35 +833,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -772,14 +882,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) + getUnknownFields().hashCode(); @@ -788,131 +895,135 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -938,9 +1049,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 @@ -959,8 +1070,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.ScanRun result = + new com.google.cloud.websecurityscanner.v1alpha.ScanRun(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -977,14 +1091,10 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanRun r result.resultState_ = resultState_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.urlsCrawledCount_ = urlsCrawledCount_; @@ -1004,38 +1114,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ScanRun r 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; @@ -1043,7 +1154,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_; bitField0_ |= 0x00000001; @@ -1099,61 +1211,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - executionState_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - resultState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - urlsCrawledCount_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - urlsTestedCount_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - hasVulnerabilities_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - progressPercent_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + executionState_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + resultState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + urlsCrawledCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + urlsTestedCount_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + hasVulnerabilities_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + progressPercent_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1163,10 +1281,13 @@ public Builder mergeFrom( } // finally 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}'.
@@ -1174,13 +1295,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; @@ -1189,6 +1310,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1196,15 +1319,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 { @@ -1212,6 +1334,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1219,18 +1343,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1238,6 +1366,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1247,6 +1376,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1254,12 +1385,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1269,22 +1402,31 @@ 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. */ @@ -1295,28 +1437,41 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ExecutionState.forNumber(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.forNumber( + 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(); } @@ -1326,11 +1481,15 @@ public Builder setExecutionState(com.google.cloud.websecurityscanner.v1alpha.Sca 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() { @@ -1342,24 +1501,31 @@ 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. */ @@ -1370,30 +1536,40 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1alpha.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1403,12 +1579,15 @@ public Builder setResultState(com.google.cloud.websecurityscanner.v1alpha.ScanRu 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() { @@ -1420,24 +1599,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1448,6 +1636,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1468,14 +1658,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(); } else { @@ -1486,6 +1677,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1494,9 +1687,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1509,6 +1702,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1526,6 +1721,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1538,6 +1735,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1548,11 +1747,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.
      * 
@@ -1560,14 +1760,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_; @@ -1575,26 +1778,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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() { @@ -1605,6 +1817,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.
@@ -1626,6 +1840,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.
@@ -1633,8 +1849,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();
       } else {
@@ -1645,6 +1860,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.
@@ -1654,9 +1871,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1669,6 +1886,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.
@@ -1687,6 +1906,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.
@@ -1700,6 +1921,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1711,11 +1934,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.
@@ -1724,27 +1948,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 @@ -1752,12 +1982,15 @@ 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. */ @@ -1769,12 +2002,15 @@ public Builder setUrlsCrawledCount(long value) { 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() { @@ -1784,8 +2020,10 @@ public Builder clearUrlsCrawledCount() { 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
@@ -1794,6 +2032,7 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -1801,6 +2040,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
@@ -1809,6 +2050,7 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -1820,6 +2062,8 @@ public Builder setUrlsTestedCount(long value) { 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
@@ -1828,6 +2072,7 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -1837,13 +2082,16 @@ public Builder clearUrlsTestedCount() { 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 @@ -1851,11 +2099,14 @@ 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. */ @@ -1867,11 +2118,14 @@ public Builder setHasVulnerabilities(boolean value) { return this; } /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { @@ -1881,8 +2135,10 @@ public Builder clearHasVulnerabilities() { 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.
@@ -1891,6 +2147,7 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -1898,6 +2155,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.
@@ -1906,6 +2165,7 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; + * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -1917,6 +2177,8 @@ public Builder setProgressPercent(int value) { return this; } /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -1925,6 +2187,7 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -1933,9 +2196,9 @@ public Builder clearProgressPercent() { 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); } @@ -1945,12 +2208,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(); } @@ -1959,27 +2222,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1994,6 +2257,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java similarity index 83% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java index cb8b3862cf8b..9397177c35cd 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java new file mode 100644 index 000000000000..b12bbb1d3e83 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\232\001\n+com.google.cloud.websecurity" + + "scanner.v1alphaB\014ScanRunProtoP\001Z[cloud.g" + + "oogle.com/go/websecurityscanner/apiv1alp" + + "ha/websecurityscannerpb;websecurityscann" + + "erpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java index 499e8a861034..9d303f6eb627 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,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_); } @@ -129,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +323,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(); } @@ -312,13 +345,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result = + new com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,46 +366,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.StartScan 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_; bitField0_ |= 0x00000001; @@ -400,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +493,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 { @@ -467,30 +518,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +562,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,41 +598,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +646,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..7e0abd0d6ece --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java similarity index 62% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java index 00dbaa7609db..7445b39fbc47 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +325,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(); } @@ -314,13 +347,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result = + new com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.StopScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,38 +368,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.StopScanR 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; @@ -370,7 +408,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_; bitField0_ |= 0x00000001; @@ -402,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +464,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +495,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 { @@ -471,32 +521,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +567,34 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,41 +604,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,9 +652,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..5a1968bc28bb --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java index 3d06ff7c13b0..f33e9efd07c2 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequest.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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 @@ -59,43 +82,60 @@ 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() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance() + : scanConfig_; } 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 @@ -103,13 +143,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 @@ -117,13 +161,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() { @@ -131,6 +178,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +190,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()); } @@ -160,12 +207,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,22 +220,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -217,131 +261,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,14 +411,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 @@ -381,23 +434,23 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.UpdateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null - ? scanConfig_ - : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -405,46 +458,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.UpdateSca 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()); } @@ -477,26 +535,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getScanConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,49 +563,69 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -564,13 +641,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) { @@ -584,19 +665,24 @@ 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 (((bitField0_ & 0x00000001) != 0) && - scanConfig_ != null && - scanConfig_ != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && scanConfig_ != null + && scanConfig_ + != com.google.cloud.websecurityscanner.v1alpha.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -609,13 +695,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -628,13 +718,17 @@ 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() { bitField0_ |= 0x00000001; @@ -642,40 +736,53 @@ public com.google.cloud.websecurityscanner.v1alpha.ScanConfig.Builder getScanCon 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_; @@ -683,45 +790,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -737,16 +860,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(); } else { @@ -757,19 +882,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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -782,13 +910,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -801,13 +932,16 @@ 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() { bitField0_ |= 0x00000002; @@ -815,47 +949,57 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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); } @@ -865,41 +1009,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,9 +1057,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java index 35cda49203b0..9518da55ec93 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/UpdateScanConfigRequestOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java index 96109c8c043b..49e82bf41d7d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,33 +45,38 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object contentType_ = "";
   /**
+   *
+   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ @java.lang.Override @@ -62,29 +85,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 { @@ -93,14 +116,18 @@ public java.lang.String getContentType() { } public static final int RESOURCE_URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object resourceUrl_ = ""; /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ @java.lang.Override @@ -109,29 +136,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 { @@ -140,6 +167,7 @@ public java.lang.String getResourceUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,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(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -182,17 +209,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,98 +240,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.
@@ -313,33 +345,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,13 +381,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();
     }
 
@@ -371,13 +403,17 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result =
+          new com.google.cloud.websecurityscanner.v1alpha.ViolatingResource(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result) {
+    private void buildPartial0(
+        com.google.cloud.websecurityscanner.v1alpha.ViolatingResource result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.contentType_ = contentType_;
@@ -391,38 +427,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Violating
     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;
@@ -430,7 +467,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_;
         bitField0_ |= 0x00000001;
@@ -467,22 +506,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              contentType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              resourceUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                contentType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                resourceUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -492,22 +534,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -516,20 +561,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 { @@ -537,28 +583,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } contentType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return This builder for chaining. */ public Builder clearContentType() { @@ -568,17 +621,21 @@ public Builder clearContentType() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00000001; @@ -588,18 +645,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; @@ -608,20 +667,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 { @@ -629,28 +689,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceUrl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -660,26 +727,30 @@ public Builder clearResourceUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceUrl_ = value; bitField0_ |= 0x00000002; 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); } @@ -689,12 +760,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(); } @@ -703,27 +775,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,6 +810,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java index dbd8b1389d12..1473a406f99e 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ViolatingResourceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java index 19bc90fb0cc1..44abf92b5ab9 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeaders.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,84 +44,99 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableHeaders(); } - 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_ = ""; @@ -111,33 +144,38 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Header(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -146,29 +184,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 { @@ -177,14 +215,18 @@ public java.lang.String getName() { } public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -193,29 +235,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 { @@ -224,6 +266,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +278,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_); } @@ -266,17 +308,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,89 +339,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 @@ -390,39 +437,42 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,19 +483,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); } @@ -454,13 +507,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result = + new com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -474,46 +531,53 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Vulnerabl 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_; bitField0_ |= 0x00000001; @@ -550,22 +614,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -575,22 +642,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -599,20 +669,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 { @@ -620,28 +691,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -651,17 +729,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -671,18 +753,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; @@ -691,20 +775,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 { @@ -712,28 +797,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -743,23 +835,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -772,41 +869,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -818,135 +918,181 @@ 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; + @SuppressWarnings("serial") - 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; + @SuppressWarnings("serial") - 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; @@ -958,8 +1104,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)); } @@ -976,12 +1121,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -991,17 +1134,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1027,131 +1169,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1174,13 +1321,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(); } @@ -1195,14 +1343,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -1223,7 +1375,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1al } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders result) { int from_bitField0_ = bitField0_; } @@ -1231,38 +1384,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Vulnerabl 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; @@ -1270,7 +1424,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()) { @@ -1289,9 +1445,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_); } @@ -1315,9 +1472,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_); } @@ -1349,38 +1507,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(m); - } else { - headersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (missingHeadersBuilder_ == null) { - ensureMissingHeadersIsMutable(); - missingHeaders_.add(m); - } else { - missingHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1390,28 +1553,39 @@ public Builder mergeFrom( } // finally 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 { @@ -1419,11 +1593,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) { @@ -1433,13 +1610,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 { @@ -1447,11 +1628,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) { @@ -1468,14 +1652,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()); @@ -1486,13 +1675,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(); @@ -1506,11 +1699,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) { @@ -1527,14 +1723,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()); @@ -1545,14 +1745,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()); @@ -1563,18 +1768,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); @@ -1582,11 +1791,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) { @@ -1599,11 +1811,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) { @@ -1616,39 +1831,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 { @@ -1656,74 +1882,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 { @@ -1731,11 +1988,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) { @@ -1745,13 +2006,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 { @@ -1759,11 +2025,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) { @@ -1780,14 +2050,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()); @@ -1798,13 +2074,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(); @@ -1818,11 +2099,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) { @@ -1839,14 +2124,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()); @@ -1857,14 +2147,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()); @@ -1875,18 +2171,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); @@ -1894,11 +2195,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) { @@ -1911,11 +2216,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) { @@ -1928,39 +2237,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 { @@ -1968,45 +2291,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(), @@ -2015,9 +2363,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); } @@ -2027,12 +2375,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(); } @@ -2041,27 +2390,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2076,6 +2425,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java similarity index 51% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java index 842572d10771..d7787bc41285 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableHeadersOrBuilder.java @@ -1,97 +1,150 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java similarity index 66% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java index 33d63cbbfd2d..8cff0ef2b65c 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParameters.java @@ -1,82 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.emptyList(); + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableParameters(); } - 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; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -84,20 +111,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; @@ -109,8 +139,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)); } @@ -139,15 +168,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -169,148 +198,153 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - parameterNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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(); } @@ -325,13 +359,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result = + new com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1alpha.VulnerableParameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { parameterNames_.makeImmutable(); @@ -343,46 +381,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Vulnerabl 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_; @@ -419,18 +461,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureParameterNamesIsMutable(); - parameterNames_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -440,10 +484,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureParameterNamesIsMutable() { if (!parameterNames_.isModifiable()) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); @@ -451,35 +497,43 @@ private void ensureParameterNamesIsMutable() { 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() { parameterNames_.makeImmutable(); 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. */ @@ -487,31 +541,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParameterNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureParameterNamesIsMutable(); parameterNames_.set(index, value); bitField0_ |= 0x00000001; @@ -519,17 +579,21 @@ public Builder setParameterNames( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addParameterNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureParameterNamesIsMutable(); parameterNames_.add(value); bitField0_ |= 0x00000001; @@ -537,50 +601,58 @@ public Builder addParameterNames( 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return This builder for chaining. */ public Builder clearParameterNames() { - parameterNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); @@ -588,9 +660,9 @@ public Builder addParameterNamesBytes( 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); } @@ -600,41 +672,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,9 +720,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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java similarity index 60% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java index c75e054fcd86..1a2946cee13f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/VulnerableParametersOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java new file mode 100644 index 000000000000..a9665e5cf041 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java @@ -0,0 +1,441 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\"\257\001\n\027CreateScanCon" + + "figRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+clo" + + "udresourcemanager.googleapis.com/Project" + + "\022N\n\013scan_config\030\002 \001(\01323.google.cloud.web" + + "securityscanner.v1alpha.ScanConfigB\004\342A\001\002" + + "\"^\n\027DeleteScanConfigRequest\022C\n\004name\030\001 \001(" + + "\tB5\342A\001\002\372A.\n,websecurityscanner.googleapi" + + "s.com/ScanConfig\"[\n\024GetScanConfigRequest" + + "\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\"\205\001\n\026ListSc" + + "anConfigsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\"\240\001\n\027UpdateScanConfigRequest\022N\n\013sca" + + "n_config\030\002 \001(\01323.google.cloud.websecurit" + + "yscanner.v1alpha.ScanConfigB\004\342A\001\002\0225\n\013upd" + + "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" + + "skB\004\342A\001\002\"}\n\027ListScanConfigsResponse\022I\n\014s" + + "can_configs\030\001 \003(\01323.google.cloud.websecu" + + "rityscanner.v1alpha.ScanConfig\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"Z\n\023StartScanRunRequest\022C" + + "\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanne" + + "r.googleapis.com/ScanConfig\"U\n\021GetScanRu" + + "nRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecu" + + "rityscanner.googleapis.com/ScanRun\"\203\001\n\023L" + + "istScanRunsRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\002" + + "\372A.\n,websecurityscanner.googleapis.com/S" + + "canConfig\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_si" + + "ze\030\003 \001(\005\"t\n\024ListScanRunsResponse\022C\n\tscan" + + "_runs\030\001 \003(\01320.google.cloud.websecuritysc" + + "anner.v1alpha.ScanRun\022\027\n\017next_page_token" + + "\030\002 \001(\t\"V\n\022StopScanRunRequest\022@\n\004name\030\001 \001" + + "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" + + "is.com/ScanRun\"\203\001\n\026ListCrawledUrlsReques" + + "t\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)websecuritys" + + "canner.googleapis.com/ScanRun\022\022\n\npage_to" + + "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"}\n\027ListCraw" + + "ledUrlsResponse\022I\n\014crawled_urls\030\001 \003(\01323." + + "google.cloud.websecurityscanner.v1alpha." + + "CrawledUrl\022\027\n\017next_page_token\030\002 \001(\t\"U\n\021G" + + "etFindingRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + + ")websecurityscanner.googleapis.com/Findi" + + "ng\"\226\001\n\023ListFindingsRequest\022B\n\006parent\030\001 \001" + + "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" + + "is.com/ScanRun\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\n" + + "page_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024L" + + "istFindingsResponse\022B\n\010findings\030\001 \003(\01320." + + "google.cloud.websecurityscanner.v1alpha." + + "Finding\022\027\n\017next_page_token\030\002 \001(\t\"a\n\033List" + + "FindingTypeStatsRequest\022B\n\006parent\030\001 \001(\tB" + + "2\342A\001\002\372A+\n)websecurityscanner.googleapis." + + "com/ScanRun\"u\n\034ListFindingTypeStatsRespo" + + "nse\022U\n\022finding_type_stats\030\001 \003(\01329.google" + + ".cloud.websecurityscanner.v1alpha.Findin" + + "gTypeStats2\264\026\n\022WebSecurityScanner\022\335\001\n\020Cr" + + "eateScanConfig\022@.google.cloud.websecurit" + + "yscanner.v1alpha.CreateScanConfigRequest" + + "\0323.google.cloud.websecurityscanner.v1alp" + + "ha.ScanConfig\"R\332A\022parent,scan_config\202\323\344\223" + + "\0027\"(/v1alpha/{parent=projects/*}/scanCon" + + "figs:\013scan_config\022\245\001\n\020DeleteScanConfig\022@" + + ".google.cloud.websecurityscanner.v1alpha" + + ".DeleteScanConfigRequest\032\026.google.protob" + + "uf.Empty\"7\332A\004name\202\323\344\223\002**(/v1alpha/{name=" + + "projects/*/scanConfigs/*}\022\274\001\n\rGetScanCon" + + "fig\022=.google.cloud.websecurityscanner.v1" + + "alpha.GetScanConfigRequest\0323.google.clou" + + "d.websecurityscanner.v1alpha.ScanConfig\"" + + "7\332A\004name\202\323\344\223\002*\022(/v1alpha/{name=projects/" + + "*/scanConfigs/*}\022\317\001\n\017ListScanConfigs\022?.g" + + "oogle.cloud.websecurityscanner.v1alpha.L" + + "istScanConfigsRequest\032@.google.cloud.web" + + "securityscanner.v1alpha.ListScanConfigsR" + + "esponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/{pare" + + "nt=projects/*}/scanConfigs\022\356\001\n\020UpdateSca" + + "nConfig\022@.google.cloud.websecurityscanne" + + "r.v1alpha.UpdateScanConfigRequest\0323.goog" + + "le.cloud.websecurityscanner.v1alpha.Scan" + + "Config\"c\332A\027scan_config,update_mask\202\323\344\223\002C" + + "24/v1alpha/{scan_config.name=projects/*/" + + "scanConfigs/*}:\013scan_config\022\300\001\n\014StartSca" + + "nRun\022<.google.cloud.websecurityscanner.v" + + "1alpha.StartScanRunRequest\0320.google.clou" + + "d.websecurityscanner.v1alpha.ScanRun\"@\332A" + + "\004name\202\323\344\223\0023\"./v1alpha/{name=projects/*/s" + + "canConfigs/*}:start:\001*\022\276\001\n\nGetScanRun\022:." + + "google.cloud.websecurityscanner.v1alpha." + + "GetScanRunRequest\0320.google.cloud.websecu" + + "rityscanner.v1alpha.ScanRun\"B\332A\004name\202\323\344\223" + + "\0025\0223/v1alpha/{name=projects/*/scanConfig" + + "s/*/scanRuns/*}\022\321\001\n\014ListScanRuns\022<.googl" + + "e.cloud.websecurityscanner.v1alpha.ListS" + + "canRunsRequest\032=.google.cloud.websecurit" + + "yscanner.v1alpha.ListScanRunsResponse\"D\332" + + "A\006parent\202\323\344\223\0025\0223/v1alpha/{parent=project" + + "s/*/scanConfigs/*}/scanRuns\022\310\001\n\013StopScan" + + "Run\022;.google.cloud.websecurityscanner.v1" + + "alpha.StopScanRunRequest\0320.google.cloud." + + "websecurityscanner.v1alpha.ScanRun\"J\332A\004n" + + "ame\202\323\344\223\002=\"8/v1alpha/{name=projects/*/sca" + + "nConfigs/*/scanRuns/*}:stop:\001*\022\350\001\n\017ListC" + + "rawledUrls\022?.google.cloud.websecuritysca" + + "nner.v1alpha.ListCrawledUrlsRequest\032@.go" + + "ogle.cloud.websecurityscanner.v1alpha.Li" + + "stCrawledUrlsResponse\"R\332A\006parent\202\323\344\223\002C\022A" + + "/v1alpha/{parent=projects/*/scanConfigs/" + + "*/scanRuns/*}/crawledUrls\022\311\001\n\nGetFinding" + + "\022:.google.cloud.websecurityscanner.v1alp" + + "ha.GetFindingRequest\0320.google.cloud.webs" + + "ecurityscanner.v1alpha.Finding\"M\332A\004name\202" + + "\323\344\223\002@\022>/v1alpha/{name=projects/*/scanCon" + + "figs/*/scanRuns/*/findings/*}\022\343\001\n\014ListFi" + + "ndings\022<.google.cloud.websecurityscanner" + + ".v1alpha.ListFindingsRequest\032=.google.cl" + + "oud.websecurityscanner.v1alpha.ListFindi" + + "ngsResponse\"V\332A\rparent,filter\202\323\344\223\002@\022>/v1" + + "alpha/{parent=projects/*/scanConfigs/*/s" + + "canRuns/*}/findings\022\374\001\n\024ListFindingTypeS" + + "tats\022D.google.cloud.websecurityscanner.v" + + "1alpha.ListFindingTypeStatsRequest\032E.goo" + + "gle.cloud.websecurityscanner.v1alpha.Lis" + + "tFindingTypeStatsResponse\"W\332A\006parent\202\323\344\223" + + "\002H\022F/v1alpha/{parent=projects/*/scanConf" + + "igs/*/scanRuns/*}/findingTypeStats\032U\312A!w" + + "ebsecurityscanner.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\245\001\n+com.google.cloud.websecurityscanne" + + "r.v1alphaB\027WebSecurityScannerProtoP\001Z[cl" + + "oud.google.com/go/websecurityscanner/api" + + "v1alpha/websecurityscannerpb;websecurity" + + "scannerpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java index 42e1be012c83..fb389186e3b6 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/Xss.java @@ -1,83 +1,110 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.emptyList(); + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Xss(); } - 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; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -85,28 +112,34 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -115,29 +148,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 { @@ -146,6 +179,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +191,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)); } @@ -193,17 +226,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,146 +258,149 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - stackTraces_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; return this; } @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 @@ -384,8 +419,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1alpha.Xss result = + new com.google.cloud.websecurityscanner.v1alpha.Xss(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,38 +443,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1alpha.Xss resul 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; @@ -444,7 +483,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_; @@ -486,23 +526,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStackTracesIsMutable(); - stackTraces_.add(s); - break; - } // case 10 - case 18: { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,10 +555,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStackTracesIsMutable() { if (!stackTraces_.isModifiable()) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); @@ -523,35 +568,43 @@ private void ensureStackTracesIsMutable() { 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() { stackTraces_.makeImmutable(); 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. */ @@ -559,31 +612,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStackTraces(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStackTracesIsMutable(); stackTraces_.set(index, value); bitField0_ |= 0x00000001; @@ -591,17 +650,21 @@ public Builder setStackTraces( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStackTraces(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStackTracesIsMutable(); stackTraces_.add(value); bitField0_ |= 0x00000001; @@ -609,50 +672,58 @@ public Builder addStackTraces( 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_); bitField0_ |= 0x00000001; 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() { - stackTraces_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); @@ -663,18 +734,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; @@ -683,20 +756,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 { @@ -704,28 +778,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -735,26 +816,30 @@ public Builder clearErrorMessage() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -764,12 +849,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(); } @@ -778,27 +863,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +898,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1alpha.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java index c70bccff6bed..6b3e8d226237 100644 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/XssOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/crawled_url.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_addon.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/finding_type_stats.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_config.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/scan_run.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/src/main/proto/google/cloud/websecurityscanner/v1alpha/web_security_scanner.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java index 66d46ac51f33..c4e7cc45871b 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrl.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +47,39 @@ private CrawledUrl() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CrawledUrl();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   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 @@ -65,30 +88,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 { @@ -97,14 +120,18 @@ public java.lang.String getHttpMethod() { } public static final int URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** + * + * *
    * The URL that was crawled.
    * 
* * string url = 2; + * * @return The url. */ @java.lang.Override @@ -113,29 +140,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 { @@ -144,14 +171,18 @@ public java.lang.String getUrl() { } public static final int BODY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -160,29 +191,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 { @@ -191,6 +222,7 @@ public java.lang.String getBody() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +234,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_); } @@ -239,19 +270,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -275,98 +304,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
@@ -375,33 +410,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -413,9 +447,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
@@ -434,8 +468,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1beta.CrawledUrl result =
+          new com.google.cloud.websecurityscanner.v1beta.CrawledUrl(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -457,38 +494,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.CrawledUrl
     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;
@@ -496,7 +534,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_;
         bitField0_ |= 0x00000001;
@@ -538,27 +577,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              httpMethod_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              url_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              body_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                httpMethod_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                url_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                body_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -568,23 +611,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -593,21 +639,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 { @@ -615,30 +662,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } httpMethod_ = value; bitField0_ |= 0x00000001; 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() { @@ -648,18 +702,22 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000001; @@ -669,18 +727,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; @@ -689,20 +749,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 { @@ -710,28 +771,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } url_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The URL that was crawled.
      * 
* * string url = 2; + * * @return This builder for chaining. */ public Builder clearUrl() { @@ -741,17 +809,21 @@ public Builder clearUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); url_ = value; bitField0_ |= 0x00000002; @@ -761,18 +833,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; @@ -781,20 +855,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 { @@ -802,28 +877,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } body_ = value; bitField0_ |= 0x00000004; 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() { @@ -833,26 +915,30 @@ public Builder clearBody() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000004; 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); } @@ -862,12 +948,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(); } @@ -876,27 +962,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +997,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java index 43a78234ea98..191ffe361f2b 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlOrBuilder.java @@ -1,71 +1,102 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java new file mode 100644 index 000000000000..13e63606f53f --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\231\002\n*com.google.cloud.websecurityscanner" + + ".v1betaB\017CrawledUrlProtoP\001ZZcloud.google" + + ".com/go/websecurityscanner/apiv1beta/web" + + "securityscannerpb;websecurityscannerpb\252\002" + + "&Google.Cloud.WebSecurityScanner.V1Beta\312" + + "\002&Google\\Cloud\\WebSecurityScanner\\V1beta" + + "\352\002)Google::Cloud::WebSecurityScanner::V1" + + "betab\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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java similarity index 59% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java index 88533e72496a..5708d4a02cab 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -95,11 +122,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 @@ -107,30 +139,44 @@ 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() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +188,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_); } @@ -163,8 +208,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -174,19 +218,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -211,131 +254,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,14 +400,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 @@ -371,21 +423,23 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.CreateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null - ? scanConfig_ - : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); } } @@ -393,46 +447,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.CreateScan 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_; bitField0_ |= 0x00000001; @@ -467,24 +526,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getScanConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +554,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -519,21 +584,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 { @@ -541,30 +609,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -574,18 +653,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -595,39 +680,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -643,11 +747,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) { @@ -661,17 +769,22 @@ 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 (((bitField0_ & 0x00000002) != 0) && - scanConfig_ != null && - scanConfig_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && scanConfig_ != null + && scanConfig_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -684,11 +797,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -701,11 +818,15 @@ 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() { bitField0_ |= 0x00000002; @@ -713,43 +834,55 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf 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); } @@ -759,41 +892,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -805,9 +940,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..030a5e91cab3 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java similarity index 60% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java index 15da1df96c92..055648312db1 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,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_); } @@ -129,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,14 +325,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 @@ -312,13 +348,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,46 +369,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.DeleteScan 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_; bitField0_ |= 0x00000001; @@ -400,17 +445,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +467,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +497,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 { @@ -467,30 +522,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +566,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,41 +602,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +650,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..83b1fbf1bab2 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java index 4f89fe50a2c0..6c93890eedf8 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Finding.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +53,32 @@ private Finding() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Finding();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   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}'.
@@ -64,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -72,14 +95,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}'.
@@ -87,16 +111,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 { @@ -105,9 +128,12 @@ public java.lang.String getName() { } public static final int FINDING_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object findingType_ = ""; /** + * + * *
    * The type of the Finding.
    * Detailed and up-to-date information on findings can be found here:
@@ -115,6 +141,7 @@ public java.lang.String getName() {
    * 
* * string finding_type = 2; + * * @return The findingType. */ @java.lang.Override @@ -123,14 +150,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:
@@ -138,16 +166,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 { @@ -156,15 +183,19 @@ public java.lang.String getFindingType() { } public static final int HTTP_METHOD_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -173,30 +204,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 { @@ -205,15 +236,19 @@ public java.lang.String getHttpMethod() { } public static final int FUZZED_URL_FIELD_NUMBER = 4; + @SuppressWarnings("serial") 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 @@ -222,30 +257,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 { @@ -254,14 +289,18 @@ public java.lang.String getFuzzedUrl() { } public static final int BODY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object body_ = ""; /** + * + * *
    * The body of the request that triggered the vulnerability.
    * 
* * string body = 5; + * * @return The body. */ @java.lang.Override @@ -270,29 +309,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 { @@ -301,14 +340,18 @@ public java.lang.String getBody() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * The description of the vulnerability.
    * 
* * string description = 6; + * * @return The description. */ @java.lang.Override @@ -317,29 +360,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 { @@ -348,15 +391,19 @@ public java.lang.String getDescription() { } public static final int REPRODUCTION_URL_FIELD_NUMBER = 7; + @SuppressWarnings("serial") 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 @@ -365,30 +412,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 { @@ -397,15 +444,19 @@ public java.lang.String getReproductionUrl() { } public static final int FRAME_URL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") 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 @@ -414,30 +465,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 { @@ -446,14 +497,18 @@ public java.lang.String getFrameUrl() { } public static final int FINAL_URL_FIELD_NUMBER = 9; + @SuppressWarnings("serial") 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 @@ -462,29 +517,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 { @@ -493,15 +548,19 @@ public java.lang.String getFinalUrl() { } public static final int TRACKING_ID_FIELD_NUMBER = 10; + @SuppressWarnings("serial") 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 @@ -510,30 +569,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 { @@ -544,12 +603,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 @@ -557,19 +619,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.
@@ -579,17 +648,22 @@ public com.google.cloud.websecurityscanner.v1beta.Form getForm() {
    */
   @java.lang.Override
   public com.google.cloud.websecurityscanner.v1beta.FormOrBuilder getFormOrBuilder() {
-    return form_ == null ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance() : form_;
+    return form_ == null
+        ? com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()
+        : form_;
   }
 
   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 @@ -597,18 +671,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.
    * 
@@ -616,19 +697,25 @@ 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() { - return outdatedLibrary_ == null ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() : outdatedLibrary_; + public com.google.cloud.websecurityscanner.v1beta.OutdatedLibraryOrBuilder + getOutdatedLibraryOrBuilder() { + return outdatedLibrary_ == null + ? com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance() + : outdatedLibrary_; } 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 @@ -636,19 +723,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.
@@ -657,18 +751,24 @@ 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() {
-    return violatingResource_ == null ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance() : violatingResource_;
+  public com.google.cloud.websecurityscanner.v1beta.ViolatingResourceOrBuilder
+      getViolatingResourceOrBuilder() {
+    return violatingResource_ == null
+        ? com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance()
+        : violatingResource_;
   }
 
   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 @@ -676,18 +776,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.
    * 
@@ -695,19 +802,26 @@ 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() { - return vulnerableHeaders_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() : vulnerableHeaders_; + public com.google.cloud.websecurityscanner.v1beta.VulnerableHeadersOrBuilder + getVulnerableHeadersOrBuilder() { + return vulnerableHeaders_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance() + : vulnerableHeaders_; } 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 @@ -715,39 +829,54 @@ 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() { - return vulnerableParameters_ == null ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() : vulnerableParameters_; + public com.google.cloud.websecurityscanner.v1beta.VulnerableParametersOrBuilder + getVulnerableParametersOrBuilder() { + return vulnerableParameters_ == null + ? com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance() + : vulnerableParameters_; } 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 @@ -755,18 +884,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.
    * 
@@ -775,10 +911,13 @@ public com.google.cloud.websecurityscanner.v1beta.Xss getXss() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.XssOrBuilder getXssOrBuilder() { - return xss_ == null ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() : xss_; + return xss_ == null + ? com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance() + : xss_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -790,8 +929,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_); } @@ -880,28 +1018,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -911,62 +1044,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1029,98 +1147,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.
@@ -1128,33 +1251,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1203,9 +1325,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
@@ -1224,8 +1346,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1beta.Finding result =
+          new com.google.cloud.websecurityscanner.v1beta.Finding(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1263,34 +1388,32 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Finding re
         result.trackingId_ = trackingId_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.form_ = formBuilder_ == null
-            ? form_
-            : formBuilder_.build();
+        result.form_ = formBuilder_ == null ? form_ : formBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.outdatedLibrary_ = outdatedLibraryBuilder_ == null
-            ? outdatedLibrary_
-            : outdatedLibraryBuilder_.build();
+        result.outdatedLibrary_ =
+            outdatedLibraryBuilder_ == null ? outdatedLibrary_ : outdatedLibraryBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.violatingResource_ = violatingResourceBuilder_ == null
-            ? violatingResource_
-            : violatingResourceBuilder_.build();
+        result.violatingResource_ =
+            violatingResourceBuilder_ == null
+                ? violatingResource_
+                : violatingResourceBuilder_.build();
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.vulnerableHeaders_ = vulnerableHeadersBuilder_ == null
-            ? vulnerableHeaders_
-            : vulnerableHeadersBuilder_.build();
+        result.vulnerableHeaders_ =
+            vulnerableHeadersBuilder_ == null
+                ? vulnerableHeaders_
+                : vulnerableHeadersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.vulnerableParameters_ = vulnerableParametersBuilder_ == null
-            ? vulnerableParameters_
-            : vulnerableParametersBuilder_.build();
+        result.vulnerableParameters_ =
+            vulnerableParametersBuilder_ == null
+                ? vulnerableParameters_
+                : vulnerableParametersBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.xss_ = xssBuilder_ == null
-            ? xss_
-            : xssBuilder_.build();
+        result.xss_ = xssBuilder_ == null ? xss_ : xssBuilder_.build();
       }
     }
 
@@ -1298,38 +1421,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Finding re
     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;
@@ -1337,7 +1461,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_;
         bitField0_ |= 0x00000001;
@@ -1432,104 +1557,112 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              findingType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              httpMethod_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              fuzzedUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              body_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 58: {
-              reproductionUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 66: {
-              frameUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 74: {
-              finalUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 74
-            case 82: {
-              trackingId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getOutdatedLibraryFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getViolatingResourceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getVulnerableParametersFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getXssFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 114
-            case 122: {
-              input.readMessage(
-                  getVulnerableHeadersFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 122
-            case 130: {
-              input.readMessage(
-                  getFormFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 130
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                findingType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                httpMethod_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                fuzzedUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                body_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 58:
+              {
+                reproductionUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 66:
+              {
+                frameUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 74:
+              {
+                finalUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 74
+            case 82:
+              {
+                trackingId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getOutdatedLibraryFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(
+                    getViolatingResourceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(
+                    getVulnerableParametersFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getXssFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 114
+            case 122:
+              {
+                input.readMessage(
+                    getVulnerableHeadersFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 122
+            case 130:
+              {
+                input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 130
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1539,10 +1672,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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}'.
@@ -1550,13 +1686,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; @@ -1565,6 +1701,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}'.
@@ -1572,15 +1710,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 { @@ -1588,6 +1725,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}'.
@@ -1595,18 +1734,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1614,6 +1757,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1623,6 +1767,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the Finding. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanruns/{scanRunId}/findings/{findingId}'.
@@ -1630,12 +1776,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1645,6 +1793,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:
@@ -1652,13 +1802,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; @@ -1667,6 +1817,8 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1674,15 +1826,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 { @@ -1690,6 +1841,8 @@ public java.lang.String getFindingType() { } } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1697,18 +1850,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFindingType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } findingType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1716,6 +1873,7 @@ public Builder setFindingType(
      * 
* * string finding_type = 2; + * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -1725,6 +1883,8 @@ public Builder clearFindingType() { return this; } /** + * + * *
      * The type of the Finding.
      * Detailed and up-to-date information on findings can be found here:
@@ -1732,12 +1892,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000002; @@ -1747,19 +1909,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; @@ -1768,21 +1932,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 { @@ -1790,30 +1955,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethod(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } httpMethod_ = value; bitField0_ |= 0x00000004; 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() { @@ -1823,18 +1995,22 @@ public Builder clearHttpMethod() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setHttpMethodBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); httpMethod_ = value; bitField0_ |= 0x00000004; @@ -1844,19 +2020,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; @@ -1865,21 +2043,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 { @@ -1887,30 +2066,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFuzzedUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fuzzedUrl_ = value; bitField0_ |= 0x00000008; 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() { @@ -1920,18 +2106,22 @@ public Builder clearFuzzedUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFuzzedUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fuzzedUrl_ = value; bitField0_ |= 0x00000008; @@ -1941,18 +2131,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; @@ -1961,20 +2153,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 { @@ -1982,28 +2175,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBody(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } body_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The body of the request that triggered the vulnerability.
      * 
* * string body = 5; + * * @return This builder for chaining. */ public Builder clearBody() { @@ -2013,17 +2213,21 @@ public Builder clearBody() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBodyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); body_ = value; bitField0_ |= 0x00000010; @@ -2033,18 +2237,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; @@ -2053,20 +2259,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 { @@ -2074,28 +2281,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * The description of the vulnerability.
      * 
* * string description = 6; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2105,17 +2319,21 @@ public Builder clearDescription() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000020; @@ -2125,19 +2343,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; @@ -2146,21 +2366,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 { @@ -2168,30 +2389,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReproductionUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reproductionUrl_ = value; bitField0_ |= 0x00000040; 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() { @@ -2201,18 +2429,22 @@ public Builder clearReproductionUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setReproductionUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reproductionUrl_ = value; bitField0_ |= 0x00000040; @@ -2222,19 +2454,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; @@ -2243,21 +2477,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 { @@ -2265,30 +2500,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFrameUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } frameUrl_ = value; bitField0_ |= 0x00000080; 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() { @@ -2298,18 +2540,22 @@ public Builder clearFrameUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFrameUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); frameUrl_ = value; bitField0_ |= 0x00000080; @@ -2319,18 +2565,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; @@ -2339,20 +2587,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 { @@ -2360,28 +2609,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFinalUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } finalUrl_ = value; bitField0_ |= 0x00000100; 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() { @@ -2391,17 +2647,21 @@ public Builder clearFinalUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFinalUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); finalUrl_ = value; bitField0_ |= 0x00000100; @@ -2411,19 +2671,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; @@ -2432,21 +2694,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 { @@ -2454,30 +2717,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTrackingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } trackingId_ = value; bitField0_ |= 0x00000200; 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() { @@ -2487,18 +2757,22 @@ public Builder clearTrackingId() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setTrackingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); trackingId_ = value; bitField0_ |= 0x00000200; @@ -2508,36 +2782,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 ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * 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.
@@ -2559,6 +2846,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.
@@ -2578,6 +2867,8 @@ public Builder setForm(
       return this;
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2587,9 +2878,9 @@ public Builder setForm(
      */
     public Builder mergeForm(com.google.cloud.websecurityscanner.v1beta.Form value) {
       if (formBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0) &&
-          form_ != null &&
-          form_ != com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0)
+            && form_ != null
+            && form_ != com.google.cloud.websecurityscanner.v1beta.Form.getDefaultInstance()) {
           getFormBuilder().mergeFrom(value);
         } else {
           form_ = value;
@@ -2602,6 +2893,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.
@@ -2620,6 +2913,8 @@ public Builder clearForm() {
       return this;
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2633,6 +2928,8 @@ public com.google.cloud.websecurityscanner.v1beta.Form.Builder getFormBuilder()
       return getFormFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * An addon containing information reported for a vulnerability with an HTML
      * form, if any.
@@ -2644,11 +2941,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.
@@ -2657,14 +2957,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_;
@@ -2672,41 +2975,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 ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * 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(); @@ -2720,6 +3037,8 @@ public Builder setOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.Out return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2738,17 +3057,22 @@ 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 (((bitField0_ & 0x00000800) != 0) && - outdatedLibrary_ != null && - outdatedLibrary_ != com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && outdatedLibrary_ != null + && outdatedLibrary_ + != com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary + .getDefaultInstance()) { getOutdatedLibraryBuilder().mergeFrom(value); } else { outdatedLibrary_ = value; @@ -2761,6 +3085,8 @@ public Builder mergeOutdatedLibrary(com.google.cloud.websecurityscanner.v1beta.O return this; } /** + * + * *
      * An addon containing information about outdated libraries.
      * 
@@ -2778,33 +3104,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() { bitField0_ |= 0x00000800; 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.
      * 
@@ -2812,14 +3147,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_; @@ -2827,44 +3165,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 ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * 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(); @@ -2878,12 +3233,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) { @@ -2897,18 +3255,24 @@ 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 (((bitField0_ & 0x00001000) != 0) && - violatingResource_ != null && - violatingResource_ != com.google.cloud.websecurityscanner.v1beta.ViolatingResource.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && violatingResource_ != null + && violatingResource_ + != com.google.cloud.websecurityscanner.v1beta.ViolatingResource + .getDefaultInstance()) { getViolatingResourceBuilder().mergeFrom(value); } else { violatingResource_ = value; @@ -2921,12 +3285,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() { bitField0_ = (bitField0_ & ~0x00001000); @@ -2939,51 +3306,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() { bitField0_ |= 0x00001000; 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_; @@ -2991,41 +3373,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 ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * 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(); @@ -3039,11 +3438,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) { @@ -3057,17 +3459,23 @@ 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 (((bitField0_ & 0x00002000) != 0) && - vulnerableHeaders_ != null && - vulnerableHeaders_ != com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && vulnerableHeaders_ != null + && vulnerableHeaders_ + != com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders + .getDefaultInstance()) { getVulnerableHeadersBuilder().mergeFrom(value); } else { vulnerableHeaders_ = value; @@ -3080,11 +3488,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() { bitField0_ = (bitField0_ & ~0x00002000); @@ -3097,48 +3508,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() { bitField0_ |= 0x00002000; 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_; @@ -3146,44 +3572,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 ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * 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(); @@ -3197,12 +3644,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) { @@ -3216,18 +3667,25 @@ 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 (((bitField0_ & 0x00004000) != 0) && - vulnerableParameters_ != null && - vulnerableParameters_ != com.google.cloud.websecurityscanner.v1beta.VulnerableParameters.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) + && vulnerableParameters_ != null + && vulnerableParameters_ + != com.google.cloud.websecurityscanner.v1beta.VulnerableParameters + .getDefaultInstance()) { getVulnerableParametersBuilder().mergeFrom(value); } else { vulnerableParameters_ = value; @@ -3240,12 +3698,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() { bitField0_ = (bitField0_ & ~0x00004000); @@ -3258,51 +3720,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() { bitField0_ |= 0x00004000; 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_; @@ -3310,34 +3790,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 ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * 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.
      * 
@@ -3358,14 +3851,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(); } else { @@ -3376,6 +3870,8 @@ public Builder setXss( return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3384,9 +3880,9 @@ public Builder setXss( */ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { if (xssBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - xss_ != null && - xss_ != com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && xss_ != null + && xss_ != com.google.cloud.websecurityscanner.v1beta.Xss.getDefaultInstance()) { getXssBuilder().mergeFrom(value); } else { xss_ = value; @@ -3399,6 +3895,8 @@ public Builder mergeXss(com.google.cloud.websecurityscanner.v1beta.Xss value) { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3416,6 +3914,8 @@ public Builder clearXss() { return this; } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3428,6 +3928,8 @@ public com.google.cloud.websecurityscanner.v1beta.Xss.Builder getXssBuilder() { return getXssFieldBuilder().getBuilder(); } /** + * + * *
      * An addon containing information reported for an XSS, if any.
      * 
@@ -3438,11 +3940,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.
      * 
@@ -3450,21 +3955,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); } @@ -3474,12 +3982,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(); } @@ -3488,27 +3996,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3523,6 +4031,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Finding getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java new file mode 100644 index 000000000000..5ec9116e471d --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java @@ -0,0 +1,156 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\233\002\n*com.goo" + + "gle.cloud.websecurityscanner.v1betaB\021Fin" + + "dingAddonProtoP\001ZZcloud.google.com/go/we" + + "bsecurityscanner/apiv1beta/websecuritysc" + + "annerpb;websecurityscannerpb\252\002&Google.Cl" + + "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" + + "loud\\WebSecurityScanner\\V1beta\352\002)Google:" + + ":Cloud::WebSecurityScanner::V1betab\006prot" + + "o3" + }; + 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java similarity index 84% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java index e8121da0947b..bc9e17dbc203 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java new file mode 100644 index 000000000000..6d3fba83873b --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java @@ -0,0 +1,117 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\226\002\n*co" + + "m.google.cloud.websecurityscanner.v1beta" + + "B\014FindingProtoP\001ZZcloud.google.com/go/we" + + "bsecurityscanner/apiv1beta/websecuritysc" + + "annerpb;websecurityscannerpb\252\002&Google.Cl" + + "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" + + "loud\\WebSecurityScanner\\V1beta\352\002)Google:" + + ":Cloud::WebSecurityScanner::V1betab\006prot" + + "o3" + }; + 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java index ed689e6873ea..978b406c4c3f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStats.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,48 +28,54 @@
  *
  * 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();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object findingType_ = "";
   /**
+   *
+   *
    * 
    * The finding type associated with the stats.
    * 
* * string finding_type = 1; + * * @return The findingType. */ @java.lang.Override @@ -61,29 +84,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 { @@ -94,11 +117,14 @@ public java.lang.String getFindingType() { public static final int FINDING_COUNT_FIELD_NUMBER = 2; private int findingCount_ = 0; /** + * + * *
    * The count of findings belonging to this finding type.
    * 
* * int32 finding_count = 2; + * * @return The findingCount. */ @java.lang.Override @@ -107,6 +133,7 @@ public int getFindingCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +145,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_); } @@ -139,8 +165,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -150,17 +175,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -182,98 +206,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.
@@ -281,33 +311,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -318,9 +347,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
@@ -339,8 +368,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1beta.FindingTypeStats result =
+          new com.google.cloud.websecurityscanner.v1beta.FindingTypeStats(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -359,38 +391,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.FindingTyp
     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;
@@ -398,7 +431,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_;
         bitField0_ |= 0x00000001;
@@ -433,22 +467,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              findingType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              findingCount_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                findingType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                findingCount_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -458,22 +495,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -482,20 +522,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 { @@ -503,28 +544,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFindingType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } findingType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The finding type associated with the stats.
      * 
* * string finding_type = 1; + * * @return This builder for chaining. */ public Builder clearFindingType() { @@ -534,17 +582,21 @@ public Builder clearFindingType() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFindingTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); findingType_ = value; bitField0_ |= 0x00000001; @@ -552,13 +604,16 @@ public Builder setFindingTypeBytes( 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 @@ -566,11 +621,14 @@ 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. */ @@ -582,11 +640,14 @@ public Builder setFindingCount(int value) { return this; } /** + * + * *
      * The count of findings belonging to this finding type.
      * 
* * int32 finding_count = 2; + * * @return This builder for chaining. */ public Builder clearFindingCount() { @@ -595,9 +656,9 @@ public Builder clearFindingCount() { 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); } @@ -607,12 +668,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(); } @@ -621,27 +682,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,6 +717,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.FindingTypeStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java similarity index 54% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java index b78eb3481040..1264749efae0 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsOrBuilder.java @@ -1,38 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java new file mode 100644 index 000000000000..b403797f9cc3 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java @@ -0,0 +1,70 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\237\002\n*com.google.cloud.websecur" + + "ityscanner.v1betaB\025FindingTypeStatsProto" + + "P\001ZZcloud.google.com/go/websecurityscann" + + "er/apiv1beta/websecurityscannerpb;websec" + + "urityscannerpb\252\002&Google.Cloud.WebSecurit" + + "yScanner.V1Beta\312\002&Google\\Cloud\\WebSecuri" + + "tyScanner\\V1beta\352\002)Google::Cloud::WebSec" + + "urityScanner::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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java index 74180cb8048b..5be35402ee17 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Form.java @@ -1,59 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.emptyList(); + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Form(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,29 +84,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 { @@ -93,38 +115,47 @@ public java.lang.String getActionUri() { } public static final int FIELDS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * ! 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. */ @@ -132,20 +163,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; @@ -157,8 +191,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_); } @@ -193,17 +226,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,146 +258,149 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; actionUri_ = ""; - fields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -384,8 +419,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.Form result = + new com.google.cloud.websecurityscanner.v1beta.Form(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,38 +443,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Form resul 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; @@ -444,7 +483,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_; bitField0_ |= 0x00000001; @@ -486,23 +526,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - actionUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureFieldsIsMutable(); - fields_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + actionUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldsIsMutable(); + fields_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,22 +555,25 @@ public Builder mergeFrom( } // finally 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; @@ -536,20 +582,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 { @@ -557,28 +604,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } actionUri_ = value; bitField0_ |= 0x00000001; 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() { @@ -588,17 +642,21 @@ public Builder clearActionUri() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setActionUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); actionUri_ = value; bitField0_ |= 0x00000001; @@ -608,6 +666,7 @@ public Builder setActionUriBytes( private com.google.protobuf.LazyStringArrayList fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFieldsIsMutable() { if (!fields_.isModifiable()) { fields_ = new com.google.protobuf.LazyStringArrayList(fields_); @@ -615,35 +674,43 @@ private void ensureFieldsIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * ! 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() { fields_.makeImmutable(); 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. */ @@ -651,31 +718,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFieldsIsMutable(); fields_.set(index, value); bitField0_ |= 0x00000002; @@ -683,17 +756,21 @@ public Builder setFields( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureFieldsIsMutable(); fields_.add(value); bitField0_ |= 0x00000002; @@ -701,50 +778,58 @@ public Builder addFields( 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_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * ! The names of form fields related to the vulnerability.
      * 
* * repeated string fields = 2; + * * @return This builder for chaining. */ public Builder clearFields() { - fields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + fields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureFieldsIsMutable(); fields_.add(value); @@ -752,9 +837,9 @@ public Builder addFieldsBytes( 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); } @@ -764,12 +849,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(); } @@ -778,27 +863,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +898,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Form getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java index 991f84ae23c8..64827b16614d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FormOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java similarity index 63% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java index b91bbacb299a..c4929ed65170 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +325,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(); } @@ -314,13 +347,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result = + new com.google.cloud.websecurityscanner.v1beta.GetFindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.GetFindingRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,38 +368,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetFinding 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; @@ -370,7 +408,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_; bitField0_ |= 0x00000001; @@ -402,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +464,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +495,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 { @@ -471,32 +521,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +567,34 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +604,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(); } @@ -551,27 +619,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetFindingRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java new file mode 100644 index 000000000000..2d30faad19fc --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java index ddfa11e37903..4b6047d7f42f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,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_); } @@ -129,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +323,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(); } @@ -312,13 +345,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.GetScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,46 +366,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetScanCon 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_; bitField0_ |= 0x00000001; @@ -400,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +493,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 { @@ -467,30 +518,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +562,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,41 +598,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +646,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java new file mode 100644 index 000000000000..520049fa6bd6 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java similarity index 63% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java index 2b0d7dde8bd0..f7e609310c82 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +325,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(); } @@ -314,13 +347,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result = + new com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,38 +368,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.GetScanRun 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; @@ -370,7 +408,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_; bitField0_ |= 0x00000001; @@ -402,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +464,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +495,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 { @@ -471,32 +521,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +567,34 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +604,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(); } @@ -551,27 +619,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.GetScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..0fa63259e3ba --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java similarity index 66% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java index 57746757692d..e414bbd60322 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,35 +44,42 @@ private ListCrawledUrlsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -63,31 +88,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 { @@ -96,9 +123,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -106,6 +136,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -114,14 +145,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.
@@ -129,16 +161,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 { @@ -149,6 +180,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of CrawledUrls to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -156,6 +189,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -164,6 +198,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +210,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_); } @@ -202,8 +236,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,19 +246,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -249,131 +280,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -385,13 +423,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(); } @@ -406,13 +445,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -429,46 +472,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListCrawle 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_; bitField0_ |= 0x00000001; @@ -508,27 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -538,24 +589,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -564,22 +620,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 { @@ -587,32 +646,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -622,19 +692,25 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -644,6 +720,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.
@@ -651,13 +729,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; @@ -666,6 +744,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.
@@ -673,15 +753,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 { @@ -689,6 +768,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.
@@ -696,18 +777,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -715,6 +800,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -724,6 +810,8 @@ public Builder clearPageToken() { 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.
@@ -731,12 +819,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -744,8 +834,10 @@ public Builder setPageTokenBytes( 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
@@ -753,6 +845,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -760,6 +853,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
@@ -767,6 +862,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -778,6 +874,8 @@ public Builder setPageSize(int value) { 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
@@ -785,6 +883,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -793,9 +892,9 @@ public Builder clearPageSize() { 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); } @@ -805,41 +904,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,9 +952,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java index 765f81fcd99e..081ce172e598 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java index 3f05d3e9f08f..1b31997f1d8c 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListCrawledUrlsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCrawledUrlsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List crawledUrls_; /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -55,10 +77,13 @@ protected java.lang.Object newInstance( * 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.
    * 
@@ -66,11 +91,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.
    * 
@@ -82,6 +109,8 @@ public int getCrawledUrlsCount() { return crawledUrls_.size(); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -93,6 +122,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int return crawledUrls_.get(index); } /** + * + * *
    * The list of CrawledUrls returned.
    * 
@@ -106,15 +137,19 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +158,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 { @@ -155,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +202,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)); } @@ -184,8 +219,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_); @@ -198,17 +232,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +265,138 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,14 +413,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 @@ -394,14 +436,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { if (crawledUrlsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { crawledUrls_ = java.util.Collections.unmodifiableList(crawledUrls_); @@ -413,7 +459,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1be } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +471,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListCrawle 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()) { @@ -482,9 +534,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_); } @@ -521,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1beta.CrawledUrl m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), - extensionRegistry); - if (crawledUrlsBuilder_ == null) { - ensureCrawledUrlsIsMutable(); - crawledUrls_.add(m); - } else { - crawledUrlsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1beta.CrawledUrl m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.CrawledUrl.parser(), + extensionRegistry); + if (crawledUrlsBuilder_ == null) { + ensureCrawledUrlsIsMutable(); + crawledUrls_.add(m); + } else { + crawledUrlsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,28 +610,38 @@ public Builder mergeFrom( } // finally 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 { @@ -583,6 +649,8 @@ public java.util.List get } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -597,6 +665,8 @@ public int getCrawledUrlsCount() { } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -611,6 +681,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl getCrawledUrls(int } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -632,6 +704,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -650,6 +724,8 @@ public Builder setCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -670,6 +746,8 @@ public Builder addCrawledUrls(com.google.cloud.websecurityscanner.v1beta.Crawled return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -691,6 +769,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -709,6 +789,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -727,6 +809,8 @@ public Builder addCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -734,11 +818,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); @@ -746,6 +830,8 @@ public Builder addAllCrawledUrls( return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -763,6 +849,8 @@ public Builder clearCrawledUrls() { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -780,6 +868,8 @@ public Builder removeCrawledUrls(int index) { return this; } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -791,6 +881,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrl.Builder getCrawledU return getCrawledUrlsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -800,19 +892,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 { @@ -820,6 +915,8 @@ public com.google.cloud.websecurityscanner.v1beta.CrawledUrlOrBuilder getCrawled } } /** + * + * *
      * The list of CrawledUrls returned.
      * 
@@ -827,10 +924,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.
      * 
@@ -839,30 +938,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_; @@ -870,19 +975,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; @@ -891,21 +998,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 { @@ -913,30 +1021,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1061,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1095,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1143,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java index 0f79126ae26b..162f9656fb39 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListCrawledUrlsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java similarity index 60% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java index 07fdbada1c78..c8dcb2d829eb 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getParent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,19 +327,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); } @@ -314,13 +351,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -331,46 +372,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindin 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_; bitField0_ |= 0x00000001; @@ -402,17 +448,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +470,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +501,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 { @@ -471,32 +527,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +573,34 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,41 +610,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,9 +658,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java new file mode 100644 index 000000000000..3a4ee57ad30b --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java similarity index 59% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java index 239e705067fb..96593b95a714 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponse.java @@ -1,110 +1,150 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") - 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; @@ -116,8 +156,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)); } @@ -131,8 +170,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -142,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.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -172,131 +210,139 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -312,19 +358,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); } @@ -333,14 +382,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { if (findingTypeStatsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findingTypeStats_ = java.util.Collections.unmodifiableList(findingTypeStats_); @@ -352,7 +405,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1be } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse result) { int from_bitField0_ = bitField0_; } @@ -360,46 +414,52 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindin 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()) { @@ -418,9 +478,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_); } @@ -452,25 +513,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), - extensionRegistry); - if (findingTypeStatsBuilder_ == null) { - ensureFindingTypeStatsIsMutable(); - findingTypeStats_.add(m); - } else { - findingTypeStatsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.FindingTypeStats.parser(), + extensionRegistry); + if (findingTypeStatsBuilder_ == null) { + ensureFindingTypeStatsIsMutable(); + findingTypeStats_.add(m); + } else { + findingTypeStatsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -480,28 +543,40 @@ public Builder mergeFrom( } // finally 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 { @@ -509,11 +584,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) { @@ -523,13 +602,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 { @@ -537,11 +621,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) { @@ -558,14 +646,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()); @@ -576,13 +669,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(); @@ -596,11 +694,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) { @@ -617,11 +719,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) { @@ -635,14 +741,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()); @@ -653,18 +764,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); @@ -672,11 +787,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) { @@ -689,11 +808,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) { @@ -706,39 +829,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 { @@ -746,45 +883,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(), @@ -793,9 +952,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); } @@ -805,41 +964,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -851,9 +1013,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java index c11e2fafc4d5..240551de1277 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsResponseOrBuilder.java @@ -1,52 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java index a37706c8e19f..e2b0c5602685 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,35 +45,42 @@ private ListFindingsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -64,31 +89,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 { @@ -97,9 +124,12 @@ public java.lang.String getParent() { } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Required. The filter expression. The expression must be in the format: <field>
    * <operator> <value>.
@@ -108,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -116,14 +147,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>.
@@ -132,16 +164,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 { @@ -150,9 +181,12 @@ public java.lang.String getFilter() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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.
@@ -160,6 +194,7 @@ public java.lang.String getFilter() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -168,14 +203,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.
@@ -183,16 +219,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 { @@ -203,6 +238,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** + * + * *
    * The maximum number of Findings to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -210,6 +247,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -218,6 +256,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +268,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_); } @@ -262,8 +300,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,21 +310,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,131 +347,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -450,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_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(); } @@ -471,13 +511,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -497,38 +541,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindin 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; @@ -536,7 +581,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_; bitField0_ |= 0x00000001; @@ -581,32 +628,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -616,24 +668,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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,22 +699,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 { @@ -665,32 +725,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -700,19 +771,25 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -722,6 +799,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -730,13 +809,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; @@ -745,6 +824,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -753,15 +834,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 { @@ -769,6 +849,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -777,18 +859,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -797,6 +883,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -806,6 +893,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. The filter expression. The expression must be in the format: <field>
      * <operator> <value>.
@@ -814,12 +903,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -829,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.
@@ -836,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; @@ -851,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.
@@ -858,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 { @@ -874,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.
@@ -881,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; 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.
@@ -900,6 +1000,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -909,6 +1010,8 @@ public Builder clearPageToken() { 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.
@@ -916,12 +1019,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -929,8 +1034,10 @@ public Builder setPageTokenBytes( 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
@@ -938,6 +1045,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 4; + * * @return The pageSize. */ @java.lang.Override @@ -945,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
@@ -952,6 +1062,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 4; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -963,6 +1074,8 @@ public Builder setPageSize(int value) { 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
@@ -970,6 +1083,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -978,9 +1092,9 @@ public Builder clearPageSize() { 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); } @@ -990,41 +1104,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,9 +1152,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java index 975732f56d22..9e22435dcf1e 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java index b2f289ed40f6..63b53fd7c765 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListFindingsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFindingsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List findings_; /** + * + * *
    * The list of Findings returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getFin return findings_; } /** + * + * *
    * The list of Findings returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getFindingsCount() { return findings_.size(); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) return findings_.get(index); } /** + * + * *
    * The list of Findings returned.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +157,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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,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)); } @@ -184,8 +218,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_); @@ -198,17 +231,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,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(); } @@ -394,14 +432,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { if (findingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { findings_ = java.util.Collections.unmodifiableList(findings_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1be } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +467,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListFindin 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()) { @@ -482,9 +529,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_); } @@ -521,30 +569,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1beta.Finding m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.Finding.parser(), - extensionRegistry); - if (findingsBuilder_ == null) { - ensureFindingsIsMutable(); - findings_.add(m); - } else { - findingsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1beta.Finding m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.Finding.parser(), + extensionRegistry); + if (findingsBuilder_ == null) { + ensureFindingsIsMutable(); + findings_.add(m); + } else { + findingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +605,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +642,8 @@ public java.util.List getFin } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -597,6 +658,8 @@ public int getFindingsCount() { } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -611,6 +674,8 @@ public com.google.cloud.websecurityscanner.v1beta.Finding getFindings(int index) } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -632,6 +697,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -650,6 +717,8 @@ public Builder setFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -670,6 +739,8 @@ public Builder addFindings(com.google.cloud.websecurityscanner.v1beta.Finding va return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -691,6 +762,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -709,6 +782,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -727,6 +802,8 @@ public Builder addFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -737,8 +814,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); @@ -746,6 +822,8 @@ public Builder addAllFindings( return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -763,6 +841,8 @@ public Builder clearFindings() { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -780,6 +860,8 @@ public Builder removeFindings(int index) { return this; } /** + * + * *
      * The list of Findings returned.
      * 
@@ -791,6 +873,8 @@ public com.google.cloud.websecurityscanner.v1beta.Finding.Builder getFindingsBui return getFindingsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Findings returned.
      * 
@@ -800,19 +884,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 { @@ -820,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1beta.FindingOrBuilder getFindingsOr } } /** + * + * *
      * The list of Findings returned.
      * 
@@ -827,10 +916,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.
      * 
@@ -839,30 +930,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_; @@ -870,19 +967,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; @@ -891,21 +990,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 { @@ -913,30 +1013,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1053,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1087,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1135,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java index 731383beee96..797009b6657c 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java index e29573be7a9b..f05fec5d069e 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +44,41 @@ private ListScanConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,30 +87,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 { @@ -94,9 +121,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -104,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -112,14 +143,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.
@@ -127,16 +159,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 { @@ -147,6 +178,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of ScanConfigs to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -154,6 +187,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -162,6 +196,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +208,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_); } @@ -200,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,131 +278,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,13 +421,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(); } @@ -404,13 +443,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -427,46 +470,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanCo 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_; bitField0_ |= 0x00000001; @@ -506,27 +553,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,23 +587,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -561,21 +617,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 { @@ -583,30 +642,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -616,18 +686,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -637,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.
@@ -644,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; @@ -659,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.
@@ -666,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 { @@ -682,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.
@@ -689,18 +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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -708,6 +793,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -717,6 +803,8 @@ public Builder clearPageToken() { 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.
@@ -724,12 +812,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -737,8 +827,10 @@ public Builder setPageTokenBytes( 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
@@ -746,6 +838,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -753,6 +846,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
@@ -760,6 +855,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -771,6 +867,8 @@ public Builder setPageSize(int value) { 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
@@ -778,6 +876,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -786,9 +885,9 @@ public Builder clearPageSize() { 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); } @@ -798,41 +897,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,9 +945,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java index ba39d379631e..3ed7076b90cb 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java index 3091152bcd9d..301c43873237 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListScanConfigsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanConfigsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List scanConfigs_; /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -55,10 +77,13 @@ protected java.lang.Object newInstance( * 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.
    * 
@@ -66,11 +91,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.
    * 
@@ -82,6 +109,8 @@ public int getScanConfigsCount() { return scanConfigs_.size(); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -93,6 +122,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int return scanConfigs_.get(index); } /** + * + * *
    * The list of ScanConfigs returned.
    * 
@@ -106,15 +137,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +158,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 { @@ -155,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +202,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)); } @@ -184,8 +219,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_); @@ -198,17 +232,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +265,138 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,14 +413,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 @@ -394,14 +436,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { if (scanConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanConfigs_ = java.util.Collections.unmodifiableList(scanConfigs_); @@ -413,7 +459,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1be } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +471,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanCo 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()) { @@ -482,9 +534,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_); } @@ -521,30 +574,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1beta.ScanConfig m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), - extensionRegistry); - if (scanConfigsBuilder_ == null) { - ensureScanConfigsIsMutable(); - scanConfigs_.add(m); - } else { - scanConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1beta.ScanConfig m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.parser(), + extensionRegistry); + if (scanConfigsBuilder_ == null) { + ensureScanConfigsIsMutable(); + scanConfigs_.add(m); + } else { + scanConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,28 +610,38 @@ public Builder mergeFrom( } // finally 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 { @@ -583,6 +649,8 @@ public java.util.List get } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -597,6 +665,8 @@ public int getScanConfigsCount() { } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -611,6 +681,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig getScanConfigs(int } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -632,6 +704,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -650,6 +724,8 @@ public Builder setScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -670,6 +746,8 @@ public Builder addScanConfigs(com.google.cloud.websecurityscanner.v1beta.ScanCon return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -691,6 +769,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -709,6 +789,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -727,6 +809,8 @@ public Builder addScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -734,11 +818,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); @@ -746,6 +830,8 @@ public Builder addAllScanConfigs( return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -763,6 +849,8 @@ public Builder clearScanConfigs() { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -780,6 +868,8 @@ public Builder removeScanConfigs(int index) { return this; } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -791,6 +881,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf return getScanConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -800,19 +892,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 { @@ -820,6 +915,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigOrBuilder getScanCon } } /** + * + * *
      * The list of ScanConfigs returned.
      * 
@@ -827,10 +924,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.
      * 
@@ -839,30 +938,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_; @@ -870,19 +975,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; @@ -891,21 +998,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 { @@ -913,30 +1021,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1061,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1095,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1143,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java index 845e712e46e9..fdef73559355 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java index f1ffc645de4f..bbf7bc117f28 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +44,41 @@ private ListScanRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsRequest(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,30 +87,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 { @@ -94,9 +121,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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.
@@ -104,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2; + * * @return The pageToken. */ @java.lang.Override @@ -112,14 +143,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.
@@ -127,16 +159,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 { @@ -147,6 +178,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * The maximum number of ScanRuns to return, can be limited by server.
    * If not specified or not positive, the implementation will select a
@@ -154,6 +187,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -162,6 +196,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +208,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_); } @@ -200,8 +234,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,19 +244,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,131 +278,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -383,13 +419,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(); } @@ -404,13 +441,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result = + new com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -427,38 +468,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanRu 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; @@ -466,7 +508,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_; bitField0_ |= 0x00000001; @@ -506,27 +550,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -536,23 +584,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -561,21 +614,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 { @@ -583,30 +639,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; 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() { @@ -616,18 +683,24 @@ public Builder clearParent() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -637,6 +710,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.
@@ -644,13 +719,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; @@ -659,6 +734,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.
@@ -666,15 +743,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 { @@ -682,6 +758,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.
@@ -689,18 +767,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000002; 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.
@@ -708,6 +790,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -717,6 +800,8 @@ public Builder clearPageToken() { 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.
@@ -724,12 +809,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000002; @@ -737,8 +824,10 @@ public Builder setPageTokenBytes( 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
@@ -746,6 +835,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3; + * * @return The pageSize. */ @java.lang.Override @@ -753,6 +843,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
@@ -760,6 +852,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -771,6 +864,8 @@ public Builder setPageSize(int value) { 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
@@ -778,6 +873,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -786,9 +882,9 @@ public Builder clearPageSize() { 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); } @@ -798,41 +894,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,9 +942,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java index a02571fa7cbb..246ad67a029c 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java index 624585b05d7c..bf73be4eba8c 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,28 +44,32 @@ private ListScanRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListScanRunsResponse(); } - 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; + @SuppressWarnings("serial") private java.util.List scanRuns_; /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -59,6 +81,8 @@ public java.util.List getSca return scanRuns_; } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getScanRunsCount() { return scanRuns_.size(); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -93,6 +121,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) return scanRuns_.get(index); } /** + * + * *
    * The list of ScanRuns returned.
    * 
@@ -106,15 +136,19 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -123,30 +157,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 { @@ -155,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +201,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)); } @@ -184,8 +218,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_); @@ -198,17 +231,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,131 +264,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,13 +410,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(); } @@ -394,14 +432,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { if (scanRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { scanRuns_ = java.util.Collections.unmodifiableList(scanRuns_); @@ -413,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1be } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ListScanRunsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -424,46 +467,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ListScanRu 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()) { @@ -482,9 +529,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_); } @@ -521,30 +569,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1beta.ScanRun m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), - extensionRegistry); - if (scanRunsBuilder_ == null) { - ensureScanRunsIsMutable(); - scanRuns_.add(m); - } else { - scanRunsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1beta.ScanRun m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.ScanRun.parser(), + extensionRegistry); + if (scanRunsBuilder_ == null) { + ensureScanRunsIsMutable(); + scanRuns_.add(m); + } else { + scanRunsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,21 +605,29 @@ public Builder mergeFrom( } // finally 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.
      * 
@@ -583,6 +642,8 @@ public java.util.List getSca } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -597,6 +658,8 @@ public int getScanRunsCount() { } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -611,6 +674,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getScanRuns(int index) } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -632,6 +697,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -650,6 +717,8 @@ public Builder setScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -670,6 +739,8 @@ public Builder addScanRuns(com.google.cloud.websecurityscanner.v1beta.ScanRun va return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -691,6 +762,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -709,6 +782,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -727,6 +802,8 @@ public Builder addScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -737,8 +814,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); @@ -746,6 +822,8 @@ public Builder addAllScanRuns( return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -763,6 +841,8 @@ public Builder clearScanRuns() { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -780,6 +860,8 @@ public Builder removeScanRuns(int index) { return this; } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -791,6 +873,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getScanRunsBui return getScanRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -800,19 +884,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 { @@ -820,6 +907,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getScanRunsOr } } /** + * + * *
      * The list of ScanRuns returned.
      * 
@@ -827,10 +916,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.
      * 
@@ -839,30 +930,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_; @@ -870,19 +967,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; @@ -891,21 +990,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 { @@ -913,30 +1013,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -946,27 +1053,31 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -976,41 +1087,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1022,9 +1135,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java index f84d198f652b..b52d575bde5e 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListScanRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java index 33185610db2f..68a9723f4114 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibrary.java @@ -1,60 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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_ = ""; - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OutdatedLibrary(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object libraryName_ = ""; /** + * + * *
    * The name of the outdated library.
    * 
* * string library_name = 1; + * * @return The libraryName. */ @java.lang.Override @@ -63,29 +85,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 { @@ -94,14 +116,18 @@ public java.lang.String getLibraryName() { } public static final int VERSION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object version_ = ""; /** + * + * *
    * The version number.
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -110,29 +136,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 { @@ -141,38 +167,47 @@ public java.lang.String getVersion() { } public static final int LEARN_MORE_URLS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -180,20 +215,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; @@ -205,8 +243,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_); } @@ -247,19 +284,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,146 +320,150 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; libraryName_ = ""; version_ = ""; - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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 @@ -443,8 +482,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary result = + new com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -467,38 +509,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.OutdatedLi 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; @@ -506,7 +549,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_; bitField0_ |= 0x00000001; @@ -553,28 +597,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - libraryName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLearnMoreUrlsIsMutable(); - learnMoreUrls_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + libraryName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLearnMoreUrlsIsMutable(); + learnMoreUrls_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -584,22 +632,25 @@ public Builder mergeFrom( } // finally 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; @@ -608,20 +659,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 { @@ -629,28 +681,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLibraryName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } libraryName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The name of the outdated library.
      * 
* * string library_name = 1; + * * @return This builder for chaining. */ public Builder clearLibraryName() { @@ -660,17 +719,21 @@ public Builder clearLibraryName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLibraryNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); libraryName_ = value; bitField0_ |= 0x00000001; @@ -680,18 +743,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; @@ -700,20 +765,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 { @@ -721,28 +787,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } version_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The version number.
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { @@ -752,17 +825,21 @@ public Builder clearVersion() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); version_ = value; bitField0_ |= 0x00000002; @@ -772,6 +849,7 @@ public Builder setVersionBytes( private com.google.protobuf.LazyStringArrayList learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLearnMoreUrlsIsMutable() { if (!learnMoreUrls_.isModifiable()) { learnMoreUrls_ = new com.google.protobuf.LazyStringArrayList(learnMoreUrls_); @@ -779,35 +857,43 @@ private void ensureLearnMoreUrlsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * 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() { learnMoreUrls_.makeImmutable(); 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. */ @@ -815,31 +901,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLearnMoreUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.set(index, value); bitField0_ |= 0x00000004; @@ -847,17 +939,21 @@ public Builder setLearnMoreUrls( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addLearnMoreUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); bitField0_ |= 0x00000004; @@ -865,50 +961,58 @@ public Builder addLearnMoreUrls( 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_); bitField0_ |= 0x00000004; 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() { - learnMoreUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + learnMoreUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addLearnMoreUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLearnMoreUrlsIsMutable(); learnMoreUrls_.add(value); @@ -916,9 +1020,9 @@ public Builder addLearnMoreUrlsBytes( 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); } @@ -928,12 +1032,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(); } @@ -942,27 +1046,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,6 +1081,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.OutdatedLibrary getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java index 68ad3f2f1e80..b2b68debfe62 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/OutdatedLibraryOrBuilder.java @@ -1,90 +1,126 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ProjectName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java similarity index 66% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java index 891226b7a719..4ccfb62db9d2 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfig.java @@ -1,32 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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_ = ""; - startingUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); userAgent_ = 0; - blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); targetPlatforms_ = java.util.Collections.emptyList(); exportToSecurityCommandCenter_ = 0; riskLevel_ = 0; @@ -34,34 +50,38 @@ private ScanConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ScanConfig(); } - 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.
      * 
@@ -70,6 +90,8 @@ public enum UserAgent */ USER_AGENT_UNSPECIFIED(0), /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -78,6 +100,8 @@ public enum UserAgent */ CHROME_LINUX(1), /** + * + * *
      * Chrome on Android.
      * 
@@ -86,6 +110,8 @@ public enum UserAgent */ CHROME_ANDROID(2), /** + * + * *
      * Safari on IPhone.
      * 
@@ -97,6 +123,8 @@ public enum UserAgent ; /** + * + * *
      * The user agent is unknown. Service will default to CHROME_LINUX.
      * 
@@ -105,6 +133,8 @@ public enum UserAgent */ public static final int USER_AGENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Chrome on Linux. This is the service default if unspecified.
      * 
@@ -113,6 +143,8 @@ public enum UserAgent */ public static final int CHROME_LINUX_VALUE = 1; /** + * + * *
      * Chrome on Android.
      * 
@@ -121,6 +153,8 @@ public enum UserAgent */ public static final int CHROME_ANDROID_VALUE = 2; /** + * + * *
      * Safari on IPhone.
      * 
@@ -129,7 +163,6 @@ public enum UserAgent */ public static final int SAFARI_IPHONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -154,50 +187,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; @@ -215,15 +251,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.
@@ -233,6 +272,8 @@ public enum TargetPlatform
      */
     TARGET_PLATFORM_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -241,6 +282,8 @@ public enum TargetPlatform */ APP_ENGINE(1), /** + * + * *
      * Google Compute Engine service.
      * 
@@ -252,6 +295,8 @@ public enum TargetPlatform ; /** + * + * *
      * The target platform is unknown. Requests with this enum value will be
      * rejected with INVALID_ARGUMENT error.
@@ -261,6 +306,8 @@ public enum TargetPlatform
      */
     public static final int TARGET_PLATFORM_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Google App Engine service.
      * 
@@ -269,6 +316,8 @@ public enum TargetPlatform */ public static final int APP_ENGINE_VALUE = 1; /** + * + * *
      * Google Compute Engine service.
      * 
@@ -277,7 +326,6 @@ public enum TargetPlatform */ public static final int COMPUTE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -302,49 +350,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; @@ -362,6 +412,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
@@ -370,9 +422,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.
      * 
@@ -381,6 +434,8 @@ public enum RiskLevel */ RISK_LEVEL_UNSPECIFIED(0), /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -389,6 +444,8 @@ public enum RiskLevel */ NORMAL(1), /** + * + * *
      * Lower impact scanning
      * 
@@ -400,6 +457,8 @@ public enum RiskLevel ; /** + * + * *
      * Use default, which is NORMAL.
      * 
@@ -408,6 +467,8 @@ public enum RiskLevel */ public static final int RISK_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Normal scanning (Recommended)
      * 
@@ -416,6 +477,8 @@ public enum RiskLevel */ public static final int NORMAL_VALUE = 1; /** + * + * *
      * Lower impact scanning
      * 
@@ -424,7 +487,6 @@ public enum RiskLevel */ public static final int LOW_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -449,49 +511,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; @@ -509,16 +573,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.
      * 
@@ -527,6 +595,8 @@ public enum ExportToSecurityCommandCenter */ EXPORT_TO_SECURITY_COMMAND_CENTER_UNSPECIFIED(0), /** + * + * *
      * Export results of this scan to Cloud Security Command Center.
      * 
@@ -535,6 +605,8 @@ public enum ExportToSecurityCommandCenter */ ENABLED(1), /** + * + * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -546,6 +618,8 @@ public enum ExportToSecurityCommandCenter ; /** + * + * *
      * Use default, which is ENABLED.
      * 
@@ -554,6 +628,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.
      * 
@@ -562,6 +638,8 @@ public enum ExportToSecurityCommandCenter */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * Do not export results of this scan to Cloud Security Command Center.
      * 
@@ -570,7 +648,6 @@ public enum ExportToSecurityCommandCenter */ public static final int DISABLED_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -595,10 +672,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; } } @@ -606,29 +687,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(); @@ -636,8 +719,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; @@ -654,167 +736,223 @@ 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(); - com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.AuthenticationCase getAuthenticationCase(); + 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(); } - 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_ = ""; @@ -822,33 +960,40 @@ private GoogleAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GoogleAccount(); } - 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; + @SuppressWarnings("serial") 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 @@ -857,29 +1002,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 { @@ -888,15 +1033,21 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -905,30 +1056,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 { @@ -937,6 +1090,7 @@ public java.lang.String getPassword() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -948,8 +1102,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_); } @@ -979,17 +1132,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1010,90 +1165,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) 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 @@ -1103,39 +1284,46 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1146,19 +1334,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); } @@ -1166,14 +1358,22 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.GoogleAccount + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -1187,46 +1387,57 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig 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_; bitField0_ |= 0x00000001; @@ -1263,22 +1474,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1288,22 +1502,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -1312,20 +1529,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 { @@ -1333,28 +1551,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -1364,17 +1589,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -1384,19 +1613,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; @@ -1405,21 +1638,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 { @@ -1427,30 +1663,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -1460,24 +1707,31 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1490,41 +1744,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1536,94 +1797,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_ = ""; @@ -1632,33 +1917,40 @@ private CustomAccount() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CustomAccount(); } - 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; + @SuppressWarnings("serial") 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 @@ -1667,29 +1959,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 { @@ -1698,15 +1990,21 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -1715,30 +2013,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 { @@ -1747,14 +2047,18 @@ public java.lang.String getPassword() { } public static final int LOGIN_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") 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 @@ -1763,29 +2067,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 { @@ -1794,6 +2098,7 @@ public java.lang.String getLoginUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1805,8 +2110,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_); } @@ -1842,19 +2146,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1877,90 +2182,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 @@ -1970,39 +2301,46 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2014,19 +2352,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); } @@ -2034,14 +2376,22 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + 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); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.CustomAccount + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.username_ = username_; @@ -2058,46 +2408,57 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig 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_; bitField0_ |= 0x00000001; @@ -2139,27 +2500,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - loginUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + loginUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2169,22 +2534,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -2193,20 +2561,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 { @@ -2214,28 +2583,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000001; 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() { @@ -2245,17 +2621,21 @@ public Builder clearUsername() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000001; @@ -2265,19 +2645,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; @@ -2286,21 +2670,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 { @@ -2308,30 +2695,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000002; 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() { @@ -2341,18 +2739,24 @@ public Builder clearPassword() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000002; @@ -2362,18 +2766,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; @@ -2382,20 +2788,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 { @@ -2403,28 +2810,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLoginUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } loginUrl_ = value; bitField0_ |= 0x00000004; 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() { @@ -2434,23 +2848,28 @@ public Builder clearLoginUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setLoginUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); loginUrl_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2463,41 +2882,48 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2509,22 +2935,26 @@ 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; + @SuppressWarnings("serial") 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; } @@ -2540,30 +2970,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 @@ -2571,42 +3009,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 @@ -2614,36 +3073,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; @@ -2655,13 +3131,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_); } getUnknownFields().writeTo(output); } @@ -2673,12 +3154,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2688,22 +3175,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: @@ -2737,89 +3223,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 @@ -2829,39 +3321,42 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2878,19 +3373,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); } @@ -2899,26 +3397,29 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { + private void buildPartialOneofs( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication result) { result.authenticationCase_ = authenticationCase_; result.authentication_ = this.authentication_; - if (authenticationCase_ == 1 && - googleAccountBuilder_ != null) { + if (authenticationCase_ == 1 && googleAccountBuilder_ != null) { result.authentication_ = googleAccountBuilder_.build(); } - if (authenticationCase_ == 2 && - customAccountBuilder_ != null) { + if (authenticationCase_ == 2 && customAccountBuilder_ != null) { result.authentication_ = customAccountBuilder_.build(); } } @@ -2927,58 +3428,68 @@ private void buildPartialOneofs(com.google.cloud.websecurityscanner.v1beta.ScanC 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.getUnknownFields()); onChanged(); @@ -3006,26 +3517,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGoogleAccountFieldBuilder().getBuilder(), - extensionRegistry); - authenticationCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomAccountFieldBuilder().getBuilder(), - extensionRegistry); - authenticationCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGoogleAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomAccountFieldBuilder().getBuilder(), extensionRegistry); + authenticationCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3035,12 +3545,12 @@ public Builder mergeFrom( } // finally 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() { @@ -3053,13 +3563,23 @@ public Builder clearAuthentication() { private int bitField0_; 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 @@ -3067,35 +3587,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(); @@ -3109,14 +3645,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(); @@ -3127,18 +3668,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; } @@ -3154,11 +3709,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) { @@ -3177,50 +3736,83 @@ 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; @@ -3231,13 +3823,23 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Goog } 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 @@ -3245,35 +3847,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(); @@ -3287,14 +3905,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(); @@ -3305,18 +3928,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; } @@ -3332,11 +3969,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) { @@ -3355,50 +3996,83 @@ 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; @@ -3407,6 +4081,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.Cust onChanged(); return customAccountBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3419,41 +4094,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3465,17 +4143,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
@@ -3484,10 +4165,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
@@ -3496,10 +4180,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
@@ -3512,57 +4199,65 @@ 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(); } - 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
@@ -3571,6 +4266,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ @java.lang.Override @@ -3578,6 +4274,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
@@ -3586,13 +4284,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
@@ -3604,17 +4307,22 @@ public com.google.protobuf.Timestamp getScheduleTime() {
      */
     @java.lang.Override
     public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() {
-      return scheduleTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduleTime_;
+      return scheduleTime_ == null
+          ? com.google.protobuf.Timestamp.getDefaultInstance()
+          : scheduleTime_;
     }
 
     public static final int INTERVAL_DURATION_DAYS_FIELD_NUMBER = 2;
     private int intervalDurationDays_ = 0;
     /**
+     *
+     *
      * 
      * 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 @@ -3623,6 +4331,7 @@ public int getIntervalDurationDays() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3634,8 +4343,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()); } @@ -3652,12 +4360,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3667,20 +4373,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3704,89 +4409,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 @@ -3796,39 +4506,41 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3843,13 +4555,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(); } @@ -3864,18 +4577,21 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result = + new com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scheduleTime_ = scheduleTimeBuilder_ == null - ? scheduleTime_ - : scheduleTimeBuilder_.build(); + result.scheduleTime_ = + scheduleTimeBuilder_ == null ? scheduleTime_ : scheduleTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.intervalDurationDays_ = intervalDurationDays_; @@ -3886,46 +4602,52 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig 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()); } @@ -3958,24 +4680,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getScheduleTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - intervalDurationDays_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + intervalDurationDays_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3985,12 +4708,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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
@@ -3999,12 +4728,15 @@ public Builder mergeFrom(
        * 
* * .google.protobuf.Timestamp schedule_time = 1; + * * @return Whether the scheduleTime field is set. */ public boolean hasScheduleTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * 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
@@ -4013,16 +4745,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
@@ -4046,6 +4783,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
@@ -4055,8 +4794,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();
         } else {
@@ -4067,6 +4805,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
@@ -4078,9 +4818,9 @@ public Builder setScheduleTime(
        */
       public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) {
         if (scheduleTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            scheduleTime_ != null &&
-            scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && scheduleTime_ != null
+              && scheduleTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getScheduleTimeBuilder().mergeFrom(value);
           } else {
             scheduleTime_ = value;
@@ -4093,6 +4833,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
@@ -4113,6 +4855,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
@@ -4128,6 +4872,8 @@ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() {
         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
@@ -4141,11 +4887,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
@@ -4156,26 +4905,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 @@ -4183,11 +4938,14 @@ 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. */ @@ -4199,11 +4957,14 @@ public Builder setIntervalDurationDays(int value) { 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() { @@ -4212,6 +4973,7 @@ public Builder clearIntervalDurationDays() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4224,41 +4986,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4270,16 +5035,19 @@ 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; + @SuppressWarnings("serial") 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
@@ -4287,6 +5055,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule getDefault
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -4295,14 +5064,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
@@ -4310,16 +5080,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 { @@ -4328,14 +5097,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -4344,29 +5117,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 { @@ -4377,6 +5150,8 @@ public java.lang.String getDisplayName() { public static final int MAX_QPS_FIELD_NUMBER = 3; private int maxQps_ = 0; /** + * + * *
    * 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
@@ -4385,6 +5160,7 @@ public java.lang.String getDisplayName() {
    * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -4393,38 +5169,47 @@ public int getMaxQps() { } public static final int STARTING_URLS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -4432,28 +5217,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 @@ -4461,93 +5252,125 @@ 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() { - return authentication_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() : authentication_; + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.AuthenticationOrBuilder + getAuthenticationOrBuilder() { + return authentication_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance() + : authentication_; } public static final int USER_AGENT_FIELD_NUMBER = 6; 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; + * * @return The userAgent. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.forNumber(userAgent_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent getUserAgent() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.forNumber(userAgent_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.UNRECOGNIZED + : result; } public static final int BLACKLIST_PATTERNS_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -4555,28 +5378,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 @@ -4584,18 +5412,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.
    * 
@@ -4603,43 +5438,68 @@ 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() { - return schedule_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() : schedule_; + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ScheduleOrBuilder + getScheduleOrBuilder() { + return schedule_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance() + : schedule_; } public static final int TARGET_PLATFORMS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") 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) { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.forNumber(from); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.UNRECOGNIZED : result; + java.lang.Integer, + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform>() { + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform convert( + java.lang.Integer from) { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.TargetPlatform.forNumber( + 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 @@ -4647,40 +5507,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. */ @@ -4688,44 +5563,66 @@ 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_ = 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; + * + * * @return The exportToSecurityCommandCenter. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter getExportToSecurityCommandCenter() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.forNumber(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + .forNumber(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 @@ -4733,18 +5630,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.
    * 
@@ -4753,36 +5657,50 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun getLatestRun() { */ @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunOrBuilder getLatestRunOrBuilder() { - return latestRun_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() : latestRun_; + return latestRun_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance() + : latestRun_; } public static final int RISK_LEVEL_FIELD_NUMBER = 12; 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; + * * @return The riskLevel. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.forNumber(riskLevel_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel getRiskLevel() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.forNumber(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; @@ -4794,8 +5712,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_); @@ -4812,7 +5729,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++) { @@ -4828,13 +5747,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_); } getUnknownFields().writeTo(output); @@ -4853,8 +5777,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; @@ -4865,12 +5788,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; @@ -4881,32 +5804,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4916,40 +5842,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -5005,131 +5924,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5137,16 +6061,14 @@ public Builder clear() { name_ = ""; displayName_ = ""; maxQps_ = 0; - startingUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); authentication_ = null; if (authenticationBuilder_ != null) { authenticationBuilder_.dispose(); authenticationBuilder_ = null; } userAgent_ = 0; - blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); schedule_ = null; if (scheduleBuilder_ != null) { scheduleBuilder_.dispose(); @@ -5165,9 +6087,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 @@ -5186,14 +6108,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ScanConfig result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1beta.ScanConfig result) { if (((bitField0_ & 0x00000100) != 0)) { targetPlatforms_ = java.util.Collections.unmodifiableList(targetPlatforms_); bitField0_ = (bitField0_ & ~0x00000100); @@ -5217,9 +6143,8 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig result.startingUrls_ = startingUrls_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.authentication_ = authenticationBuilder_ == null - ? authentication_ - : authenticationBuilder_.build(); + result.authentication_ = + authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.userAgent_ = userAgent_; @@ -5229,17 +6154,13 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig result.blacklistPatterns_ = blacklistPatterns_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.schedule_ = scheduleBuilder_ == null - ? schedule_ - : scheduleBuilder_.build(); + result.schedule_ = scheduleBuilder_ == null ? schedule_ : scheduleBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.exportToSecurityCommandCenter_ = exportToSecurityCommandCenter_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.latestRun_ = latestRunBuilder_ == null - ? latestRun_ - : latestRunBuilder_.build(); + result.latestRun_ = latestRunBuilder_ == null ? latestRun_ : latestRunBuilder_.build(); } if (((from_bitField0_ & 0x00000800) != 0)) { result.riskLevel_ = riskLevel_; @@ -5250,38 +6171,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig 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; @@ -5289,7 +6211,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_; bitField0_ |= 0x00000001; @@ -5377,92 +6300,100 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - maxQps_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStartingUrlsIsMutable(); - startingUrls_.add(s); - break; - } // case 34 - case 42: { - input.readMessage( - getAuthenticationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - userAgent_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureBlacklistPatternsIsMutable(); - blacklistPatterns_.add(s); - break; - } // case 58 - case 66: { - input.readMessage( - getScheduleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 72: { - int tmpRaw = input.readEnum(); - ensureTargetPlatformsIsMutable(); - targetPlatforms_.add(tmpRaw); - break; - } // case 72 - case 74: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxQps_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStartingUrlsIsMutable(); + startingUrls_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage(getAuthenticationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + userAgent_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlacklistPatternsIsMutable(); + blacklistPatterns_.add(s); + break; + } // case 58 + case 66: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { int tmpRaw = input.readEnum(); ensureTargetPlatformsIsMutable(); targetPlatforms_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 74 - case 80: { - exportToSecurityCommandCenter_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - input.readMessage( - getLatestRunFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 96: { - riskLevel_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 72 + case 74: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureTargetPlatformsIsMutable(); + targetPlatforms_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 74 + case 80: + { + exportToSecurityCommandCenter_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + input.readMessage(getLatestRunFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 96: + { + riskLevel_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5472,10 +6403,13 @@ public Builder mergeFrom( } // finally 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
@@ -5483,13 +6417,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; @@ -5498,6 +6432,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
@@ -5505,15 +6441,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 { @@ -5521,6 +6456,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
@@ -5528,18 +6465,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5547,6 +6488,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -5556,6 +6498,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the ScanConfig. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are
@@ -5563,12 +6507,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -5578,18 +6524,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; @@ -5598,20 +6546,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 { @@ -5619,28 +6568,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; 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() { @@ -5650,17 +6606,21 @@ public Builder clearDisplayName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -5668,8 +6628,10 @@ public Builder setDisplayNameBytes( 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
@@ -5678,6 +6640,7 @@ public Builder setDisplayNameBytes(
      * 
* * int32 max_qps = 3; + * * @return The maxQps. */ @java.lang.Override @@ -5685,6 +6648,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
@@ -5693,6 +6658,7 @@ public int getMaxQps() {
      * 
* * int32 max_qps = 3; + * * @param value The maxQps to set. * @return This builder for chaining. */ @@ -5704,6 +6670,8 @@ public Builder setMaxQps(int value) { 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
@@ -5712,6 +6680,7 @@ public Builder setMaxQps(int value) {
      * 
* * int32 max_qps = 3; + * * @return This builder for chaining. */ public Builder clearMaxQps() { @@ -5723,6 +6692,7 @@ public Builder clearMaxQps() { private com.google.protobuf.LazyStringArrayList startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStartingUrlsIsMutable() { if (!startingUrls_.isModifiable()) { startingUrls_ = new com.google.protobuf.LazyStringArrayList(startingUrls_); @@ -5730,35 +6700,43 @@ private void ensureStartingUrlsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
      * 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() { startingUrls_.makeImmutable(); 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. */ @@ -5766,31 +6744,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStartingUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartingUrlsIsMutable(); startingUrls_.set(index, value); bitField0_ |= 0x00000008; @@ -5798,17 +6782,21 @@ public Builder setStartingUrls( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartingUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStartingUrlsIsMutable(); startingUrls_.add(value); bitField0_ |= 0x00000008; @@ -5816,50 +6804,58 @@ public Builder addStartingUrls( 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_); bitField0_ |= 0x00000008; 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() { - startingUrls_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + startingUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; 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 bytes of the startingUrls to add. * @return This builder for chaining. */ - public Builder addStartingUrlsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStartingUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStartingUrlsIsMutable(); startingUrls_.add(value); @@ -5870,44 +6866,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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(); @@ -5921,15 +6936,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(); } else { @@ -5940,18 +6959,24 @@ 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 (((bitField0_ & 0x00000010) != 0) && - authentication_ != null && - authentication_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && authentication_ != null + && authentication_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Authentication + .getDefaultInstance()) { getAuthenticationBuilder().mergeFrom(value); } else { authentication_ = value; @@ -5964,12 +6989,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() { bitField0_ = (bitField0_ & ~0x00000010); @@ -5982,51 +7010,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() { bitField0_ |= 0x00000010; 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_; @@ -6034,22 +7078,29 @@ 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. */ @@ -6060,28 +7111,38 @@ public Builder setUserAgentValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.UserAgent.forNumber(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.forNumber(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(); } @@ -6091,11 +7152,14 @@ public Builder setUserAgent(com.google.cloud.websecurityscanner.v1beta.ScanConfi 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() { @@ -6107,6 +7171,7 @@ public Builder clearUserAgent() { private com.google.protobuf.LazyStringArrayList blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureBlacklistPatternsIsMutable() { if (!blacklistPatterns_.isModifiable()) { blacklistPatterns_ = new com.google.protobuf.LazyStringArrayList(blacklistPatterns_); @@ -6114,38 +7179,46 @@ private void ensureBlacklistPatternsIsMutable() { bitField0_ |= 0x00000040; } /** + * + * *
      * 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() { blacklistPatterns_.makeImmutable(); 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. */ @@ -6153,33 +7226,39 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setBlacklistPatterns(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.set(index, value); bitField0_ |= 0x00000040; @@ -6187,18 +7266,22 @@ public Builder setBlacklistPatterns( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addBlacklistPatterns(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); bitField0_ |= 0x00000040; @@ -6206,53 +7289,61 @@ public Builder addBlacklistPatterns( 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_); bitField0_ |= 0x00000040; 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() { - blacklistPatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040);; + blacklistPatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; 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 bytes of the blacklistPatterns to add. * @return This builder for chaining. */ - public Builder addBlacklistPatternsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addBlacklistPatternsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureBlacklistPatternsIsMutable(); blacklistPatterns_.add(value); @@ -6263,41 +7354,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 ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * 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(); @@ -6311,6 +7416,8 @@ public Builder setSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConfig return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6329,17 +7436,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 (((bitField0_ & 0x00000080) != 0) && - schedule_ != null && - schedule_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && schedule_ != null + && schedule_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.Schedule + .getDefaultInstance()) { getScheduleBuilder().mergeFrom(value); } else { schedule_ = value; @@ -6352,6 +7464,8 @@ public Builder mergeSchedule(com.google.cloud.websecurityscanner.v1beta.ScanConf return this; } /** + * + * *
      * The schedule of the ScanConfig.
      * 
@@ -6369,33 +7483,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() { bitField0_ |= 0x00000080; 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.
      * 
@@ -6403,21 +7526,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_ & 0x00000100) != 0)) { targetPlatforms_ = new java.util.ArrayList(targetPlatforms_); @@ -6425,50 +7551,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. @@ -6484,16 +7633,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(); } @@ -6503,17 +7658,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()); @@ -6522,12 +7684,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() { @@ -6537,25 +7704,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. */ @@ -6563,30 +7739,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. */ @@ -6597,17 +7782,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); @@ -6618,24 +7807,35 @@ 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. */ @@ -6646,30 +7846,47 @@ public Builder setExportToSecurityCommandCenterValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.forNumber(exportToSecurityCommandCenter_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter.UNRECOGNIZED : result; + public com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + getExportToSecurityCommandCenter() { + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter result = + com.google.cloud.websecurityscanner.v1beta.ScanConfig.ExportToSecurityCommandCenter + .forNumber(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(); } @@ -6679,12 +7896,17 @@ public Builder setExportToSecurityCommandCenter(com.google.cloud.websecurityscan 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() { @@ -6696,34 +7918,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 ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * 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.
      * 
@@ -6744,6 +7979,8 @@ public Builder setLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun v return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6762,6 +7999,8 @@ public Builder setLatestRun( return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6770,9 +8009,10 @@ public Builder setLatestRun( */ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun value) { if (latestRunBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - latestRun_ != null && - latestRun_ != com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && latestRun_ != null + && latestRun_ + != com.google.cloud.websecurityscanner.v1beta.ScanRun.getDefaultInstance()) { getLatestRunBuilder().mergeFrom(value); } else { latestRun_ = value; @@ -6785,6 +8025,8 @@ public Builder mergeLatestRun(com.google.cloud.websecurityscanner.v1beta.ScanRun return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6802,6 +8044,8 @@ public Builder clearLatestRun() { return this; } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6814,6 +8058,8 @@ public com.google.cloud.websecurityscanner.v1beta.ScanRun.Builder getLatestRunBu return getLatestRunFieldBuilder().getBuilder(); } /** + * + * *
      * Latest ScanRun if available.
      * 
@@ -6824,11 +8070,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.
      * 
@@ -6836,14 +8085,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_; @@ -6851,22 +8103,29 @@ 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. */ @@ -6877,28 +8136,38 @@ public Builder setRiskLevelValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel result = com.google.cloud.websecurityscanner.v1beta.ScanConfig.RiskLevel.forNumber(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.forNumber(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(); } @@ -6908,11 +8177,14 @@ public Builder setRiskLevel(com.google.cloud.websecurityscanner.v1beta.ScanConfi 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() { @@ -6921,9 +8193,9 @@ public Builder clearRiskLevel() { 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); } @@ -6933,12 +8205,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(); } @@ -6947,27 +8219,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6982,6 +8254,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java similarity index 74% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java index bf9c10813984..86aa9aa64593 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigError.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,25 +47,28 @@ private ScanConfigError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanConfigError();
   }
 
-  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.
@@ -56,9 +77,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -67,6 +89,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.
@@ -76,6 +100,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.
@@ -85,6 +111,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.
@@ -94,6 +122,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.
@@ -103,6 +133,8 @@ public enum Code
      */
     APPENGINE_DEFAULT_HOST_MISSING(5, 4),
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -111,6 +143,8 @@ public enum Code */ CANNOT_USE_GOOGLE_COM_ACCOUNT(6, 6), /** + * + * *
      * The account of the scan creator can not be used for scanning.
      * 
@@ -119,6 +153,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.
@@ -128,6 +164,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.
@@ -137,6 +175,8 @@ public enum Code
      */
     COMPUTE_API_NOT_ACCESSIBLE(9, 9),
     /**
+     *
+     *
      * 
      * The Custom Login URL does not belong to the current project.
      * 
@@ -145,6 +185,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).
      * 
@@ -153,6 +195,8 @@ public enum Code */ CUSTOM_LOGIN_URL_MALFORMED(11, 11), /** + * + * *
      * The Custom Login URL is mapped to a non-routable IP address in DNS.
      * 
@@ -161,6 +205,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.
@@ -170,6 +216,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_MAPPED_TO_UNRESERVED_ADDRESS(13, 13),
     /**
+     *
+     *
      * 
      * The Custom Login URL has a non-routable IP address.
      * 
@@ -178,6 +226,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.
@@ -187,6 +237,8 @@ public enum Code
      */
     CUSTOM_LOGIN_URL_HAS_UNRESERVED_IP_ADDRESS(15, 15),
     /**
+     *
+     *
      * 
      * Another scan with the same name (case-sensitive) already exists.
      * 
@@ -195,6 +247,8 @@ public enum Code */ DUPLICATE_SCAN_NAME(16, 16), /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -203,6 +257,8 @@ public enum Code */ INVALID_FIELD_VALUE(17, 18), /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -211,6 +267,8 @@ public enum Code */ FAILED_TO_AUTHENTICATE_TO_TARGET(18, 19), /** + * + * *
      * Finding type value is not specified in the list findings request.
      * 
@@ -219,6 +277,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.
@@ -228,6 +288,8 @@ public enum Code
      */
     FORBIDDEN_TO_SCAN_COMPUTE(20, 21),
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -236,6 +298,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
@@ -246,6 +310,8 @@ public enum Code
      */
     MALFORMED_FILTER(22, 22),
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -254,6 +320,8 @@ public enum Code */ MALFORMED_RESOURCE_NAME(23, 23), /** + * + * *
      * The current project is not in an active state.
      * 
@@ -262,6 +330,8 @@ public enum Code */ PROJECT_INACTIVE(24, 24), /** + * + * *
      * A required field is not set.
      * 
@@ -270,6 +340,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.
@@ -279,6 +351,8 @@ public enum Code
      */
     RESOURCE_NAME_INCONSISTENT(26, 26),
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -287,6 +361,8 @@ public enum Code */ SCAN_ALREADY_RUNNING(27, 27), /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -295,6 +371,8 @@ public enum Code */ SCAN_NOT_RUNNING(28, 28), /** + * + * *
      * One of the seed URLs does not belong to the current project.
      * 
@@ -303,6 +381,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).
      * 
@@ -311,6 +391,8 @@ public enum Code */ SEED_URL_MALFORMED(30, 30), /** + * + * *
      * One of the seed URLs is mapped to a non-routable IP address in DNS.
      * 
@@ -319,6 +401,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.
@@ -328,6 +412,8 @@ public enum Code
      */
     SEED_URL_MAPPED_TO_UNRESERVED_ADDRESS(32, 32),
     /**
+     *
+     *
      * 
      * One of the seed URLs has on-routable IP address.
      * 
@@ -336,6 +422,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.
@@ -345,6 +433,8 @@ public enum Code
      */
     SEED_URL_HAS_UNRESERVED_IP_ADDRESS(34, 35),
     /**
+     *
+     *
      * 
      * The Cloud Security Scanner service account is not configured under the
      * project.
@@ -354,6 +444,8 @@ public enum Code
      */
     SERVICE_ACCOUNT_NOT_CONFIGURED(35, 36),
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -362,6 +454,8 @@ public enum Code */ TOO_MANY_SCANS(36, 37), /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -370,6 +464,8 @@ public enum Code */ UNABLE_TO_RESOLVE_PROJECT_INFO(37, 38), /** + * + * *
      * One or more blacklist patterns were in the wrong format.
      * 
@@ -378,6 +474,8 @@ public enum Code */ UNSUPPORTED_BLACKLIST_PATTERN_FORMAT(38, 39), /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -386,6 +484,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.
@@ -395,6 +495,8 @@ public enum Code
      */
     UNSUPPORTED_FINDING_TYPE(40, 41),
     /**
+     *
+     *
      * 
      * The URL scheme of one or more of the supplied URLs is not supported.
      * 
@@ -406,6 +508,8 @@ public enum Code ; /** + * + * *
      * There is no error.
      * 
@@ -414,6 +518,8 @@ public enum Code */ public static final Code OK = CODE_UNSPECIFIED; /** + * + * *
      * There is no error.
      * 
@@ -422,6 +528,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * There is no error.
      * 
@@ -430,6 +538,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.
@@ -439,6 +549,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.
@@ -448,6 +560,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.
@@ -457,6 +571,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.
@@ -466,6 +582,8 @@ public enum Code
      */
     public static final int APPENGINE_DEFAULT_HOST_MISSING_VALUE = 4;
     /**
+     *
+     *
      * 
      * Google corporate accounts can not be used for scanning.
      * 
@@ -474,6 +592,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.
      * 
@@ -482,6 +602,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.
@@ -491,6 +613,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.
@@ -500,6 +624,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.
      * 
@@ -508,6 +634,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).
      * 
@@ -516,6 +644,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.
      * 
@@ -524,6 +654,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.
@@ -533,6 +665,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.
      * 
@@ -541,6 +675,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.
@@ -550,6 +686,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.
      * 
@@ -558,6 +696,8 @@ public enum Code */ public static final int DUPLICATE_SCAN_NAME_VALUE = 16; /** + * + * *
      * A field is set to an invalid value.
      * 
@@ -566,6 +706,8 @@ public enum Code */ public static final int INVALID_FIELD_VALUE_VALUE = 18; /** + * + * *
      * There was an error trying to authenticate to the scan target.
      * 
@@ -574,6 +716,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.
      * 
@@ -582,6 +726,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.
@@ -591,6 +737,8 @@ public enum Code
      */
     public static final int FORBIDDEN_TO_SCAN_COMPUTE_VALUE = 21;
     /**
+     *
+     *
      * 
      * User tries to update managed scan
      * 
@@ -599,6 +747,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
@@ -609,6 +759,8 @@ public enum Code
      */
     public static final int MALFORMED_FILTER_VALUE = 22;
     /**
+     *
+     *
      * 
      * The supplied resource name is malformed (can not be parsed).
      * 
@@ -617,6 +769,8 @@ public enum Code */ public static final int MALFORMED_RESOURCE_NAME_VALUE = 23; /** + * + * *
      * The current project is not in an active state.
      * 
@@ -625,6 +779,8 @@ public enum Code */ public static final int PROJECT_INACTIVE_VALUE = 24; /** + * + * *
      * A required field is not set.
      * 
@@ -633,6 +789,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.
@@ -642,6 +800,8 @@ public enum Code
      */
     public static final int RESOURCE_NAME_INCONSISTENT_VALUE = 26;
     /**
+     *
+     *
      * 
      * The scan being requested to start is already running.
      * 
@@ -650,6 +810,8 @@ public enum Code */ public static final int SCAN_ALREADY_RUNNING_VALUE = 27; /** + * + * *
      * The scan that was requested to be stopped is not running.
      * 
@@ -658,6 +820,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.
      * 
@@ -666,6 +830,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).
      * 
@@ -674,6 +840,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.
      * 
@@ -682,6 +850,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.
@@ -691,6 +861,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.
      * 
@@ -699,6 +871,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.
@@ -708,6 +882,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.
@@ -717,6 +893,8 @@ public enum Code
      */
     public static final int SERVICE_ACCOUNT_NOT_CONFIGURED_VALUE = 36;
     /**
+     *
+     *
      * 
      * A project has reached the maximum number of scans.
      * 
@@ -725,6 +903,8 @@ public enum Code */ public static final int TOO_MANY_SCANS_VALUE = 37; /** + * + * *
      * Resolving the details of the current project fails.
      * 
@@ -733,6 +913,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.
      * 
@@ -741,6 +923,8 @@ public enum Code */ public static final int UNSUPPORTED_BLACKLIST_PATTERN_FORMAT_VALUE = 39; /** + * + * *
      * The supplied filter is not supported.
      * 
@@ -749,6 +933,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.
@@ -758,6 +944,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.
      * 
@@ -766,7 +954,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( @@ -791,91 +978,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; @@ -897,33 +1167,47 @@ private Code(int index, int value) { public static final int CODE_FIELD_NUMBER = 1; 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; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.forNumber(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code getCode() { + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.forNumber(code_); + return result == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.UNRECOGNIZED + : result; } public static final int FIELD_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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
@@ -932,6 +1216,7 @@ private Code(int index, int value) {
    * 
* * string field_name = 2; + * * @return The fieldName. */ @java.lang.Override @@ -940,14 +1225,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
@@ -956,16 +1242,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 { @@ -974,6 +1259,7 @@ public java.lang.String getFieldName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -985,9 +1271,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_)) { @@ -1002,9 +1289,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_); @@ -1017,16 +1305,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1048,98 +1336,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
@@ -1149,33 +1443,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1186,9 +1479,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
@@ -1207,8 +1500,11 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1beta.ScanConfigError result =
+          new com.google.cloud.websecurityscanner.v1beta.ScanConfigError(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1227,38 +1523,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanConfig
     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;
@@ -1266,7 +1563,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());
       }
@@ -1301,22 +1599,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              fieldName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                fieldName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1326,26 +1627,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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. */ @@ -1356,24 +1665,33 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code result = com.google.cloud.websecurityscanner.v1beta.ScanConfigError.Code.forNumber(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.forNumber(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. */ @@ -1387,11 +1705,14 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanConfigErro 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() { @@ -1403,6 +1724,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
@@ -1411,13 +1734,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; @@ -1426,6 +1749,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
@@ -1434,15 +1759,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 { @@ -1450,6 +1774,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
@@ -1458,18 +1784,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fieldName_ = value; bitField0_ |= 0x00000002; 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
@@ -1478,6 +1808,7 @@ public Builder setFieldName(
      * 
* * string field_name = 2; + * * @return This builder for chaining. */ public Builder clearFieldName() { @@ -1487,6 +1818,8 @@ public Builder clearFieldName() { 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
@@ -1495,21 +1828,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fieldName_ = value; bitField0_ |= 0x00000002; 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); } @@ -1519,12 +1854,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(); } @@ -1533,27 +1868,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1568,6 +1903,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanConfigError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java similarity index 68% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java index 61d24001a4fa..0a7d57154d61 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java new file mode 100644 index 000000000000..278135864b32 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java @@ -0,0 +1,107 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\236\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\024ScanCon" + + "figErrorProtoP\001ZZcloud.google.com/go/web" + + "securityscanner/apiv1beta/websecuritysca" + + "nnerpb;websecurityscannerpb\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[] {}); + 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java index 3adb81e5b36c..6597b06918ff 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java new file mode 100644 index 000000000000..3acb5437981b --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java @@ -0,0 +1,198 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\"\252\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014d" + + "isplay_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 \001(\005" + + "\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Y\n\016authent" + + "ication\030\005 \001(\0132A.google.cloud.websecurity" + + "scanner.v1beta.ScanConfig.Authentication" + + "\022P\n\nuser_agent\030\006 \001(\0162<.google.cloud.webs" + + "ecurityscanner.v1beta.ScanConfig.UserAge" + + "nt\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedu" + + "le\030\010 \001(\0132;.google.cloud.websecurityscann" + + "er.v1beta.ScanConfig.Schedule\022[\n\020target_" + + "platforms\030\t \003(\0162A.google.cloud.websecuri" + + "tyscanner.v1beta.ScanConfig.TargetPlatfo" + + "rm\022{\n!export_to_security_command_center\030" + + "\n \001(\0162P.google.cloud.websecurityscanner." + + "v1beta.ScanConfig.ExportToSecurityComman" + + "dCenter\022C\n\nlatest_run\030\013 \001(\0132/.google.clo" + + "ud.websecurityscanner.v1beta.ScanRun\022P\n\n" + + "risk_level\030\014 \001(\0162<.google.cloud.websecur" + + "ityscanner.v1beta.ScanConfig.RiskLevel\032\225" + + "\003\n\016Authentication\022i\n\016google_account\030\001 \001(" + + "\0132O.google.cloud.websecurityscanner.v1be" + + "ta.ScanConfig.Authentication.GoogleAccou" + + "ntH\000\022i\n\016custom_account\030\002 \001(\0132O.google.cl" + + "oud.websecurityscanner.v1beta.ScanConfig" + + ".Authentication.CustomAccountH\000\032@\n\rGoogl" + + "eAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010pass" + + "word\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n\010us" + + "ername\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB\005\342A" + + "\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authenti" + + "cation\032c\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022$\n\026interva" + + "l_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAgent" + + "\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_L" + + "INUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPH" + + "ONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFO" + + "RM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMP" + + "UTE\020\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECI" + + "FIED\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToS" + + "ecurityCommandCenter\0221\n-EXPORT_TO_SECURI" + + "TY_COMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABL" + + "ED\020\001\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscan" + + "ner.googleapis.com/ScanConfig\022,projects/" + + "{project}/scanConfigs/{scan_config}B\231\002\n*" + + "com.google.cloud.websecurityscanner.v1be" + + "taB\017ScanConfigProtoP\001ZZcloud.google.com/" + + "go/websecurityscanner/apiv1beta/websecur" + + "ityscannerpb;websecurityscannerpb\252\002&Goog" + + "le.Cloud.WebSecurityScanner.V1Beta\312\002&Goo" + + "gle\\Cloud\\WebSecurityScanner\\V1beta\352\002)Go" + + "ogle::Cloud::WebSecurityScanner::V1betab" + + "\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.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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java similarity index 71% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java index ae73b91b7531..a19f2dfcdbab 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRun.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,34 +47,38 @@ private ScanRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ScanRun();
   }
 
-  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.
@@ -66,6 +88,8 @@ public enum ExecutionState
      */
     EXECUTION_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -74,6 +98,8 @@ public enum ExecutionState */ QUEUED(1), /** + * + * *
      * The scan is in progress.
      * 
@@ -82,6 +108,8 @@ public enum ExecutionState */ SCANNING(2), /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -93,6 +121,8 @@ public enum ExecutionState ; /** + * + * *
      * Represents an invalid state caused by internal server error. This value
      * should never be returned.
@@ -102,6 +132,8 @@ public enum ExecutionState
      */
     public static final int EXECUTION_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan is waiting in the queue.
      * 
@@ -110,6 +142,8 @@ public enum ExecutionState */ public static final int QUEUED_VALUE = 1; /** + * + * *
      * The scan is in progress.
      * 
@@ -118,6 +152,8 @@ public enum ExecutionState */ public static final int SCANNING_VALUE = 2; /** + * + * *
      * The scan is either finished or stopped by user.
      * 
@@ -126,7 +162,6 @@ public enum ExecutionState */ public static final int FINISHED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -151,50 +186,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; @@ -212,15 +250,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.
@@ -230,6 +271,8 @@ public enum ResultState
      */
     RESULT_STATE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -238,6 +281,8 @@ public enum ResultState */ SUCCESS(1), /** + * + * *
      * The scan finished with errors.
      * 
@@ -246,6 +291,8 @@ public enum ResultState */ ERROR(2), /** + * + * *
      * The scan was terminated by user.
      * 
@@ -257,6 +304,8 @@ public enum ResultState ; /** + * + * *
      * Default value. This value is returned when the ScanRun is not yet
      * finished.
@@ -266,6 +315,8 @@ public enum ResultState
      */
     public static final int RESULT_STATE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * The scan finished without errors.
      * 
@@ -274,6 +325,8 @@ public enum ResultState */ public static final int SUCCESS_VALUE = 1; /** + * + * *
      * The scan finished with errors.
      * 
@@ -282,6 +335,8 @@ public enum ResultState */ public static final int ERROR_VALUE = 2; /** + * + * *
      * The scan was terminated by user.
      * 
@@ -290,7 +345,6 @@ public enum ResultState */ public static final int KILLED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -315,50 +369,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; @@ -376,9 +433,12 @@ private ResultState(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the ScanRun. The name follows the format of
    * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -386,6 +446,7 @@ private ResultState(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -394,14 +455,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}'.
@@ -409,16 +471,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 { @@ -429,65 +490,93 @@ public java.lang.String getName() { public static final int EXECUTION_STATE_FIELD_NUMBER = 2; 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; + * + * * @return The executionState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.forNumber(executionState_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState getExecutionState() { + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = + com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.forNumber( + 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_ = 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; + * * @return The resultState. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.forNumber(resultState_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState getResultState() { + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = + com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.forNumber(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 @@ -495,11 +584,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 @@ -507,6 +599,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The time at which the ScanRun started.
    * 
@@ -521,12 +615,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 @@ -534,12 +631,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 @@ -547,6 +647,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.
@@ -562,12 +664,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
   public static final int URLS_CRAWLED_COUNT_FIELD_NUMBER = 6;
   private long urlsCrawledCount_ = 0L;
   /**
+   *
+   *
    * 
    * 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 @@ -578,6 +683,8 @@ public long getUrlsCrawledCount() { public static final int URLS_TESTED_COUNT_FIELD_NUMBER = 7; private long urlsTestedCount_ = 0L; /** + * + * *
    * 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
@@ -586,6 +693,7 @@ public long getUrlsCrawledCount() {
    * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -596,11 +704,14 @@ public long getUrlsTestedCount() { public static final int HAS_VULNERABILITIES_FIELD_NUMBER = 8; private boolean hasVulnerabilities_ = false; /** + * + * *
    * Whether the scan run has found any vulnerabilities.
    * 
* * bool has_vulnerabilities = 8; + * * @return The hasVulnerabilities. */ @java.lang.Override @@ -611,6 +722,8 @@ public boolean getHasVulnerabilities() { public static final int PROGRESS_PERCENT_FIELD_NUMBER = 9; private int progressPercent_ = 0; /** + * + * *
    * The percentage of total completion ranging from 0 to 100.
    * If the scan is in queue, the value is 0.
@@ -619,6 +732,7 @@ public boolean getHasVulnerabilities() {
    * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -629,12 +743,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 @@ -642,19 +759,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.
@@ -663,72 +787,96 @@ 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() {
-    return errorTrace_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance() : errorTrace_;
+  public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTraceOrBuilder
+      getErrorTraceOrBuilder() {
+    return errorTrace_ == null
+        ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()
+        : errorTrace_;
   }
 
   public static final int WARNING_TRACES_FIELD_NUMBER = 11;
+
   @SuppressWarnings("serial")
-  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; @@ -740,15 +888,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) { @@ -787,45 +939,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -835,42 +982,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -897,14 +1036,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()) { @@ -921,98 +1057,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
@@ -1020,33 +1161,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1084,9 +1224,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
@@ -1105,14 +1245,18 @@ 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);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.ScanRun result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.websecurityscanner.v1beta.ScanRun result) {
       if (warningTracesBuilder_ == null) {
         if (((bitField0_ & 0x00000400) != 0)) {
           warningTraces_ = java.util.Collections.unmodifiableList(warningTraces_);
@@ -1136,14 +1280,10 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRun re
         result.resultState_ = resultState_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
         result.urlsCrawledCount_ = urlsCrawledCount_;
@@ -1158,9 +1298,7 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRun re
         result.progressPercent_ = progressPercent_;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.errorTrace_ = errorTraceBuilder_ == null
-            ? errorTrace_
-            : errorTraceBuilder_.build();
+        result.errorTrace_ = errorTraceBuilder_ == null ? errorTrace_ : errorTraceBuilder_.build();
       }
     }
 
@@ -1168,38 +1306,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRun re
     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;
@@ -1207,7 +1346,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_;
         bitField0_ |= 0x00000001;
@@ -1258,9 +1398,10 @@ public Builder mergeFrom(com.google.cloud.websecurityscanner.v1beta.ScanRun othe
             warningTracesBuilder_ = null;
             warningTraces_ = other.warningTraces_;
             bitField0_ = (bitField0_ & ~0x00000400);
-            warningTracesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getWarningTracesFieldBuilder() : null;
+            warningTracesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getWarningTracesFieldBuilder()
+                    : null;
           } else {
             warningTracesBuilder_.addAllMessages(other.warningTraces_);
           }
@@ -1292,81 +1433,87 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              executionState_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              resultState_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              urlsCrawledCount_ = input.readInt64();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              urlsTestedCount_ = input.readInt64();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              hasVulnerabilities_ = input.readBool();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 72: {
-              progressPercent_ = input.readInt32();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 72
-            case 82: {
-              input.readMessage(
-                  getErrorTraceFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace m =
-                  input.readMessage(
-                      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(),
-                      extensionRegistry);
-              if (warningTracesBuilder_ == null) {
-                ensureWarningTracesIsMutable();
-                warningTraces_.add(m);
-              } else {
-                warningTracesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 90
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                executionState_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                resultState_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
+                urlsCrawledCount_ = input.readInt64();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                urlsTestedCount_ = input.readInt64();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                hasVulnerabilities_ = input.readBool();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 72:
+              {
+                progressPercent_ = input.readInt32();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 72
+            case 82:
+              {
+                input.readMessage(getErrorTraceFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace m =
+                    input.readMessage(
+                        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.parser(),
+                        extensionRegistry);
+                if (warningTracesBuilder_ == null) {
+                  ensureWarningTracesIsMutable();
+                  warningTraces_.add(m);
+                } else {
+                  warningTracesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 90
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1376,10 +1523,13 @@ public Builder mergeFrom(
       } // finally
       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}'.
@@ -1387,13 +1537,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; @@ -1402,6 +1552,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1409,15 +1561,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 { @@ -1425,6 +1576,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1432,18 +1585,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1451,6 +1608,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1460,6 +1618,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the ScanRun. The name follows the format of
      * 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'.
@@ -1467,12 +1627,14 @@ 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1482,22 +1644,31 @@ 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. */ @@ -1508,28 +1679,41 @@ public Builder setExecutionStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ExecutionState.forNumber(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.forNumber( + 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(); } @@ -1539,11 +1723,15 @@ public Builder setExecutionState(com.google.cloud.websecurityscanner.v1beta.Scan 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() { @@ -1555,24 +1743,31 @@ 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. */ @@ -1583,30 +1778,40 @@ public Builder setResultStateValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState result = com.google.cloud.websecurityscanner.v1beta.ScanRun.ResultState.forNumber(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.forNumber(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(); } @@ -1616,12 +1821,15 @@ public Builder setResultState(com.google.cloud.websecurityscanner.v1beta.ScanRun 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() { @@ -1633,24 +1841,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 ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The time at which the ScanRun started.
      * 
* * .google.protobuf.Timestamp start_time = 4; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -1661,6 +1878,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1681,14 +1900,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(); } else { @@ -1699,6 +1919,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1707,9 +1929,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -1722,6 +1944,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1739,6 +1963,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1751,6 +1977,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time at which the ScanRun started.
      * 
@@ -1761,11 +1989,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.
      * 
@@ -1773,14 +2002,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_; @@ -1788,26 +2020,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 ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * 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() { @@ -1818,6 +2059,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.
@@ -1839,6 +2082,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.
@@ -1846,8 +2091,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();
       } else {
@@ -1858,6 +2102,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.
@@ -1867,9 +2113,9 @@ public Builder setEndTime(
      */
     public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
       if (endTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          endTime_ != null &&
-          endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && endTime_ != null
+            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getEndTimeBuilder().mergeFrom(value);
         } else {
           endTime_ = value;
@@ -1882,6 +2128,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.
@@ -1900,6 +2148,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.
@@ -1913,6 +2163,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which the ScanRun reached termination state - that the ScanRun
      * is either finished or stopped by user.
@@ -1924,11 +2176,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.
@@ -1937,27 +2190,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 @@ -1965,12 +2224,15 @@ 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. */ @@ -1982,12 +2244,15 @@ public Builder setUrlsCrawledCount(long value) { 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() { @@ -1997,8 +2262,10 @@ public Builder clearUrlsCrawledCount() { 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
@@ -2007,6 +2274,7 @@ public Builder clearUrlsCrawledCount() {
      * 
* * int64 urls_tested_count = 7; + * * @return The urlsTestedCount. */ @java.lang.Override @@ -2014,6 +2282,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
@@ -2022,6 +2292,7 @@ public long getUrlsTestedCount() {
      * 
* * int64 urls_tested_count = 7; + * * @param value The urlsTestedCount to set. * @return This builder for chaining. */ @@ -2033,6 +2304,8 @@ public Builder setUrlsTestedCount(long value) { 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
@@ -2041,6 +2314,7 @@ public Builder setUrlsTestedCount(long value) {
      * 
* * int64 urls_tested_count = 7; + * * @return This builder for chaining. */ public Builder clearUrlsTestedCount() { @@ -2050,13 +2324,16 @@ public Builder clearUrlsTestedCount() { 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 @@ -2064,11 +2341,14 @@ 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. */ @@ -2080,11 +2360,14 @@ public Builder setHasVulnerabilities(boolean value) { return this; } /** + * + * *
      * Whether the scan run has found any vulnerabilities.
      * 
* * bool has_vulnerabilities = 8; + * * @return This builder for chaining. */ public Builder clearHasVulnerabilities() { @@ -2094,8 +2377,10 @@ public Builder clearHasVulnerabilities() { 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.
@@ -2104,6 +2389,7 @@ public Builder clearHasVulnerabilities() {
      * 
* * int32 progress_percent = 9; + * * @return The progressPercent. */ @java.lang.Override @@ -2111,6 +2397,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.
@@ -2119,6 +2407,7 @@ public int getProgressPercent() {
      * 
* * int32 progress_percent = 9; + * * @param value The progressPercent to set. * @return This builder for chaining. */ @@ -2130,6 +2419,8 @@ public Builder setProgressPercent(int value) { return this; } /** + * + * *
      * The percentage of total completion ranging from 0 to 100.
      * If the scan is in queue, the value is 0.
@@ -2138,6 +2429,7 @@ public Builder setProgressPercent(int value) {
      * 
* * int32 progress_percent = 9; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { @@ -2149,36 +2441,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 ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * 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.
@@ -2186,7 +2491,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();
@@ -2200,6 +2506,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.
@@ -2219,6 +2527,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.
@@ -2226,11 +2536,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 (((bitField0_ & 0x00000200) != 0) &&
-          errorTrace_ != null &&
-          errorTrace_ != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000200) != 0)
+            && errorTrace_ != null
+            && errorTrace_
+                != com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace
+                    .getDefaultInstance()) {
           getErrorTraceBuilder().mergeFrom(value);
         } else {
           errorTrace_ = value;
@@ -2243,6 +2556,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.
@@ -2261,6 +2576,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.
@@ -2268,12 +2585,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() {
       bitField0_ |= 0x00000200;
       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.
@@ -2281,15 +2601,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.
@@ -2298,39 +2622,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_ & 0x00000400) != 0)) {
-        warningTraces_ = new java.util.ArrayList(warningTraces_);
+        warningTraces_ =
+            new java.util.ArrayList(
+                warningTraces_);
         bitField0_ |= 0x00000400;
-       }
+      }
     }
 
     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 { @@ -2338,11 +2676,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) { @@ -2352,13 +2694,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 { @@ -2366,11 +2713,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) { @@ -2387,14 +2738,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()); @@ -2405,13 +2761,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(); @@ -2425,11 +2786,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) { @@ -2446,11 +2811,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) { @@ -2464,14 +2833,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()); @@ -2482,18 +2856,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); @@ -2501,11 +2879,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) { @@ -2518,11 +2900,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) { @@ -2535,39 +2921,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 { @@ -2575,45 +2975,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_ & 0x00000400) != 0), getParentForChildren(), @@ -2622,9 +3044,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); } @@ -2634,12 +3056,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(); } @@ -2648,27 +3070,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2683,6 +3105,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java index f906b4b51319..f8798647574a 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,40 +28,44 @@
  *
  * 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();
   }
 
-  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.
@@ -53,9 +74,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -64,6 +86,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -72,6 +96,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.
@@ -81,6 +107,8 @@ public enum Code
      */
     SCAN_CONFIG_ISSUE(2),
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -90,6 +118,8 @@ public enum Code
      */
     AUTHENTICATION_CONFIG_ISSUE(3),
     /**
+     *
+     *
      * 
      * Indicates a scan operation timeout, usually caused by a very large site.
      * 
@@ -98,6 +128,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.
@@ -107,6 +139,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
@@ -120,6 +154,8 @@ public enum Code
     ;
 
     /**
+     *
+     *
      * 
      * Default value is never used.
      * 
@@ -128,6 +164,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Indicates that the scan run failed due to an internal server error.
      * 
@@ -136,6 +174,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.
@@ -145,6 +185,8 @@ public enum Code
      */
     public static final int SCAN_CONFIG_ISSUE_VALUE = 2;
     /**
+     *
+     *
      * 
      * Indicates an authentication error, usually due to outdated ScanConfig
      * authentication settings.
@@ -154,6 +196,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.
      * 
@@ -162,6 +206,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.
@@ -171,6 +217,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
@@ -181,7 +229,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(
@@ -206,53 +253,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;
@@ -272,32 +325,45 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   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; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.forNumber(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.forNumber(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
@@ -305,6 +371,7 @@ private Code(int value) {
    * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ @java.lang.Override @@ -312,6 +379,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
@@ -319,13 +388,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
@@ -335,13 +409,18 @@ 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() {
-    return scanConfigError_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance() : scanConfigError_;
+  public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder
+      getScanConfigErrorOrBuilder() {
+    return scanConfigError_ == null
+        ? com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()
+        : scanConfigError_;
   }
 
   public static final int MOST_COMMON_HTTP_ERROR_CODE_FIELD_NUMBER = 3;
   private int mostCommonHttpErrorCode_ = 0;
   /**
+   *
+   *
    * 
    * 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
@@ -349,6 +428,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getSc
    * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -357,6 +437,7 @@ public int getMostCommonHttpErrorCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -368,9 +449,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) { @@ -388,17 +470,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -408,21 +489,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -448,98 +528,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.
@@ -547,33 +633,32 @@ 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()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -589,13 +674,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();
     }
 
@@ -610,21 +696,24 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result =
+          new com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result) {
+    private void buildPartial0(
+        com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.code_ = code_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.scanConfigError_ = scanConfigErrorBuilder_ == null
-            ? scanConfigError_
-            : scanConfigErrorBuilder_.build();
+        result.scanConfigError_ =
+            scanConfigErrorBuilder_ == null ? scanConfigError_ : scanConfigErrorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.mostCommonHttpErrorCode_ = mostCommonHttpErrorCode_;
@@ -635,38 +724,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRunErr
     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;
@@ -674,7 +764,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());
       }
@@ -710,29 +802,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              input.readMessage(
-                  getScanConfigErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              mostCommonHttpErrorCode_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                input.readMessage(getScanConfigErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                mostCommonHttpErrorCode_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -742,26 +836,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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. */ @@ -772,28 +874,38 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code.forNumber(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.forNumber(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(); } @@ -803,11 +915,14 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTr return this; } /** + * + * *
      * Indicates the error reason code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -819,8 +934,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
@@ -828,12 +948,15 @@ public Builder clearCode() {
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanConfigError scan_config_error = 2; + * * @return Whether the scanConfigError field is set. */ public boolean hasScanConfigError() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error
      * message encountered during scan configuration validation that is performed
@@ -841,16 +964,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
@@ -859,7 +987,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();
@@ -873,6 +1002,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
@@ -893,6 +1024,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
@@ -901,11 +1034,14 @@ 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 (((bitField0_ & 0x00000002) != 0) &&
-          scanConfigError_ != null &&
-          scanConfigError_ != com.google.cloud.websecurityscanner.v1beta.ScanConfigError.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && scanConfigError_ != null
+            && scanConfigError_
+                != com.google.cloud.websecurityscanner.v1beta.ScanConfigError
+                    .getDefaultInstance()) {
           getScanConfigErrorBuilder().mergeFrom(value);
         } else {
           scanConfigError_ = value;
@@ -918,6 +1054,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
@@ -937,6 +1075,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
@@ -945,12 +1085,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() {
       bitField0_ |= 0x00000002;
       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
@@ -959,15 +1102,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
@@ -977,21 +1124,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
@@ -999,6 +1151,7 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfigErrorOrBuilder getSc
      * 
* * int32 most_common_http_error_code = 3; + * * @return The mostCommonHttpErrorCode. */ @java.lang.Override @@ -1006,6 +1159,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
@@ -1013,6 +1168,7 @@ public int getMostCommonHttpErrorCode() {
      * 
* * int32 most_common_http_error_code = 3; + * * @param value The mostCommonHttpErrorCode to set. * @return This builder for chaining. */ @@ -1024,6 +1180,8 @@ public Builder setMostCommonHttpErrorCode(int value) { 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
@@ -1031,6 +1189,7 @@ public Builder setMostCommonHttpErrorCode(int value) {
      * 
* * int32 most_common_http_error_code = 3; + * * @return This builder for chaining. */ public Builder clearMostCommonHttpErrorCode() { @@ -1039,9 +1198,9 @@ public Builder clearMostCommonHttpErrorCode() { 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); } @@ -1051,12 +1210,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(); } @@ -1065,27 +1225,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,6 +1260,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ScanRunErrorTrace getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java similarity index 77% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java index abfe6d8c877f..dfd2ae419d8f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceOrBuilder.java @@ -1,32 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java new file mode 100644 index 000000000000..512a9b342499 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java @@ -0,0 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\240\002\n*com.google.cloud" + + ".websecurityscanner.v1betaB\026ScanRunError" + + "TraceProtoP\001ZZcloud.google.com/go/websec" + + "urityscanner/apiv1beta/websecurityscanne" + + "rpb;websecurityscannerpb\252\002&Google.Cloud." + + "WebSecurityScanner.V1Beta\312\002&Google\\Cloud" + + "\\WebSecurityScanner\\V1beta\352\002)Google::Clo" + + "ud::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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunName.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java similarity index 84% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java index f57585131d4f..2467b98e2bcc 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java new file mode 100644 index 000000000000..8f41f259efc1 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java @@ -0,0 +1,119 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\226\002\n*com.google." + + "cloud.websecurityscanner.v1betaB\014ScanRun" + + "ProtoP\001ZZcloud.google.com/go/websecurity" + + "scanner/apiv1beta/websecurityscannerpb;w" + + "ebsecurityscannerpb\252\002&Google.Cloud.WebSe" + + "curityScanner.V1Beta\312\002&Google\\Cloud\\WebS" + + "ecurityScanner\\V1beta\352\002)Google::Cloud::W" + + "ebSecurityScanner::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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java similarity index 66% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java index 03a7e3b055fd..edeaa85e6bf1 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTrace.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,40 +29,44 @@
  *
  * 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();
   }
 
-  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.
@@ -54,9 +75,10 @@ protected java.lang.Object newInstance(
    *
    * 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.
      * 
@@ -65,6 +87,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
@@ -75,6 +99,8 @@ public enum Code
      */
     INSUFFICIENT_CRAWL_RESULTS(1),
     /**
+     *
+     *
      * 
      * Indicates that a scan discovered too many URLs to test, or excessive
      * redundant URLs.
@@ -84,6 +110,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,
@@ -94,6 +122,8 @@ public enum Code
      */
     TOO_MANY_FUZZ_TASKS(3),
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -105,6 +135,8 @@ public enum Code ; /** + * + * *
      * Default value is never used.
      * 
@@ -113,6 +145,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
@@ -123,6 +157,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.
@@ -132,6 +168,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,
@@ -142,6 +180,8 @@ public enum Code
      */
     public static final int TOO_MANY_FUZZ_TASKS_VALUE = 3;
     /**
+     *
+     *
      * 
      * Indicates that a scan is blocked by IAP.
      * 
@@ -150,7 +190,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( @@ -175,51 +214,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; @@ -239,30 +282,42 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; 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; + * * @return The code. */ - @java.lang.Override public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.forNumber(code_); - return result == null ? com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code getCode() { + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = + com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.forNumber(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; @@ -274,9 +329,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_); } getUnknownFields().writeTo(output); @@ -288,9 +344,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -300,12 +357,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -327,98 +385,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
@@ -427,33 +491,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -463,13 +526,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();
     }
 
@@ -484,13 +548,17 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result =
+          new com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result) {
+    private void buildPartial0(
+        com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.code_ = code_;
@@ -501,38 +569,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ScanRunWar
     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;
@@ -540,7 +609,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());
       }
@@ -570,17 +641,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -590,26 +663,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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. */ @@ -620,28 +701,38 @@ public Builder setCodeValue(int value) { 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() { - com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code result = com.google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code.forNumber(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.forNumber(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(); } @@ -651,11 +742,14 @@ public Builder setCode(com.google.cloud.websecurityscanner.v1beta.ScanRunWarning return this; } /** + * + * *
      * Indicates the warning code.
      * 
* * .google.cloud.websecurityscanner.v1beta.ScanRunWarningTrace.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -664,9 +758,9 @@ public Builder clearCode() { 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); } @@ -676,41 +770,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -722,9 +818,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java index 80d1a309d602..fb409d23723d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java new file mode 100644 index 000000000000..b1040f101993 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java @@ -0,0 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\242\002\n*com.go" + + "ogle.cloud.websecurityscanner.v1betaB\030Sc" + + "anRunWarningTraceProtoP\001ZZcloud.google.c" + + "om/go/websecurityscanner/apiv1beta/webse" + + "curityscannerpb;websecurityscannerpb\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_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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java similarity index 61% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java index b3509d335192..dbe6116453f1 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequest.java @@ -1,58 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -61,30 +86,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 { @@ -93,6 +120,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -104,8 +132,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_); } @@ -129,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -157,131 +184,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,13 +323,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(); } @@ -312,13 +345,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result = + new com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -329,38 +366,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.StartScanR 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; @@ -368,7 +406,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_; bitField0_ |= 0x00000001; @@ -400,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -420,23 +462,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -445,21 +492,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 { @@ -467,30 +517,41 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -500,27 +561,33 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -530,41 +597,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -576,9 +645,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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..071cfa8bd406 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java similarity index 63% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java index 5972043eff0c..8f704f3de9bd 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequest.java @@ -1,59 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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; + @SuppressWarnings("serial") 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,131 +186,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +325,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(); } @@ -314,13 +347,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result = + new com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -331,38 +368,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.StopScanRu 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; @@ -370,7 +408,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_; bitField0_ |= 0x00000001; @@ -402,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,24 +464,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -448,22 +495,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 { @@ -471,32 +521,43 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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() { @@ -506,28 +567,34 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -537,12 +604,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(); } @@ -551,27 +619,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.StopScanRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java new file mode 100644 index 000000000000..205034072c71 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java index 9ae45d972c28..553c56e3e8f5 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequest.java @@ -1,57 +1,80 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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(); } - 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 @@ -59,43 +82,60 @@ 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() { - return scanConfig_ == null ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() : scanConfig_; + return scanConfig_ == null + ? com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance() + : scanConfig_; } 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 @@ -103,13 +143,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 @@ -117,13 +161,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() { @@ -131,6 +178,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,8 +190,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()); } @@ -160,12 +207,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,22 +220,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -217,131 +261,138 @@ 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() - private Builder() { - - } + // Construct using + // com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,14 +411,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 @@ -381,23 +434,23 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result = + new com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.UpdateScanConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.scanConfig_ = scanConfigBuilder_ == null - ? scanConfig_ - : scanConfigBuilder_.build(); + result.scanConfig_ = scanConfigBuilder_ == null ? scanConfig_ : scanConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -405,46 +458,51 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.UpdateScan 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()); } @@ -477,26 +535,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getScanConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getScanConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,49 +563,69 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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 ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * 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) { @@ -564,13 +641,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) { @@ -584,19 +665,24 @@ 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 (((bitField0_ & 0x00000001) != 0) && - scanConfig_ != null && - scanConfig_ != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && scanConfig_ != null + && scanConfig_ + != com.google.cloud.websecurityscanner.v1beta.ScanConfig.getDefaultInstance()) { getScanConfigBuilder().mergeFrom(value); } else { scanConfig_ = value; @@ -609,13 +695,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() { bitField0_ = (bitField0_ & ~0x00000001); @@ -628,13 +718,17 @@ 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() { bitField0_ |= 0x00000001; @@ -642,40 +736,52 @@ public com.google.cloud.websecurityscanner.v1beta.ScanConfig.Builder getScanConf 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_; @@ -683,45 +789,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 ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * 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) { @@ -737,16 +859,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(); } else { @@ -757,19 +881,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 (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -782,13 +909,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() { bitField0_ = (bitField0_ & ~0x00000002); @@ -801,13 +931,16 @@ 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() { bitField0_ |= 0x00000002; @@ -815,47 +948,57 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { 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); } @@ -865,41 +1008,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,9 +1056,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java index 64762742d8f0..0f6c75ae2d2d 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/UpdateScanConfigRequestOrBuilder.java @@ -1,75 +1,116 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java similarity index 67% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java index 1fb413c279e1..143523ddeacc 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,33 +45,38 @@ private ViolatingResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ViolatingResource();
   }
 
-  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;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object contentType_ = "";
   /**
+   *
+   *
    * 
    * The MIME type of this resource.
    * 
* * string content_type = 1; + * * @return The contentType. */ @java.lang.Override @@ -62,29 +85,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 { @@ -93,14 +116,18 @@ public java.lang.String getContentType() { } public static final int RESOURCE_URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object resourceUrl_ = ""; /** + * + * *
    * URL of this violating resource.
    * 
* * string resource_url = 2; + * * @return The resourceUrl. */ @java.lang.Override @@ -109,29 +136,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 { @@ -140,6 +167,7 @@ public java.lang.String getResourceUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,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(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contentType_); } @@ -182,17 +209,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,98 +240,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.
@@ -313,33 +345,32 @@ 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()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -350,13 +381,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();
     }
 
@@ -371,13 +403,17 @@ 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);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.websecurityscanner.v1beta.ViolatingResource result =
+          new com.google.cloud.websecurityscanner.v1beta.ViolatingResource(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ViolatingResource result) {
+    private void buildPartial0(
+        com.google.cloud.websecurityscanner.v1beta.ViolatingResource result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.contentType_ = contentType_;
@@ -391,38 +427,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.ViolatingR
     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;
@@ -430,7 +467,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_;
         bitField0_ |= 0x00000001;
@@ -467,22 +506,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              contentType_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              resourceUrl_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                contentType_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                resourceUrl_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -492,22 +534,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     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; @@ -516,20 +561,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 { @@ -537,28 +583,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } contentType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The MIME type of this resource.
      * 
* * string content_type = 1; + * * @return This builder for chaining. */ public Builder clearContentType() { @@ -568,17 +621,21 @@ public Builder clearContentType() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setContentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); contentType_ = value; bitField0_ |= 0x00000001; @@ -588,18 +645,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; @@ -608,20 +667,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 { @@ -629,28 +689,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } resourceUrl_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * URL of this violating resource.
      * 
* * string resource_url = 2; + * * @return This builder for chaining. */ public Builder clearResourceUrl() { @@ -660,26 +727,30 @@ public Builder clearResourceUrl() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); resourceUrl_ = value; bitField0_ |= 0x00000002; 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); } @@ -689,12 +760,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(); } @@ -703,27 +775,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,6 +810,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.ViolatingResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java similarity index 55% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java index 4021d2289e10..0453152fc596 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ViolatingResourceOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java similarity index 64% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java index b179468bb8fb..6694df97a89f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeaders.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,84 +44,99 @@ private VulnerableHeaders() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableHeaders(); } - 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_ = ""; @@ -111,33 +144,38 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Header(); } - 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; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Header name.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -146,29 +184,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 { @@ -177,14 +215,18 @@ public java.lang.String getName() { } public static final int VALUE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object value_ = ""; /** + * + * *
      * Header value.
      * 
* * string value = 2; + * * @return The value. */ @java.lang.Override @@ -193,29 +235,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 { @@ -224,6 +266,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +278,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_); } @@ -266,17 +308,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,89 +339,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 @@ -390,39 +437,42 @@ 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() - private Builder() { + // Construct using + // com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,14 +483,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 @@ -454,13 +506,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result = + new com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -474,46 +530,53 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Vulnerable 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_; bitField0_ |= 0x00000001; @@ -550,22 +613,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -575,22 +641,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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; @@ -599,20 +668,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 { @@ -620,28 +690,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Header name.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -651,17 +728,21 @@ public Builder clearName() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -671,18 +752,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; @@ -691,20 +774,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 { @@ -712,28 +796,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Header value.
        * 
* * string value = 2; + * * @return This builder for chaining. */ public Builder clearValue() { @@ -743,23 +834,28 @@ public Builder clearValue() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); value_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -772,41 +868,44 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -818,135 +917,180 @@ 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; + @SuppressWarnings("serial") - 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; + @SuppressWarnings("serial") - 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; @@ -958,8 +1102,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)); } @@ -976,12 +1119,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 += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -991,17 +1132,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1027,131 +1167,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1174,13 +1319,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(); } @@ -1195,14 +1341,18 @@ 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); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { + private void buildPartialRepeatedFields( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -1223,7 +1373,8 @@ private void buildPartialRepeatedFields(com.google.cloud.websecurityscanner.v1be } } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders result) { int from_bitField0_ = bitField0_; } @@ -1231,38 +1382,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Vulnerable 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; @@ -1270,7 +1422,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()) { @@ -1289,9 +1443,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_); } @@ -1315,9 +1470,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_); } @@ -1349,38 +1505,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (headersBuilder_ == null) { - ensureHeadersIsMutable(); - headers_.add(m); - } else { - headersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = - input.readMessage( - com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header.parser(), - extensionRegistry); - if (missingHeadersBuilder_ == null) { - ensureMissingHeadersIsMutable(); - missingHeaders_.add(m); - } else { - missingHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (headersBuilder_ == null) { + ensureHeadersIsMutable(); + headers_.add(m); + } else { + headersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header m = + input.readMessage( + com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders.Header + .parser(), + extensionRegistry); + if (missingHeadersBuilder_ == null) { + ensureMissingHeadersIsMutable(); + missingHeaders_.add(m); + } else { + missingHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1390,28 +1551,39 @@ public Builder mergeFrom( } // finally 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 { @@ -1419,11 +1591,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) { @@ -1433,13 +1608,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 { @@ -1447,11 +1626,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) { @@ -1468,14 +1650,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()); @@ -1486,13 +1673,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(); @@ -1506,11 +1697,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) { @@ -1527,14 +1721,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()); @@ -1545,14 +1743,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()); @@ -1563,18 +1766,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); @@ -1582,11 +1789,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) { @@ -1599,11 +1809,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) { @@ -1616,39 +1829,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 { @@ -1656,74 +1880,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 { @@ -1731,11 +1986,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) { @@ -1745,13 +2004,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 { @@ -1759,11 +2023,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) { @@ -1780,14 +2048,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()); @@ -1798,13 +2072,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(); @@ -1818,11 +2097,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) { @@ -1839,14 +2122,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()); @@ -1857,14 +2145,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()); @@ -1875,18 +2169,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); @@ -1894,11 +2193,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) { @@ -1911,11 +2214,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) { @@ -1928,39 +2235,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 { @@ -1968,45 +2289,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(), @@ -2015,9 +2361,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); } @@ -2027,12 +2373,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(); } @@ -2041,27 +2388,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2076,6 +2423,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.VulnerableHeaders getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java similarity index 51% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java index 9bdd7c490fe8..f3fb687b8ce1 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableHeadersOrBuilder.java @@ -1,97 +1,150 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java index e28603e315e7..6645506168aa 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParameters.java @@ -1,82 +1,109 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.emptyList(); + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VulnerableParameters(); } - 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; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -84,20 +111,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; @@ -109,8 +139,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)); } @@ -139,15 +168,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -169,148 +198,153 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - parameterNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @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(); } @@ -325,13 +359,17 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result = + new com.google.cloud.websecurityscanner.v1beta.VulnerableParameters(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result) { + private void buildPartial0( + com.google.cloud.websecurityscanner.v1beta.VulnerableParameters result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { parameterNames_.makeImmutable(); @@ -343,46 +381,50 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Vulnerable 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_; @@ -419,18 +461,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureParameterNamesIsMutable(); - parameterNames_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureParameterNamesIsMutable(); + parameterNames_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -440,10 +484,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureParameterNamesIsMutable() { if (!parameterNames_.isModifiable()) { parameterNames_ = new com.google.protobuf.LazyStringArrayList(parameterNames_); @@ -451,35 +497,43 @@ private void ensureParameterNamesIsMutable() { 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() { parameterNames_.makeImmutable(); 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. */ @@ -487,31 +541,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParameterNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureParameterNamesIsMutable(); parameterNames_.set(index, value); bitField0_ |= 0x00000001; @@ -519,17 +579,21 @@ public Builder setParameterNames( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addParameterNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureParameterNamesIsMutable(); parameterNames_.add(value); bitField0_ |= 0x00000001; @@ -537,50 +601,58 @@ public Builder addParameterNames( 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_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The vulnerable parameter names.
      * 
* * repeated string parameter_names = 1; + * * @return This builder for chaining. */ public Builder clearParameterNames() { - parameterNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + parameterNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addParameterNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureParameterNamesIsMutable(); parameterNames_.add(value); @@ -588,9 +660,9 @@ public Builder addParameterNamesBytes( 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); } @@ -600,41 +672,43 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -646,9 +720,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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java similarity index 60% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java index c79d07da523d..507620bf2446 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/VulnerableParametersOrBuilder.java @@ -1,50 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java new file mode 100644 index 000000000000..be0ee6845823 --- /dev/null +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java @@ -0,0 +1,443 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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\"\256\001\n\027CreateScanConfigRequ" + + "est\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022M\n\013sca" + + "n_config\030\002 \001(\01322.google.cloud.websecurit" + + "yscanner.v1beta.ScanConfigB\004\342A\001\002\"^\n\027Dele" + + "teScanConfigRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372" + + "A.\n,websecurityscanner.googleapis.com/Sc" + + "anConfig\"[\n\024GetScanConfigRequest\022C\n\004name" + + "\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanner.goog" + + "leapis.com/ScanConfig\"\205\001\n\026ListScanConfig" + + "sRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloud" + + "resourcemanager.googleapis.com/Project\022\022" + + "\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\237\001" + + "\n\027UpdateScanConfigRequest\022M\n\013scan_config" + + "\030\002 \001(\01322.google.cloud.websecurityscanner" + + ".v1beta.ScanConfigB\004\342A\001\002\0225\n\013update_mask\030" + + "\003 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"" + + "|\n\027ListScanConfigsResponse\022H\n\014scan_confi" + + "gs\030\001 \003(\01322.google.cloud.websecurityscann" + + "er.v1beta.ScanConfig\022\027\n\017next_page_token\030" + + "\002 \001(\t\"Z\n\023StartScanRunRequest\022C\n\004name\030\001 \001" + + "(\tB5\342A\001\002\372A.\n,websecurityscanner.googleap" + + "is.com/ScanConfig\"U\n\021GetScanRunRequest\022@" + + "\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanne" + + "r.googleapis.com/ScanRun\"\203\001\n\023ListScanRun" + + "sRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\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\"s" + + "\n\024ListScanRunsResponse\022B\n\tscan_runs\030\001 \003(" + + "\0132/.google.cloud.websecurityscanner.v1be" + + "ta.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"V\n\022S" + + "topScanRunRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+" + + "\n)websecurityscanner.googleapis.com/Scan" + + "Run\"\203\001\n\026ListCrawledUrlsRequest\022B\n\006parent" + + "\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanner.goog" + + "leapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021" + + "\n\tpage_size\030\003 \001(\005\"|\n\027ListCrawledUrlsResp" + + "onse\022H\n\014crawled_urls\030\001 \003(\01322.google.clou" + + "d.websecurityscanner.v1beta.CrawledUrl\022\027" + + "\n\017next_page_token\030\002 \001(\t\"U\n\021GetFindingReq" + + "uest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurity" + + "scanner.googleapis.com/Finding\"\226\001\n\023ListF" + + "indingsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n" + + ")websecurityscanner.googleapis.com/ScanR" + + "un\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\npage_token\030\003" + + " \001(\t\022\021\n\tpage_size\030\004 \001(\005\"r\n\024ListFindingsR" + + "esponse\022A\n\010findings\030\001 \003(\0132/.google.cloud" + + ".websecurityscanner.v1beta.Finding\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"a\n\033ListFindingTypeSt" + + "atsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)web" + + "securityscanner.googleapis.com/ScanRun\"t" + + "\n\034ListFindingTypeStatsResponse\022T\n\022findin" + + "g_type_stats\030\001 \003(\01328.google.cloud.websec" + + "urityscanner.v1beta.FindingTypeStats2\216\026\n" + + "\022WebSecurityScanner\022\332\001\n\020CreateScanConfig" + + "\022?.google.cloud.websecurityscanner.v1bet" + + "a.CreateScanConfigRequest\0322.google.cloud" + + ".websecurityscanner.v1beta.ScanConfig\"Q\332" + + "A\022parent,scan_config\202\323\344\223\0026\"\'/v1beta/{par" + + "ent=projects/*}/scanConfigs:\013scan_config" + + "\022\243\001\n\020DeleteScanConfig\022?.google.cloud.web" + + "securityscanner.v1beta.DeleteScanConfigR" + + "equest\032\026.google.protobuf.Empty\"6\332A\004name\202" + + "\323\344\223\002)*\'/v1beta/{name=projects/*/scanConf" + + "igs/*}\022\271\001\n\rGetScanConfig\022<.google.cloud." + + "websecurityscanner.v1beta.GetScanConfigR" + + "equest\0322.google.cloud.websecurityscanner" + + ".v1beta.ScanConfig\"6\332A\004name\202\323\344\223\002)\022\'/v1be" + + "ta/{name=projects/*/scanConfigs/*}\022\314\001\n\017L" + + "istScanConfigs\022>.google.cloud.websecurit" + + "yscanner.v1beta.ListScanConfigsRequest\032?" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanConfigsResponse\"8\332A\006parent\202\323\344\223\002)" + + "\022\'/v1beta/{parent=projects/*}/scanConfig" + + "s\022\353\001\n\020UpdateScanConfig\022?.google.cloud.we" + + "bsecurityscanner.v1beta.UpdateScanConfig" + + "Request\0322.google.cloud.websecurityscanne" + + "r.v1beta.ScanConfig\"b\332A\027scan_config,upda" + + "te_mask\202\323\344\223\002B23/v1beta/{scan_config.name" + + "=projects/*/scanConfigs/*}:\013scan_config\022" + + "\275\001\n\014StartScanRun\022;.google.cloud.websecur" + + "ityscanner.v1beta.StartScanRunRequest\032/." + + "google.cloud.websecurityscanner.v1beta.S" + + "canRun\"?\332A\004name\202\323\344\223\0022\"-/v1beta/{name=pro" + + "jects/*/scanConfigs/*}:start:\001*\022\273\001\n\nGetS" + + "canRun\0229.google.cloud.websecurityscanner" + + ".v1beta.GetScanRunRequest\032/.google.cloud" + + ".websecurityscanner.v1beta.ScanRun\"A\332A\004n" + + "ame\202\323\344\223\0024\0222/v1beta/{name=projects/*/scan" + + "Configs/*/scanRuns/*}\022\316\001\n\014ListScanRuns\022;" + + ".google.cloud.websecurityscanner.v1beta." + + "ListScanRunsRequest\032<.google.cloud.webse" + + "curityscanner.v1beta.ListScanRunsRespons" + + "e\"C\332A\006parent\202\323\344\223\0024\0222/v1beta/{parent=proj" + + "ects/*/scanConfigs/*}/scanRuns\022\305\001\n\013StopS" + + "canRun\022:.google.cloud.websecurityscanner" + + ".v1beta.StopScanRunRequest\032/.google.clou" + + "d.websecurityscanner.v1beta.ScanRun\"I\332A\004" + + "name\202\323\344\223\002<\"7/v1beta/{name=projects/*/sca" + + "nConfigs/*/scanRuns/*}:stop:\001*\022\345\001\n\017ListC" + + "rawledUrls\022>.google.cloud.websecuritysca" + + "nner.v1beta.ListCrawledUrlsRequest\032?.goo" + + "gle.cloud.websecurityscanner.v1beta.List" + + "CrawledUrlsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v" + + "1beta/{parent=projects/*/scanConfigs/*/s" + + "canRuns/*}/crawledUrls\022\306\001\n\nGetFinding\0229." + + "google.cloud.websecurityscanner.v1beta.G" + + "etFindingRequest\032/.google.cloud.websecur" + + "ityscanner.v1beta.Finding\"L\332A\004name\202\323\344\223\002?" + + "\022=/v1beta/{name=projects/*/scanConfigs/*" + + "/scanRuns/*/findings/*}\022\340\001\n\014ListFindings" + + "\022;.google.cloud.websecurityscanner.v1bet" + + "a.ListFindingsRequest\032<.google.cloud.web" + + "securityscanner.v1beta.ListFindingsRespo" + + "nse\"U\332A\rparent,filter\202\323\344\223\002?\022=/v1beta/{pa" + + "rent=projects/*/scanConfigs/*/scanRuns/*" + + "}/findings\022\371\001\n\024ListFindingTypeStats\022C.go" + + "ogle.cloud.websecurityscanner.v1beta.Lis" + + "tFindingTypeStatsRequest\032D.google.cloud." + + "websecurityscanner.v1beta.ListFindingTyp" + + "eStatsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1beta" + + "/{parent=projects/*/scanConfigs/*/scanRu" + + "ns/*}/findingTypeStats\032U\312A!websecuritysc" + + "anner.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\241\002\n*com.go" + + "ogle.cloud.websecurityscanner.v1betaB\027We" + + "bSecurityScannerProtoP\001ZZcloud.google.co" + + "m/go/websecurityscanner/apiv1beta/websec" + + "urityscannerpb;websecurityscannerpb\252\002&Go" + + "ogle.Cloud.WebSecurityScanner.V1Beta\312\002&G" + + "oogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)" + + "Google::Cloud::WebSecurityScanner::V1bet" + + "ab\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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java similarity index 70% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java index fbc19190945b..a72bde033ddf 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/Xss.java @@ -1,83 +1,110 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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.emptyList(); + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Xss(); } - 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; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -85,28 +112,34 @@ 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; + @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** + * + * *
    * An error message generated by a javascript breakage.
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -115,29 +148,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 { @@ -146,6 +179,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +191,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)); } @@ -193,17 +226,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,146 +258,149 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - stackTraces_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); errorMessage_ = ""; return this; } @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 @@ -384,8 +419,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.websecurityscanner.v1beta.Xss result = + new com.google.cloud.websecurityscanner.v1beta.Xss(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -405,38 +443,39 @@ private void buildPartial0(com.google.cloud.websecurityscanner.v1beta.Xss result 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; @@ -486,23 +525,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStackTracesIsMutable(); - stackTraces_.add(s); - break; - } // case 10 - case 18: { - errorMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStackTracesIsMutable(); + stackTraces_.add(s); + break; + } // case 10 + case 18: + { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,10 +554,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStackTracesIsMutable() { if (!stackTraces_.isModifiable()) { stackTraces_ = new com.google.protobuf.LazyStringArrayList(stackTraces_); @@ -523,35 +567,43 @@ private void ensureStackTracesIsMutable() { 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() { stackTraces_.makeImmutable(); 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. */ @@ -559,31 +611,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setStackTraces(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStackTracesIsMutable(); stackTraces_.set(index, value); bitField0_ |= 0x00000001; @@ -591,17 +649,21 @@ public Builder setStackTraces( 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStackTraces(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStackTracesIsMutable(); stackTraces_.add(value); bitField0_ |= 0x00000001; @@ -609,50 +671,58 @@ public Builder addStackTraces( 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_); bitField0_ |= 0x00000001; 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() { - stackTraces_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + stackTraces_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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) { - if (value == null) { throw new NullPointerException(); } + public Builder addStackTracesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStackTracesIsMutable(); stackTraces_.add(value); @@ -663,18 +733,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; @@ -683,20 +755,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 { @@ -704,28 +777,35 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorMessage_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * An error message generated by a javascript breakage.
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -735,26 +815,30 @@ public Builder clearErrorMessage() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000002; 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); } @@ -764,12 +848,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(); } @@ -778,27 +862,27 @@ 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + 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 { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,6 +897,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.websecurityscanner.v1beta.Xss getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java similarity index 65% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java index bf9286e91cc8..17c452df0e8f 100644 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/XssOrBuilder.java @@ -1,70 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/crawled_url.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_addon.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/finding_type_stats.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_config_error.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto b/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_error_trace.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto b/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/scan_run_warning_trace.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto rename to java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/src/main/proto/google/cloud/websecurityscanner/v1beta/web_security_scanner.proto diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/AsyncGetFinding.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getfinding/SyncGetFinding.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/AsyncGetScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanconfig/SyncGetScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/AsyncGetScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/getscanrun/SyncGetScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindings.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/AsyncListFindingsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindings/SyncListFindings.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanconfigs/SyncListScanConfigs.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRuns.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/listscanruns/SyncListScanRuns.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/AsyncStartScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/startscanrun/SyncStartScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/AsyncStopScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/stopscanrun/SyncStopScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/AsyncGetFinding.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFinding.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingFindingname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getfinding/SyncGetFindingString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/AsyncGetScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanconfig/SyncGetScanConfigString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/AsyncGetScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/getscanrun/SyncGetScanRunString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindings.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/AsyncListFindingsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindings.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindings/SyncListFindingsStringString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigs.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRuns.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRuns.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/listscanruns/SyncListScanRunsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/AsyncStartScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/startscanrun/SyncStartScanRunString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/AsyncStopScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/stopscanrun/SyncStopScanRunString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1alpha/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1alpha/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/stub/websecurityscannerstubsettings/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/AsyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigProjectnameScanconfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/createscanconfig/SyncCreateScanConfigStringScanconfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/AsyncDeleteScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/deletescanconfig/SyncDeleteScanConfigString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/AsyncGetFinding.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFinding.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingFindingname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getfinding/SyncGetFindingString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/AsyncGetScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanconfig/SyncGetScanConfigString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/AsyncGetScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/getscanrun/SyncGetScanRunString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrls.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/AsyncListCrawledUrlsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrls.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listcrawledurls/SyncListCrawledUrlsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindings.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/AsyncListFindingsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindings.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsScanrunnameString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindings/SyncListFindingsStringString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/AsyncListFindingTypeStats.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStats.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listfindingtypestats/SyncListFindingTypeStatsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigs.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/AsyncListScanConfigsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigs.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsProjectname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanconfigs/SyncListScanConfigsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRuns.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/AsyncListScanRunsPaged.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRuns.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/listscanruns/SyncListScanRunsString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/AsyncStartScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunScanconfigname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/startscanrun/SyncStartScanRunString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/AsyncStopScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRun.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunScanrunname.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/stopscanrun/SyncStopScanRunString.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/AsyncUpdateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfig.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscanner/updatescanconfig/SyncUpdateScanConfigScanconfigFieldmask.java diff --git a/owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java b/java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java similarity index 100% rename from owl-bot-staging/java-websecurityscanner/v1beta/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java rename to java-websecurityscanner/samples/snippets/generated/com/google/cloud/websecurityscanner/v1beta/websecurityscannersettings/createscanconfig/SyncCreateScanConfig.java diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 1f1d2b7c9c49..c7f375ed379d 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsClient.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java similarity index 99% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java index 172631ce0cc6..bce0e9f58b53 100644 --- a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsSettings.java @@ -28,7 +28,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.workflows.executions.v1.stub.ExecutionsStubSettings; diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/package-info.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStub.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/ExecutionsStubSettings.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsCallableFactory.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java similarity index 99% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java index 1d395613bad9..a311dcf8856b 100644 --- a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/GrpcExecutionsStub.java @@ -35,7 +35,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/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsCallableFactory.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/HttpJsonExecutionsStub.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClient.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java similarity index 99% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java index 77597b65e8fb..9f6375703eb4 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsSettings.java @@ -28,7 +28,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.workflows.executions.v1beta.stub.ExecutionsStubSettings; diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/gapic_metadata.json diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/package-info.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStub.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/ExecutionsStubSettings.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsCallableFactory.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java similarity index 99% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java index 1c252af0d1a0..2a16e557f287 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/GrpcExecutionsStub.java @@ -36,7 +36,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/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsCallableFactory.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java rename to java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/HttpJsonExecutionsStub.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json b/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json rename to java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1/reflect-config.json diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json b/java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json rename to java-workflow-executions/google-cloud-workflow-executions/src/main/resources/META-INF/native-image/com.google.cloud.workflows.executions.v1beta/reflect-config.json diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/ExecutionsClientTest.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutions.java diff --git a/owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1/MockExecutionsImpl.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/ExecutionsClientTest.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutions.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java b/java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java rename to java-workflow-executions/google-cloud-workflow-executions/src/test/java/com/google/cloud/workflows/executions/v1beta/MockExecutionsImpl.java diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java new file mode 100644 index 000000000000..5c8ef538a307 --- /dev/null +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java @@ -0,0 +1,755 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.workflows.executions.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Executions is used to start and manage running instances of
+ * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workflows/executions/v1/executions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ExecutionsGrpc { + + private ExecutionsGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.workflows.executions.v1.Executions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1.ListExecutionsResponse> + getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, + responseType = com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1.ListExecutionsResponse> + getListExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1.ListExecutionsResponse> + getListExecutionsMethod; + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + ExecutionsGrpc.getListExecutionsMethod = + getListExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.ListExecutionsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getCreateExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExecution", + requestType = com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getCreateExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getCreateExecutionMethod; + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + ExecutionsGrpc.getCreateExecutionMethod = + getCreateExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.Execution + .getDefaultInstance())) + .setSchemaDescriptor( + new ExecutionsMethodDescriptorSupplier("CreateExecution")) + .build(); + } + } + } + return getCreateExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.GetExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.GetExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getGetExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.GetExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getGetExecutionMethod; + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + ExecutionsGrpc.getGetExecutionMethod = + getGetExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.GetExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.Execution + .getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getCancelExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelExecution", + requestType = com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getCancelExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution> + getCancelExecutionMethod; + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + ExecutionsGrpc.getCancelExecutionMethod = + getCancelExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1.Execution + .getDefaultInstance())) + .setSchemaDescriptor( + new ExecutionsMethodDescriptorSupplier("CancelExecution")) + .build(); + } + } + } + return getCancelExecutionMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ExecutionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + }; + return ExecutionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ExecutionsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + }; + return ExecutionsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ExecutionsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + }; + return ExecutionsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + default void listExecutions( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExecutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + default void createExecution( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + default void getExecution( + com.google.cloud.workflows.executions.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + default void cancelExecution( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelExecutionMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public abstract static class ExecutionsImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ExecutionsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsStub extends io.grpc.stub.AbstractAsyncStub { + private ExecutionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public void listExecutions( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public void createExecution( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + public void getExecution( + com.google.cloud.workflows.executions.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public void cancelExecution( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ExecutionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.ListExecutionsResponse listExecutions( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.Execution createExecution( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.Execution getExecution( + com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1.Execution cancelExecution( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelExecutionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ExecutionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1.ListExecutionsResponse> + listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1.Execution> + createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1.Execution> + getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1.Execution> + cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EXECUTIONS = 0; + private static final int METHODID_CREATE_EXECUTION = 1; + private static final int METHODID_GET_EXECUTION = 2; + private static final int METHODID_CANCEL_EXECUTION = 3; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_LIST_EXECUTIONS: + serviceImpl.listExecutions( + (com.google.cloud.workflows.executions.v1.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workflows.executions.v1.ListExecutionsResponse>) + responseObserver); + break; + case METHODID_CREATE_EXECUTION: + serviceImpl.createExecution( + (com.google.cloud.workflows.executions.v1.CreateExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_EXECUTION: + serviceImpl.getExecution( + (com.google.cloud.workflows.executions.v1.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CANCEL_EXECUTION: + serviceImpl.cancelExecution( + (com.google.cloud.workflows.executions.v1.CancelExecutionRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1.ListExecutionsResponse>( + service, METHODID_LIST_EXECUTIONS))) + .addMethod( + getCreateExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution>( + service, METHODID_CREATE_EXECUTION))) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.GetExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution>( + service, METHODID_GET_EXECUTION))) + .addMethod( + getCancelExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1.Execution>( + service, METHODID_CANCEL_EXECUTION))) + .build(); + } + + private abstract static class ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ExecutionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Executions"); + } + } + + private static final class ExecutionsFileDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier { + ExecutionsFileDescriptorSupplier() {} + } + + private static final class ExecutionsMethodDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) + .addMethod(getListExecutionsMethod()) + .addMethod(getCreateExecutionMethod()) + .addMethod(getGetExecutionMethod()) + .addMethod(getCancelExecutionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java new file mode 100644 index 000000000000..10cbbfc48335 --- /dev/null +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsGrpc.java @@ -0,0 +1,759 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.workflows.executions.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Executions is used to start and manage running instances of
+ * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workflows/executions/v1beta/executions.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ExecutionsGrpc { + + private ExecutionsGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.workflows.executions.v1beta.Executions"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> + getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> + getListExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> + getListExecutionsMethod; + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { + ExecutionsGrpc.getListExecutionsMethod = + getListExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getCreateExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExecution", + requestType = com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getCreateExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getCreateExecutionMethod; + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { + ExecutionsGrpc.getCreateExecutionMethod = + getCreateExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.Execution + .getDefaultInstance())) + .setSchemaDescriptor( + new ExecutionsMethodDescriptorSupplier("CreateExecution")) + .build(); + } + } + } + return getCreateExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getGetExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getGetExecutionMethod; + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { + ExecutionsGrpc.getGetExecutionMethod = + getGetExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.Execution + .getDefaultInstance())) + .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getCancelExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelExecution", + requestType = com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, + responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getCancelExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution> + getCancelExecutionMethod; + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + synchronized (ExecutionsGrpc.class) { + if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { + ExecutionsGrpc.getCancelExecutionMethod = + getCancelExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workflows.executions.v1beta.Execution + .getDefaultInstance())) + .setSchemaDescriptor( + new ExecutionsMethodDescriptorSupplier("CancelExecution")) + .build(); + } + } + } + return getCancelExecutionMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ExecutionsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + }; + return ExecutionsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ExecutionsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + }; + return ExecutionsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ExecutionsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ExecutionsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + }; + return ExecutionsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + default void listExecutions( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExecutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + default void createExecution( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + default void getExecution( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + default void cancelExecution( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelExecutionMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public abstract static class ExecutionsImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ExecutionsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsStub extends io.grpc.stub.AbstractAsyncStub { + private ExecutionsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public void listExecutions( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public void createExecution( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + public void getExecution( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public void cancelExecution( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ExecutionsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse listExecutions( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.Execution createExecution( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.Execution getExecution( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.cloud.workflows.executions.v1beta.Execution cancelExecution( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelExecutionMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. + * + *
+   * Executions is used to start and manage running instances of
+   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
+   * 
+ */ + public static final class ExecutionsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ExecutionsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ExecutionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ExecutionsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a list of executions which belong to the workflow with
+     * the given name. The method returns executions of all workflow
+     * revisions. Returned executions are ordered by their start time (newest
+     * first).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse> + listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new execution using the latest revision of the given workflow.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1beta.Execution> + createExecution( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1beta.Execution> + getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Cancels an execution of the given name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.executions.v1beta.Execution> + cancelExecution( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_EXECUTIONS = 0; + private static final int METHODID_CREATE_EXECUTION = 1; + private static final int METHODID_GET_EXECUTION = 2; + private static final int METHODID_CANCEL_EXECUTION = 3; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_LIST_EXECUTIONS: + serviceImpl.listExecutions( + (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse>) + responseObserver); + break; + case METHODID_CREATE_EXECUTION: + serviceImpl.createExecution( + (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_EXECUTION: + serviceImpl.getExecution( + (com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CANCEL_EXECUTION: + serviceImpl.cancelExecution( + (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse>( + service, METHODID_LIST_EXECUTIONS))) + .addMethod( + getCreateExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution>( + service, METHODID_CREATE_EXECUTION))) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution>( + service, METHODID_GET_EXECUTION))) + .addMethod( + getCancelExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, + com.google.cloud.workflows.executions.v1beta.Execution>( + service, METHODID_CANCEL_EXECUTION))) + .build(); + } + + private abstract static class ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ExecutionsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Executions"); + } + } + + private static final class ExecutionsFileDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier { + ExecutionsFileDescriptorSupplier() {} + } + + private static final class ExecutionsMethodDescriptorSupplier + extends ExecutionsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) + .addMethod(getListExecutionsMethod()) + .addMethod(getCreateExecutionMethod()) + .addMethod(getGetExecutionMethod()) + .addMethod(getCancelExecutionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java similarity index 61% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java index f3e7a924fedf..9b55168ce33b 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** + * + * *
  * Request for the
  * [CancelExecution][google.cloud.workflows.executions.v1.Executions.CancelExecution]
@@ -12,50 +29,58 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.CancelExecutionRequest}
  */
-public final class CancelExecutionRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CancelExecutionRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.CancelExecutionRequest)
     CancelExecutionRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CancelExecutionRequest.newBuilder() to construct.
   private CancelExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CancelExecutionRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CancelExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class,
+            com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 @@ -64,31 +89,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. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 { @@ -97,6 +124,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +136,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_); } @@ -133,15 +160,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.workflows.executions.v1.CancelExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.CancelExecutionRequest other = (com.google.cloud.workflows.executions.v1.CancelExecutionRequest) obj; + com.google.cloud.workflows.executions.v1.CancelExecutionRequest other = + (com.google.cloud.workflows.executions.v1.CancelExecutionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,98 +188,104 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest 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.workflows.executions.v1.CancelExecutionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.CancelExecutionRequest 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
    * [CancelExecution][google.cloud.workflows.executions.v1.Executions.CancelExecution]
@@ -261,33 +294,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.CancelExecutionRequest}
    */
-  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.workflows.executions.v1.CancelExecutionRequest)
       com.google.cloud.workflows.executions.v1.CancelExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class,
+              com.google.cloud.workflows.executions.v1.CancelExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.CancelExecutionRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -297,13 +329,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.CancelExecutionRequest getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.CancelExecutionRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance();
     }
 
@@ -318,13 +351,17 @@ public com.google.cloud.workflows.executions.v1.CancelExecutionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.CancelExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.CancelExecutionRequest result = new com.google.cloud.workflows.executions.v1.CancelExecutionRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1.CancelExecutionRequest result =
+          new com.google.cloud.workflows.executions.v1.CancelExecutionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1.CancelExecutionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1.CancelExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -335,46 +372,50 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.CancelExecut
     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.workflows.executions.v1.CancelExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.CancelExecutionRequest)other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.CancelExecutionRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1.CancelExecutionRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1.CancelExecutionRequest other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -406,17 +447,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -426,24 +469,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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; @@ -452,22 +500,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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 { @@ -475,32 +526,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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() { @@ -510,28 +572,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -541,41 +609,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.CancelExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.CancelExecutionRequest) - private static final com.google.cloud.workflows.executions.v1.CancelExecutionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.CancelExecutionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.CancelExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.CancelExecutionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +657,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.CancelExecutionRequest getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.CancelExecutionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..d0b57be0ece8 --- /dev/null +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1/executions.proto + +package com.google.cloud.workflows.executions.v1; + +public interface CancelExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CancelExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * + * 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/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java similarity index 60% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java index 5b7b08d97c95..aff268129b02 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** + * + * *
  * Request for the
  * [CreateExecution][google.cloud.workflows.executions.v1.Executions.CreateExecution]
@@ -12,50 +29,58 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.CreateExecutionRequest}
  */
-public final class CreateExecutionRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateExecutionRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.CreateExecutionRequest)
     CreateExecutionRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateExecutionRequest.newBuilder() to construct.
   private CreateExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateExecutionRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class,
+            com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * 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 @@ -64,31 +89,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. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * 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 { @@ -99,11 +126,16 @@ public java.lang.String getParent() { public static final int EXECUTION_FIELD_NUMBER = 2; private com.google.cloud.workflows.executions.v1.Execution execution_; /** + * + * *
    * Required. Execution to be created.
    * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the execution field is set. */ @java.lang.Override @@ -111,30 +143,44 @@ public boolean hasExecution() { return execution_ != null; } /** + * + * *
    * Required. Execution to be created.
    * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The execution. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution getExecution() { - return execution_ == null ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() + : execution_; } /** + * + * *
    * Required. Execution to be created.
    * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder() { - return execution_ == null ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() + : execution_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +192,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_); } @@ -167,8 +212,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (execution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecution()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecution()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +222,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.workflows.executions.v1.CreateExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.CreateExecutionRequest other = (com.google.cloud.workflows.executions.v1.CreateExecutionRequest) obj; + com.google.cloud.workflows.executions.v1.CreateExecutionRequest other = + (com.google.cloud.workflows.executions.v1.CreateExecutionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasExecution() != other.hasExecution()) return false; if (hasExecution()) { - if (!getExecution() - .equals(other.getExecution())) return false; + if (!getExecution().equals(other.getExecution())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,98 +258,104 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest 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.workflows.executions.v1.CreateExecutionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.CreateExecutionRequest 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
    * [CreateExecution][google.cloud.workflows.executions.v1.Executions.CreateExecution]
@@ -315,33 +364,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.CreateExecutionRequest}
    */
-  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.workflows.executions.v1.CreateExecutionRequest)
       com.google.cloud.workflows.executions.v1.CreateExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class,
+              com.google.cloud.workflows.executions.v1.CreateExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.CreateExecutionRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,13 +404,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.CreateExecutionRequest getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.CreateExecutionRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance();
     }
 
@@ -377,21 +426,23 @@ public com.google.cloud.workflows.executions.v1.CreateExecutionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.CreateExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.CreateExecutionRequest result = new com.google.cloud.workflows.executions.v1.CreateExecutionRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1.CreateExecutionRequest result =
+          new com.google.cloud.workflows.executions.v1.CreateExecutionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1.CreateExecutionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1.CreateExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.execution_ = executionBuilder_ == null
-            ? execution_
-            : executionBuilder_.build();
+        result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build();
       }
     }
 
@@ -399,46 +450,50 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.CreateExecut
     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.workflows.executions.v1.CreateExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.CreateExecutionRequest)other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.CreateExecutionRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1.CreateExecutionRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1.CreateExecutionRequest other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -473,24 +528,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getExecutionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -500,24 +556,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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,22 +587,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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 { @@ -549,32 +613,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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() { @@ -584,19 +659,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -606,39 +687,58 @@ public Builder setParentBytes( private com.google.cloud.workflows.executions.v1.Execution execution_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> executionBuilder_; + com.google.cloud.workflows.executions.v1.Execution, + com.google.cloud.workflows.executions.v1.Execution.Builder, + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> + executionBuilder_; /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the execution field is set. */ public boolean hasExecution() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The execution. */ public com.google.cloud.workflows.executions.v1.Execution getExecution() { if (executionBuilder_ == null) { - return execution_ == null ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() + : execution_; } else { return executionBuilder_.getMessage(); } } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExecution(com.google.cloud.workflows.executions.v1.Execution value) { if (executionBuilder_ == null) { @@ -654,11 +754,15 @@ public Builder setExecution(com.google.cloud.workflows.executions.v1.Execution v return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExecution( com.google.cloud.workflows.executions.v1.Execution.Builder builderForValue) { @@ -672,17 +776,22 @@ public Builder setExecution( return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExecution(com.google.cloud.workflows.executions.v1.Execution value) { if (executionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - execution_ != null && - execution_ != com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && execution_ != null + && execution_ + != com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()) { getExecutionBuilder().mergeFrom(value); } else { execution_ = value; @@ -695,11 +804,15 @@ public Builder mergeExecution(com.google.cloud.workflows.executions.v1.Execution return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExecution() { bitField0_ = (bitField0_ & ~0x00000002); @@ -712,11 +825,15 @@ public Builder clearExecution() { return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionBuilder() { bitField0_ |= 0x00000002; @@ -724,43 +841,55 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionBu return getExecutionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder() { if (executionBuilder_ != null) { return executionBuilder_.getMessageOrBuilder(); } else { - return execution_ == null ? - com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance() + : execution_; } } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1.Execution, + com.google.cloud.workflows.executions.v1.Execution.Builder, + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> getExecutionFieldBuilder() { if (executionBuilder_ == null) { - executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( - getExecution(), - getParentForChildren(), - isClean()); + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution, + com.google.cloud.workflows.executions.v1.Execution.Builder, + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( + getExecution(), getParentForChildren(), isClean()); execution_ = null; } return executionBuilder_; } + @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); } @@ -770,41 +899,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.CreateExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.CreateExecutionRequest) - private static final com.google.cloud.workflows.executions.v1.CreateExecutionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.CreateExecutionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.CreateExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.CreateExecutionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -816,9 +947,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.CreateExecutionRequest getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.CreateExecutionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..2a4255718aa4 --- /dev/null +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1/executions.proto + +package com.google.cloud.workflows.executions.v1; + +public interface CreateExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CreateExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Execution to be created.
+   * 
+ * + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + * + * + *
+   * Required. Execution to be created.
+   * 
+ * + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + com.google.cloud.workflows.executions.v1.Execution getExecution(); + /** + * + * + *
+   * Required. Execution to be created.
+   * 
+ * + * + * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder(); +} diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java similarity index 68% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java index f21de0f28eda..1d91925be878 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/Execution.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** + * + * *
  * A running instance of a
  * [Workflow](/workflows/docs/reference/rest/v1/projects.locations.workflows).
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.Execution}
  */
-public final class Execution extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Execution extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution)
     ExecutionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Execution.newBuilder() to construct.
   private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Execution() {
     name_ = "";
     state_ = 0;
@@ -31,37 +49,39 @@ private Execution() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Execution();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 11:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.Execution.class, com.google.cloud.workflows.executions.v1.Execution.Builder.class);
+            com.google.cloud.workflows.executions.v1.Execution.class,
+            com.google.cloud.workflows.executions.v1.Execution.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Describes the current state of the execution. More states might be added
    * in the future.
@@ -69,9 +89,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.workflows.executions.v1.Execution.State}
    */
-  public enum State
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid state.
      * 
@@ -80,6 +101,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The execution is in progress.
      * 
@@ -88,6 +111,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The execution finished successfully.
      * 
@@ -96,6 +121,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The execution failed with an error.
      * 
@@ -104,6 +131,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The execution was stopped intentionally.
      * 
@@ -112,6 +141,8 @@ public enum State */ CANCELLED(4), /** + * + * *
      * Execution data is unavailable. See the `state_error` field.
      * 
@@ -120,6 +151,8 @@ public enum State */ UNAVAILABLE(5), /** + * + * *
      * Request has been placed in the backlog for processing at a later time.
      * 
@@ -131,6 +164,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -139,6 +174,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The execution is in progress.
      * 
@@ -147,6 +184,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The execution finished successfully.
      * 
@@ -155,6 +194,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The execution failed with an error.
      * 
@@ -163,6 +204,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The execution was stopped intentionally.
      * 
@@ -171,6 +214,8 @@ public enum State */ public static final int CANCELLED_VALUE = 4; /** + * + * *
      * Execution data is unavailable. See the `state_error` field.
      * 
@@ -179,6 +224,8 @@ public enum State */ public static final int UNAVAILABLE_VALUE = 5; /** + * + * *
      * Request has been placed in the backlog for processing at a later time.
      * 
@@ -187,7 +234,6 @@ public enum State */ public static final int QUEUED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -212,53 +258,59 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLED; - case 5: return UNAVAILABLE; - case 6: return QUEUED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLED; + case 5: + return UNAVAILABLE; + case 6: + return QUEUED; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.workflows.executions.v1.Execution.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.Execution.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -276,6 +328,8 @@ private State(int value) { } /** + * + * *
    * Describes the level of platform logging to apply to calls and call
    * responses during workflow executions.
@@ -283,9 +337,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.workflows.executions.v1.Execution.CallLogLevel}
    */
-  public enum CallLogLevel
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No call logging level specified.
      * 
@@ -294,6 +349,8 @@ public enum CallLogLevel */ CALL_LOG_LEVEL_UNSPECIFIED(0), /** + * + * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -303,6 +360,8 @@ public enum CallLogLevel
      */
     LOG_ALL_CALLS(1),
     /**
+     *
+     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -311,6 +370,8 @@ public enum CallLogLevel */ LOG_ERRORS_ONLY(2), /** + * + * *
      * Explicitly log nothing.
      * 
@@ -322,6 +383,8 @@ public enum CallLogLevel ; /** + * + * *
      * No call logging level specified.
      * 
@@ -330,6 +393,8 @@ public enum CallLogLevel */ public static final int CALL_LOG_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -339,6 +404,8 @@ public enum CallLogLevel
      */
     public static final int LOG_ALL_CALLS_VALUE = 1;
     /**
+     *
+     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -347,6 +414,8 @@ public enum CallLogLevel */ public static final int LOG_ERRORS_ONLY_VALUE = 2; /** + * + * *
      * Explicitly log nothing.
      * 
@@ -355,7 +424,6 @@ public enum CallLogLevel */ public static final int LOG_NONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -380,50 +448,53 @@ public static CallLogLevel valueOf(int value) { */ public static CallLogLevel forNumber(int value) { switch (value) { - case 0: return CALL_LOG_LEVEL_UNSPECIFIED; - case 1: return LOG_ALL_CALLS; - case 2: return LOG_ERRORS_ONLY; - case 3: return LOG_NONE; - default: return null; + case 0: + return CALL_LOG_LEVEL_UNSPECIFIED; + case 1: + return LOG_ALL_CALLS; + case 2: + return LOG_ERRORS_ONLY; + case 3: + return LOG_NONE; + 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< - CallLogLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CallLogLevel findValueByNumber(int number) { - return CallLogLevel.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 CallLogLevel findValueByNumber(int number) { + return CallLogLevel.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.workflows.executions.v1.Execution.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.Execution.getDescriptor() + .getEnumTypes() + .get(1); } private static final CallLogLevel[] VALUES = values(); - public static CallLogLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CallLogLevel 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; @@ -440,93 +511,122 @@ private CallLogLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1.Execution.CallLogLevel) } - public interface StackTraceElementOrBuilder extends + public interface StackTraceElementOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StackTraceElement) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The step the error occurred at.
      * 
* * string step = 1; + * * @return The step. */ java.lang.String getStep(); /** + * + * *
      * The step the error occurred at.
      * 
* * string step = 1; + * * @return The bytes for step. */ - com.google.protobuf.ByteString - getStepBytes(); + com.google.protobuf.ByteString getStepBytes(); /** + * + * *
      * The routine where the error occurred.
      * 
* * string routine = 2; + * * @return The routine. */ java.lang.String getRoutine(); /** + * + * *
      * The routine where the error occurred.
      * 
* * string routine = 2; + * * @return The bytes for routine. */ - com.google.protobuf.ByteString - getRoutineBytes(); + com.google.protobuf.ByteString getRoutineBytes(); /** + * + * *
      * The source position information of the stack trace element.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * * @return Whether the position field is set. */ boolean hasPosition(); /** + * + * *
      * The source position information of the stack trace element.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * * @return The position. */ com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getPosition(); /** + * + * *
      * The source position information of the stack trace element.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder getPositionOrBuilder(); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder + getPositionOrBuilder(); } /** + * + * *
    * A single stack element (frame) where an error occurred.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement} */ - public static final class StackTraceElement extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StackTraceElement extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StackTraceElement) StackTraceElementOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StackTraceElement.newBuilder() to construct. private StackTraceElement(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StackTraceElement() { step_ = ""; routine_ = ""; @@ -534,108 +634,127 @@ private StackTraceElement() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StackTraceElement(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); } - public interface PositionOrBuilder extends + public interface PositionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The source code line number the current instruction was generated from.
        * 
* * int64 line = 1; + * * @return The line. */ long getLine(); /** + * + * *
        * The source code column position (of the line) the current instruction
        * was generated from.
        * 
* * int64 column = 2; + * * @return The column. */ long getColumn(); /** + * + * *
        * The number of bytes of source code making up this stack trace element.
        * 
* * int64 length = 3; + * * @return The length. */ long getLength(); } /** + * + * *
      * Position contains source position information about the stack trace
      * element such as line number, column number and length of the code block
      * in bytes.
      * 
* - * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} + * Protobuf type {@code + * google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} */ - public static final class Position extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Position extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) PositionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Position.newBuilder() to construct. private Position(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Position() { - } + + private Position() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Position(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.class, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .Builder.class); } public static final int LINE_FIELD_NUMBER = 1; private long line_ = 0L; /** + * + * *
        * The source code line number the current instruction was generated from.
        * 
* * int64 line = 1; + * * @return The line. */ @java.lang.Override @@ -646,12 +765,15 @@ public long getLine() { public static final int COLUMN_FIELD_NUMBER = 2; private long column_ = 0L; /** + * + * *
        * The source code column position (of the line) the current instruction
        * was generated from.
        * 
* * int64 column = 2; + * * @return The column. */ @java.lang.Override @@ -662,11 +784,14 @@ public long getColumn() { public static final int LENGTH_FIELD_NUMBER = 3; private long length_ = 0L; /** + * + * *
        * The number of bytes of source code making up this stack trace element.
        * 
* * int64 length = 3; + * * @return The length. */ @java.lang.Override @@ -675,6 +800,7 @@ public long getLength() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -686,8 +812,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 (line_ != 0L) { output.writeInt64(1, line_); } @@ -707,16 +832,13 @@ public int getSerializedSize() { size = 0; if (line_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, line_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, line_); } if (column_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, column_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, column_); } if (length_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, length_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, length_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -726,19 +848,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.workflows.executions.v1.Execution.StackTraceElement.Position)) { + if (!(obj + instanceof + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other = (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) obj; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other = + (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) obj; - if (getLine() - != other.getLine()) return false; - if (getColumn() - != other.getColumn()) return false; - if (getLength() - != other.getLength()) return false; + if (getLine() != other.getLine()) return false; + if (getColumn() != other.getColumn()) return false; + if (getLength() != other.getLength()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -751,103 +873,113 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLine()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLine()); hash = (37 * hash) + COLUMN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getColumn()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getColumn()); hash = (37 * hash) + LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLength()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + 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.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + 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.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position + 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.workflows.executions.v1.Execution.StackTraceElement.Position parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position + 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.workflows.executions.v1.Execution.StackTraceElement.Position parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position 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.workflows.executions.v1.Execution.StackTraceElement.Position + 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.workflows.executions.v1.Execution.StackTraceElement.Position prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position 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 @@ -857,41 +989,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Position contains source position information about the stack trace
        * element such as line number, column number and length of the code block
        * in bytes.
        * 
* - * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} + * Protobuf type {@code + * google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position} */ - 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.workflows.executions.v1.Execution.StackTraceElement.Position) com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .class, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .Builder.class); } - // Construct using com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -903,19 +1041,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getDefaultInstanceForType() { - return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance(); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + getDefaultInstanceForType() { + return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position build() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = buildPartial(); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + build() { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -923,14 +1065,20 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Posi } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + buildPartial() { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result = + new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result) { + private void buildPartial0( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.line_ = line_; @@ -947,46 +1095,56 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St 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.workflows.executions.v1.Execution.StackTraceElement.Position) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position)other); + if (other + instanceof + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) { + return mergeFrom( + (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position other) { + if (other + == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .getDefaultInstance()) return this; if (other.getLine() != 0L) { setLine(other.getLine()); } @@ -1022,27 +1180,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - line_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - column_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - length_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + line_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + column_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + length_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1052,15 +1214,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long line_ ; + private long line_; /** + * + * *
          * The source code line number the current instruction was generated from.
          * 
* * int64 line = 1; + * * @return The line. */ @java.lang.Override @@ -1068,11 +1234,14 @@ public long getLine() { return line_; } /** + * + * *
          * The source code line number the current instruction was generated from.
          * 
* * int64 line = 1; + * * @param value The line to set. * @return This builder for chaining. */ @@ -1084,11 +1253,14 @@ public Builder setLine(long value) { return this; } /** + * + * *
          * The source code line number the current instruction was generated from.
          * 
* * int64 line = 1; + * * @return This builder for chaining. */ public Builder clearLine() { @@ -1098,14 +1270,17 @@ public Builder clearLine() { return this; } - private long column_ ; + private long column_; /** + * + * *
          * The source code column position (of the line) the current instruction
          * was generated from.
          * 
* * int64 column = 2; + * * @return The column. */ @java.lang.Override @@ -1113,12 +1288,15 @@ public long getColumn() { return column_; } /** + * + * *
          * The source code column position (of the line) the current instruction
          * was generated from.
          * 
* * int64 column = 2; + * * @param value The column to set. * @return This builder for chaining. */ @@ -1130,12 +1308,15 @@ public Builder setColumn(long value) { return this; } /** + * + * *
          * The source code column position (of the line) the current instruction
          * was generated from.
          * 
* * int64 column = 2; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -1145,13 +1326,16 @@ public Builder clearColumn() { return this; } - private long length_ ; + private long length_; /** + * + * *
          * The number of bytes of source code making up this stack trace element.
          * 
* * int64 length = 3; + * * @return The length. */ @java.lang.Override @@ -1159,11 +1343,14 @@ public long getLength() { return length_; } /** + * + * *
          * The number of bytes of source code making up this stack trace element.
          * 
* * int64 length = 3; + * * @param value The length to set. * @return This builder for chaining. */ @@ -1175,11 +1362,14 @@ public Builder setLength(long value) { return this; } /** + * + * *
          * The number of bytes of source code making up this stack trace element.
          * 
* * int64 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { @@ -1188,6 +1378,7 @@ public Builder clearLength() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1200,41 +1391,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position) - private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .Position + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position(); + DEFAULT_INSTANCE = + new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position(); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Position parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Position parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1246,21 +1442,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int STEP_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object step_ = ""; /** + * + * *
      * The step the error occurred at.
      * 
* * string step = 1; + * * @return The step. */ @java.lang.Override @@ -1269,29 +1469,29 @@ public java.lang.String getStep() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; } } /** + * + * *
      * The step the error occurred at.
      * 
* * string step = 1; + * * @return The bytes for step. */ @java.lang.Override - public com.google.protobuf.ByteString - getStepBytes() { + public com.google.protobuf.ByteString getStepBytes() { java.lang.Object ref = step_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); step_ = b; return b; } else { @@ -1300,14 +1500,18 @@ public java.lang.String getStep() { } public static final int ROUTINE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object routine_ = ""; /** + * + * *
      * The routine where the error occurred.
      * 
* * string routine = 2; + * * @return The routine. */ @java.lang.Override @@ -1316,29 +1520,29 @@ public java.lang.String getRoutine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; } } /** + * + * *
      * The routine where the error occurred.
      * 
* * string routine = 2; + * * @return The bytes for routine. */ @java.lang.Override - public com.google.protobuf.ByteString - getRoutineBytes() { + public com.google.protobuf.ByteString getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routine_ = b; return b; } else { @@ -1349,11 +1553,16 @@ public java.lang.String getRoutine() { public static final int POSITION_FIELD_NUMBER = 3; private com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position_; /** + * + * *
      * The source position information of the stack trace element.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * * @return Whether the position field is set. */ @java.lang.Override @@ -1361,30 +1570,48 @@ public boolean hasPosition() { return position_ != null; } /** + * + * *
      * The source position information of the stack trace element.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * * @return The position. */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getPosition() { - return position_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + getPosition() { + return position_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .getDefaultInstance() + : position_; } /** + * + * *
      * The source position information of the stack trace element.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder getPositionOrBuilder() { - return position_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder + getPositionOrBuilder() { + return position_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .getDefaultInstance() + : position_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1396,8 +1623,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(step_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, step_); } @@ -1423,8 +1649,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routine_); } if (position_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPosition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1434,21 +1659,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.workflows.executions.v1.Execution.StackTraceElement)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other = (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement) obj; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other = + (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement) obj; - if (!getStep() - .equals(other.getStep())) return false; - if (!getRoutine() - .equals(other.getRoutine())) return false; + if (!getStep().equals(other.getStep())) return false; + if (!getRoutine().equals(other.getRoutine())) return false; if (hasPosition() != other.hasPosition()) return false; if (hasPosition()) { - if (!getPosition() - .equals(other.getPosition())) return false; + if (!getPosition().equals(other.getPosition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1475,89 +1698,95 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement + 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.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement 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.workflows.executions.v1.Execution.StackTraceElement prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement 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 @@ -1567,39 +1796,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A single stack element (frame) where an error occurred.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTraceElement} */ - 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.workflows.executions.v1.Execution.StackTraceElement) com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.class, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder.class); } - // Construct using com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1615,19 +1847,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getDefaultInstanceForType() { - return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance(); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + getDefaultInstanceForType() { + return com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement build() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = buildPartial(); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1636,13 +1871,17 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement buil @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result = + new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result) { + private void buildPartial0( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.step_ = step_; @@ -1651,9 +1890,7 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St result.routine_ = routine_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.position_ = positionBuilder_ == null - ? position_ - : positionBuilder_.build(); + result.position_ = positionBuilder_ == null ? position_ : positionBuilder_.build(); } } @@ -1661,46 +1898,53 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St 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.workflows.executions.v1.Execution.StackTraceElement) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTraceElement)other); + return mergeFrom( + (com.google.cloud.workflows.executions.v1.Execution.StackTraceElement) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement other) { + if (other + == com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .getDefaultInstance()) return this; if (!other.getStep().isEmpty()) { step_ = other.step_; bitField0_ |= 0x00000001; @@ -1740,29 +1984,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - step_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - routine_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPositionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + routine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getPositionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1772,22 +2018,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object step_ = ""; /** + * + * *
        * The step the error occurred at.
        * 
* * string step = 1; + * * @return The step. */ public java.lang.String getStep() { java.lang.Object ref = step_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; @@ -1796,20 +2045,21 @@ public java.lang.String getStep() { } } /** + * + * *
        * The step the error occurred at.
        * 
* * string step = 1; + * * @return The bytes for step. */ - public com.google.protobuf.ByteString - getStepBytes() { + public com.google.protobuf.ByteString getStepBytes() { java.lang.Object ref = step_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); step_ = b; return b; } else { @@ -1817,28 +2067,35 @@ public java.lang.String getStep() { } } /** + * + * *
        * The step the error occurred at.
        * 
* * string step = 1; + * * @param value The step to set. * @return This builder for chaining. */ - public Builder setStep( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } step_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The step the error occurred at.
        * 
* * string step = 1; + * * @return This builder for chaining. */ public Builder clearStep() { @@ -1848,17 +2105,21 @@ public Builder clearStep() { return this; } /** + * + * *
        * The step the error occurred at.
        * 
* * string step = 1; + * * @param value The bytes for step to set. * @return This builder for chaining. */ - public Builder setStepBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); step_ = value; bitField0_ |= 0x00000001; @@ -1868,18 +2129,20 @@ public Builder setStepBytes( private java.lang.Object routine_ = ""; /** + * + * *
        * The routine where the error occurred.
        * 
* * string routine = 2; + * * @return The routine. */ public java.lang.String getRoutine() { java.lang.Object ref = routine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; @@ -1888,20 +2151,21 @@ public java.lang.String getRoutine() { } } /** + * + * *
        * The routine where the error occurred.
        * 
* * string routine = 2; + * * @return The bytes for routine. */ - public com.google.protobuf.ByteString - getRoutineBytes() { + public com.google.protobuf.ByteString getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routine_ = b; return b; } else { @@ -1909,28 +2173,35 @@ public java.lang.String getRoutine() { } } /** + * + * *
        * The routine where the error occurred.
        * 
* * string routine = 2; + * * @param value The routine to set. * @return This builder for chaining. */ - public Builder setRoutine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRoutine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } routine_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The routine where the error occurred.
        * 
* * string routine = 2; + * * @return This builder for chaining. */ public Builder clearRoutine() { @@ -1940,17 +2211,21 @@ public Builder clearRoutine() { return this; } /** + * + * *
        * The routine where the error occurred.
        * 
* * string routine = 2; + * * @param value The bytes for routine to set. * @return This builder for chaining. */ - public Builder setRoutineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRoutineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); routine_ = value; bitField0_ |= 0x00000002; @@ -1958,43 +2233,67 @@ public Builder setRoutineBytes( return this; } - private com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position_; + private com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + position_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder> positionBuilder_; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .PositionOrBuilder> + positionBuilder_; /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * * @return Whether the position field is set. */ public boolean hasPosition() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * * @return The position. */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position getPosition() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + getPosition() { if (positionBuilder_ == null) { - return position_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .getDefaultInstance() + : position_; } else { return positionBuilder_.getMessage(); } } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ - public Builder setPosition(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { + public Builder setPosition( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { if (positionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2008,14 +2307,19 @@ public Builder setPosition(com.google.cloud.workflows.executions.v1.Execution.St return this; } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ public Builder setPosition( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder builderForValue) { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder + builderForValue) { if (positionBuilder_ == null) { position_ = builderForValue.build(); } else { @@ -2026,17 +2330,24 @@ public Builder setPosition( return this; } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ - public Builder mergePosition(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { + public Builder mergePosition( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position value) { if (positionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - position_ != null && - position_ != com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && position_ != null + && position_ + != com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .getDefaultInstance()) { getPositionBuilder().mergeFrom(value); } else { position_ = value; @@ -2049,11 +2360,15 @@ public Builder mergePosition(com.google.cloud.workflows.executions.v1.Execution. return this; } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ public Builder clearPosition() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2066,52 +2381,74 @@ public Builder clearPosition() { return this; } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder getPositionBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder + getPositionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPositionFieldBuilder().getBuilder(); } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder getPositionOrBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder + getPositionOrBuilder() { if (positionBuilder_ != null) { return positionBuilder_.getMessageOrBuilder(); } else { - return position_ == null ? - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.getDefaultInstance() : position_; + return position_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .getDefaultInstance() + : position_; } } /** + * + * *
        * The source position information of the stack trace element.
        * 
* - * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * + * .google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position position = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .PositionOrBuilder> getPositionFieldBuilder() { if (positionBuilder_ == null) { - positionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.PositionOrBuilder>( - getPosition(), - getParentForChildren(), - isClean()); + positionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Position + .Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .PositionOrBuilder>(getPosition(), getParentForChildren(), isClean()); position_ = null; } return positionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2124,41 +2461,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StackTraceElement) - private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StackTraceElement(); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StackTraceElement parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StackTraceElement parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2170,162 +2510,214 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface StackTraceOrBuilder extends + public interface StackTraceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StackTrace) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - java.util.List + java.util.List getElementsList(); /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements(int index); /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ int getElementsCount(); /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> getElementsOrBuilderList(); /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder getElementsOrBuilder( - int index); + com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder + getElementsOrBuilder(int index); } /** + * + * *
    * A collection of stack elements (frames) where an error occurred.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTrace} */ - public static final class StackTrace extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StackTrace extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StackTrace) StackTraceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StackTrace.newBuilder() to construct. private StackTrace(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StackTrace() { elements_ = 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 StackTrace(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, + com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); } public static final int ELEMENTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List elements_; + private java.util.List + elements_; /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ @java.lang.Override - public java.util.List getElementsList() { + public java.util.List + getElementsList() { return elements_; } /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> getElementsOrBuilderList() { return elements_; } /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ @java.lang.Override public int getElementsCount() { return elements_.size(); } /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements(int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements( + int index) { return elements_.get(index); } /** + * + * *
      * An array of stack elements.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder getElementsOrBuilder( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder + getElementsOrBuilder(int index) { return elements_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2337,8 +2729,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 < elements_.size(); i++) { output.writeMessage(1, elements_.get(i)); } @@ -2352,8 +2743,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < elements_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, elements_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, elements_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2363,15 +2753,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.workflows.executions.v1.Execution.StackTrace)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StackTrace other = (com.google.cloud.workflows.executions.v1.Execution.StackTrace) obj; + com.google.cloud.workflows.executions.v1.Execution.StackTrace other = + (com.google.cloud.workflows.executions.v1.Execution.StackTrace) obj; - if (!getElementsList() - .equals(other.getElementsList())) return false; + if (!getElementsList().equals(other.getElementsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2393,89 +2783,94 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace 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.workflows.executions.v1.Execution.StackTrace prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.Execution.StackTrace 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 @@ -2485,39 +2880,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A collection of stack elements (frames) where an error occurred.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StackTrace} */ - 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.workflows.executions.v1.Execution.StackTrace) com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StackTrace.class, + com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.StackTrace.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2533,13 +2930,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTrace getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTrace + getDefaultInstanceForType() { return com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance(); } @@ -2554,14 +2952,18 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTrace build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTrace buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StackTrace result = new com.google.cloud.workflows.executions.v1.Execution.StackTrace(this); + com.google.cloud.workflows.executions.v1.Execution.StackTrace result = + new com.google.cloud.workflows.executions.v1.Execution.StackTrace(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { + private void buildPartialRepeatedFields( + com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { if (elementsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { elements_ = java.util.Collections.unmodifiableList(elements_); @@ -2573,7 +2975,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1 } } - private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { + private void buildPartial0( + com.google.cloud.workflows.executions.v1.Execution.StackTrace result) { int from_bitField0_ = bitField0_; } @@ -2581,46 +2984,52 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St 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.workflows.executions.v1.Execution.StackTrace) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTrace)other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StackTrace) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StackTrace other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workflows.executions.v1.Execution.StackTrace other) { + if (other + == com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance()) + return this; if (elementsBuilder_ == null) { if (!other.elements_.isEmpty()) { if (elements_.isEmpty()) { @@ -2639,9 +3048,10 @@ public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Stac elementsBuilder_ = null; elements_ = other.elements_; bitField0_ = (bitField0_ & ~0x00000001); - elementsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getElementsFieldBuilder() : null; + elementsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getElementsFieldBuilder() + : null; } else { elementsBuilder_.addAllMessages(other.elements_); } @@ -2673,25 +3083,28 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement m = - input.readMessage( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.parser(), - extensionRegistry); - if (elementsBuilder_ == null) { - ensureElementsIsMutable(); - elements_.add(m); - } else { - elementsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement m = + input.readMessage( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .parser(), + extensionRegistry); + if (elementsBuilder_ == null) { + ensureElementsIsMutable(); + elements_.add(m); + } else { + elementsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2701,28 +3114,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List elements_ = - java.util.Collections.emptyList(); + private java.util.List + elements_ = java.util.Collections.emptyList(); + private void ensureElementsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - elements_ = new java.util.ArrayList(elements_); + elements_ = + new java.util.ArrayList< + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement>(elements_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> elementsBuilder_; + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> + elementsBuilder_; /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public java.util.List getElementsList() { + public java.util.List + getElementsList() { if (elementsBuilder_ == null) { return java.util.Collections.unmodifiableList(elements_); } else { @@ -2730,11 +3155,15 @@ public java.util.List * An array of stack elements. *
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public int getElementsCount() { if (elementsBuilder_ == null) { @@ -2744,13 +3173,18 @@ public int getElementsCount() { } } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements(int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getElements( + int index) { if (elementsBuilder_ == null) { return elements_.get(index); } else { @@ -2758,11 +3192,15 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement getE } } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder setElements( int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { @@ -2779,14 +3217,20 @@ public Builder setElements( return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder setElements( - int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder builderForValue) { + int index, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder + builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.set(index, builderForValue.build()); @@ -2797,13 +3241,18 @@ public Builder setElements( return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public Builder addElements(com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { + public Builder addElements( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { if (elementsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2817,11 +3266,15 @@ public Builder addElements(com.google.cloud.workflows.executions.v1.Execution.St return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder addElements( int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement value) { @@ -2838,14 +3291,19 @@ public Builder addElements( return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder addElements( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder builderForValue) { + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder + builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(builderForValue.build()); @@ -2856,14 +3314,20 @@ public Builder addElements( return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder addElements( - int index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder builderForValue) { + int index, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder + builderForValue) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); elements_.add(index, builderForValue.build()); @@ -2874,18 +3338,23 @@ public Builder addElements( return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder addAllElements( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.workflows.executions.v1.Execution.StackTraceElement> + values) { if (elementsBuilder_ == null) { ensureElementsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, elements_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, elements_); onChanged(); } else { elementsBuilder_.addAllMessages(values); @@ -2893,11 +3362,15 @@ public Builder addAllElements( return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder clearElements() { if (elementsBuilder_ == null) { @@ -2910,11 +3383,15 @@ public Builder clearElements() { return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ public Builder removeElements(int index) { if (elementsBuilder_ == null) { @@ -2927,39 +3404,54 @@ public Builder removeElements(int index) { return this; } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder getElementsBuilder( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder + getElementsBuilder(int index) { return getElementsFieldBuilder().getBuilder(index); } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder getElementsOrBuilder( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder + getElementsOrBuilder(int index) { if (elementsBuilder_ == null) { - return elements_.get(index); } else { + return elements_.get(index); + } else { return elementsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public java.util.List - getElementsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> + getElementsOrBuilderList() { if (elementsBuilder_ != null) { return elementsBuilder_.getMessageOrBuilderList(); } else { @@ -2967,53 +3459,76 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBui } } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder addElementsBuilder() { - return getElementsFieldBuilder().addBuilder( - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder + addElementsBuilder() { + return getElementsFieldBuilder() + .addBuilder( + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .getDefaultInstance()); } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder addElementsBuilder( - int index) { - return getElementsFieldBuilder().addBuilder( - index, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder + addElementsBuilder(int index) { + return getElementsFieldBuilder() + .addBuilder( + index, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement + .getDefaultInstance()); } /** + * + * *
        * An array of stack elements.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.StackTraceElement elements = 1; + * */ - public java.util.List - getElementsBuilderList() { + public java.util.List< + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder> + getElementsBuilderList() { return getElementsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder> getElementsFieldBuilder() { if (elementsBuilder_ == null) { - elementsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder>( - elements_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + elementsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElement.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceElementOrBuilder>( + elements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); elements_ = null; } return elementsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3026,41 +3541,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StackTrace) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StackTrace) - private static final com.google.cloud.workflows.executions.v1.Execution.StackTrace DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.Execution.StackTrace + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StackTrace(); } - public static com.google.cloud.workflows.executions.v1.Execution.StackTrace getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StackTrace + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StackTrace parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StackTrace parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3072,75 +3590,94 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTrace getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StackTrace + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ErrorOrBuilder extends + public interface ErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.Error) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; + * * @return The payload. */ java.lang.String getPayload(); /** + * + * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; + * * @return The bytes for payload. */ - com.google.protobuf.ByteString - getPayloadBytes(); + com.google.protobuf.ByteString getPayloadBytes(); /** + * + * *
      * Human-readable stack trace string.
      * 
* * string context = 2; + * * @return The context. */ java.lang.String getContext(); /** + * + * *
      * Human-readable stack trace string.
      * 
* * string context = 2; + * * @return The bytes for context. */ - com.google.protobuf.ByteString - getContextBytes(); + com.google.protobuf.ByteString getContextBytes(); /** + * + * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; + * * @return Whether the stackTrace field is set. */ boolean hasStackTrace(); /** + * + * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; + * * @return The stackTrace. */ com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTrace(); /** + * + * *
      * Stack trace with detailed information of where error was generated.
      * 
@@ -3150,21 +3687,24 @@ public interface ErrorOrBuilder extends com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder getStackTraceOrBuilder(); } /** + * + * *
    * Error describes why the execution was abnormally terminated.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Error} */ - public static final class Error extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Error extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Error() { payload_ = ""; context_ = ""; @@ -3172,33 +3712,38 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Error(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Error.class, com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Error.class, + com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object payload_ = ""; /** + * + * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; + * * @return The payload. */ @java.lang.Override @@ -3207,29 +3752,29 @@ public java.lang.String getPayload() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; } } /** + * + * *
      * Error message and data returned represented as a JSON string.
      * 
* * string payload = 1; + * * @return The bytes for payload. */ @java.lang.Override - public com.google.protobuf.ByteString - getPayloadBytes() { + public com.google.protobuf.ByteString getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); payload_ = b; return b; } else { @@ -3238,14 +3783,18 @@ public java.lang.String getPayload() { } public static final int CONTEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object context_ = ""; /** + * + * *
      * Human-readable stack trace string.
      * 
* * string context = 2; + * * @return The context. */ @java.lang.Override @@ -3254,29 +3803,29 @@ public java.lang.String getContext() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } } /** + * + * *
      * Human-readable stack trace string.
      * 
* * string context = 2; + * * @return The bytes for context. */ @java.lang.Override - public com.google.protobuf.ByteString - getContextBytes() { + public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); context_ = b; return b; } else { @@ -3287,11 +3836,14 @@ public java.lang.String getContext() { public static final int STACK_TRACE_FIELD_NUMBER = 3; private com.google.cloud.workflows.executions.v1.Execution.StackTrace stackTrace_; /** + * + * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; + * * @return Whether the stackTrace field is set. */ @java.lang.Override @@ -3299,18 +3851,25 @@ public boolean hasStackTrace() { return stackTrace_ != null; } /** + * + * *
      * Stack trace with detailed information of where error was generated.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; + * * @return The stackTrace. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTrace() { - return stackTrace_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; + return stackTrace_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() + : stackTrace_; } /** + * + * *
      * Stack trace with detailed information of where error was generated.
      * 
@@ -3318,11 +3877,15 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTra * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder getStackTraceOrBuilder() { - return stackTrace_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; + public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder + getStackTraceOrBuilder() { + return stackTrace_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() + : stackTrace_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3334,8 +3897,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(payload_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payload_); } @@ -3361,8 +3923,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, context_); } if (stackTrace_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStackTrace()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStackTrace()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3372,21 +3933,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.workflows.executions.v1.Execution.Error)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.Error other = (com.google.cloud.workflows.executions.v1.Execution.Error) obj; + com.google.cloud.workflows.executions.v1.Execution.Error other = + (com.google.cloud.workflows.executions.v1.Execution.Error) obj; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!getContext() - .equals(other.getContext())) return false; + if (!getPayload().equals(other.getPayload())) return false; + if (!getContext().equals(other.getContext())) return false; if (hasStackTrace() != other.hasStackTrace()) return false; if (hasStackTrace()) { - if (!getStackTrace() - .equals(other.getStackTrace())) return false; + if (!getStackTrace().equals(other.getStackTrace())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -3413,89 +3972,94 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.Error parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Error parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error 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.workflows.executions.v1.Execution.Error prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.Execution.Error 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 @@ -3505,39 +4069,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Error describes why the execution was abnormally terminated.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Error} */ - 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.workflows.executions.v1.Execution.Error) com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Error.class, com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Error.class, + com.google.cloud.workflows.executions.v1.Execution.Error.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.Error.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3553,9 +4119,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; } @java.lang.Override @@ -3574,8 +4140,11 @@ public com.google.cloud.workflows.executions.v1.Execution.Error build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Error buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.Error result = new com.google.cloud.workflows.executions.v1.Execution.Error(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.executions.v1.Execution.Error result = + new com.google.cloud.workflows.executions.v1.Execution.Error(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -3589,9 +4158,8 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.Er result.context_ = context_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.stackTrace_ = stackTraceBuilder_ == null - ? stackTrace_ - : stackTraceBuilder_.build(); + result.stackTrace_ = + stackTraceBuilder_ == null ? stackTrace_ : stackTraceBuilder_.build(); } } @@ -3599,38 +4167,41 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.Er 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.workflows.executions.v1.Execution.Error) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Error)other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Error) other); } else { super.mergeFrom(other); return this; @@ -3638,7 +4209,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Error other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) return this; + if (other == com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) + return this; if (!other.getPayload().isEmpty()) { payload_ = other.payload_; bitField0_ |= 0x00000001; @@ -3678,29 +4250,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - payload_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - context_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStackTraceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + payload_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + context_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStackTraceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3710,22 +4284,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object payload_ = ""; /** + * + * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; + * * @return The payload. */ public java.lang.String getPayload() { java.lang.Object ref = payload_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; @@ -3734,20 +4311,21 @@ public java.lang.String getPayload() { } } /** + * + * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; + * * @return The bytes for payload. */ - public com.google.protobuf.ByteString - getPayloadBytes() { + public com.google.protobuf.ByteString getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); payload_ = b; return b; } else { @@ -3755,28 +4333,35 @@ public java.lang.String getPayload() { } } /** + * + * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; + * * @param value The payload to set. * @return This builder for chaining. */ - public Builder setPayload( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPayload(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } payload_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; + * * @return This builder for chaining. */ public Builder clearPayload() { @@ -3786,17 +4371,21 @@ public Builder clearPayload() { return this; } /** + * + * *
        * Error message and data returned represented as a JSON string.
        * 
* * string payload = 1; + * * @param value The bytes for payload to set. * @return This builder for chaining. */ - public Builder setPayloadBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPayloadBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); payload_ = value; bitField0_ |= 0x00000001; @@ -3806,18 +4395,20 @@ public Builder setPayloadBytes( private java.lang.Object context_ = ""; /** + * + * *
        * Human-readable stack trace string.
        * 
* * string context = 2; + * * @return The context. */ public java.lang.String getContext() { java.lang.Object ref = context_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; @@ -3826,20 +4417,21 @@ public java.lang.String getContext() { } } /** + * + * *
        * Human-readable stack trace string.
        * 
* * string context = 2; + * * @return The bytes for context. */ - public com.google.protobuf.ByteString - getContextBytes() { + public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); context_ = b; return b; } else { @@ -3847,28 +4439,35 @@ public java.lang.String getContext() { } } /** + * + * *
        * Human-readable stack trace string.
        * 
* * string context = 2; + * * @param value The context to set. * @return This builder for chaining. */ - public Builder setContext( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Human-readable stack trace string.
        * 
* * string context = 2; + * * @return This builder for chaining. */ public Builder clearContext() { @@ -3878,17 +4477,21 @@ public Builder clearContext() { return this; } /** + * + * *
        * Human-readable stack trace string.
        * 
* * string context = 2; + * * @param value The bytes for context to set. * @return This builder for chaining. */ - public Builder setContextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); context_ = value; bitField0_ |= 0x00000002; @@ -3898,41 +4501,55 @@ public Builder setContextBytes( private com.google.cloud.workflows.executions.v1.Execution.StackTrace stackTrace_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTrace, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> stackTraceBuilder_; + com.google.cloud.workflows.executions.v1.Execution.StackTrace, + com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> + stackTraceBuilder_; /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; + * * @return Whether the stackTrace field is set. */ public boolean hasStackTrace() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; + * * @return The stackTrace. */ public com.google.cloud.workflows.executions.v1.Execution.StackTrace getStackTrace() { if (stackTraceBuilder_ == null) { - return stackTrace_ == null ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; + return stackTrace_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() + : stackTrace_; } else { return stackTraceBuilder_.getMessage(); } } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public Builder setStackTrace(com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { + public Builder setStackTrace( + com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { if (stackTraceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3946,6 +4563,8 @@ public Builder setStackTrace(com.google.cloud.workflows.executions.v1.Execution. return this; } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
@@ -3964,17 +4583,22 @@ public Builder setStackTrace( return this; } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public Builder mergeStackTrace(com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { + public Builder mergeStackTrace( + com.google.cloud.workflows.executions.v1.Execution.StackTrace value) { if (stackTraceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - stackTrace_ != null && - stackTrace_ != com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && stackTrace_ != null + && stackTrace_ + != com.google.cloud.workflows.executions.v1.Execution.StackTrace + .getDefaultInstance()) { getStackTraceBuilder().mergeFrom(value); } else { stackTrace_ = value; @@ -3987,6 +4611,8 @@ public Builder mergeStackTrace(com.google.cloud.workflows.executions.v1.Executio return this; } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
@@ -4004,33 +4630,42 @@ public Builder clearStackTrace() { return this; } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder getStackTraceBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder + getStackTraceBuilder() { bitField0_ |= 0x00000004; onChanged(); return getStackTraceFieldBuilder().getBuilder(); } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ - public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder getStackTraceOrBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder + getStackTraceOrBuilder() { if (stackTraceBuilder_ != null) { return stackTraceBuilder_.getMessageOrBuilder(); } else { - return stackTrace_ == null ? - com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() : stackTrace_; + return stackTrace_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StackTrace.getDefaultInstance() + : stackTrace_; } } /** + * + * *
        * Stack trace with detailed information of where error was generated.
        * 
@@ -4038,18 +4673,22 @@ public com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder ge * .google.cloud.workflows.executions.v1.Execution.StackTrace stack_trace = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTrace, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StackTrace, + com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder> getStackTraceFieldBuilder() { if (stackTraceBuilder_ == null) { - stackTraceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StackTrace, com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder>( - getStackTrace(), - getParentForChildren(), - isClean()); + stackTraceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StackTrace, + com.google.cloud.workflows.executions.v1.Execution.StackTrace.Builder, + com.google.cloud.workflows.executions.v1.Execution.StackTraceOrBuilder>( + getStackTrace(), getParentForChildren(), isClean()); stackTrace_ = null; } return stackTraceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4062,12 +4701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.Error) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.Error) private static final com.google.cloud.workflows.executions.v1.Execution.Error DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.Error(); } @@ -4076,27 +4715,28 @@ public static com.google.cloud.workflows.executions.v1.Execution.Error getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4111,14 +4751,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.Execution.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface StatusOrBuilder extends + public interface StatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.Status) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4129,11 +4771,14 @@ public interface StatusOrBuilder extends
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - java.util.List + java.util.List getCurrentStepsList(); /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4144,10 +4789,13 @@ public interface StatusOrBuilder extends
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps(int index); /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4158,10 +4806,13 @@ public interface StatusOrBuilder extends
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ int getCurrentStepsCount(); /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4172,11 +4823,15 @@ public interface StatusOrBuilder extends
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> getCurrentStepsOrBuilderList(); /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -4187,111 +4842,130 @@ public interface StatusOrBuilder extends
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder getCurrentStepsOrBuilder( - int index); + com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder + getCurrentStepsOrBuilder(int index); } /** + * + * *
    * Represents the current status of this execution.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status} */ - public static final class Status extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Status extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.Status) StatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Status.newBuilder() to construct. private Status(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Status() { currentSteps_ = 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 Status(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.class, com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.class, + com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); } - public interface StepOrBuilder extends + public interface StepOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.Status.Step) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; + * * @return The routine. */ java.lang.String getRoutine(); /** + * + * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; + * * @return The bytes for routine. */ - com.google.protobuf.ByteString - getRoutineBytes(); + com.google.protobuf.ByteString getRoutineBytes(); /** + * + * *
        * Name of a step within the routine.
        * 
* * string step = 2; + * * @return The step. */ java.lang.String getStep(); /** + * + * *
        * Name of a step within the routine.
        * 
* * string step = 2; + * * @return The bytes for step. */ - com.google.protobuf.ByteString - getStepBytes(); + com.google.protobuf.ByteString getStepBytes(); } /** + * + * *
      * Represents a step of the workflow this execution is running.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status.Step} */ - public static final class Step extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Step extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.Status.Step) StepOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Step.newBuilder() to construct. private Step(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Step() { routine_ = ""; step_ = ""; @@ -4299,33 +4973,38 @@ private Step() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Step(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, + com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); } public static final int ROUTINE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object routine_ = ""; /** + * + * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; + * * @return The routine. */ @java.lang.Override @@ -4334,29 +5013,29 @@ public java.lang.String getRoutine() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; } } /** + * + * *
        * Name of a routine within the workflow.
        * 
* * string routine = 1; + * * @return The bytes for routine. */ @java.lang.Override - public com.google.protobuf.ByteString - getRoutineBytes() { + public com.google.protobuf.ByteString getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routine_ = b; return b; } else { @@ -4365,14 +5044,18 @@ public java.lang.String getRoutine() { } public static final int STEP_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object step_ = ""; /** + * + * *
        * Name of a step within the routine.
        * 
* * string step = 2; + * * @return The step. */ @java.lang.Override @@ -4381,29 +5064,29 @@ public java.lang.String getStep() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; } } /** + * + * *
        * Name of a step within the routine.
        * 
* * string step = 2; + * * @return The bytes for step. */ @java.lang.Override - public com.google.protobuf.ByteString - getStepBytes() { + public com.google.protobuf.ByteString getStepBytes() { java.lang.Object ref = step_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); step_ = b; return b; } else { @@ -4412,6 +5095,7 @@ public java.lang.String getStep() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4423,8 +5107,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(routine_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routine_); } @@ -4454,17 +5137,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.workflows.executions.v1.Execution.Status.Step)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.Status.Step other = (com.google.cloud.workflows.executions.v1.Execution.Status.Step) obj; + com.google.cloud.workflows.executions.v1.Execution.Status.Step other = + (com.google.cloud.workflows.executions.v1.Execution.Status.Step) obj; - if (!getRoutine() - .equals(other.getRoutine())) return false; - if (!getStep() - .equals(other.getStep())) return false; + if (!getRoutine().equals(other.getRoutine())) return false; + if (!getStep().equals(other.getStep())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4486,89 +5168,96 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step + 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.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step 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.workflows.executions.v1.Execution.Status.Step prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.Execution.Status.Step 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 @@ -4578,39 +5267,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Represents a step of the workflow this execution is running.
        * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status.Step} */ - 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.workflows.executions.v1.Execution.Status.Step) com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.Step.class, + com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder.class); } - // Construct using com.google.cloud.workflows.executions.v1.Execution.Status.Step.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workflows.executions.v1.Execution.Status.Step.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4621,14 +5313,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.Step getDefaultInstanceForType() { - return com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance(); + public com.google.cloud.workflows.executions.v1.Execution.Status.Step + getDefaultInstanceForType() { + return com.google.cloud.workflows.executions.v1.Execution.Status.Step + .getDefaultInstance(); } @java.lang.Override @@ -4642,13 +5336,17 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Status.Step buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.Status.Step result = new com.google.cloud.workflows.executions.v1.Execution.Status.Step(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.executions.v1.Execution.Status.Step result = + new com.google.cloud.workflows.executions.v1.Execution.Status.Step(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.Status.Step result) { + private void buildPartial0( + com.google.cloud.workflows.executions.v1.Execution.Status.Step result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.routine_ = routine_; @@ -4662,46 +5360,53 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St 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.workflows.executions.v1.Execution.Status.Step) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Status.Step)other); + return mergeFrom( + (com.google.cloud.workflows.executions.v1.Execution.Status.Step) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Status.Step other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workflows.executions.v1.Execution.Status.Step other) { + if (other + == com.google.cloud.workflows.executions.v1.Execution.Status.Step + .getDefaultInstance()) return this; if (!other.getRoutine().isEmpty()) { routine_ = other.routine_; bitField0_ |= 0x00000001; @@ -4738,22 +5443,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - routine_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - step_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + routine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + step_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4763,22 +5471,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object routine_ = ""; /** + * + * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; + * * @return The routine. */ public java.lang.String getRoutine() { java.lang.Object ref = routine_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routine_ = s; return s; @@ -4787,20 +5498,21 @@ public java.lang.String getRoutine() { } } /** + * + * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; + * * @return The bytes for routine. */ - public com.google.protobuf.ByteString - getRoutineBytes() { + public com.google.protobuf.ByteString getRoutineBytes() { java.lang.Object ref = routine_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routine_ = b; return b; } else { @@ -4808,28 +5520,35 @@ public java.lang.String getRoutine() { } } /** + * + * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; + * * @param value The routine to set. * @return This builder for chaining. */ - public Builder setRoutine( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRoutine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } routine_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; + * * @return This builder for chaining. */ public Builder clearRoutine() { @@ -4839,17 +5558,21 @@ public Builder clearRoutine() { return this; } /** + * + * *
          * Name of a routine within the workflow.
          * 
* * string routine = 1; + * * @param value The bytes for routine to set. * @return This builder for chaining. */ - public Builder setRoutineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRoutineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); routine_ = value; bitField0_ |= 0x00000001; @@ -4859,18 +5582,20 @@ public Builder setRoutineBytes( private java.lang.Object step_ = ""; /** + * + * *
          * Name of a step within the routine.
          * 
* * string step = 2; + * * @return The step. */ public java.lang.String getStep() { java.lang.Object ref = step_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); step_ = s; return s; @@ -4879,20 +5604,21 @@ public java.lang.String getStep() { } } /** + * + * *
          * Name of a step within the routine.
          * 
* * string step = 2; + * * @return The bytes for step. */ - public com.google.protobuf.ByteString - getStepBytes() { + public com.google.protobuf.ByteString getStepBytes() { java.lang.Object ref = step_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); step_ = b; return b; } else { @@ -4900,28 +5626,35 @@ public java.lang.String getStep() { } } /** + * + * *
          * Name of a step within the routine.
          * 
* * string step = 2; + * * @param value The step to set. * @return This builder for chaining. */ - public Builder setStep( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStep(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } step_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Name of a step within the routine.
          * 
* * string step = 2; + * * @return This builder for chaining. */ public Builder clearStep() { @@ -4931,23 +5664,28 @@ public Builder clearStep() { return this; } /** + * + * *
          * Name of a step within the routine.
          * 
* * string step = 2; + * * @param value The bytes for step to set. * @return This builder for chaining. */ - public Builder setStepBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStepBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); step_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4960,41 +5698,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.Status.Step) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.Status.Step) - private static final com.google.cloud.workflows.executions.v1.Execution.Status.Step DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.Execution.Status.Step + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.Status.Step(); } - public static com.google.cloud.workflows.executions.v1.Execution.Status.Step getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.Status.Step + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Step parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Step parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5006,16 +5747,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.Step getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int CURRENT_STEPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List currentSteps_; + private java.util.List + currentSteps_; /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5026,13 +5771,17 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step getDefault
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ @java.lang.Override - public java.util.List getCurrentStepsList() { + public java.util.List + getCurrentStepsList() { return currentSteps_; } /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5043,14 +5792,18 @@ public java.util.List
      *
-     * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1;
+     * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1;
+     * 
      */
     @java.lang.Override
-    public java.util.List 
+    public java.util.List<
+            ? extends com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder>
         getCurrentStepsOrBuilderList() {
       return currentSteps_;
     }
     /**
+     *
+     *
      * 
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5061,13 +5814,16 @@ public java.util.List
      *
-     * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1;
+     * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1;
+     * 
      */
     @java.lang.Override
     public int getCurrentStepsCount() {
       return currentSteps_.size();
     }
     /**
+     *
+     *
      * 
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5078,13 +5834,17 @@ public int getCurrentStepsCount() {
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps(int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps( + int index) { return currentSteps_.get(index); } /** + * + * *
      * A list of currently executing or last executed step names for the
      * workflow execution currently running. If the workflow has succeeded or
@@ -5095,15 +5855,17 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrent
      * ending with the most deeply nested step.
      * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder getCurrentStepsOrBuilder( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder + getCurrentStepsOrBuilder(int index) { return currentSteps_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5115,8 +5877,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 < currentSteps_.size(); i++) { output.writeMessage(1, currentSteps_.get(i)); } @@ -5130,8 +5891,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < currentSteps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, currentSteps_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, currentSteps_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5141,15 +5901,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.workflows.executions.v1.Execution.Status)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.Status other = (com.google.cloud.workflows.executions.v1.Execution.Status) obj; + com.google.cloud.workflows.executions.v1.Execution.Status other = + (com.google.cloud.workflows.executions.v1.Execution.Status) obj; - if (!getCurrentStepsList() - .equals(other.getCurrentStepsList())) return false; + if (!getCurrentStepsList().equals(other.getCurrentStepsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5171,89 +5931,94 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.Status parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.Status parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status 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.workflows.executions.v1.Execution.Status prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.Execution.Status 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 @@ -5263,39 +6028,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Represents the current status of this execution.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.Status} */ - 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.workflows.executions.v1.Execution.Status) com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.Status.class, com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.Status.class, + com.google.cloud.workflows.executions.v1.Execution.Status.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.Status.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5311,9 +6078,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; } @java.lang.Override @@ -5332,14 +6099,18 @@ public com.google.cloud.workflows.executions.v1.Execution.Status build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Status buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.Status result = new com.google.cloud.workflows.executions.v1.Execution.Status(this); + com.google.cloud.workflows.executions.v1.Execution.Status result = + new com.google.cloud.workflows.executions.v1.Execution.Status(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1.Execution.Status result) { + private void buildPartialRepeatedFields( + com.google.cloud.workflows.executions.v1.Execution.Status result) { if (currentStepsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { currentSteps_ = java.util.Collections.unmodifiableList(currentSteps_); @@ -5359,38 +6130,41 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St 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.workflows.executions.v1.Execution.Status) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Status)other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.Status) other); } else { super.mergeFrom(other); return this; @@ -5398,7 +6172,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Status other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) return this; + if (other == com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) + return this; if (currentStepsBuilder_ == null) { if (!other.currentSteps_.isEmpty()) { if (currentSteps_.isEmpty()) { @@ -5417,9 +6192,10 @@ public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.Stat currentStepsBuilder_ = null; currentSteps_ = other.currentSteps_; bitField0_ = (bitField0_ & ~0x00000001); - currentStepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCurrentStepsFieldBuilder() : null; + currentStepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCurrentStepsFieldBuilder() + : null; } else { currentStepsBuilder_.addAllMessages(other.currentSteps_); } @@ -5451,25 +6227,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workflows.executions.v1.Execution.Status.Step m = - input.readMessage( - com.google.cloud.workflows.executions.v1.Execution.Status.Step.parser(), - extensionRegistry); - if (currentStepsBuilder_ == null) { - ensureCurrentStepsIsMutable(); - currentSteps_.add(m); - } else { - currentStepsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workflows.executions.v1.Execution.Status.Step m = + input.readMessage( + com.google.cloud.workflows.executions.v1.Execution.Status.Step.parser(), + extensionRegistry); + if (currentStepsBuilder_ == null) { + ensureCurrentStepsIsMutable(); + currentSteps_.add(m); + } else { + currentStepsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5479,21 +6257,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List currentSteps_ = - java.util.Collections.emptyList(); + private java.util.List + currentSteps_ = java.util.Collections.emptyList(); + private void ensureCurrentStepsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - currentSteps_ = new java.util.ArrayList(currentSteps_); + currentSteps_ = + new java.util.ArrayList< + com.google.cloud.workflows.executions.v1.Execution.Status.Step>(currentSteps_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status.Step, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> currentStepsBuilder_; + com.google.cloud.workflows.executions.v1.Execution.Status.Step, + com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, + com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> + currentStepsBuilder_; /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5504,9 +6291,12 @@ private void ensureCurrentStepsIsMutable() {
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public java.util.List getCurrentStepsList() { + public java.util.List + getCurrentStepsList() { if (currentStepsBuilder_ == null) { return java.util.Collections.unmodifiableList(currentSteps_); } else { @@ -5514,6 +6304,8 @@ public java.util.List * A list of currently executing or last executed step names for the * workflow execution currently running. If the workflow has succeeded or @@ -5524,7 +6316,9 @@ public java.util.List * - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public int getCurrentStepsCount() { if (currentStepsBuilder_ == null) { @@ -5534,6 +6328,8 @@ public int getCurrentStepsCount() { } } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5544,9 +6340,12 @@ public int getCurrentStepsCount() {
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps(int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrentSteps( + int index) { if (currentStepsBuilder_ == null) { return currentSteps_.get(index); } else { @@ -5554,6 +6353,8 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrent } } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5564,7 +6365,9 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step getCurrent
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder setCurrentSteps( int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { @@ -5581,6 +6384,8 @@ public Builder setCurrentSteps( return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5591,10 +6396,13 @@ public Builder setCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder setCurrentSteps( - int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { + int index, + com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { if (currentStepsBuilder_ == null) { ensureCurrentStepsIsMutable(); currentSteps_.set(index, builderForValue.build()); @@ -5605,6 +6413,8 @@ public Builder setCurrentSteps( return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5615,9 +6425,12 @@ public Builder setCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public Builder addCurrentSteps(com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { + public Builder addCurrentSteps( + com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { if (currentStepsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5631,6 +6444,8 @@ public Builder addCurrentSteps(com.google.cloud.workflows.executions.v1.Executio return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5641,7 +6456,9 @@ public Builder addCurrentSteps(com.google.cloud.workflows.executions.v1.Executio
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder addCurrentSteps( int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step value) { @@ -5658,6 +6475,8 @@ public Builder addCurrentSteps( return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5668,7 +6487,9 @@ public Builder addCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder addCurrentSteps( com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { @@ -5682,6 +6503,8 @@ public Builder addCurrentSteps( return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5692,10 +6515,13 @@ public Builder addCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder addCurrentSteps( - int index, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { + int index, + com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder builderForValue) { if (currentStepsBuilder_ == null) { ensureCurrentStepsIsMutable(); currentSteps_.add(index, builderForValue.build()); @@ -5706,6 +6532,8 @@ public Builder addCurrentSteps( return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5716,14 +6544,17 @@ public Builder addCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder addAllCurrentSteps( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.workflows.executions.v1.Execution.Status.Step> + values) { if (currentStepsBuilder_ == null) { ensureCurrentStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, currentSteps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, currentSteps_); onChanged(); } else { currentStepsBuilder_.addAllMessages(values); @@ -5731,6 +6562,8 @@ public Builder addAllCurrentSteps( return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5741,7 +6574,9 @@ public Builder addAllCurrentSteps(
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder clearCurrentSteps() { if (currentStepsBuilder_ == null) { @@ -5754,6 +6589,8 @@ public Builder clearCurrentSteps() { return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5764,7 +6601,9 @@ public Builder clearCurrentSteps() {
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ public Builder removeCurrentSteps(int index) { if (currentStepsBuilder_ == null) { @@ -5777,6 +6616,8 @@ public Builder removeCurrentSteps(int index) { return this; } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5787,13 +6628,17 @@ public Builder removeCurrentSteps(int index) {
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder getCurrentStepsBuilder( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder + getCurrentStepsBuilder(int index) { return getCurrentStepsFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5804,16 +6649,21 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder ge
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder getCurrentStepsOrBuilder( - int index) { + public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder + getCurrentStepsOrBuilder(int index) { if (currentStepsBuilder_ == null) { - return currentSteps_.get(index); } else { + return currentSteps_.get(index); + } else { return currentStepsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5824,10 +6674,13 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder g
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public java.util.List - getCurrentStepsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> + getCurrentStepsOrBuilderList() { if (currentStepsBuilder_ != null) { return currentStepsBuilder_.getMessageOrBuilderList(); } else { @@ -5835,6 +6688,8 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder g } } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5845,13 +6700,20 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder g
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder addCurrentStepsBuilder() { - return getCurrentStepsFieldBuilder().addBuilder( - com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder + addCurrentStepsBuilder() { + return getCurrentStepsFieldBuilder() + .addBuilder( + com.google.cloud.workflows.executions.v1.Execution.Status.Step + .getDefaultInstance()); } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5862,14 +6724,21 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder ad
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder addCurrentStepsBuilder( - int index) { - return getCurrentStepsFieldBuilder().addBuilder( - index, com.google.cloud.workflows.executions.v1.Execution.Status.Step.getDefaultInstance()); + public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder + addCurrentStepsBuilder(int index) { + return getCurrentStepsFieldBuilder() + .addBuilder( + index, + com.google.cloud.workflows.executions.v1.Execution.Status.Step + .getDefaultInstance()); } /** + * + * *
        * A list of currently executing or last executed step names for the
        * workflow execution currently running. If the workflow has succeeded or
@@ -5880,18 +6749,26 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder ad
        * ending with the most deeply nested step.
        * 
* - * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * + * repeated .google.cloud.workflows.executions.v1.Execution.Status.Step current_steps = 1; + * */ - public java.util.List - getCurrentStepsBuilderList() { + public java.util.List + getCurrentStepsBuilderList() { return getCurrentStepsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status.Step, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.Status.Step, + com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, + com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder> getCurrentStepsFieldBuilder() { if (currentStepsBuilder_ == null) { - currentStepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status.Step, com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder>( + currentStepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.Status.Step, + com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder, + com.google.cloud.workflows.executions.v1.Execution.Status.StepOrBuilder>( currentSteps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -5900,6 +6777,7 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Step.Builder ad } return currentStepsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5912,12 +6790,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.Status) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.Status) private static final com.google.cloud.workflows.executions.v1.Execution.Status DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.Status(); } @@ -5926,27 +6804,28 @@ public static com.google.cloud.workflows.executions.v1.Execution.Status getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Status parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Status parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5961,68 +6840,82 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.Execution.Status getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface StateErrorOrBuilder extends + public interface StateErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution.StateError) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The details. */ java.lang.String getDetails(); /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The bytes for details. */ - com.google.protobuf.ByteString - getDetailsBytes(); + com.google.protobuf.ByteString getDetailsBytes(); /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @return The type. */ com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType(); } /** + * + * *
    * Describes an error related to the current state of the Execution resource.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StateError} */ - public static final class StateError extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StateError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.Execution.StateError) StateErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateError.newBuilder() to construct. private StateError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StateError() { details_ = ""; type_ = 0; @@ -6030,34 +6923,38 @@ private StateError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateError(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StateError.class, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StateError.class, + com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); } /** + * + * *
      * Describes the possible types of a state error.
      * 
* * Protobuf enum {@code google.cloud.workflows.executions.v1.Execution.StateError.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * No type specified.
        * 
@@ -6066,6 +6963,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
        * Caused by an issue with KMS.
        * 
@@ -6077,6 +6976,8 @@ public enum Type ; /** + * + * *
        * No type specified.
        * 
@@ -6085,6 +6986,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Caused by an issue with KMS.
        * 
@@ -6093,7 +6996,6 @@ public enum Type */ public static final int KMS_ERROR_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -6118,48 +7020,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return KMS_ERROR; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return KMS_ERROR; + 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< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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 Type findValueByNumber(int number) { + return Type.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.workflows.executions.v1.Execution.StateError.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.Execution.StateError.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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; @@ -6177,14 +7080,18 @@ private Type(int value) { } public static final int DETAILS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object details_ = ""; /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The details. */ @java.lang.Override @@ -6193,29 +7100,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -6226,30 +7133,42 @@ public java.lang.String getDetails() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @return The type. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType() { - com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); - return result == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType() { + com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = + com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); + return result == null + ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6261,12 +7180,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(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, details_); } - if (type_ != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } getUnknownFields().writeTo(output); @@ -6281,9 +7201,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, details_); } - if (type_ != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.workflows.executions.v1.Execution.StateError.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6293,15 +7214,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.workflows.executions.v1.Execution.StateError)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution.StateError other = (com.google.cloud.workflows.executions.v1.Execution.StateError) obj; + com.google.cloud.workflows.executions.v1.Execution.StateError other = + (com.google.cloud.workflows.executions.v1.Execution.StateError) obj; - if (!getDetails() - .equals(other.getDetails())) return false; + if (!getDetails().equals(other.getDetails())) return false; if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6324,89 +7245,94 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.Execution.StateError parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution.StateError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution.StateError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError 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.workflows.executions.v1.Execution.StateError prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.Execution.StateError 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 @@ -6416,39 +7342,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes an error related to the current state of the Execution resource.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1.Execution.StateError} */ - 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.workflows.executions.v1.Execution.StateError) com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.Execution.StateError.class, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); + com.google.cloud.workflows.executions.v1.Execution.StateError.class, + com.google.cloud.workflows.executions.v1.Execution.StateError.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1.Execution.StateError.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6459,13 +7387,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StateError getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StateError + getDefaultInstanceForType() { return com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance(); } @@ -6480,13 +7409,17 @@ public com.google.cloud.workflows.executions.v1.Execution.StateError build() { @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError buildPartial() { - com.google.cloud.workflows.executions.v1.Execution.StateError result = new com.google.cloud.workflows.executions.v1.Execution.StateError(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.executions.v1.Execution.StateError result = + new com.google.cloud.workflows.executions.v1.Execution.StateError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.StateError result) { + private void buildPartial0( + com.google.cloud.workflows.executions.v1.Execution.StateError result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.details_ = details_; @@ -6500,46 +7433,52 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution.St 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.workflows.executions.v1.Execution.StateError) { - return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StateError)other); + return mergeFrom((com.google.cloud.workflows.executions.v1.Execution.StateError) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution.StateError other) { - if (other == com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workflows.executions.v1.Execution.StateError other) { + if (other + == com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance()) + return this; if (!other.getDetails().isEmpty()) { details_ = other.details_; bitField0_ |= 0x00000001; @@ -6574,22 +7513,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - details_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6599,22 +7541,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object details_ = ""; /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -6623,20 +7568,21 @@ public java.lang.String getDetails() { } } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @return The bytes for details. */ - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -6644,28 +7590,35 @@ public java.lang.String getDetails() { } } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } details_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @return This builder for chaining. */ public Builder clearDetails() { @@ -6675,17 +7628,21 @@ public Builder clearDetails() { return this; } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); details_ = value; bitField0_ |= 0x00000001; @@ -6695,22 +7652,29 @@ public Builder setDetailsBytes( private int type_ = 0; /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -6721,28 +7685,38 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @return The type. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError.Type getType() { - com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); - return result == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1.Execution.StateError.Type result = + com.google.cloud.workflows.executions.v1.Execution.StateError.Type.forNumber(type_); + return result == null + ? com.google.cloud.workflows.executions.v1.Execution.StateError.Type.UNRECOGNIZED + : result; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.workflows.executions.v1.Execution.StateError.Type value) { + public Builder setType( + com.google.cloud.workflows.executions.v1.Execution.StateError.Type value) { if (value == null) { throw new NullPointerException(); } @@ -6752,11 +7726,14 @@ public Builder setType(com.google.cloud.workflows.executions.v1.Execution.StateE return this; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.executions.v1.Execution.StateError.Type type = 2; + * * @return This builder for chaining. */ public Builder clearType() { @@ -6765,6 +7742,7 @@ public Builder clearType() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6777,41 +7755,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution.StateError) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution.StateError) - private static final com.google.cloud.workflows.executions.v1.Execution.StateError DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.Execution.StateError + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution.StateError(); } - public static com.google.cloud.workflows.executions.v1.Execution.StateError getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.Execution.StateError + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6823,16 +7804,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StateError getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.Execution.StateError + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the execution.
    * Format:
@@ -6840,6 +7824,7 @@ public com.google.cloud.workflows.executions.v1.Execution.StateError getDefaultI
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -6848,14 +7833,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 execution.
    * Format:
@@ -6863,16 +7849,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -6883,11 +7868,15 @@ public java.lang.String getName() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -6895,11 +7884,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -6907,11 +7900,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -6921,11 +7917,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -6933,11 +7933,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -6945,11 +7949,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -6959,11 +7966,15 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int DURATION_FIELD_NUMBER = 12; private com.google.protobuf.Duration duration_; /** + * + * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ @java.lang.Override @@ -6971,11 +7982,15 @@ public boolean hasDuration() { return duration_ != null; } /** + * + * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ @java.lang.Override @@ -6983,11 +7998,14 @@ public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** + * + * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { @@ -6997,33 +8015,51 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { public static final int STATE_FIELD_NUMBER = 4; private int state_ = 0; /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.State getState() { - com.google.cloud.workflows.executions.v1.Execution.State result = com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); - return result == null ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1.Execution.State getState() { + com.google.cloud.workflows.executions.v1.Execution.State result = + com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); + return result == null + ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED + : result; } public static final int ARGUMENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object argument_ = ""; /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -7034,6 +8070,7 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() {
    * 
* * string argument = 5; + * * @return The argument. */ @java.lang.Override @@ -7042,14 +8079,15 @@ public java.lang.String getArgument() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; } } /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -7060,16 +8098,15 @@ public java.lang.String getArgument() {
    * 
* * string argument = 5; + * * @return The bytes for argument. */ @java.lang.Override - public com.google.protobuf.ByteString - getArgumentBytes() { + public com.google.protobuf.ByteString getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); argument_ = b; return b; } else { @@ -7078,15 +8115,19 @@ public java.lang.String getArgument() { } public static final int RESULT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object result_ = ""; /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The result. */ @java.lang.Override @@ -7095,30 +8136,30 @@ public java.lang.String getResult() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; } } /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for result. */ @java.lang.Override - public com.google.protobuf.ByteString - getResultBytes() { + public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); result_ = b; return b; } else { @@ -7129,13 +8170,18 @@ public java.lang.String getResult() { public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.workflows.executions.v1.Execution.Error error_; /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ @java.lang.Override @@ -7143,42 +8189,59 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Error getError() { - return error_ == null ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() + : error_; } /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErrorOrBuilder() { - return error_ == null ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() + : error_; } public static final int WORKFLOW_REVISION_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object workflowRevisionId_ = ""; /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workflowRevisionId. */ @java.lang.Override @@ -7187,29 +8250,29 @@ public java.lang.String getWorkflowRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; } } /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workflowRevisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -7220,38 +8283,54 @@ public java.lang.String getWorkflowRevisionId() { public static final int CALL_LOG_LEVEL_FIELD_NUMBER = 9; private int callLogLevel_ = 0; /** + * + * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override public int getCallLogLevelValue() { + @java.lang.Override + public int getCallLogLevelValue() { return callLogLevel_; } /** + * + * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @return The callLogLevel. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); - return result == null ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel() { + com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = + com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); + return result == null + ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED + : result; } public static final int STATUS_FIELD_NUMBER = 10; private com.google.cloud.workflows.executions.v1.Execution.Status status_; /** + * + * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ @java.lang.Override @@ -7259,58 +8338,73 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.Status getStatus() { - return status_ == null ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() + : status_; } /** + * + * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder getStatusOrBuilder() { - return status_ == null ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() + : status_; } public static final int LABELS_FIELD_NUMBER = 11; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -7324,20 +8418,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 11;
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -7355,6 +8450,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -7368,17 +8465,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 11;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -7392,11 +8491,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 11;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -7406,13 +8505,18 @@ public java.lang.String getLabelsOrThrow(
   public static final int STATE_ERROR_FIELD_NUMBER = 13;
   private com.google.cloud.workflows.executions.v1.Execution.StateError stateError_;
   /**
+   *
+   *
    * 
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateError field is set. */ @java.lang.Override @@ -7420,34 +8524,49 @@ public boolean hasStateError() { return stateError_ != null; } /** + * + * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateError. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.StateError getStateError() { - return stateError_ == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; + return stateError_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() + : stateError_; } /** + * + * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder getStateErrorOrBuilder() { - return stateError_ == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; + public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder + getStateErrorOrBuilder() { + return stateError_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() + : stateError_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7459,8 +8578,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_); } @@ -7470,7 +8588,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (endTime_ != null) { output.writeMessage(3, getEndTime()); } - if (state_ != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { @@ -7485,18 +8604,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowRevisionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, workflowRevisionId_); } - if (callLogLevel_ != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { + if (callLogLevel_ + != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel + .CALL_LOG_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(9, callLogLevel_); } if (status_ != null) { output.writeMessage(10, getStatus()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 11); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); if (duration_ != null) { output.writeMessage(12, getDuration()); } @@ -7516,16 +8634,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } - if (state_ != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.workflows.executions.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, argument_); @@ -7534,37 +8650,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, result_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowRevisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, workflowRevisionId_); } - if (callLogLevel_ != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, callLogLevel_); + if (callLogLevel_ + != com.google.cloud.workflows.executions.v1.Execution.CallLogLevel + .CALL_LOG_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, callLogLevel_); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getStatus()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getStatus()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDuration()); } if (stateError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getStateError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getStateError()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7574,54 +8688,44 @@ 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.workflows.executions.v1.Execution)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.Execution other = (com.google.cloud.workflows.executions.v1.Execution) obj; + com.google.cloud.workflows.executions.v1.Execution other = + (com.google.cloud.workflows.executions.v1.Execution) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) 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 (!getEndTime().equals(other.getEndTime())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; + if (!getDuration().equals(other.getDuration())) return false; } if (state_ != other.state_) return false; - if (!getArgument() - .equals(other.getArgument())) return false; - if (!getResult() - .equals(other.getResult())) return false; + if (!getArgument().equals(other.getArgument())) return false; + if (!getResult().equals(other.getResult())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } - if (!getWorkflowRevisionId() - .equals(other.getWorkflowRevisionId())) return false; + if (!getWorkflowRevisionId().equals(other.getWorkflowRevisionId())) return false; if (callLogLevel_ != other.callLogLevel_) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasStateError() != other.hasStateError()) return false; if (hasStateError()) { - if (!getStateError() - .equals(other.getStateError())) return false; + if (!getStateError().equals(other.getStateError())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -7680,98 +8784,103 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.Execution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.Execution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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.workflows.executions.v1.Execution 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 running instance of a
    * [Workflow](/workflows/docs/reference/rest/v1/projects.locations.workflows).
@@ -7779,55 +8888,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.Execution}
    */
-  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.workflows.executions.v1.Execution)
       com.google.cloud.workflows.executions.v1.ExecutionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 11:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 11:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.Execution.class, com.google.cloud.workflows.executions.v1.Execution.Builder.class);
+              com.google.cloud.workflows.executions.v1.Execution.class,
+              com.google.cloud.workflows.executions.v1.Execution.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.Execution.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -7873,9 +8979,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_Execution_descriptor;
     }
 
     @java.lang.Override
@@ -7894,8 +9000,11 @@ public com.google.cloud.workflows.executions.v1.Execution build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.Execution buildPartial() {
-      com.google.cloud.workflows.executions.v1.Execution result = new com.google.cloud.workflows.executions.v1.Execution(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1.Execution result =
+          new com.google.cloud.workflows.executions.v1.Execution(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -7906,19 +9015,13 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.startTime_ = startTimeBuilder_ == null
-            ? startTime_
-            : startTimeBuilder_.build();
+        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.endTime_ = endTimeBuilder_ == null
-            ? endTime_
-            : endTimeBuilder_.build();
+        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.duration_ = durationBuilder_ == null
-            ? duration_
-            : durationBuilder_.build();
+        result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.state_ = state_;
@@ -7930,9 +9033,7 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
         result.result_ = result_;
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
         result.workflowRevisionId_ = workflowRevisionId_;
@@ -7941,18 +9042,14 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
         result.callLogLevel_ = callLogLevel_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.status_ = statusBuilder_ == null
-            ? status_
-            : statusBuilder_.build();
+        result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.labels_ = internalGetLabels();
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.stateError_ = stateErrorBuilder_ == null
-            ? stateError_
-            : stateErrorBuilder_.build();
+        result.stateError_ = stateErrorBuilder_ == null ? stateError_ : stateErrorBuilder_.build();
       }
     }
 
@@ -7960,38 +9057,39 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.Execution re
     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.workflows.executions.v1.Execution) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.Execution)other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.Execution) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -7999,7 +9097,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution other) {
-      if (other == com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -8041,8 +9140,7 @@ public Builder mergeFrom(com.google.cloud.workflows.executions.v1.Execution othe
       if (other.hasStatus()) {
         mergeStatus(other.getStatus());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000800;
       if (other.hasStateError()) {
         mergeStateError(other.getStateError());
@@ -8073,93 +9171,97 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getStartTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getEndTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 32
-            case 42: {
-              argument_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              result_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              workflowRevisionId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 72: {
-              callLogLevel_ = input.readEnum();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 72
-            case 82: {
-              input.readMessage(
-                  getStatusFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getDurationFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getStateErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 106
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 32
+            case 42:
+              {
+                argument_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                result_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                workflowRevisionId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 72:
+              {
+                callLogLevel_ = input.readEnum();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 72
+            case 82:
+              {
+                input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getDurationFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(getStateErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 106
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -8169,10 +9271,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the execution.
      * Format:
@@ -8180,13 +9285,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -8195,6 +9300,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -8202,15 +9309,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -8218,6 +9324,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -8225,18 +9333,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -8244,6 +9356,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -8253,6 +9366,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -8260,12 +9375,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -8275,24 +9392,35 @@ public Builder setNameBytes( 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -8303,11 +9431,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -8323,14 +9454,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -8341,17 +9474,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -8364,11 +9500,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -8381,11 +9520,14 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -8393,36 +9535,44 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -8430,24 +9580,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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -8458,11 +9619,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -8478,14 +9642,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -8496,17 +9662,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -8519,11 +9688,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -8536,11 +9708,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000004; @@ -8548,36 +9723,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -8585,24 +9768,35 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ public com.google.protobuf.Duration getDuration() { @@ -8613,11 +9807,14 @@ public com.google.protobuf.Duration getDuration() { } } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { @@ -8633,14 +9830,16 @@ public Builder setDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); } else { @@ -8651,17 +9850,20 @@ public Builder setDuration( return this; } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - duration_ != null && - duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { getDurationBuilder().mergeFrom(value); } else { duration_ = value; @@ -8674,11 +9876,14 @@ public Builder mergeDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDuration() { bitField0_ = (bitField0_ & ~0x00000008); @@ -8691,11 +9896,14 @@ public Builder clearDuration() { return this; } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000008; @@ -8703,36 +9911,44 @@ public com.google.protobuf.Duration.Builder getDurationBuilder() { return getDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** + * + * *
      * Output only. Measures the duration of the execution.
      * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; @@ -8740,22 +9956,33 @@ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -8766,24 +9993,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.State getState() { - com.google.cloud.workflows.executions.v1.Execution.State result = com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); - return result == null ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1.Execution.State result = + com.google.cloud.workflows.executions.v1.Execution.State.forNumber(state_); + return result == null + ? com.google.cloud.workflows.executions.v1.Execution.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -8797,11 +10037,16 @@ public Builder setState(com.google.cloud.workflows.executions.v1.Execution.State return this; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -8813,6 +10058,8 @@ public Builder clearState() { private java.lang.Object argument_ = ""; /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -8823,13 +10070,13 @@ public Builder clearState() {
      * 
* * string argument = 5; + * * @return The argument. */ public java.lang.String getArgument() { java.lang.Object ref = argument_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; @@ -8838,6 +10085,8 @@ public java.lang.String getArgument() { } } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -8848,15 +10097,14 @@ public java.lang.String getArgument() {
      * 
* * string argument = 5; + * * @return The bytes for argument. */ - public com.google.protobuf.ByteString - getArgumentBytes() { + public com.google.protobuf.ByteString getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); argument_ = b; return b; } else { @@ -8864,6 +10112,8 @@ public java.lang.String getArgument() { } } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -8874,18 +10124,22 @@ public java.lang.String getArgument() {
      * 
* * string argument = 5; + * * @param value The argument to set. * @return This builder for chaining. */ - public Builder setArgument( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } argument_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -8896,6 +10150,7 @@ public Builder setArgument(
      * 
* * string argument = 5; + * * @return This builder for chaining. */ public Builder clearArgument() { @@ -8905,6 +10160,8 @@ public Builder clearArgument() { return this; } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
@@ -8915,12 +10172,14 @@ public Builder clearArgument() {
      * 
* * string argument = 5; + * * @param value The bytes for argument to set. * @return This builder for chaining. */ - public Builder setArgumentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); argument_ = value; bitField0_ |= 0x00000020; @@ -8930,19 +10189,21 @@ public Builder setArgumentBytes( private java.lang.Object result_ = ""; /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The result. */ public java.lang.String getResult() { java.lang.Object ref = result_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; @@ -8951,21 +10212,22 @@ public java.lang.String getResult() { } } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for result. */ - public com.google.protobuf.ByteString - getResultBytes() { + public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); result_ = b; return b; } else { @@ -8973,30 +10235,37 @@ public java.lang.String getResult() { } } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResult(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } result_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearResult() { @@ -9006,18 +10275,22 @@ public Builder clearResult() { return this; } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for result to set. * @return This builder for chaining. */ - public Builder setResultBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); result_ = value; bitField0_ |= 0x00000040; @@ -9027,45 +10300,64 @@ public Builder setResultBytes( private com.google.cloud.workflows.executions.v1.Execution.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Error, com.google.cloud.workflows.executions.v1.Execution.Error.Builder, com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> errorBuilder_; + com.google.cloud.workflows.executions.v1.Execution.Error, + com.google.cloud.workflows.executions.v1.Execution.Error.Builder, + com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ public com.google.cloud.workflows.executions.v1.Execution.Error getError() { if (errorBuilder_ == null) { - return error_ == null ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() + : error_; } else { return errorBuilder_.getMessage(); } } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setError(com.google.cloud.workflows.executions.v1.Execution.Error value) { if (errorBuilder_ == null) { @@ -9081,13 +10373,17 @@ public Builder setError(com.google.cloud.workflows.executions.v1.Execution.Error return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setError( com.google.cloud.workflows.executions.v1.Execution.Error.Builder builderForValue) { @@ -9101,19 +10397,24 @@ public Builder setError( return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeError(com.google.cloud.workflows.executions.v1.Execution.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - error_ != null && - error_ != com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && error_ != null + && error_ + != com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -9126,13 +10427,17 @@ public Builder mergeError(com.google.cloud.workflows.executions.v1.Execution.Err return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000080); @@ -9145,13 +10450,17 @@ public Builder clearError() { return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.workflows.executions.v1.Execution.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000080; @@ -9159,40 +10468,52 @@ public com.google.cloud.workflows.executions.v1.Execution.Error.Builder getError return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Error.getDefaultInstance() + : error_; } } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Error, com.google.cloud.workflows.executions.v1.Execution.Error.Builder, com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.Error, + com.google.cloud.workflows.executions.v1.Execution.Error.Builder, + com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Error, com.google.cloud.workflows.executions.v1.Execution.Error.Builder, com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.Error, + com.google.cloud.workflows.executions.v1.Execution.Error.Builder, + com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder>( + getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; @@ -9200,18 +10521,20 @@ public com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErro private java.lang.Object workflowRevisionId_ = ""; /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workflowRevisionId. */ public java.lang.String getWorkflowRevisionId() { java.lang.Object ref = workflowRevisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; @@ -9220,20 +10543,21 @@ public java.lang.String getWorkflowRevisionId() { } } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workflowRevisionId. */ - public com.google.protobuf.ByteString - getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -9241,28 +10565,35 @@ public java.lang.String getWorkflowRevisionId() { } } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workflowRevisionId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWorkflowRevisionId() { @@ -9272,17 +10603,21 @@ public Builder clearWorkflowRevisionId() { return this; } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workflowRevisionId_ = value; bitField0_ |= 0x00000100; @@ -9292,22 +10627,29 @@ public Builder setWorkflowRevisionIdBytes( private int callLogLevel_ = 0; /** + * + * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override public int getCallLogLevelValue() { + @java.lang.Override + public int getCallLogLevelValue() { return callLogLevel_; } /** + * + * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @param value The enum numeric value on the wire for callLogLevel to set. * @return This builder for chaining. */ @@ -9318,28 +10660,38 @@ public Builder setCallLogLevelValue(int value) { return this; } /** + * + * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @return The callLogLevel. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); - return result == null ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1.Execution.CallLogLevel result = + com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.forNumber(callLogLevel_); + return result == null + ? com.google.cloud.workflows.executions.v1.Execution.CallLogLevel.UNRECOGNIZED + : result; } /** + * + * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @param value The callLogLevel to set. * @return This builder for chaining. */ - public Builder setCallLogLevel(com.google.cloud.workflows.executions.v1.Execution.CallLogLevel value) { + public Builder setCallLogLevel( + com.google.cloud.workflows.executions.v1.Execution.CallLogLevel value) { if (value == null) { throw new NullPointerException(); } @@ -9349,11 +10701,14 @@ public Builder setCallLogLevel(com.google.cloud.workflows.executions.v1.Executio return this; } /** + * + * *
      * The call logging level associated to this execution.
      * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @return This builder for chaining. */ public Builder clearCallLogLevel() { @@ -9365,42 +10720,61 @@ public Builder clearCallLogLevel() { private com.google.cloud.workflows.executions.v1.Execution.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status, com.google.cloud.workflows.executions.v1.Execution.Status.Builder, com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> statusBuilder_; + com.google.cloud.workflows.executions.v1.Execution.Status, + com.google.cloud.workflows.executions.v1.Execution.Status.Builder, + com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> + statusBuilder_; /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ public com.google.cloud.workflows.executions.v1.Execution.Status getStatus() { if (statusBuilder_ == null) { - return status_ == null ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() + : status_; } else { return statusBuilder_.getMessage(); } } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus(com.google.cloud.workflows.executions.v1.Execution.Status value) { if (statusBuilder_ == null) { @@ -9416,12 +10790,16 @@ public Builder setStatus(com.google.cloud.workflows.executions.v1.Execution.Stat return this; } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStatus( com.google.cloud.workflows.executions.v1.Execution.Status.Builder builderForValue) { @@ -9435,18 +10813,23 @@ public Builder setStatus( return this; } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStatus(com.google.cloud.workflows.executions.v1.Execution.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - status_ != null && - status_ != com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && status_ != null + && status_ + != com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -9459,12 +10842,16 @@ public Builder mergeStatus(com.google.cloud.workflows.executions.v1.Execution.St return this; } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000400); @@ -9477,12 +10864,16 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.workflows.executions.v1.Execution.Status.Builder getStatusBuilder() { bitField0_ |= 0x00000400; @@ -9490,58 +10881,68 @@ public com.google.cloud.workflows.executions.v1.Execution.Status.Builder getStat return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.workflows.executions.v1.Execution.Status.getDefaultInstance() + : status_; } } /** + * + * *
      * Output only. Status tracks the current steps and progress data of this
      * execution.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status, com.google.cloud.workflows.executions.v1.Execution.Status.Builder, com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.Status, + com.google.cloud.workflows.executions.v1.Execution.Status.Builder, + com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.Status, com.google.cloud.workflows.executions.v1.Execution.Status.Builder, com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.Status, + com.google.cloud.workflows.executions.v1.Execution.Status.Builder, + com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -9550,10 +10951,13 @@ public com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder getSta onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -9567,20 +10971,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 11;
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -9598,6 +11003,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -9611,17 +11018,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 11;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -9635,23 +11044,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 11;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000800);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -9664,23 +11075,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 11;
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000800;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -9693,17 +11103,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 11;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000800;
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this execution.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -9716,57 +11129,75 @@ public Builder putLabels(
      *
      * map<string, string> labels = 11;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000800;
       return this;
     }
 
     private com.google.cloud.workflows.executions.v1.Execution.StateError stateError_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workflows.executions.v1.Execution.StateError, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder> stateErrorBuilder_;
+            com.google.cloud.workflows.executions.v1.Execution.StateError,
+            com.google.cloud.workflows.executions.v1.Execution.StateError.Builder,
+            com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder>
+        stateErrorBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateError field is set. */ public boolean hasStateError() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateError. */ public com.google.cloud.workflows.executions.v1.Execution.StateError getStateError() { if (stateErrorBuilder_ == null) { - return stateError_ == null ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; + return stateError_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() + : stateError_; } else { return stateErrorBuilder_.getMessage(); } } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStateError(com.google.cloud.workflows.executions.v1.Execution.StateError value) { + public Builder setStateError( + com.google.cloud.workflows.executions.v1.Execution.StateError value) { if (stateErrorBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9780,13 +11211,17 @@ public Builder setStateError(com.google.cloud.workflows.executions.v1.Execution. return this; } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateError( com.google.cloud.workflows.executions.v1.Execution.StateError.Builder builderForValue) { @@ -9800,19 +11235,26 @@ public Builder setStateError( return this; } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeStateError(com.google.cloud.workflows.executions.v1.Execution.StateError value) { + public Builder mergeStateError( + com.google.cloud.workflows.executions.v1.Execution.StateError value) { if (stateErrorBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - stateError_ != null && - stateError_ != com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && stateError_ != null + && stateError_ + != com.google.cloud.workflows.executions.v1.Execution.StateError + .getDefaultInstance()) { getStateErrorBuilder().mergeFrom(value); } else { stateError_ = value; @@ -9825,13 +11267,17 @@ public Builder mergeStateError(com.google.cloud.workflows.executions.v1.Executio return this; } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateError() { bitField0_ = (bitField0_ & ~0x00001000); @@ -9844,61 +11290,79 @@ public Builder clearStateError() { return this; } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StateError.Builder getStateErrorBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StateError.Builder + getStateErrorBuilder() { bitField0_ |= 0x00001000; onChanged(); return getStateErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder getStateErrorOrBuilder() { + public com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder + getStateErrorOrBuilder() { if (stateErrorBuilder_ != null) { return stateErrorBuilder_.getMessageOrBuilder(); } else { - return stateError_ == null ? - com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() : stateError_; + return stateError_ == null + ? com.google.cloud.workflows.executions.v1.Execution.StateError.getDefaultInstance() + : stateError_; } } /** + * + * *
      * Output only. Error regarding the state of the Execution resource. For
      * example, this field will have error details if the execution data is
      * unavailable due to revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StateError, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder> + com.google.cloud.workflows.executions.v1.Execution.StateError, + com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, + com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder> getStateErrorFieldBuilder() { if (stateErrorBuilder_ == null) { - stateErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution.StateError, com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder>( - getStateError(), - getParentForChildren(), - isClean()); + stateErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution.StateError, + com.google.cloud.workflows.executions.v1.Execution.StateError.Builder, + com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder>( + getStateError(), getParentForChildren(), isClean()); stateError_ = null; } return stateErrorBuilder_; } + @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); } @@ -9908,12 +11372,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.Execution) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.Execution) private static final com.google.cloud.workflows.executions.v1.Execution DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.Execution(); } @@ -9922,27 +11386,27 @@ public static com.google.cloud.workflows.executions.v1.Execution getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9957,6 +11421,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.Execution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionName.java diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java similarity index 75% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java index 8bc0fcfd6eb5..bf9ed7a5f057 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface ExecutionOrBuilder extends +public interface ExecutionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.Execution) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the execution.
    * Format:
@@ -15,10 +33,13 @@ public interface ExecutionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the execution.
    * Format:
@@ -26,112 +47,157 @@ public interface ExecutionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the duration field is set. */ boolean hasDuration(); /** + * + * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The duration. */ com.google.protobuf.Duration getDuration(); /** + * + * *
    * Output only. Measures the duration of the execution.
    * 
* - * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Duration duration = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workflows.executions.v1.Execution.State getState(); /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -142,10 +208,13 @@ public interface ExecutionOrBuilder extends
    * 
* * string argument = 5; + * * @return The argument. */ java.lang.String getArgument(); /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
@@ -156,136 +225,182 @@ public interface ExecutionOrBuilder extends
    * 
* * string argument = 5; + * * @return The bytes for argument. */ - com.google.protobuf.ByteString - getArgumentBytes(); + com.google.protobuf.ByteString getArgumentBytes(); /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The result. */ java.lang.String getResult(); /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for result. */ - com.google.protobuf.ByteString - getResultBytes(); + com.google.protobuf.ByteString getResultBytes(); /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ com.google.cloud.workflows.executions.v1.Execution.Error getError(); /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.workflows.executions.v1.Execution.ErrorOrBuilder getErrorOrBuilder(); /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workflowRevisionId. */ java.lang.String getWorkflowRevisionId(); /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workflowRevisionId. */ - com.google.protobuf.ByteString - getWorkflowRevisionIdBytes(); + com.google.protobuf.ByteString getWorkflowRevisionIdBytes(); /** + * + * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @return The enum numeric value on the wire for callLogLevel. */ int getCallLogLevelValue(); /** + * + * *
    * The call logging level associated to this execution.
    * 
* * .google.cloud.workflows.executions.v1.Execution.CallLogLevel call_log_level = 9; + * * @return The callLogLevel. */ com.google.cloud.workflows.executions.v1.Execution.CallLogLevel getCallLogLevel(); /** + * + * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The status. */ com.google.cloud.workflows.executions.v1.Execution.Status getStatus(); /** + * + * *
    * Output only. Status tracks the current steps and progress data of this
    * execution.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.Status status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.workflows.executions.v1.Execution.StatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -300,6 +415,8 @@ public interface ExecutionOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -312,15 +429,13 @@ public interface ExecutionOrBuilder extends
    *
    * map<string, string> labels = 11;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -333,9 +448,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 11;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -349,11 +465,13 @@ boolean containsLabels(
    * map<string, string> labels = 11;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels associated with this execution.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -366,39 +484,52 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 11;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateError field is set. */ boolean hasStateError(); /** + * + * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateError. */ com.google.cloud.workflows.executions.v1.Execution.StateError getStateError(); /** + * + * *
    * Output only. Error regarding the state of the Execution resource. For
    * example, this field will have error details if the execution data is
    * unavailable due to revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1.Execution.StateError state_error = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.workflows.executions.v1.Execution.StateErrorOrBuilder getStateErrorOrBuilder(); } diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java similarity index 67% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java index 359bbdbd1a56..7b57514760e2 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionView.java @@ -1,18 +1,36 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** + * + * *
  * Defines possible views for execution resource.
  * 
* * Protobuf enum {@code google.cloud.workflows.executions.v1.ExecutionView} */ -public enum ExecutionView - implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The default / unset value.
    * 
@@ -21,6 +39,8 @@ public enum ExecutionView */ EXECUTION_VIEW_UNSPECIFIED(0), /** + * + * *
    * Includes only basic metadata about the execution.
    * The following fields are returned: name, start_time, end_time, duration,
@@ -31,6 +51,8 @@ public enum ExecutionView
    */
   BASIC(1),
   /**
+   *
+   *
    * 
    * Includes all data.
    * 
@@ -42,6 +64,8 @@ public enum ExecutionView ; /** + * + * *
    * The default / unset value.
    * 
@@ -50,6 +74,8 @@ public enum ExecutionView */ public static final int EXECUTION_VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Includes only basic metadata about the execution.
    * The following fields are returned: name, start_time, end_time, duration,
@@ -60,6 +86,8 @@ public enum ExecutionView
    */
   public static final int BASIC_VALUE = 1;
   /**
+   *
+   *
    * 
    * Includes all data.
    * 
@@ -68,7 +96,6 @@ public enum ExecutionView */ public static final int FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -93,49 +120,51 @@ public static ExecutionView valueOf(int value) { */ public static ExecutionView forNumber(int value) { switch (value) { - case 0: return EXECUTION_VIEW_UNSPECIFIED; - case 1: return BASIC; - case 2: return FULL; - default: return null; + case 0: + return EXECUTION_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return FULL; + 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< - ExecutionView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionView findValueByNumber(int number) { - return ExecutionView.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 ExecutionView findValueByNumber(int number) { + return ExecutionView.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.workflows.executions.v1.ExecutionsProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final ExecutionView[] VALUES = values(); - public static ExecutionView valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionView 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; @@ -151,4 +180,3 @@ private ExecutionView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1.ExecutionView) } - diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java new file mode 100644 index 000000000000..f2de3267e0fa --- /dev/null +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java @@ -0,0 +1,374 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1/executions.proto + +package com.google.cloud.workflows.executions.v1; + +public final class ExecutionsProto { + private ExecutionsProto() {} + + 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_workflows_executions_v1_Execution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_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/workflows/executions/v1/e" + + "xecutions.proto\022$google.cloud.workflows." + + "executions.v1\032\034google/api/annotations.pr" + + "oto\032\027google/api/client.proto\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032\036google/protobuf/duration.proto" + + "\032\037google/protobuf/timestamp.proto\"\307\016\n\tEx" + + "ecution\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0224\n\nstart_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + + "\003\0222\n\010end_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\0221\n\010duration\030\014 \001(\0132\031.google" + + ".protobuf.DurationB\004\342A\001\003\022J\n\005state\030\004 \001(\0162" + + "5.google.cloud.workflows.executions.v1.E" + + "xecution.StateB\004\342A\001\003\022\020\n\010argument\030\005 \001(\t\022\024" + + "\n\006result\030\006 \001(\tB\004\342A\001\003\022J\n\005error\030\007 \001(\01325.go" + + "ogle.cloud.workflows.executions.v1.Execu" + + "tion.ErrorB\004\342A\001\003\022\"\n\024workflow_revision_id" + + "\030\010 \001(\tB\004\342A\001\003\022T\n\016call_log_level\030\t \001(\0162<.g" + + "oogle.cloud.workflows.executions.v1.Exec" + + "ution.CallLogLevel\022L\n\006status\030\n \001(\01326.goo" + + "gle.cloud.workflows.executions.v1.Execut" + + "ion.StatusB\004\342A\001\003\022K\n\006labels\030\013 \003(\0132;.googl" + + "e.cloud.workflows.executions.v1.Executio" + + "n.LabelsEntry\022U\n\013state_error\030\r \001(\0132:.goo" + + "gle.cloud.workflows.executions.v1.Execut" + + "ion.StateErrorB\004\342A\001\003\032\312\001\n\021StackTraceEleme" + + "nt\022\014\n\004step\030\001 \001(\t\022\017\n\007routine\030\002 \001(\t\022\\\n\010pos" + + "ition\030\003 \001(\0132J.google.cloud.workflows.exe" + + "cutions.v1.Execution.StackTraceElement.P" + + "osition\0328\n\010Position\022\014\n\004line\030\001 \001(\003\022\016\n\006col" + + "umn\030\002 \001(\003\022\016\n\006length\030\003 \001(\003\032a\n\nStackTrace\022" + + "S\n\010elements\030\001 \003(\0132A.google.cloud.workflo" + + "ws.executions.v1.Execution.StackTraceEle" + + "ment\032z\n\005Error\022\017\n\007payload\030\001 \001(\t\022\017\n\007contex" + + "t\030\002 \001(\t\022O\n\013stack_trace\030\003 \001(\0132:.google.cl" + + "oud.workflows.executions.v1.Execution.St" + + "ackTrace\032\203\001\n\006Status\022R\n\rcurrent_steps\030\001 \003" + + "(\0132;.google.cloud.workflows.executions.v" + + "1.Execution.Status.Step\032%\n\004Step\022\017\n\007routi" + + "ne\030\001 \001(\t\022\014\n\004step\030\002 \001(\t\032\231\001\n\nStateError\022\017\n" + + "\007details\030\001 \001(\t\022M\n\004type\030\002 \001(\0162?.google.cl" + + "oud.workflows.executions.v1.Execution.St" + + "ateError.Type\"+\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + + "D\020\000\022\r\n\tKMS_ERROR\020\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCCEED" + + "ED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004\022\017\n\013UNAVA" + + "ILABLE\020\005\022\n\n\006QUEUED\020\006\"d\n\014CallLogLevel\022\036\n\032" + + "CALL_LOG_LEVEL_UNSPECIFIED\020\000\022\021\n\rLOG_ALL_" + + "CALLS\020\001\022\023\n\017LOG_ERRORS_ONLY\020\002\022\014\n\010LOG_NONE" + + "\020\003:\206\001\352A\202\001\n+workflowexecutions.googleapis" + + ".com/Execution\022Sprojects/{project}/locat" + + "ions/{location}/workflows/{workflow}/exe" + + "cutions/{execution}\"\361\001\n\025ListExecutionsRe" + + "quest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflow" + + "s.googleapis.com/Workflow\022\021\n\tpage_size\030\002" + + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022G\n\004view\030\004 \001(\01623" + + ".google.cloud.workflows.executions.v1.Ex" + + "ecutionViewB\004\342A\001\001\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022" + + "\026\n\010order_by\030\006 \001(\tB\004\342A\001\001\"v\n\026ListExecution" + + "sResponse\022C\n\nexecutions\030\001 \003(\0132/.google.c" + + "loud.workflows.executions.v1.Execution\022\027" + + "\n\017next_page_token\030\002 \001(\t\"\236\001\n\026CreateExecut" + + "ionRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!wor" + + "kflows.googleapis.com/Workflow\022H\n\texecut" + + "ion\030\002 \001(\0132/.google.cloud.workflows.execu" + + "tions.v1.ExecutionB\004\342A\001\002\"\242\001\n\023GetExecutio" + + "nRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflo" + + "wexecutions.googleapis.com/Execution\022G\n\004" + + "view\030\002 \001(\01623.google.cloud.workflows.exec" + + "utions.v1.ExecutionViewB\004\342A\001\001\"\\\n\026CancelE" + + "xecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+" + + "workflowexecutions.googleapis.com/Execut" + + "ion*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW_U" + + "NSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\303\007\n\nEx" + + "ecutions\022\330\001\n\016ListExecutions\022;.google.clo" + + "ud.workflows.executions.v1.ListExecution" + + "sRequest\032<.google.cloud.workflows.execut" + + "ions.v1.ListExecutionsResponse\"K\332A\006paren" + + "t\202\323\344\223\002<\022:/v1/{parent=projects/*/location" + + "s/*/workflows/*}/executions\022\342\001\n\017CreateEx" + + "ecution\022<.google.cloud.workflows.executi" + + "ons.v1.CreateExecutionRequest\032/.google.c" + + "loud.workflows.executions.v1.Execution\"`" + + "\332A\020parent,execution\202\323\344\223\002G\":/v1/{parent=p" + + "rojects/*/locations/*/workflows/*}/execu" + + "tions:\texecution\022\305\001\n\014GetExecution\0229.goog" + + "le.cloud.workflows.executions.v1.GetExec" + + "utionRequest\032/.google.cloud.workflows.ex" + + "ecutions.v1.Execution\"I\332A\004name\202\323\344\223\002<\022:/v" + + "1/{name=projects/*/locations/*/workflows" + + "/*/executions/*}\022\325\001\n\017CancelExecution\022<.g" + + "oogle.cloud.workflows.executions.v1.Canc" + + "elExecutionRequest\032/.google.cloud.workfl" + + "ows.executions.v1.Execution\"S\332A\004name\202\323\344\223" + + "\002F\"A/v1/{name=projects/*/locations/*/wor" + + "kflows/*/executions/*}:cancel:\001*\032U\312A!wor" + + "kflowexecutions.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\353\001\n(com.google.cloud.workflows.execution" + + "s.v1B\017ExecutionsProtoP\001ZHcloud.google.co" + + "m/go/workflows/executions/apiv1/executio" + + "nspb;executionspb\352Aa\n!workflows.googleap" + + "is.com/Workflow\022 * Request for the * [GetExecution][google.cloud.workflows.executions.v1.Executions.GetExecution] @@ -12,15 +29,16 @@ * * Protobuf type {@code google.cloud.workflows.executions.v1.GetExecutionRequest} */ -public final class GetExecutionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.GetExecutionRequest) GetExecutionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetExecutionRequest.newBuilder() to construct. private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetExecutionRequest() { name_ = ""; view_ = 0; @@ -28,35 +46,42 @@ private GetExecutionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetExecutionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.workflows.executions.v1.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class); + com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, + com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 @@ -65,31 +90,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. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 { @@ -100,32 +127,48 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1.ExecutionView getView() { + com.google.cloud.workflows.executions.v1.ExecutionView result = + com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,12 +180,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 (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(2, view_); } getUnknownFields().writeTo(output); @@ -157,9 +201,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, view_); + if (view_ + != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,15 +214,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.workflows.executions.v1.GetExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.GetExecutionRequest other = (com.google.cloud.workflows.executions.v1.GetExecutionRequest) obj; + com.google.cloud.workflows.executions.v1.GetExecutionRequest other = + (com.google.cloud.workflows.executions.v1.GetExecutionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -200,98 +245,104 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.GetExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest 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.workflows.executions.v1.GetExecutionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.GetExecutionRequest 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
    * [GetExecution][google.cloud.workflows.executions.v1.Executions.GetExecution]
@@ -300,33 +351,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.GetExecutionRequest}
    */
-  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.workflows.executions.v1.GetExecutionRequest)
       com.google.cloud.workflows.executions.v1.GetExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.GetExecutionRequest.class,
+              com.google.cloud.workflows.executions.v1.GetExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.GetExecutionRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -337,13 +387,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.GetExecutionRequest getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.GetExecutionRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance();
     }
 
@@ -358,13 +409,17 @@ public com.google.cloud.workflows.executions.v1.GetExecutionRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.GetExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.GetExecutionRequest result = new com.google.cloud.workflows.executions.v1.GetExecutionRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1.GetExecutionRequest result =
+          new com.google.cloud.workflows.executions.v1.GetExecutionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1.GetExecutionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1.GetExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -378,38 +433,39 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.GetExecution
     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.workflows.executions.v1.GetExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.GetExecutionRequest)other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.GetExecutionRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -417,7 +473,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.executions.v1.GetExecutionRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -452,22 +510,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              view_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                view_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -477,24 +538,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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; @@ -503,22 +569,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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 { @@ -526,32 +595,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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() { @@ -561,19 +641,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -583,24 +669,35 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -611,26 +708,39 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1.ExecutionView result = + com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The view to set. * @return This builder for chaining. */ @@ -644,12 +754,17 @@ public Builder setView(com.google.cloud.workflows.executions.v1.ExecutionView va return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * execution. The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearView() { @@ -658,9 +773,9 @@ public Builder clearView() { 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); } @@ -670,12 +785,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.GetExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.GetExecutionRequest) - private static final com.google.cloud.workflows.executions.v1.GetExecutionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.GetExecutionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.GetExecutionRequest(); } @@ -684,27 +800,27 @@ public static com.google.cloud.workflows.executions.v1.GetExecutionRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -719,6 +835,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1.GetExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java index 9784ca803040..adc7d29e5811 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/GetExecutionRequestOrBuilder.java @@ -1,53 +1,88 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface GetExecutionRequestOrBuilder extends +public interface GetExecutionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.GetExecutionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * execution. The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ com.google.cloud.workflows.executions.v1.ExecutionView getView(); diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java similarity index 71% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java index 7a5bc7759dca..0e4446f287c5 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** + * + * *
  * Request for the
  * [ListExecutions][]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsRequest}
  */
-public final class ListExecutionsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.ListExecutionsRequest)
     ListExecutionsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListExecutionsRequest.newBuilder() to construct.
   private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListExecutionsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -31,34 +49,41 @@ private ListExecutionsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListExecutionsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class,
+            com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 @@ -67,30 +92,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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 1000 for
@@ -110,6 +139,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -118,9 +148,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -133,6 +166,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -141,14 +175,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 page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -161,16 +196,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 { @@ -181,35 +215,53 @@ public java.lang.String getPageToken() { public static final int VIEW_FIELD_NUMBER = 4; private int view_ = 0; /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1.ExecutionView getView() { + com.google.cloud.workflows.executions.v1.ExecutionView result = + com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED + : result; } public static final int FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -218,6 +270,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -226,14 +279,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; } } /** + * + * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -242,16 +296,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -260,9 +313,12 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -271,6 +327,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -279,14 +336,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -295,16 +353,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -313,6 +370,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +382,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_); } @@ -335,7 +392,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { @@ -357,15 +416,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (view_ != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, view_); + if (view_ + != com.google.cloud.workflows.executions.v1.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); @@ -381,24 +440,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.workflows.executions.v1.ListExecutionsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.ListExecutionsRequest other = (com.google.cloud.workflows.executions.v1.ListExecutionsRequest) obj; + com.google.cloud.workflows.executions.v1.ListExecutionsRequest other = + (com.google.cloud.workflows.executions.v1.ListExecutionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (view_ != other.view_) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -428,98 +483,104 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest 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.workflows.executions.v1.ListExecutionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.ListExecutionsRequest 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
    * [ListExecutions][]
@@ -528,33 +589,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsRequest}
    */
-  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.workflows.executions.v1.ListExecutionsRequest)
       com.google.cloud.workflows.executions.v1.ListExecutionsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class,
+              com.google.cloud.workflows.executions.v1.ListExecutionsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.ListExecutionsRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -569,13 +629,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.ListExecutionsRequest getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.ListExecutionsRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance();
     }
 
@@ -590,13 +651,17 @@ public com.google.cloud.workflows.executions.v1.ListExecutionsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.ListExecutionsRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1.ListExecutionsRequest result = new com.google.cloud.workflows.executions.v1.ListExecutionsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1.ListExecutionsRequest result =
+          new com.google.cloud.workflows.executions.v1.ListExecutionsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1.ListExecutionsRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1.ListExecutionsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -622,38 +687,39 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.ListExecutio
     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.workflows.executions.v1.ListExecutionsRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsRequest)other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -661,7 +727,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.executions.v1.ListExecutionsRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -714,42 +782,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              view_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              orderBy_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                view_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                orderBy_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -759,23 +834,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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; @@ -784,21 +864,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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 { @@ -806,30 +889,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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() { @@ -839,18 +933,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -858,8 +958,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 1000 for
@@ -869,6 +971,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -876,6 +979,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 1000 for
@@ -885,6 +990,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -896,6 +1002,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 1000 for
@@ -905,6 +1013,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -916,6 +1025,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -928,13 +1039,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -943,6 +1054,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -955,15 +1068,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 { @@ -971,6 +1083,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -983,18 +1097,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -1007,6 +1125,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1016,6 +1135,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -1028,12 +1149,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1043,24 +1166,35 @@ public Builder setPageTokenBytes( private int view_ = 0; /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1071,26 +1205,39 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1.ExecutionView getView() { - com.google.cloud.workflows.executions.v1.ExecutionView result = com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1.ExecutionView result = + com.google.cloud.workflows.executions.v1.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1.ExecutionView.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The view to set. * @return This builder for chaining. */ @@ -1104,12 +1251,17 @@ public Builder setView(com.google.cloud.workflows.executions.v1.ExecutionView va return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned
      * executions. The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearView() { @@ -1121,6 +1273,8 @@ public Builder clearView() { private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1129,13 +1283,13 @@ public Builder clearView() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1144,6 +1298,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1152,15 +1308,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1168,6 +1323,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1176,18 +1333,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1196,6 +1357,7 @@ public Builder setFilter(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1205,6 +1367,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Filters applied to the [Executions.ListExecutions] results.
      * The following fields are supported for filtering:
@@ -1213,12 +1377,14 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000010; @@ -1228,6 +1394,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1236,13 +1404,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1251,6 +1419,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1259,15 +1429,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1275,6 +1444,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1283,18 +1454,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1303,6 +1478,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1312,6 +1488,8 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Optional. The ordering applied to the [Executions.ListExecutions] results.
      * By default the ordering is based on descending start time.
@@ -1320,21 +1498,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000020; 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); } @@ -1344,41 +1524,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.ListExecutionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.ListExecutionsRequest) - private static final com.google.cloud.workflows.executions.v1.ListExecutionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.ListExecutionsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.ListExecutionsRequest(); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.ListExecutionsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1390,9 +1572,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.ListExecutionsRequest getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.ListExecutionsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java index c26cb9c6832e..ab050cf1886b 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface ListExecutionsRequestOrBuilder extends +public interface ListExecutionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.ListExecutionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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(); /** + * + * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 1000 for
@@ -39,11 +66,14 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -56,10 +86,13 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -72,33 +105,45 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned
    * executions. The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ com.google.cloud.workflows.executions.v1.ExecutionView getView(); /** + * + * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -107,10 +152,13 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filters applied to the [Executions.ListExecutions] results.
    * The following fields are supported for filtering:
@@ -119,12 +167,14 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -133,10 +183,13 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. The ordering applied to the [Executions.ListExecutions] results.
    * By default the ordering is based on descending start time.
@@ -145,8 +198,8 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string order_by = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java similarity index 71% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java index 7616bced18a6..68a23774a034 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; /** + * + * *
  * Response for the
  * [ListExecutions][google.cloud.workflows.executions.v1.Executions.ListExecutions]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsResponse}
  */
-public final class ListExecutionsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1.ListExecutionsResponse)
     ListExecutionsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListExecutionsResponse.newBuilder() to construct.
   private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListExecutionsResponse() {
     executions_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,28 +46,32 @@ private ListExecutionsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListExecutionsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
+            com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class,
+            com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
   }
 
   public static final int EXECUTIONS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List executions_;
   /**
+   *
+   *
    * 
    * The executions which match the request.
    * 
@@ -61,6 +83,8 @@ public java.util.List getExe return executions_; } /** + * + * *
    * The executions which match the request.
    * 
@@ -68,11 +92,13 @@ public java.util.List getExe * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExecutionsOrBuilderList() { return executions_; } /** + * + * *
    * The executions which match the request.
    * 
@@ -84,6 +110,8 @@ public int getExecutionsCount() { return executions_.size(); } /** + * + * *
    * The executions which match the request.
    * 
@@ -95,6 +123,8 @@ public com.google.cloud.workflows.executions.v1.Execution getExecutions(int inde return executions_.get(index); } /** + * + * *
    * The executions which match the request.
    * 
@@ -108,15 +138,19 @@ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutions } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,30 +159,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; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -157,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,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 < executions_.size(); i++) { output.writeMessage(1, executions_.get(i)); } @@ -186,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, executions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +233,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.workflows.executions.v1.ListExecutionsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1.ListExecutionsResponse other = (com.google.cloud.workflows.executions.v1.ListExecutionsResponse) obj; + com.google.cloud.workflows.executions.v1.ListExecutionsResponse other = + (com.google.cloud.workflows.executions.v1.ListExecutionsResponse) obj; - if (!getExecutionsList() - .equals(other.getExecutionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getExecutionsList().equals(other.getExecutionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,98 +266,104 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse 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.workflows.executions.v1.ListExecutionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1.ListExecutionsResponse 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
    * [ListExecutions][google.cloud.workflows.executions.v1.Executions.ListExecutions]
@@ -334,33 +372,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1.ListExecutionsResponse}
    */
-  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.workflows.executions.v1.ListExecutionsResponse)
       com.google.cloud.workflows.executions.v1.ListExecutionsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
+              com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class,
+              com.google.cloud.workflows.executions.v1.ListExecutionsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1.ListExecutionsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,13 +414,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1.ListExecutionsResponse getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1.ListExecutionsResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance();
     }
 
@@ -398,14 +436,18 @@ public com.google.cloud.workflows.executions.v1.ListExecutionsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1.ListExecutionsResponse buildPartial() {
-      com.google.cloud.workflows.executions.v1.ListExecutionsResponse result = new com.google.cloud.workflows.executions.v1.ListExecutionsResponse(this);
+      com.google.cloud.workflows.executions.v1.ListExecutionsResponse result =
+          new com.google.cloud.workflows.executions.v1.ListExecutionsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
       if (executionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           executions_ = java.util.Collections.unmodifiableList(executions_);
@@ -417,7 +459,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1
       }
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1.ListExecutionsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -428,46 +471,50 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1.ListExecutio
     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.workflows.executions.v1.ListExecutionsResponse) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsResponse)other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1.ListExecutionsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1.ListExecutionsResponse other) {
-      if (other == com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1.ListExecutionsResponse other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance())
+        return this;
       if (executionsBuilder_ == null) {
         if (!other.executions_.isEmpty()) {
           if (executions_.isEmpty()) {
@@ -486,9 +533,10 @@ public Builder mergeFrom(com.google.cloud.workflows.executions.v1.ListExecutions
             executionsBuilder_ = null;
             executions_ = other.executions_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            executionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getExecutionsFieldBuilder() : null;
+            executionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getExecutionsFieldBuilder()
+                    : null;
           } else {
             executionsBuilder_.addAllMessages(other.executions_);
           }
@@ -525,30 +573,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.workflows.executions.v1.Execution m =
-                  input.readMessage(
-                      com.google.cloud.workflows.executions.v1.Execution.parser(),
-                      extensionRegistry);
-              if (executionsBuilder_ == null) {
-                ensureExecutionsIsMutable();
-                executions_.add(m);
-              } else {
-                executionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.workflows.executions.v1.Execution m =
+                    input.readMessage(
+                        com.google.cloud.workflows.executions.v1.Execution.parser(),
+                        extensionRegistry);
+                if (executionsBuilder_ == null) {
+                  ensureExecutionsIsMutable();
+                  executions_.add(m);
+                } else {
+                  executionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -558,21 +609,30 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List executions_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureExecutionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        executions_ = new java.util.ArrayList(executions_);
+        executions_ =
+            new java.util.ArrayList(
+                executions_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> executionsBuilder_;
+            com.google.cloud.workflows.executions.v1.Execution,
+            com.google.cloud.workflows.executions.v1.Execution.Builder,
+            com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>
+        executionsBuilder_;
 
     /**
+     *
+     *
      * 
      * The executions which match the request.
      * 
@@ -587,6 +647,8 @@ public java.util.List getExe } } /** + * + * *
      * The executions which match the request.
      * 
@@ -601,6 +663,8 @@ public int getExecutionsCount() { } } /** + * + * *
      * The executions which match the request.
      * 
@@ -615,6 +679,8 @@ public com.google.cloud.workflows.executions.v1.Execution getExecutions(int inde } } /** + * + * *
      * The executions which match the request.
      * 
@@ -636,6 +702,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -654,6 +722,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -674,6 +744,8 @@ public Builder addExecutions(com.google.cloud.workflows.executions.v1.Execution return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -695,6 +767,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -713,6 +787,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -731,6 +807,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -741,8 +819,7 @@ public Builder addAllExecutions( java.lang.Iterable values) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); onChanged(); } else { executionsBuilder_.addAllMessages(values); @@ -750,6 +827,8 @@ public Builder addAllExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -767,6 +846,8 @@ public Builder clearExecutions() { return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -784,6 +865,8 @@ public Builder removeExecutions(int index) { return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -795,6 +878,8 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionsB return getExecutionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The executions which match the request.
      * 
@@ -804,19 +889,22 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder getExecutionsB public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionsOrBuilder( int index) { if (executionsBuilder_ == null) { - return executions_.get(index); } else { + return executions_.get(index); + } else { return executionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - public java.util.List - getExecutionsOrBuilderList() { + public java.util.List + getExecutionsOrBuilderList() { if (executionsBuilder_ != null) { return executionsBuilder_.getMessageOrBuilderList(); } else { @@ -824,6 +912,8 @@ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutions } } /** + * + * *
      * The executions which match the request.
      * 
@@ -831,10 +921,12 @@ public com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutions * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder().addBuilder( - com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder() + .addBuilder(com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); } /** + * + * *
      * The executions which match the request.
      * 
@@ -843,30 +935,36 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsB */ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsBuilder( int index) { - return getExecutionsFieldBuilder().addBuilder( - index, com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder() + .addBuilder( + index, com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance()); } /** + * + * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - public java.util.List - getExecutionsBuilderList() { + public java.util.List + getExecutionsBuilderList() { return getExecutionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1.Execution, + com.google.cloud.workflows.executions.v1.Execution.Builder, + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder> getExecutionsFieldBuilder() { if (executionsBuilder_ == null) { - executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1.Execution, com.google.cloud.workflows.executions.v1.Execution.Builder, com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( - executions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + executionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1.Execution, + com.google.cloud.workflows.executions.v1.Execution.Builder, + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder>( + executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); executions_ = null; } return executionsBuilder_; @@ -874,19 +972,21 @@ public com.google.cloud.workflows.executions.v1.Execution.Builder addExecutionsB private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -895,21 +995,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -917,30 +1018,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -950,27 +1058,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -980,41 +1092,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1.ListExecutionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1.ListExecutionsResponse) - private static final com.google.cloud.workflows.executions.v1.ListExecutionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1.ListExecutionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1.ListExecutionsResponse(); } - public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1.ListExecutionsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,9 +1140,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1.ListExecutionsResponse getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1.ListExecutionsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java index af9b0b7305cc..a53b5426e0bd 100644 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ListExecutionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1/executions.proto package com.google.cloud.workflows.executions.v1; -public interface ListExecutionsResponseOrBuilder extends +public interface ListExecutionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.ListExecutionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - java.util.List - getExecutionsList(); + java.util.List getExecutionsList(); /** + * + * *
    * The executions which match the request.
    * 
@@ -25,6 +44,8 @@ public interface ListExecutionsResponseOrBuilder extends */ com.google.cloud.workflows.executions.v1.Execution getExecutions(int index); /** + * + * *
    * The executions which match the request.
    * 
@@ -33,43 +54,51 @@ public interface ListExecutionsResponseOrBuilder extends */ int getExecutionsCount(); /** + * + * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - java.util.List + java.util.List getExecutionsOrBuilderList(); /** + * + * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1.Execution executions = 1; */ - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionsOrBuilder( - int index); + com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/WorkflowName.java diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1/src/main/proto/google/cloud/workflows/executions/v1/executions.proto diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java similarity index 60% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java index 1c1fbc2e3c95..adf677a43caf 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** + * + * *
  * Request for the
  * [CancelExecution][google.cloud.workflows.executions.v1beta.Executions.CancelExecution]
@@ -12,50 +29,58 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.CancelExecutionRequest}
  */
-public final class CancelExecutionRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CancelExecutionRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.CancelExecutionRequest)
     CancelExecutionRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CancelExecutionRequest.newBuilder() to construct.
   private CancelExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CancelExecutionRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CancelExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class,
+            com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 @@ -64,31 +89,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. Name of the execution to be cancelled.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 { @@ -97,6 +124,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +136,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_); } @@ -133,15 +160,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.workflows.executions.v1beta.CancelExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other = (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) obj; + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other = + (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,98 +188,105 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest + 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.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest 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.workflows.executions.v1beta.CancelExecutionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest 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
    * [CancelExecution][google.cloud.workflows.executions.v1beta.Executions.CancelExecution]
@@ -261,33 +295,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.CancelExecutionRequest}
    */
-  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.workflows.executions.v1beta.CancelExecutionRequest)
       com.google.cloud.workflows.executions.v1beta.CancelExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class,
+              com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -297,14 +331,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -318,13 +354,17 @@ public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest build
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result = new com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result =
+          new com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -335,46 +375,51 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.CancelEx
     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.workflows.executions.v1beta.CancelExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest)other);
+        return mergeFrom(
+            (com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest
+              .getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -406,17 +451,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -426,24 +473,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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; @@ -452,22 +504,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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 { @@ -475,32 +530,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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() { @@ -510,28 +576,34 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the execution to be cancelled.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -541,41 +613,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.CancelExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.CancelExecutionRequest) - private static final com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +661,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..9ad86af61ee3 --- /dev/null +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1beta/executions.proto + +package com.google.cloud.workflows.executions.v1beta; + +public interface CancelExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.CancelExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the execution to be cancelled.
+   * Format:
+   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
+   * 
+ * + * + * 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/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java similarity index 59% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java index 533658e51730..2900df3baab0 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** + * + * *
  * Request for the
  * [CreateExecution][google.cloud.workflows.executions.v1beta.Executions.CreateExecution]
@@ -12,50 +29,58 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.CreateExecutionRequest}
  */
-public final class CreateExecutionRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateExecutionRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.CreateExecutionRequest)
     CreateExecutionRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateExecutionRequest.newBuilder() to construct.
   private CreateExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateExecutionRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateExecutionRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class,
+            com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * 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 @@ -64,31 +89,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. Name of the workflow for which an execution should be created.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * The latest revision of the workflow will be used.
    * 
* - * 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 { @@ -99,11 +126,16 @@ public java.lang.String getParent() { public static final int EXECUTION_FIELD_NUMBER = 2; private com.google.cloud.workflows.executions.v1beta.Execution execution_; /** + * + * *
    * Required. Execution to be created.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the execution field is set. */ @java.lang.Override @@ -111,30 +143,44 @@ public boolean hasExecution() { return execution_ != null; } /** + * + * *
    * Required. Execution to be created.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The execution. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution getExecution() { - return execution_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() + : execution_; } /** + * + * *
    * Required. Execution to be created.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder() { - return execution_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() + : execution_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +192,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_); } @@ -167,8 +212,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (execution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecution()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExecution()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +222,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.workflows.executions.v1beta.CreateExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other = (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) obj; + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other = + (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasExecution() != other.hasExecution()) return false; if (hasExecution()) { - if (!getExecution() - .equals(other.getExecution())) return false; + if (!getExecution().equals(other.getExecution())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,98 +258,105 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest + 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.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest 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.workflows.executions.v1beta.CreateExecutionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest 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
    * [CreateExecution][google.cloud.workflows.executions.v1beta.Executions.CreateExecution]
@@ -315,33 +365,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.CreateExecutionRequest}
    */
-  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.workflows.executions.v1beta.CreateExecutionRequest)
       com.google.cloud.workflows.executions.v1beta.CreateExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class,
+              com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,14 +406,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -377,21 +429,23 @@ public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest build
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result = new com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result =
+          new com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.execution_ = executionBuilder_ == null
-            ? execution_
-            : executionBuilder_.build();
+        result.execution_ = executionBuilder_ == null ? execution_ : executionBuilder_.build();
       }
     }
 
@@ -399,46 +453,51 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.CreateEx
     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.workflows.executions.v1beta.CreateExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest)other);
+        return mergeFrom(
+            (com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -473,24 +532,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getExecutionFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -500,24 +560,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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,22 +591,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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 { @@ -549,32 +617,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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() { @@ -584,19 +663,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of the workflow for which an execution should be created.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * The latest revision of the workflow will be used.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -606,39 +691,58 @@ public Builder setParentBytes( private com.google.cloud.workflows.executions.v1beta.Execution execution_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> executionBuilder_; + com.google.cloud.workflows.executions.v1beta.Execution, + com.google.cloud.workflows.executions.v1beta.Execution.Builder, + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> + executionBuilder_; /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the execution field is set. */ public boolean hasExecution() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The execution. */ public com.google.cloud.workflows.executions.v1beta.Execution getExecution() { if (executionBuilder_ == null) { - return execution_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() + : execution_; } else { return executionBuilder_.getMessage(); } } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExecution(com.google.cloud.workflows.executions.v1beta.Execution value) { if (executionBuilder_ == null) { @@ -654,11 +758,15 @@ public Builder setExecution(com.google.cloud.workflows.executions.v1beta.Executi return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExecution( com.google.cloud.workflows.executions.v1beta.Execution.Builder builderForValue) { @@ -672,17 +780,22 @@ public Builder setExecution( return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExecution(com.google.cloud.workflows.executions.v1beta.Execution value) { if (executionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - execution_ != null && - execution_ != com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && execution_ != null + && execution_ + != com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) { getExecutionBuilder().mergeFrom(value); } else { execution_ = value; @@ -695,11 +808,15 @@ public Builder mergeExecution(com.google.cloud.workflows.executions.v1beta.Execu return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExecution() { bitField0_ = (bitField0_ & ~0x00000002); @@ -712,11 +829,15 @@ public Builder clearExecution() { return this; } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecutionBuilder() { bitField0_ |= 0x00000002; @@ -724,43 +845,55 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecuti return getExecutionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder() { if (executionBuilder_ != null) { return executionBuilder_.getMessageOrBuilder(); } else { - return execution_ == null ? - com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance() + : execution_; } } /** + * + * *
      * Required. Execution to be created.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1beta.Execution, + com.google.cloud.workflows.executions.v1beta.Execution.Builder, + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> getExecutionFieldBuilder() { if (executionBuilder_ == null) { - executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( - getExecution(), - getParentForChildren(), - isClean()); + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1beta.Execution, + com.google.cloud.workflows.executions.v1beta.Execution.Builder, + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( + getExecution(), getParentForChildren(), isClean()); execution_ = null; } return executionBuilder_; } + @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); } @@ -770,41 +903,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) - private static final com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -816,9 +951,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..3350e14c2109 --- /dev/null +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1beta/executions.proto + +package com.google.cloud.workflows.executions.v1beta; + +public interface CreateExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Name of the workflow for which an execution should be created.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * The latest revision of the workflow will be used.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Execution to be created.
+   * 
+ * + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the execution field is set. + */ + boolean hasExecution(); + /** + * + * + *
+   * Required. Execution to be created.
+   * 
+ * + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The execution. + */ + com.google.cloud.workflows.executions.v1beta.Execution getExecution(); + /** + * + * + *
+   * Required. Execution to be created.
+   * 
+ * + * + * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder(); +} diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java similarity index 70% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java index 41bab8b94d27..3e6e8b27e9dd 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/Execution.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** + * + * *
  * A running instance of a [Workflow][google.cloud.workflows.v1beta.Workflow].
  * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution} */ -public final class Execution extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Execution extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.Execution) ExecutionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Execution.newBuilder() to construct. private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Execution() { name_ = ""; state_ = 0; @@ -29,25 +47,28 @@ private Execution() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Execution(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.class, com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.class, + com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); } /** + * + * *
    * Describes the current state of the execution. More states may be added
    * in the future.
@@ -55,9 +76,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.workflows.executions.v1beta.Execution.State}
    */
-  public enum State
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid state.
      * 
@@ -66,6 +88,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The execution is in progress.
      * 
@@ -74,6 +98,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * The execution finished successfully.
      * 
@@ -82,6 +108,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The execution failed with an error.
      * 
@@ -90,6 +118,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The execution was stopped intentionally.
      * 
@@ -101,6 +131,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -109,6 +141,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The execution is in progress.
      * 
@@ -117,6 +151,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * The execution finished successfully.
      * 
@@ -125,6 +161,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The execution failed with an error.
      * 
@@ -133,6 +171,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The execution was stopped intentionally.
      * 
@@ -141,7 +181,6 @@ public enum State */ public static final int CANCELLED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,51 +205,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return SUCCEEDED; - case 3: return FAILED; - case 4: return CANCELLED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + case 4: + return CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.workflows.executions.v1beta.Execution.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.Execution.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -227,66 +270,80 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1beta.Execution.State) } - public interface ErrorOrBuilder extends + public interface ErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.Execution.Error) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; + * * @return The payload. */ java.lang.String getPayload(); /** + * + * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; + * * @return The bytes for payload. */ - com.google.protobuf.ByteString - getPayloadBytes(); + com.google.protobuf.ByteString getPayloadBytes(); /** + * + * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; + * * @return The context. */ java.lang.String getContext(); /** + * + * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; + * * @return The bytes for context. */ - com.google.protobuf.ByteString - getContextBytes(); + com.google.protobuf.ByteString getContextBytes(); } /** + * + * *
    * Error describes why the execution was abnormally terminated.
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution.Error} */ - public static final class Error extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Error extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.Execution.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Error() { payload_ = ""; context_ = ""; @@ -294,33 +351,38 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Error(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.Error.class, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.Error.class, + com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); } public static final int PAYLOAD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object payload_ = ""; /** + * + * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; + * * @return The payload. */ @java.lang.Override @@ -329,29 +391,29 @@ public java.lang.String getPayload() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; } } /** + * + * *
      * Error payload returned by the execution, represented as a JSON string.
      * 
* * string payload = 1; + * * @return The bytes for payload. */ @java.lang.Override - public com.google.protobuf.ByteString - getPayloadBytes() { + public com.google.protobuf.ByteString getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); payload_ = b; return b; } else { @@ -360,14 +422,18 @@ public java.lang.String getPayload() { } public static final int CONTEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object context_ = ""; /** + * + * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; + * * @return The context. */ @java.lang.Override @@ -376,29 +442,29 @@ public java.lang.String getContext() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; } } /** + * + * *
      * Human readable error context, helpful for debugging purposes.
      * 
* * string context = 2; + * * @return The bytes for context. */ @java.lang.Override - public com.google.protobuf.ByteString - getContextBytes() { + public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); context_ = b; return b; } else { @@ -407,6 +473,7 @@ public java.lang.String getContext() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -418,8 +485,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(payload_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, payload_); } @@ -449,17 +515,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.workflows.executions.v1beta.Execution.Error)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.Execution.Error other = (com.google.cloud.workflows.executions.v1beta.Execution.Error) obj; + com.google.cloud.workflows.executions.v1beta.Execution.Error other = + (com.google.cloud.workflows.executions.v1beta.Execution.Error) obj; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!getContext() - .equals(other.getContext())) return false; + if (!getPayload().equals(other.getPayload())) return false; + if (!getContext().equals(other.getContext())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -481,89 +546,94 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1beta.Execution.Error parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1beta.Execution.Error parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.Execution.Error parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error 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.workflows.executions.v1beta.Execution.Error prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1beta.Execution.Error 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 @@ -573,39 +643,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Error describes why the execution was abnormally terminated.
      * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution.Error} */ - 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.workflows.executions.v1beta.Execution.Error) com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.Error.class, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.Error.class, + com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1beta.Execution.Error.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -616,13 +688,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.Execution.Error getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.Execution.Error + getDefaultInstanceForType() { return com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance(); } @@ -637,13 +710,17 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Error build() { @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.Error buildPartial() { - com.google.cloud.workflows.executions.v1beta.Execution.Error result = new com.google.cloud.workflows.executions.v1beta.Execution.Error(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.executions.v1beta.Execution.Error result = + new com.google.cloud.workflows.executions.v1beta.Execution.Error(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Execution.Error result) { + private void buildPartial0( + com.google.cloud.workflows.executions.v1beta.Execution.Error result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.payload_ = payload_; @@ -657,38 +734,41 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Executio 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.workflows.executions.v1beta.Execution.Error) { - return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution.Error)other); + return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution.Error) other); } else { super.mergeFrom(other); return this; @@ -696,7 +776,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.Execution.Error other) { - if (other == com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance()) return this; + if (other + == com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance()) + return this; if (!other.getPayload().isEmpty()) { payload_ = other.payload_; bitField0_ |= 0x00000001; @@ -733,22 +815,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - payload_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - context_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + payload_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + context_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -758,22 +843,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object payload_ = ""; /** + * + * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; + * * @return The payload. */ public java.lang.String getPayload() { java.lang.Object ref = payload_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); payload_ = s; return s; @@ -782,20 +870,21 @@ public java.lang.String getPayload() { } } /** + * + * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; + * * @return The bytes for payload. */ - public com.google.protobuf.ByteString - getPayloadBytes() { + public com.google.protobuf.ByteString getPayloadBytes() { java.lang.Object ref = payload_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); payload_ = b; return b; } else { @@ -803,28 +892,35 @@ public java.lang.String getPayload() { } } /** + * + * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; + * * @param value The payload to set. * @return This builder for chaining. */ - public Builder setPayload( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPayload(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } payload_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; + * * @return This builder for chaining. */ public Builder clearPayload() { @@ -834,17 +930,21 @@ public Builder clearPayload() { return this; } /** + * + * *
        * Error payload returned by the execution, represented as a JSON string.
        * 
* * string payload = 1; + * * @param value The bytes for payload to set. * @return This builder for chaining. */ - public Builder setPayloadBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPayloadBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); payload_ = value; bitField0_ |= 0x00000001; @@ -854,18 +954,20 @@ public Builder setPayloadBytes( private java.lang.Object context_ = ""; /** + * + * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; + * * @return The context. */ public java.lang.String getContext() { java.lang.Object ref = context_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); context_ = s; return s; @@ -874,20 +976,21 @@ public java.lang.String getContext() { } } /** + * + * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; + * * @return The bytes for context. */ - public com.google.protobuf.ByteString - getContextBytes() { + public com.google.protobuf.ByteString getContextBytes() { java.lang.Object ref = context_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); context_ = b; return b; } else { @@ -895,28 +998,35 @@ public java.lang.String getContext() { } } /** + * + * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; + * * @param value The context to set. * @return This builder for chaining. */ - public Builder setContext( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; + * * @return This builder for chaining. */ public Builder clearContext() { @@ -926,23 +1036,28 @@ public Builder clearContext() { return this; } /** + * + * *
        * Human readable error context, helpful for debugging purposes.
        * 
* * string context = 2; + * * @param value The bytes for context to set. * @return This builder for chaining. */ - public Builder setContextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); context_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -955,41 +1070,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.Execution.Error) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.Execution.Error) - private static final com.google.cloud.workflows.executions.v1beta.Execution.Error DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1beta.Execution.Error + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.Execution.Error(); } - public static com.google.cloud.workflows.executions.v1beta.Execution.Error getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.Execution.Error + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1001,16 +1119,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.Execution.Error getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.Execution.Error + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the execution.
    * Format:
@@ -1018,6 +1139,7 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Error getDefaultIn
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1026,14 +1148,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 execution.
    * Format:
@@ -1041,16 +1164,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1061,11 +1183,15 @@ public java.lang.String getName() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -1073,11 +1199,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -1085,11 +1215,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -1099,11 +1232,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -1111,11 +1248,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -1123,11 +1264,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -1137,39 +1281,58 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 4; private int state_ = 0; /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.State getState() { - com.google.cloud.workflows.executions.v1beta.Execution.State result = com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); - return result == null ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1beta.Execution.State getState() { + com.google.cloud.workflows.executions.v1beta.Execution.State result = + com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); + return result == null + ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED + : result; } public static final int ARGUMENT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object argument_ = ""; /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; + * * @return The argument. */ @java.lang.Override @@ -1178,30 +1341,30 @@ public java.lang.String getArgument() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; } } /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; + * * @return The bytes for argument. */ @java.lang.Override - public com.google.protobuf.ByteString - getArgumentBytes() { + public com.google.protobuf.ByteString getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); argument_ = b; return b; } else { @@ -1210,15 +1373,19 @@ public java.lang.String getArgument() { } public static final int RESULT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object result_ = ""; /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The result. */ @java.lang.Override @@ -1227,30 +1394,30 @@ public java.lang.String getResult() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; } } /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for result. */ @java.lang.Override - public com.google.protobuf.ByteString - getResultBytes() { + public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); result_ = b; return b; } else { @@ -1261,13 +1428,18 @@ public java.lang.String getResult() { public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.workflows.executions.v1beta.Execution.Error error_; /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ @java.lang.Override @@ -1275,42 +1447,59 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.Error getError() { - return error_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() + : error_; } /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder getErrorOrBuilder() { - return error_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() + : error_; } public static final int WORKFLOW_REVISION_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object workflowRevisionId_ = ""; /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workflowRevisionId. */ @java.lang.Override @@ -1319,29 +1508,29 @@ public java.lang.String getWorkflowRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; } } /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workflowRevisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -1350,6 +1539,7 @@ public java.lang.String getWorkflowRevisionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1361,8 +1551,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_); } @@ -1372,7 +1561,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (endTime_ != null) { output.writeMessage(3, getEndTime()); } - if (state_ != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { @@ -1400,16 +1591,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); } - if (state_ != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + if (state_ + != com.google.cloud.workflows.executions.v1beta.Execution.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(argument_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, argument_); @@ -1418,8 +1608,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, result_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowRevisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, workflowRevisionId_); @@ -1432,37 +1621,31 @@ 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.workflows.executions.v1beta.Execution)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.Execution other = (com.google.cloud.workflows.executions.v1beta.Execution) obj; + com.google.cloud.workflows.executions.v1beta.Execution other = + (com.google.cloud.workflows.executions.v1beta.Execution) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) 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 (!getEndTime().equals(other.getEndTime())) return false; } if (state_ != other.state_) return false; - if (!getArgument() - .equals(other.getArgument())) return false; - if (!getResult() - .equals(other.getResult())) return false; + if (!getArgument().equals(other.getArgument())) return false; + if (!getResult().equals(other.getResult())) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } - if (!getWorkflowRevisionId() - .equals(other.getWorkflowRevisionId())) return false; + if (!getWorkflowRevisionId().equals(other.getWorkflowRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1502,131 +1685,136 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1beta.Execution parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.Execution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution 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.workflows.executions.v1beta.Execution prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1beta.Execution 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 running instance of a [Workflow][google.cloud.workflows.v1beta.Workflow].
    * 
* * Protobuf type {@code google.cloud.workflows.executions.v1beta.Execution} */ - 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.workflows.executions.v1beta.Execution) com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.Execution.class, com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); + com.google.cloud.workflows.executions.v1beta.Execution.class, + com.google.cloud.workflows.executions.v1beta.Execution.Builder.class); } // Construct using com.google.cloud.workflows.executions.v1beta.Execution.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1655,9 +1843,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_Execution_descriptor; } @java.lang.Override @@ -1676,8 +1864,11 @@ public com.google.cloud.workflows.executions.v1beta.Execution build() { @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution buildPartial() { - com.google.cloud.workflows.executions.v1beta.Execution result = new com.google.cloud.workflows.executions.v1beta.Execution(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.executions.v1beta.Execution result = + new com.google.cloud.workflows.executions.v1beta.Execution(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1688,14 +1879,10 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Executio result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.state_ = state_; @@ -1707,9 +1894,7 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Executio result.result_ = result_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.error_ = errorBuilder_ == null - ? error_ - : errorBuilder_.build(); + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.workflowRevisionId_ = workflowRevisionId_; @@ -1720,38 +1905,39 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.Executio 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.workflows.executions.v1beta.Execution) { - return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution)other); + return mergeFrom((com.google.cloud.workflows.executions.v1beta.Execution) other); } else { super.mergeFrom(other); return this; @@ -1759,7 +1945,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.Execution other) { - if (other == com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) return this; + if (other == com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1818,58 +2005,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - state_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - argument_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - result_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - workflowRevisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + argument_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + result_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + workflowRevisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1879,10 +2069,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -1890,13 +2083,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1905,6 +2098,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -1912,15 +2107,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1928,6 +2122,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -1935,18 +2131,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -1954,6 +2154,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1963,6 +2164,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the execution.
      * Format:
@@ -1970,12 +2173,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1985,24 +2190,35 @@ public Builder setNameBytes( 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2013,11 +2229,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2033,14 +2252,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -2051,17 +2272,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -2074,11 +2298,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2091,11 +2318,14 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000002; @@ -2103,36 +2333,44 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Marks the beginning of execution.
      * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2140,24 +2378,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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2168,11 +2417,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2188,14 +2440,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -2206,17 +2460,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -2229,11 +2486,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2246,11 +2506,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000004; @@ -2258,36 +2521,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Marks the end of execution, successful or not.
      * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2295,22 +2566,33 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2321,24 +2603,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.Execution.State getState() { - com.google.cloud.workflows.executions.v1beta.Execution.State result = com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); - return result == null ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1beta.Execution.State result = + com.google.cloud.workflows.executions.v1beta.Execution.State.forNumber(state_); + return result == null + ? com.google.cloud.workflows.executions.v1beta.Execution.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2352,11 +2647,16 @@ public Builder setState(com.google.cloud.workflows.executions.v1beta.Execution.S return this; } /** + * + * *
      * Output only. Current state of the execution.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -2368,19 +2668,21 @@ public Builder clearState() { private java.lang.Object argument_ = ""; /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; + * * @return The argument. */ public java.lang.String getArgument() { java.lang.Object ref = argument_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); argument_ = s; return s; @@ -2389,21 +2691,22 @@ public java.lang.String getArgument() { } } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; + * * @return The bytes for argument. */ - public com.google.protobuf.ByteString - getArgumentBytes() { + public com.google.protobuf.ByteString getArgumentBytes() { java.lang.Object ref = argument_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); argument_ = b; return b; } else { @@ -2411,30 +2714,37 @@ public java.lang.String getArgument() { } } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; + * * @param value The argument to set. * @return This builder for chaining. */ - public Builder setArgument( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } argument_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; + * * @return This builder for chaining. */ public Builder clearArgument() { @@ -2444,18 +2754,22 @@ public Builder clearArgument() { return this; } /** + * + * *
      * Input parameters of the execution represented as a JSON string.
      * The size limit is 32KB.
      * 
* * string argument = 5; + * * @param value The bytes for argument to set. * @return This builder for chaining. */ - public Builder setArgumentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); argument_ = value; bitField0_ |= 0x00000010; @@ -2465,19 +2779,21 @@ public Builder setArgumentBytes( private java.lang.Object result_ = ""; /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The result. */ public java.lang.String getResult() { java.lang.Object ref = result_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); result_ = s; return s; @@ -2486,21 +2802,22 @@ public java.lang.String getResult() { } } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for result. */ - public com.google.protobuf.ByteString - getResultBytes() { + public com.google.protobuf.ByteString getResultBytes() { java.lang.Object ref = result_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); result_ = b; return b; } else { @@ -2508,30 +2825,37 @@ public java.lang.String getResult() { } } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The result to set. * @return This builder for chaining. */ - public Builder setResult( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResult(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } result_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearResult() { @@ -2541,18 +2865,22 @@ public Builder clearResult() { return this; } /** + * + * *
      * Output only. Output of the execution represented as a JSON string. The
      * value can only be present if the execution's state is `SUCCEEDED`.
      * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for result to set. * @return This builder for chaining. */ - public Builder setResultBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResultBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); result_ = value; bitField0_ |= 0x00000020; @@ -2562,45 +2890,64 @@ public Builder setResultBytes( private com.google.cloud.workflows.executions.v1beta.Execution.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution.Error, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> errorBuilder_; + com.google.cloud.workflows.executions.v1beta.Execution.Error, + com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, + com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ public com.google.cloud.workflows.executions.v1beta.Execution.Error getError() { if (errorBuilder_ == null) { - return error_ == null ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() + : error_; } else { return errorBuilder_.getMessage(); } } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setError(com.google.cloud.workflows.executions.v1beta.Execution.Error value) { if (errorBuilder_ == null) { @@ -2616,13 +2963,17 @@ public Builder setError(com.google.cloud.workflows.executions.v1beta.Execution.E return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setError( com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder builderForValue) { @@ -2636,19 +2987,25 @@ public Builder setError( return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeError(com.google.cloud.workflows.executions.v1beta.Execution.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - error_ != null && - error_ != com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && error_ != null + && error_ + != com.google.cloud.workflows.executions.v1beta.Execution.Error + .getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -2661,13 +3018,17 @@ public Builder mergeError(com.google.cloud.workflows.executions.v1beta.Execution return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2680,13 +3041,17 @@ public Builder clearError() { return this; } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000040; @@ -2694,40 +3059,53 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder getE return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder getErrorOrBuilder() { + public com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder + getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.workflows.executions.v1beta.Execution.Error.getDefaultInstance() + : error_; } } /** + * + * *
      * Output only. The error which caused the execution to finish prematurely.
      * The value is only present if the execution's state is `FAILED`
      * or `CANCELLED`.
      * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution.Error, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> + com.google.cloud.workflows.executions.v1beta.Execution.Error, + com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, + com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution.Error, com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.executions.v1beta.Execution.Error, + com.google.cloud.workflows.executions.v1beta.Execution.Error.Builder, + com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder>( + getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; @@ -2735,18 +3113,20 @@ public com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder get private java.lang.Object workflowRevisionId_ = ""; /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workflowRevisionId. */ public java.lang.String getWorkflowRevisionId() { java.lang.Object ref = workflowRevisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowRevisionId_ = s; return s; @@ -2755,20 +3135,21 @@ public java.lang.String getWorkflowRevisionId() { } } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workflowRevisionId. */ - public com.google.protobuf.ByteString - getWorkflowRevisionIdBytes() { + public com.google.protobuf.ByteString getWorkflowRevisionIdBytes() { java.lang.Object ref = workflowRevisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowRevisionId_ = b; return b; } else { @@ -2776,28 +3157,35 @@ public java.lang.String getWorkflowRevisionId() { } } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workflowRevisionId_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWorkflowRevisionId() { @@ -2807,26 +3195,30 @@ public Builder clearWorkflowRevisionId() { return this; } /** + * + * *
      * Output only. Revision of the workflow this execution is using.
      * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for workflowRevisionId to set. * @return This builder for chaining. */ - public Builder setWorkflowRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workflowRevisionId_ = value; bitField0_ |= 0x00000080; 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); } @@ -2836,12 +3228,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.Execution) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.Execution) private static final com.google.cloud.workflows.executions.v1beta.Execution DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.Execution(); } @@ -2850,27 +3242,27 @@ public static com.google.cloud.workflows.executions.v1beta.Execution getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2885,6 +3277,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.executions.v1beta.Execution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionName.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java similarity index 71% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java index cbf20e318fa0..5415f4729861 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface ExecutionOrBuilder extends +public interface ExecutionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.Execution) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the execution.
    * Format:
@@ -15,10 +33,13 @@ public interface ExecutionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the execution.
    * Format:
@@ -26,178 +47,239 @@ public interface ExecutionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Marks the beginning of execution.
    * 
* - * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Marks the end of execution, successful or not.
    * 
* - * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the execution.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workflows.executions.v1beta.Execution.State getState(); /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; + * * @return The argument. */ java.lang.String getArgument(); /** + * + * *
    * Input parameters of the execution represented as a JSON string.
    * The size limit is 32KB.
    * 
* * string argument = 5; + * * @return The bytes for argument. */ - com.google.protobuf.ByteString - getArgumentBytes(); + com.google.protobuf.ByteString getArgumentBytes(); /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The result. */ java.lang.String getResult(); /** + * + * *
    * Output only. Output of the execution represented as a JSON string. The
    * value can only be present if the execution's state is `SUCCEEDED`.
    * 
* * string result = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for result. */ - com.google.protobuf.ByteString - getResultBytes(); + com.google.protobuf.ByteString getResultBytes(); /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ com.google.cloud.workflows.executions.v1beta.Execution.Error getError(); /** + * + * *
    * Output only. The error which caused the execution to finish prematurely.
    * The value is only present if the execution's state is `FAILED`
    * or `CANCELLED`.
    * 
* - * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.executions.v1beta.Execution.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.workflows.executions.v1beta.Execution.ErrorOrBuilder getErrorOrBuilder(); /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workflowRevisionId. */ java.lang.String getWorkflowRevisionId(); /** + * + * *
    * Output only. Revision of the workflow this execution is using.
    * 
* * string workflow_revision_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workflowRevisionId. */ - com.google.protobuf.ByteString - getWorkflowRevisionIdBytes(); + com.google.protobuf.ByteString getWorkflowRevisionIdBytes(); } diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java similarity index 67% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java index a64347385c88..edbb22998b7d 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionView.java @@ -1,18 +1,36 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** + * + * *
  * Defines possible views for execution resource.
  * 
* * Protobuf enum {@code google.cloud.workflows.executions.v1beta.ExecutionView} */ -public enum ExecutionView - implements com.google.protobuf.ProtocolMessageEnum { +public enum ExecutionView implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * The default / unset value.
    * 
@@ -21,6 +39,8 @@ public enum ExecutionView */ EXECUTION_VIEW_UNSPECIFIED(0), /** + * + * *
    * Includes only basic metadata about the execution.
    * Following fields are returned: name, start_time, end_time, state
@@ -31,6 +51,8 @@ public enum ExecutionView
    */
   BASIC(1),
   /**
+   *
+   *
    * 
    * Includes all data.
    * 
@@ -42,6 +64,8 @@ public enum ExecutionView ; /** + * + * *
    * The default / unset value.
    * 
@@ -50,6 +74,8 @@ public enum ExecutionView */ public static final int EXECUTION_VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Includes only basic metadata about the execution.
    * Following fields are returned: name, start_time, end_time, state
@@ -60,6 +86,8 @@ public enum ExecutionView
    */
   public static final int BASIC_VALUE = 1;
   /**
+   *
+   *
    * 
    * Includes all data.
    * 
@@ -68,7 +96,6 @@ public enum ExecutionView */ public static final int FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -93,49 +120,51 @@ public static ExecutionView valueOf(int value) { */ public static ExecutionView forNumber(int value) { switch (value) { - case 0: return EXECUTION_VIEW_UNSPECIFIED; - case 1: return BASIC; - case 2: return FULL; - default: return null; + case 0: + return EXECUTION_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return FULL; + 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< - ExecutionView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionView findValueByNumber(int number) { - return ExecutionView.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 ExecutionView findValueByNumber(int number) { + return ExecutionView.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.workflows.executions.v1beta.ExecutionsProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final ExecutionView[] VALUES = values(); - public static ExecutionView valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ExecutionView 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; @@ -151,4 +180,3 @@ private ExecutionView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.executions.v1beta.ExecutionView) } - diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java new file mode 100644 index 000000000000..3450d699fc2d --- /dev/null +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java @@ -0,0 +1,238 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/executions/v1beta/executions.proto + +package com.google.cloud.workflows.executions.v1beta; + +public final class ExecutionsProto { + private ExecutionsProto() {} + + 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_workflows_executions_v1beta_Execution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_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/workflows/executions/v1be" + + "ta/executions.proto\022(google.cloud.workfl" + + "ows.executions.v1beta\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032\037google/protobuf/timest" + + "amp.proto\"\377\004\n\tExecution\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\003\0224\n\nstart_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\0222\n\010end_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\022N\n\005state\030\004" + + " \001(\01629.google.cloud.workflows.executions" + + ".v1beta.Execution.StateB\004\342A\001\003\022\020\n\010argumen" + + "t\030\005 \001(\t\022\024\n\006result\030\006 \001(\tB\004\342A\001\003\022N\n\005error\030\007" + + " \001(\01329.google.cloud.workflows.executions" + + ".v1beta.Execution.ErrorB\004\342A\001\003\022\"\n\024workflo" + + "w_revision_id\030\010 \001(\tB\004\342A\001\003\032)\n\005Error\022\017\n\007pa" + + "yload\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\"T\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCC" + + "EEDED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004:\206\001\352A\202" + + "\001\n+workflowexecutions.googleapis.com/Exe" + + "cution\022Sprojects/{project}/locations/{lo" + + "cation}/workflows/{workflow}/executions/" + + "{execution}\"\307\001\n\025ListExecutionsRequest\022:\n" + + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows.google" + + "apis.com/Workflow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022K\n\004view\030\004 \001(\01627.google." + + "cloud.workflows.executions.v1beta.Execut" + + "ionViewB\004\342A\001\001\"z\n\026ListExecutionsResponse\022" + + "G\n\nexecutions\030\001 \003(\01323.google.cloud.workf" + + "lows.executions.v1beta.Execution\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\242\001\n\026CreateExecutionReq" + + "uest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows" + + ".googleapis.com/Workflow\022L\n\texecution\030\002 " + + "\001(\01323.google.cloud.workflows.executions." + + "v1beta.ExecutionB\004\342A\001\002\"\246\001\n\023GetExecutionR" + + "equest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflowe" + + "xecutions.googleapis.com/Execution\022K\n\004vi" + + "ew\030\002 \001(\01627.google.cloud.workflows.execut" + + "ions.v1beta.ExecutionViewB\004\342A\001\001\"\\\n\026Cance" + + "lExecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-" + + "\n+workflowexecutions.googleapis.com/Exec" + + "ution*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW" + + "_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\363\007\n\n" + + "Executions\022\344\001\n\016ListExecutions\022?.google.c" + + "loud.workflows.executions.v1beta.ListExe" + + "cutionsRequest\032@.google.cloud.workflows." + + "executions.v1beta.ListExecutionsResponse" + + "\"O\332A\006parent\202\323\344\223\002@\022>/v1beta/{parent=proje" + + "cts/*/locations/*/workflows/*}/execution" + + "s\022\356\001\n\017CreateExecution\022@.google.cloud.wor" + + "kflows.executions.v1beta.CreateExecution" + + "Request\0323.google.cloud.workflows.executi" + + "ons.v1beta.Execution\"d\332A\020parent,executio" + + "n\202\323\344\223\002K\">/v1beta/{parent=projects/*/loca" + + "tions/*/workflows/*}/executions:\texecuti" + + "on\022\321\001\n\014GetExecution\022=.google.cloud.workf" + + "lows.executions.v1beta.GetExecutionReque" + + "st\0323.google.cloud.workflows.executions.v" + + "1beta.Execution\"M\332A\004name\202\323\344\223\002@\022>/v1beta/" + + "{name=projects/*/locations/*/workflows/*" + + "/executions/*}\022\341\001\n\017CancelExecution\022@.goo" + + "gle.cloud.workflows.executions.v1beta.Ca" + + "ncelExecutionRequest\0323.google.cloud.work" + + "flows.executions.v1beta.Execution\"W\332A\004na" + + "me\202\323\344\223\002J\"E/v1beta/{name=projects/*/locat" + + "ions/*/workflows/*/executions/*}:cancel:" + + "\001*\032U\312A!workflowexecutions.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\363\001\n,com.google.cloud.workflows" + + ".executions.v1betaB\017ExecutionsProtoP\001ZLc" + + "loud.google.com/go/workflows/executions/" + + "apiv1beta/executionspb;executionspb\352Aa\n!" + + "workflows.googleapis.com/Workflow\022 * Request for the * [GetExecution][google.cloud.workflows.executions.v1beta.Executions.GetExecution] @@ -12,15 +29,16 @@ * * Protobuf type {@code google.cloud.workflows.executions.v1beta.GetExecutionRequest} */ -public final class GetExecutionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.GetExecutionRequest) GetExecutionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetExecutionRequest.newBuilder() to construct. private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetExecutionRequest() { name_ = ""; view_ = 0; @@ -28,35 +46,42 @@ private GetExecutionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetExecutionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.workflows.executions.v1beta.ExecutionsProto + .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class); + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 @@ -65,31 +90,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. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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 { @@ -100,32 +127,48 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 2; private int view_ = 0; /** + * + * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { + com.google.cloud.workflows.executions.v1beta.ExecutionView result = + com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,12 +180,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 (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(2, view_); } getUnknownFields().writeTo(output); @@ -157,9 +201,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, view_); + if (view_ + != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -169,15 +214,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.workflows.executions.v1beta.GetExecutionRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other = (com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) obj; + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other = + (com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -200,98 +245,104 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest 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.workflows.executions.v1beta.GetExecutionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1beta.GetExecutionRequest 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
    * [GetExecution][google.cloud.workflows.executions.v1beta.Executions.GetExecution]
@@ -300,33 +351,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.GetExecutionRequest}
    */
-  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.workflows.executions.v1beta.GetExecutionRequest)
       com.google.cloud.workflows.executions.v1beta.GetExecutionRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class,
+              com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -337,13 +387,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest getDefaultInstanceForType() {
+    public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance();
     }
 
@@ -358,13 +409,17 @@ public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest build()
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result = new com.google.cloud.workflows.executions.v1beta.GetExecutionRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result =
+          new com.google.cloud.workflows.executions.v1beta.GetExecutionRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1beta.GetExecutionRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -378,46 +433,50 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.GetExecu
     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.workflows.executions.v1beta.GetExecutionRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1beta.GetExecutionRequest)other);
+        return mergeFrom((com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1beta.GetExecutionRequest other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -452,22 +511,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              view_ = input.readEnum();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                view_ = input.readEnum();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -477,24 +539,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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; @@ -503,22 +570,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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 { @@ -526,32 +596,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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() { @@ -561,19 +642,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the execution to be retrieved.
      * Format:
      * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -583,24 +670,35 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -611,26 +709,39 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1beta.ExecutionView result = + com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The view to set. * @return This builder for chaining. */ @@ -644,12 +755,17 @@ public Builder setView(com.google.cloud.workflows.executions.v1beta.ExecutionVie return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned execution.
      * The API will default to the FULL view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearView() { @@ -658,9 +774,9 @@ public Builder clearView() { 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); } @@ -670,41 +786,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.GetExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.GetExecutionRequest) - private static final com.google.cloud.workflows.executions.v1beta.GetExecutionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1beta.GetExecutionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.GetExecutionRequest(); } - public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.GetExecutionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -716,9 +834,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.GetExecutionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java index 02246254fe5e..1a7e902f4010 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/GetExecutionRequestOrBuilder.java @@ -1,53 +1,88 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface GetExecutionRequestOrBuilder extends +public interface GetExecutionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.GetExecutionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the execution to be retrieved.
    * Format:
    * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned execution.
    * The API will default to the FULL view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ com.google.cloud.workflows.executions.v1beta.ExecutionView getView(); diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java similarity index 65% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java index 88ea31f981dc..f80a3b52c464 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** + * + * *
  * Request for the
  * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsRequest}
  */
-public final class ListExecutionsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.ListExecutionsRequest)
     ListExecutionsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListExecutionsRequest.newBuilder() to construct.
   private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListExecutionsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -29,34 +47,41 @@ private ListExecutionsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListExecutionsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class,
+            com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 @@ -65,30 +90,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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 { @@ -99,6 +126,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 10000 for
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -128,6 +161,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -136,14 +170,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 page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -153,16 +188,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 { @@ -173,32 +207,48 @@ public java.lang.String getPageToken() { public static final int VIEW_FIELD_NUMBER = 4; private int view_ = 0; /** + * + * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ - @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { + com.google.cloud.workflows.executions.v1beta.ExecutionView result = + com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,8 +260,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_); } @@ -221,7 +270,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(4, view_); } getUnknownFields().writeTo(output); @@ -237,15 +288,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (view_ != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, view_); + if (view_ + != com.google.cloud.workflows.executions.v1beta.ExecutionView.EXECUTION_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -255,19 +306,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.workflows.executions.v1beta.ListExecutionsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other = (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) obj; + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other = + (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -294,98 +343,105 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest + 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.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest 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.workflows.executions.v1beta.ListExecutionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest 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
    * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -394,33 +450,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsRequest}
    */
-  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.workflows.executions.v1beta.ListExecutionsRequest)
       com.google.cloud.workflows.executions.v1beta.ListExecutionsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class,
+              com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -433,14 +489,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest
+        getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -454,13 +512,17 @@ public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest build(
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result = new com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result =
+          new com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.parent_ = parent_;
@@ -480,46 +542,51 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.ListExec
     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.workflows.executions.v1beta.ListExecutionsRequest) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest)other);
+        return mergeFrom(
+            (com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other) {
-      if (other == com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest
+              .getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -562,32 +629,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              view_ = input.readEnum();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                view_ = input.readEnum();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -597,23 +669,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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; @@ -622,21 +699,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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 { @@ -644,30 +724,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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() { @@ -677,18 +768,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Name of the workflow for which the executions should be listed.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -696,8 +793,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 10000 for
@@ -707,6 +806,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -714,6 +814,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 10000 for
@@ -723,6 +825,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -734,6 +837,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Maximum number of executions to return per call.
      * Max supported value depends on the selected Execution view: it's 10000 for
@@ -743,6 +848,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -754,6 +860,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -763,13 +871,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -778,6 +886,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -787,15 +897,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 { @@ -803,6 +912,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -812,18 +923,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -833,6 +948,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -842,6 +958,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListExecutions` call.
      * Provide this to retrieve the subsequent page.
@@ -851,12 +969,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -866,24 +986,35 @@ public Builder setPageTokenBytes( private int view_ = 0; /** + * + * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -894,26 +1025,39 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ @java.lang.Override public com.google.cloud.workflows.executions.v1beta.ExecutionView getView() { - com.google.cloud.workflows.executions.v1beta.ExecutionView result = com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); - return result == null ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED : result; + com.google.cloud.workflows.executions.v1beta.ExecutionView result = + com.google.cloud.workflows.executions.v1beta.ExecutionView.forNumber(view_); + return result == null + ? com.google.cloud.workflows.executions.v1beta.ExecutionView.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The view to set. * @return This builder for chaining. */ @@ -927,12 +1071,17 @@ public Builder setView(com.google.cloud.workflows.executions.v1beta.ExecutionVie return this; } /** + * + * *
      * Optional. A view defining which fields should be filled in the returned executions.
      * The API will default to the BASIC view.
      * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearView() { @@ -941,9 +1090,9 @@ public Builder clearView() { 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); } @@ -953,41 +1102,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.ListExecutionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.ListExecutionsRequest) - private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest(); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -999,9 +1150,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java index f135cef4a047..f24ebbb5f093 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface ListExecutionsRequestOrBuilder extends +public interface ListExecutionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.ListExecutionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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. Name of the workflow for which the executions should be listed.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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(); /** + * + * *
    * Maximum number of executions to return per call.
    * Max supported value depends on the selected Execution view: it's 10000 for
@@ -39,11 +66,14 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -53,10 +83,13 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListExecutions` call.
    * Provide this to retrieve the subsequent page.
@@ -66,28 +99,38 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Optional. A view defining which fields should be filled in the returned executions.
    * The API will default to the BASIC view.
    * 
* - * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.executions.v1beta.ExecutionView view = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The view. */ com.google.cloud.workflows.executions.v1beta.ExecutionView getView(); diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java similarity index 70% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java index 92365635a1fa..6914bd5be8b0 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; /** + * + * *
  * Response for the
  * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsResponse}
  */
-public final class ListExecutionsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.executions.v1beta.ListExecutionsResponse)
     ListExecutionsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListExecutionsResponse.newBuilder() to construct.
   private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListExecutionsResponse() {
     executions_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -28,28 +46,32 @@ private ListExecutionsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListExecutionsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+        .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
+            com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class,
+            com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
   }
 
   public static final int EXECUTIONS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List executions_;
   /**
+   *
+   *
    * 
    * The executions which match the request.
    * 
@@ -57,10 +79,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ @java.lang.Override - public java.util.List getExecutionsList() { + public java.util.List + getExecutionsList() { return executions_; } /** + * + * *
    * The executions which match the request.
    * 
@@ -68,11 +93,13 @@ public java.util.List ge * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExecutionsOrBuilderList() { return executions_; } /** + * + * *
    * The executions which match the request.
    * 
@@ -84,6 +111,8 @@ public int getExecutionsCount() { return executions_.size(); } /** + * + * *
    * The executions which match the request.
    * 
@@ -95,6 +124,8 @@ public com.google.cloud.workflows.executions.v1beta.Execution getExecutions(int return executions_.get(index); } /** + * + * *
    * The executions which match the request.
    * 
@@ -108,15 +139,19 @@ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecut } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,30 +160,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; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -157,6 +192,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +204,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 < executions_.size(); i++) { output.writeMessage(1, executions_.get(i)); } @@ -186,8 +221,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, executions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -200,17 +234,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.workflows.executions.v1beta.ListExecutionsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other = (com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse) obj; + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other = + (com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse) obj; - if (!getExecutionsList() - .equals(other.getExecutionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getExecutionsList().equals(other.getExecutionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,98 +267,105 @@ public int hashCode() { } public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse + 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.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse 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.workflows.executions.v1beta.ListExecutionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse 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
    * [ListExecutions][google.cloud.workflows.executions.v1beta.Executions.ListExecutions]
@@ -334,33 +374,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.executions.v1beta.ListExecutionsResponse}
    */
-  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.workflows.executions.v1beta.ListExecutionsResponse)
       com.google.cloud.workflows.executions.v1beta.ListExecutionsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
+              com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class,
+              com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.newBuilder()
-    private Builder() {
+    // Construct using
+    // com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.newBuilder()
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -377,14 +417,16 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.executions.v1beta.ExecutionsProto
+          .internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse getDefaultInstanceForType() {
-      return com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.getDefaultInstance();
+    public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse
+        getDefaultInstanceForType() {
+      return com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse
+          .getDefaultInstance();
     }
 
     @java.lang.Override
@@ -398,14 +440,18 @@ public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse build
 
     @java.lang.Override
     public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse buildPartial() {
-      com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result = new com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse(this);
+      com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result =
+          new com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
       if (executionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           executions_ = java.util.Collections.unmodifiableList(executions_);
@@ -417,7 +463,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workflows.executions.v1
       }
     }
 
-    private void buildPartial0(com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
+    private void buildPartial0(
+        com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000002) != 0)) {
         result.nextPageToken_ = nextPageToken_;
@@ -428,46 +475,51 @@ private void buildPartial0(com.google.cloud.workflows.executions.v1beta.ListExec
     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.workflows.executions.v1beta.ListExecutionsResponse) {
-        return mergeFrom((com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse)other);
+        return mergeFrom(
+            (com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other) {
-      if (other == com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse other) {
+      if (other
+          == com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse
+              .getDefaultInstance()) return this;
       if (executionsBuilder_ == null) {
         if (!other.executions_.isEmpty()) {
           if (executions_.isEmpty()) {
@@ -486,9 +538,10 @@ public Builder mergeFrom(com.google.cloud.workflows.executions.v1beta.ListExecut
             executionsBuilder_ = null;
             executions_ = other.executions_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            executionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getExecutionsFieldBuilder() : null;
+            executionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getExecutionsFieldBuilder()
+                    : null;
           } else {
             executionsBuilder_.addAllMessages(other.executions_);
           }
@@ -525,30 +578,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.workflows.executions.v1beta.Execution m =
-                  input.readMessage(
-                      com.google.cloud.workflows.executions.v1beta.Execution.parser(),
-                      extensionRegistry);
-              if (executionsBuilder_ == null) {
-                ensureExecutionsIsMutable();
-                executions_.add(m);
-              } else {
-                executionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.workflows.executions.v1beta.Execution m =
+                    input.readMessage(
+                        com.google.cloud.workflows.executions.v1beta.Execution.parser(),
+                        extensionRegistry);
+                if (executionsBuilder_ == null) {
+                  ensureExecutionsIsMutable();
+                  executions_.add(m);
+                } else {
+                  executionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -558,28 +614,38 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List executions_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureExecutionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        executions_ = new java.util.ArrayList(executions_);
+        executions_ =
+            new java.util.ArrayList(
+                executions_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> executionsBuilder_;
+            com.google.cloud.workflows.executions.v1beta.Execution,
+            com.google.cloud.workflows.executions.v1beta.Execution.Builder,
+            com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>
+        executionsBuilder_;
 
     /**
+     *
+     *
      * 
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - public java.util.List getExecutionsList() { + public java.util.List + getExecutionsList() { if (executionsBuilder_ == null) { return java.util.Collections.unmodifiableList(executions_); } else { @@ -587,6 +653,8 @@ public java.util.List ge } } /** + * + * *
      * The executions which match the request.
      * 
@@ -601,6 +669,8 @@ public int getExecutionsCount() { } } /** + * + * *
      * The executions which match the request.
      * 
@@ -615,6 +685,8 @@ public com.google.cloud.workflows.executions.v1beta.Execution getExecutions(int } } /** + * + * *
      * The executions which match the request.
      * 
@@ -636,6 +708,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -654,6 +728,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -674,6 +750,8 @@ public Builder addExecutions(com.google.cloud.workflows.executions.v1beta.Execut return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -695,6 +773,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -713,6 +793,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -731,6 +813,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -738,11 +822,11 @@ public Builder addExecutions( * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ public Builder addAllExecutions( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); onChanged(); } else { executionsBuilder_.addAllMessages(values); @@ -750,6 +834,8 @@ public Builder addAllExecutions( return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -767,6 +853,8 @@ public Builder clearExecutions() { return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -784,6 +872,8 @@ public Builder removeExecutions(int index) { return this; } /** + * + * *
      * The executions which match the request.
      * 
@@ -795,6 +885,8 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecuti return getExecutionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The executions which match the request.
      * 
@@ -804,19 +896,22 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder getExecuti public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionsOrBuilder( int index) { if (executionsBuilder_ == null) { - return executions_.get(index); } else { + return executions_.get(index); + } else { return executionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - public java.util.List - getExecutionsOrBuilderList() { + public java.util.List + getExecutionsOrBuilderList() { if (executionsBuilder_ != null) { return executionsBuilder_.getMessageOrBuilderList(); } else { @@ -824,6 +919,8 @@ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecut } } /** + * + * *
      * The executions which match the request.
      * 
@@ -831,10 +928,12 @@ public com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecut * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder().addBuilder( - com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder() + .addBuilder(com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); } /** + * + * *
      * The executions which match the request.
      * 
@@ -843,30 +942,36 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecuti */ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecutionsBuilder( int index) { - return getExecutionsFieldBuilder().addBuilder( - index, com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder() + .addBuilder( + index, com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance()); } /** + * + * *
      * The executions which match the request.
      * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - public java.util.List - getExecutionsBuilderList() { + public java.util.List + getExecutionsBuilderList() { return getExecutionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> + com.google.cloud.workflows.executions.v1beta.Execution, + com.google.cloud.workflows.executions.v1beta.Execution.Builder, + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder> getExecutionsFieldBuilder() { if (executionsBuilder_ == null) { - executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.executions.v1beta.Execution, com.google.cloud.workflows.executions.v1beta.Execution.Builder, com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( - executions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + executionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.executions.v1beta.Execution, + com.google.cloud.workflows.executions.v1beta.Execution.Builder, + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder>( + executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); executions_ = null; } return executionsBuilder_; @@ -874,19 +979,21 @@ public com.google.cloud.workflows.executions.v1beta.Execution.Builder addExecuti private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -895,21 +1002,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -917,30 +1025,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -950,27 +1065,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; 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); } @@ -980,41 +1099,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.executions.v1beta.ListExecutionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.executions.v1beta.ListExecutionsResponse) - private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse(); } - public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse getDefaultInstance() { + public static com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,9 +1147,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse getDefaultInstanceForType() { + public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java index 79c065a484ba..46d1ab9af93f 100644 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ListExecutionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/executions/v1beta/executions.proto package com.google.cloud.workflows.executions.v1beta; -public interface ListExecutionsResponseOrBuilder extends +public interface ListExecutionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.ListExecutionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - java.util.List - getExecutionsList(); + java.util.List getExecutionsList(); /** + * + * *
    * The executions which match the request.
    * 
@@ -25,6 +44,8 @@ public interface ListExecutionsResponseOrBuilder extends */ com.google.cloud.workflows.executions.v1beta.Execution getExecutions(int index); /** + * + * *
    * The executions which match the request.
    * 
@@ -33,43 +54,51 @@ public interface ListExecutionsResponseOrBuilder extends */ int getExecutionsCount(); /** + * + * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - java.util.List + java.util.List getExecutionsOrBuilderList(); /** + * + * *
    * The executions which match the request.
    * 
* * repeated .google.cloud.workflows.executions.v1beta.Execution executions = 1; */ - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionsOrBuilder( - int index); + com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/WorkflowName.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto rename to java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/src/main/proto/google/cloud/workflows/executions/v1beta/executions.proto diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/AsyncCancelExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionExecutionname.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/cancelexecution/SyncCancelExecutionString.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/AsyncCreateExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionStringExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/AsyncGetExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionExecutionname.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/getexecution/SyncGetExecutionString.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutions.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/AsyncListExecutionsPaged.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutions.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsString.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executions/listexecutions/SyncListExecutionsWorkflowname.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/executionssettings/createexecution/SyncCreateExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1/stub/executionsstubsettings/createexecution/SyncCreateExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/AsyncCancelExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionExecutionname.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/cancelexecution/SyncCancelExecutionString.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/AsyncCreateExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionStringExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/createexecution/SyncCreateExecutionWorkflownameExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/AsyncGetExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionExecutionname.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/getexecution/SyncGetExecutionString.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutions.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/AsyncListExecutionsPaged.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutions.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsString.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executions/listexecutions/SyncListExecutionsWorkflowname.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/executionssettings/createexecution/SyncCreateExecution.java diff --git a/owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java b/java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-workflow-executions/v1beta/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java rename to java-workflow-executions/samples/snippets/generated/com/google/cloud/workflows/executions/v1beta/stub/executionsstubsettings/createexecution/SyncCreateExecution.java diff --git a/java-workflows/README.md b/java-workflows/README.md index 7734d1675843..cf9a0e286193 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.32.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsClient.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java similarity index 99% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java index 1da8f8d15835..c9c5752028bb 100644 --- a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/WorkflowsSettings.java @@ -30,7 +30,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.location.GetLocationRequest; diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/package-info.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsCallableFactory.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java similarity index 99% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java index e45db03d639c..ebfe0392fa3c 100644 --- a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/GrpcWorkflowsStub.java @@ -45,7 +45,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/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsCallableFactory.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java similarity index 99% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java index a3888ea74d74..392ac83de0e2 100644 --- a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/HttpJsonWorkflowsStub.java @@ -32,7 +32,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStub.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/WorkflowsStubSettings.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsClient.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java similarity index 99% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java index 16d61dd50068..06be6fc24c8f 100644 --- a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; 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.workflows.v1beta.stub.WorkflowsStubSettings; diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/gapic_metadata.json diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/package-info.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsCallableFactory.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java similarity index 99% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java index d16964ea11de..f37ab94028c7 100644 --- a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/GrpcWorkflowsStub.java @@ -41,7 +41,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/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsCallableFactory.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java similarity index 99% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java index 9f78c74eae1c..d9f2ef1b8254 100644 --- a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/HttpJsonWorkflowsStub.java @@ -31,7 +31,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStub.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java rename to java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/WorkflowsStubSettings.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json b/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json rename to java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1/reflect-config.json diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json b/java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json rename to java-workflows/google-cloud-workflows/src/main/resources/META-INF/native-image/com.google.cloud.workflows.v1beta/reflect-config.json diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocations.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflows.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/MockWorkflowsImpl.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1/WorkflowsClientTest.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflows.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/MockWorkflowsImpl.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientHttpJsonTest.java diff --git a/owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java b/java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java rename to java-workflows/google-cloud-workflows/src/test/java/com/google/cloud/workflows/v1beta/WorkflowsClientTest.java diff --git a/owl-bot-staging/java-workflows/v1/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java b/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java similarity index 50% rename from owl-bot-staging/java-workflows/v1/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java rename to java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java index dfdad66e7239..3917fb51b245 100644 --- a/owl-bot-staging/java-workflows/v1/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java +++ b/java-workflows/grpc-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.workflows.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Workflows is used to deploy and execute workflow programs.
  * Workflows makes sure the program executes reliably, despite hardware and
@@ -20,206 +37,264 @@ private WorkflowsGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.v1.Workflows";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListWorkflowsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.ListWorkflowsRequest,
+          com.google.cloud.workflows.v1.ListWorkflowsResponse>
+      getListWorkflowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListWorkflows",
       requestType = com.google.cloud.workflows.v1.ListWorkflowsRequest.class,
       responseType = com.google.cloud.workflows.v1.ListWorkflowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListWorkflowsMethod() {
-    io.grpc.MethodDescriptor getListWorkflowsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.ListWorkflowsRequest,
+          com.google.cloud.workflows.v1.ListWorkflowsResponse>
+      getListWorkflowsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1.ListWorkflowsRequest,
+            com.google.cloud.workflows.v1.ListWorkflowsResponse>
+        getListWorkflowsMethod;
     if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
-          WorkflowsGrpc.getListWorkflowsMethod = getListWorkflowsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1.ListWorkflowsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1.ListWorkflowsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
-              .build();
+          WorkflowsGrpc.getListWorkflowsMethod =
+              getListWorkflowsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1.ListWorkflowsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1.ListWorkflowsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
+                      .build();
         }
       }
     }
     return getListWorkflowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.GetWorkflowRequest, com.google.cloud.workflows.v1.Workflow>
+      getGetWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetWorkflow",
       requestType = com.google.cloud.workflows.v1.GetWorkflowRequest.class,
       responseType = com.google.cloud.workflows.v1.Workflow.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetWorkflowMethod() {
-    io.grpc.MethodDescriptor getGetWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.GetWorkflowRequest, com.google.cloud.workflows.v1.Workflow>
+      getGetWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1.GetWorkflowRequest,
+            com.google.cloud.workflows.v1.Workflow>
+        getGetWorkflowMethod;
     if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
-          WorkflowsGrpc.getGetWorkflowMethod = getGetWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1.GetWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1.Workflow.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
-              .build();
+          WorkflowsGrpc.getGetWorkflowMethod =
+              getGetWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1.GetWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1.Workflow.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
+                      .build();
         }
       }
     }
     return getGetWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.CreateWorkflowRequest, com.google.longrunning.Operation>
+      getCreateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateWorkflow",
       requestType = com.google.cloud.workflows.v1.CreateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateWorkflowMethod() {
-    io.grpc.MethodDescriptor getCreateWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.CreateWorkflowRequest, com.google.longrunning.Operation>
+      getCreateWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1.CreateWorkflowRequest, com.google.longrunning.Operation>
+        getCreateWorkflowMethod;
     if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
-          WorkflowsGrpc.getCreateWorkflowMethod = getCreateWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1.CreateWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
-              .build();
+          WorkflowsGrpc.getCreateWorkflowMethod =
+              getCreateWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1.CreateWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
+                      .build();
         }
       }
     }
     return getCreateWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.DeleteWorkflowRequest, com.google.longrunning.Operation>
+      getDeleteWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflow",
       requestType = com.google.cloud.workflows.v1.DeleteWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteWorkflowMethod() {
-    io.grpc.MethodDescriptor getDeleteWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.DeleteWorkflowRequest, com.google.longrunning.Operation>
+      getDeleteWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1.DeleteWorkflowRequest, com.google.longrunning.Operation>
+        getDeleteWorkflowMethod;
     if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
-          WorkflowsGrpc.getDeleteWorkflowMethod = getDeleteWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1.DeleteWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
-              .build();
+          WorkflowsGrpc.getDeleteWorkflowMethod =
+              getDeleteWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1.DeleteWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
+                      .build();
         }
       }
     }
     return getDeleteWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.UpdateWorkflowRequest, com.google.longrunning.Operation>
+      getUpdateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflow",
       requestType = com.google.cloud.workflows.v1.UpdateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateWorkflowMethod() {
-    io.grpc.MethodDescriptor getUpdateWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1.UpdateWorkflowRequest, com.google.longrunning.Operation>
+      getUpdateWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1.UpdateWorkflowRequest, com.google.longrunning.Operation>
+        getUpdateWorkflowMethod;
     if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
-          WorkflowsGrpc.getUpdateWorkflowMethod = getUpdateWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1.UpdateWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
-              .build();
+          WorkflowsGrpc.getUpdateWorkflowMethod =
+              getUpdateWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1.UpdateWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
+                      .build();
         }
       }
     }
     return getUpdateWorkflowMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static WorkflowsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowsStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowsStub(channel, callOptions);
+          }
+        };
     return WorkflowsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static WorkflowsBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static WorkflowsBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowsBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowsBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowsBlockingStub(channel, callOptions);
+          }
+        };
     return WorkflowsBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static WorkflowsFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static WorkflowsFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowsFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowsFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowsFutureStub(channel, callOptions);
+          }
+        };
     return WorkflowsFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -229,51 +304,70 @@ public WorkflowsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - default void listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkflowsMethod(), responseObserver); + default void listWorkflows( + com.google.cloud.workflows.v1.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkflowsMethod(), responseObserver); } /** + * + * *
      * Gets details of a single workflow.
      * 
*/ - default void getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request, + default void getWorkflow( + com.google.cloud.workflows.v1.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkflowMethod(), responseObserver); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - default void createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request, + default void createWorkflow( + com.google.cloud.workflows.v1.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkflowMethod(), responseObserver); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - default void deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request, + default void deleteWorkflow( + com.google.cloud.workflows.v1.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkflowMethod(), responseObserver); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -282,99 +376,123 @@ default void deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest
      * in new workflow executions.
      * 
*/ - default void updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request, + default void updateWorkflow( + com.google.cloud.workflows.v1.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkflowMethod(), responseObserver); } } /** * Base class for the server implementation of the service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public static abstract class WorkflowsImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class WorkflowsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return WorkflowsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public static final class WorkflowsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkflowsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class WorkflowsStub extends io.grpc.stub.AbstractAsyncStub { + private WorkflowsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected WorkflowsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected WorkflowsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new WorkflowsStub(channel, callOptions); } /** + * + * *
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public void listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listWorkflows( + com.google.cloud.workflows.v1.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets details of a single workflow.
      * 
*/ - public void getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request, + public void getWorkflow( + com.google.cloud.workflows.v1.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public void createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request, + public void createWorkflow( + com.google.cloud.workflows.v1.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public void deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request, + public void deleteWorkflow( + com.google.cloud.workflows.v1.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -383,15 +501,19 @@ public void deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest r
      * in new workflow executions.
      * 
*/ - public void updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request, + public void updateWorkflow( + com.google.cloud.workflows.v1.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -400,8 +522,7 @@ public void updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest r
    */
   public static final class WorkflowsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private WorkflowsBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -412,51 +533,65 @@ protected WorkflowsBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.cloud.workflows.v1.ListWorkflowsResponse listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request) { + public com.google.cloud.workflows.v1.ListWorkflowsResponse listWorkflows( + com.google.cloud.workflows.v1.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets details of a single workflow.
      * 
*/ - public com.google.cloud.workflows.v1.Workflow getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request) { + public com.google.cloud.workflows.v1.Workflow getWorkflow( + com.google.cloud.workflows.v1.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.longrunning.Operation createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request) { + public com.google.longrunning.Operation createWorkflow( + com.google.cloud.workflows.v1.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.longrunning.Operation deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { + public com.google.longrunning.Operation deleteWorkflow( + com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowMethod(), getCallOptions(), request); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -465,7 +600,8 @@ public com.google.longrunning.Operation deleteWorkflow(com.google.cloud.workflow
      * in new workflow executions.
      * 
*/ - public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request) { + public com.google.longrunning.Operation updateWorkflow( + com.google.cloud.workflows.v1.UpdateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowMethod(), getCallOptions(), request); } @@ -473,6 +609,7 @@ public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflow /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -481,67 +618,77 @@ public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflow
    */
   public static final class WorkflowsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private WorkflowsFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected WorkflowsFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new WorkflowsFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Lists workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listWorkflows( - com.google.cloud.workflows.v1.ListWorkflowsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.v1.ListWorkflowsResponse> + listWorkflows(com.google.cloud.workflows.v1.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets details of a single workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getWorkflow( - com.google.cloud.workflows.v1.GetWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.v1.Workflow> + getWorkflow(com.google.cloud.workflows.v1.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createWorkflow( - com.google.cloud.workflows.v1.CreateWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createWorkflow(com.google.cloud.workflows.v1.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteWorkflow( - com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteWorkflow(com.google.cloud.workflows.v1.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -550,8 +697,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateWorkflow(
-        com.google.cloud.workflows.v1.UpdateWorkflowRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateWorkflow(com.google.cloud.workflows.v1.UpdateWorkflowRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request);
     }
@@ -563,11 +710,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -581,23 +728,30 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_LIST_WORKFLOWS:
-          serviceImpl.listWorkflows((com.google.cloud.workflows.v1.ListWorkflowsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listWorkflows(
+              (com.google.cloud.workflows.v1.ListWorkflowsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_WORKFLOW:
-          serviceImpl.getWorkflow((com.google.cloud.workflows.v1.GetWorkflowRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getWorkflow(
+              (com.google.cloud.workflows.v1.GetWorkflowRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_CREATE_WORKFLOW:
-          serviceImpl.createWorkflow((com.google.cloud.workflows.v1.CreateWorkflowRequest) request,
+          serviceImpl.createWorkflow(
+              (com.google.cloud.workflows.v1.CreateWorkflowRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_WORKFLOW:
-          serviceImpl.deleteWorkflow((com.google.cloud.workflows.v1.DeleteWorkflowRequest) request,
+          serviceImpl.deleteWorkflow(
+              (com.google.cloud.workflows.v1.DeleteWorkflowRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_WORKFLOW:
-          serviceImpl.updateWorkflow((com.google.cloud.workflows.v1.UpdateWorkflowRequest) request,
+          serviceImpl.updateWorkflow(
+              (com.google.cloud.workflows.v1.UpdateWorkflowRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -619,45 +773,42 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-          getListWorkflowsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1.ListWorkflowsRequest,
-              com.google.cloud.workflows.v1.ListWorkflowsResponse>(
-                service, METHODID_LIST_WORKFLOWS)))
+            getListWorkflowsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1.ListWorkflowsRequest,
+                    com.google.cloud.workflows.v1.ListWorkflowsResponse>(
+                    service, METHODID_LIST_WORKFLOWS)))
         .addMethod(
-          getGetWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1.GetWorkflowRequest,
-              com.google.cloud.workflows.v1.Workflow>(
-                service, METHODID_GET_WORKFLOW)))
+            getGetWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1.GetWorkflowRequest,
+                    com.google.cloud.workflows.v1.Workflow>(service, METHODID_GET_WORKFLOW)))
         .addMethod(
-          getCreateWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1.CreateWorkflowRequest,
-              com.google.longrunning.Operation>(
-                service, METHODID_CREATE_WORKFLOW)))
+            getCreateWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1.CreateWorkflowRequest,
+                    com.google.longrunning.Operation>(service, METHODID_CREATE_WORKFLOW)))
         .addMethod(
-          getDeleteWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1.DeleteWorkflowRequest,
-              com.google.longrunning.Operation>(
-                service, METHODID_DELETE_WORKFLOW)))
+            getDeleteWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1.DeleteWorkflowRequest,
+                    com.google.longrunning.Operation>(service, METHODID_DELETE_WORKFLOW)))
         .addMethod(
-          getUpdateWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1.UpdateWorkflowRequest,
-              com.google.longrunning.Operation>(
-                service, METHODID_UPDATE_WORKFLOW)))
+            getUpdateWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1.UpdateWorkflowRequest,
+                    com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKFLOW)))
         .build();
   }
 
-  private static abstract class WorkflowsBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class WorkflowsBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     WorkflowsBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -699,14 +850,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (WorkflowsGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier())
-              .addMethod(getListWorkflowsMethod())
-              .addMethod(getGetWorkflowMethod())
-              .addMethod(getCreateWorkflowMethod())
-              .addMethod(getDeleteWorkflowMethod())
-              .addMethod(getUpdateWorkflowMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier())
+                      .addMethod(getListWorkflowsMethod())
+                      .addMethod(getGetWorkflowMethod())
+                      .addMethod(getCreateWorkflowMethod())
+                      .addMethod(getDeleteWorkflowMethod())
+                      .addMethod(getUpdateWorkflowMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/java-workflows/v1beta/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java b/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java
similarity index 50%
rename from owl-bot-staging/java-workflows/v1beta/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java
rename to java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java
index a6b50cb34b1d..83a37fdc0d53 100644
--- a/owl-bot-staging/java-workflows/v1beta/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java
+++ b/java-workflows/grpc-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT 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.workflows.v1beta;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * Workflows is used to deploy and execute workflow programs.
  * Workflows makes sure the program executes reliably, despite hardware and
@@ -20,206 +37,269 @@ private WorkflowsGrpc() {}
   public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.v1beta.Workflows";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getListWorkflowsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
+          com.google.cloud.workflows.v1beta.ListWorkflowsResponse>
+      getListWorkflowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ListWorkflows",
       requestType = com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class,
       responseType = com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getListWorkflowsMethod() {
-    io.grpc.MethodDescriptor getListWorkflowsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
+          com.google.cloud.workflows.v1beta.ListWorkflowsResponse>
+      getListWorkflowsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
+            com.google.cloud.workflows.v1beta.ListWorkflowsResponse>
+        getListWorkflowsMethod;
     if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getListWorkflowsMethod = WorkflowsGrpc.getListWorkflowsMethod) == null) {
-          WorkflowsGrpc.getListWorkflowsMethod = getListWorkflowsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1beta.ListWorkflowsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1beta.ListWorkflowsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
-              .build();
+          WorkflowsGrpc.getListWorkflowsMethod =
+              getListWorkflowsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkflows"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1beta.ListWorkflowsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1beta.ListWorkflowsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("ListWorkflows"))
+                      .build();
         }
       }
     }
     return getListWorkflowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getGetWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.GetWorkflowRequest,
+          com.google.cloud.workflows.v1beta.Workflow>
+      getGetWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "GetWorkflow",
       requestType = com.google.cloud.workflows.v1beta.GetWorkflowRequest.class,
       responseType = com.google.cloud.workflows.v1beta.Workflow.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getGetWorkflowMethod() {
-    io.grpc.MethodDescriptor getGetWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.GetWorkflowRequest,
+          com.google.cloud.workflows.v1beta.Workflow>
+      getGetWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1beta.GetWorkflowRequest,
+            com.google.cloud.workflows.v1beta.Workflow>
+        getGetWorkflowMethod;
     if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getGetWorkflowMethod = WorkflowsGrpc.getGetWorkflowMethod) == null) {
-          WorkflowsGrpc.getGetWorkflowMethod = getGetWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1beta.GetWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
-              .build();
+          WorkflowsGrpc.getGetWorkflowMethod =
+              getGetWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1beta.GetWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("GetWorkflow"))
+                      .build();
         }
       }
     }
     return getGetWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getCreateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.CreateWorkflowRequest, com.google.longrunning.Operation>
+      getCreateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateWorkflow",
       requestType = com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateWorkflowMethod() {
-    io.grpc.MethodDescriptor getCreateWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.CreateWorkflowRequest, com.google.longrunning.Operation>
+      getCreateWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1beta.CreateWorkflowRequest,
+            com.google.longrunning.Operation>
+        getCreateWorkflowMethod;
     if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getCreateWorkflowMethod = WorkflowsGrpc.getCreateWorkflowMethod) == null) {
-          WorkflowsGrpc.getCreateWorkflowMethod = getCreateWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1beta.CreateWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
-              .build();
+          WorkflowsGrpc.getCreateWorkflowMethod =
+              getCreateWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1beta.CreateWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("CreateWorkflow"))
+                      .build();
         }
       }
     }
     return getCreateWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getDeleteWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.DeleteWorkflowRequest, com.google.longrunning.Operation>
+      getDeleteWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "DeleteWorkflow",
       requestType = com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getDeleteWorkflowMethod() {
-    io.grpc.MethodDescriptor getDeleteWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.DeleteWorkflowRequest, com.google.longrunning.Operation>
+      getDeleteWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest,
+            com.google.longrunning.Operation>
+        getDeleteWorkflowMethod;
     if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getDeleteWorkflowMethod = WorkflowsGrpc.getDeleteWorkflowMethod) == null) {
-          WorkflowsGrpc.getDeleteWorkflowMethod = getDeleteWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
-              .build();
+          WorkflowsGrpc.getDeleteWorkflowMethod =
+              getDeleteWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("DeleteWorkflow"))
+                      .build();
         }
       }
     }
     return getDeleteWorkflowMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getUpdateWorkflowMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.UpdateWorkflowRequest, com.google.longrunning.Operation>
+      getUpdateWorkflowMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "UpdateWorkflow",
       requestType = com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class,
       responseType = com.google.longrunning.Operation.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getUpdateWorkflowMethod() {
-    io.grpc.MethodDescriptor getUpdateWorkflowMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.workflows.v1beta.UpdateWorkflowRequest, com.google.longrunning.Operation>
+      getUpdateWorkflowMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest,
+            com.google.longrunning.Operation>
+        getUpdateWorkflowMethod;
     if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
       synchronized (WorkflowsGrpc.class) {
         if ((getUpdateWorkflowMethod = WorkflowsGrpc.getUpdateWorkflowMethod) == null) {
-          WorkflowsGrpc.getUpdateWorkflowMethod = getUpdateWorkflowMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.longrunning.Operation.getDefaultInstance()))
-              .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
-              .build();
+          WorkflowsGrpc.getUpdateWorkflowMethod =
+              getUpdateWorkflowMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkflow"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.longrunning.Operation.getDefaultInstance()))
+                      .setSchemaDescriptor(new WorkflowsMethodDescriptorSupplier("UpdateWorkflow"))
+                      .build();
         }
       }
     }
     return getUpdateWorkflowMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static WorkflowsStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowsStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowsStub(channel, callOptions);
+          }
+        };
     return WorkflowsStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static WorkflowsBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static WorkflowsBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowsBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowsBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowsBlockingStub(channel, callOptions);
+          }
+        };
     return WorkflowsBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static WorkflowsFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static WorkflowsFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public WorkflowsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new WorkflowsFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public WorkflowsFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new WorkflowsFutureStub(channel, callOptions);
+          }
+        };
     return WorkflowsFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -229,51 +309,70 @@ public WorkflowsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
   public interface AsyncService {
 
     /**
+     *
+     *
      * 
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - default void listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkflowsMethod(), responseObserver); + default void listWorkflows( + com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkflowsMethod(), responseObserver); } /** + * + * *
      * Gets details of a single Workflow.
      * 
*/ - default void getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request, + default void getWorkflow( + com.google.cloud.workflows.v1beta.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkflowMethod(), responseObserver); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - default void createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, + default void createWorkflow( + com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkflowMethod(), responseObserver); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - default void deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, + default void deleteWorkflow( + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkflowMethod(), responseObserver); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -282,99 +381,123 @@ default void deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequ
      * in new workflow executions.
      * 
*/ - default void updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, + default void updateWorkflow( + com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkflowMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkflowMethod(), responseObserver); } } /** * Base class for the server implementation of the service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public static abstract class WorkflowsImplBase - implements io.grpc.BindableService, AsyncService { + public abstract static class WorkflowsImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return WorkflowsGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
    * networking interruptions.
    * 
*/ - public static final class WorkflowsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkflowsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class WorkflowsStub extends io.grpc.stub.AbstractAsyncStub { + private WorkflowsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected WorkflowsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected WorkflowsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new WorkflowsStub(channel, callOptions); } /** + * + * *
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public void listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listWorkflows( + com.google.cloud.workflows.v1beta.ListWorkflowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets details of a single Workflow.
      * 
*/ - public void getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request, + public void getWorkflow( + com.google.cloud.workflows.v1beta.GetWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public void createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, + public void createWorkflow( + com.google.cloud.workflows.v1beta.CreateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public void deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, + public void deleteWorkflow( + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -383,15 +506,19 @@ public void deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowReque
      * in new workflow executions.
      * 
*/ - public void updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, + public void updateWorkflow( + com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -400,8 +527,7 @@ public void updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowReque
    */
   public static final class WorkflowsBlockingStub
       extends io.grpc.stub.AbstractBlockingStub {
-    private WorkflowsBlockingStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
@@ -412,51 +538,65 @@ protected WorkflowsBlockingStub build(
     }
 
     /**
+     *
+     *
      * 
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.cloud.workflows.v1beta.ListWorkflowsResponse listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { + public com.google.cloud.workflows.v1beta.ListWorkflowsResponse listWorkflows( + com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkflowsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets details of a single Workflow.
      * 
*/ - public com.google.cloud.workflows.v1beta.Workflow getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { + public com.google.cloud.workflows.v1beta.Workflow getWorkflow( + com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWorkflowMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.longrunning.Operation createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { + public com.google.longrunning.Operation createWorkflow( + com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWorkflowMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.longrunning.Operation deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { + public com.google.longrunning.Operation deleteWorkflow( + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWorkflowMethod(), getCallOptions(), request); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -465,7 +605,8 @@ public com.google.longrunning.Operation deleteWorkflow(com.google.cloud.workflow
      * in new workflow executions.
      * 
*/ - public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) { + public com.google.longrunning.Operation updateWorkflow( + com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkflowMethod(), getCallOptions(), request); } @@ -473,6 +614,7 @@ public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflow /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Workflows. + * *
    * Workflows is used to deploy and execute workflow programs.
    * Workflows makes sure the program executes reliably, despite hardware and
@@ -481,67 +623,77 @@ public com.google.longrunning.Operation updateWorkflow(com.google.cloud.workflow
    */
   public static final class WorkflowsFutureStub
       extends io.grpc.stub.AbstractFutureStub {
-    private WorkflowsFutureStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private WorkflowsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected WorkflowsFutureStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected WorkflowsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new WorkflowsFutureStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Lists Workflows in a given project and location.
      * The default order is not specified.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listWorkflows( - com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.v1beta.ListWorkflowsResponse> + listWorkflows(com.google.cloud.workflows.v1beta.ListWorkflowsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkflowsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets details of a single Workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getWorkflow( - com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workflows.v1beta.Workflow> + getWorkflow(com.google.cloud.workflows.v1beta.GetWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWorkflowMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a new workflow. If a workflow with the specified name already
      * exists in the specified project and location, the long running operation
      * will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createWorkflow( - com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createWorkflow(com.google.cloud.workflows.v1beta.CreateWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWorkflowMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes a workflow with the specified name.
      * This method also cancels and deletes all running executions of the
      * workflow.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteWorkflow( - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteWorkflow(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWorkflowMethod(), getCallOptions()), request); } /** + * + * *
      * Updates an existing workflow.
      * Running this method has no impact on already running executions of the
@@ -550,8 +702,8 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateWorkflow(
-        com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateWorkflow(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateWorkflowMethod(), getCallOptions()), request);
     }
@@ -563,11 +715,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  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 AsyncService serviceImpl;
     private final int methodId;
 
@@ -581,23 +733,30 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_LIST_WORKFLOWS:
-          serviceImpl.listWorkflows((com.google.cloud.workflows.v1beta.ListWorkflowsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.listWorkflows(
+              (com.google.cloud.workflows.v1beta.ListWorkflowsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_GET_WORKFLOW:
-          serviceImpl.getWorkflow((com.google.cloud.workflows.v1beta.GetWorkflowRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.getWorkflow(
+              (com.google.cloud.workflows.v1beta.GetWorkflowRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_CREATE_WORKFLOW:
-          serviceImpl.createWorkflow((com.google.cloud.workflows.v1beta.CreateWorkflowRequest) request,
+          serviceImpl.createWorkflow(
+              (com.google.cloud.workflows.v1beta.CreateWorkflowRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_DELETE_WORKFLOW:
-          serviceImpl.deleteWorkflow((com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) request,
+          serviceImpl.deleteWorkflow(
+              (com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_UPDATE_WORKFLOW:
-          serviceImpl.updateWorkflow((com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) request,
+          serviceImpl.updateWorkflow(
+              (com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         default:
@@ -619,45 +778,42 @@ public io.grpc.stub.StreamObserver invoke(
   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
         .addMethod(
-          getListWorkflowsMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
-              com.google.cloud.workflows.v1beta.ListWorkflowsResponse>(
-                service, METHODID_LIST_WORKFLOWS)))
+            getListWorkflowsMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1beta.ListWorkflowsRequest,
+                    com.google.cloud.workflows.v1beta.ListWorkflowsResponse>(
+                    service, METHODID_LIST_WORKFLOWS)))
         .addMethod(
-          getGetWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1beta.GetWorkflowRequest,
-              com.google.cloud.workflows.v1beta.Workflow>(
-                service, METHODID_GET_WORKFLOW)))
+            getGetWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1beta.GetWorkflowRequest,
+                    com.google.cloud.workflows.v1beta.Workflow>(service, METHODID_GET_WORKFLOW)))
         .addMethod(
-          getCreateWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1beta.CreateWorkflowRequest,
-              com.google.longrunning.Operation>(
-                service, METHODID_CREATE_WORKFLOW)))
+            getCreateWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1beta.CreateWorkflowRequest,
+                    com.google.longrunning.Operation>(service, METHODID_CREATE_WORKFLOW)))
         .addMethod(
-          getDeleteWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest,
-              com.google.longrunning.Operation>(
-                service, METHODID_DELETE_WORKFLOW)))
+            getDeleteWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1beta.DeleteWorkflowRequest,
+                    com.google.longrunning.Operation>(service, METHODID_DELETE_WORKFLOW)))
         .addMethod(
-          getUpdateWorkflowMethod(),
-          io.grpc.stub.ServerCalls.asyncUnaryCall(
-            new MethodHandlers<
-              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest,
-              com.google.longrunning.Operation>(
-                service, METHODID_UPDATE_WORKFLOW)))
+            getUpdateWorkflowMethod(),
+            io.grpc.stub.ServerCalls.asyncUnaryCall(
+                new MethodHandlers<
+                    com.google.cloud.workflows.v1beta.UpdateWorkflowRequest,
+                    com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKFLOW)))
         .build();
   }
 
-  private static abstract class WorkflowsBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class WorkflowsBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     WorkflowsBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -699,14 +855,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (WorkflowsGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier())
-              .addMethod(getListWorkflowsMethod())
-              .addMethod(getGetWorkflowMethod())
-              .addMethod(getCreateWorkflowMethod())
-              .addMethod(getDeleteWorkflowMethod())
-              .addMethod(getUpdateWorkflowMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new WorkflowsFileDescriptorSupplier())
+                      .addMethod(getListWorkflowsMethod())
+                      .addMethod(getGetWorkflowMethod())
+                      .addMethod(getCreateWorkflowMethod())
+                      .addMethod(getDeleteWorkflowMethod())
+                      .addMethod(getUpdateWorkflowMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java
similarity index 65%
rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java
rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java
index de663e061a43..9d23ea4edcdf 100644
--- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java
+++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1/workflows.proto
 
 package com.google.cloud.workflows.v1;
 
 /**
+ *
+ *
  * 
  * Request for the
  * [CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.CreateWorkflowRequest}
  */
-public final class CreateWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.CreateWorkflowRequest)
     CreateWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateWorkflowRequest.newBuilder() to construct.
   private CreateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateWorkflowRequest() {
     parent_ = "";
     workflowId_ = "";
@@ -28,34 +46,41 @@ private CreateWorkflowRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.CreateWorkflowRequest.class, com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.CreateWorkflowRequest.class,
+            com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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 @@ -64,30 +89,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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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 { @@ -98,11 +125,16 @@ public java.lang.String getParent() { public static final int WORKFLOW_FIELD_NUMBER = 2; private com.google.cloud.workflows.v1.Workflow workflow_; /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ @java.lang.Override @@ -110,33 +142,49 @@ public boolean hasWorkflow() { return workflow_ != null; } /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow getWorkflow() { - return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } public static final int WORKFLOW_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object workflowId_ = ""; /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -149,6 +197,7 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() {
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workflowId. */ @java.lang.Override @@ -157,14 +206,15 @@ public java.lang.String getWorkflowId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; } } /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -177,16 +227,15 @@ public java.lang.String getWorkflowId() {
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workflowId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkflowIdBytes() { + public com.google.protobuf.ByteString getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowId_ = b; return b; } else { @@ -195,6 +244,7 @@ public java.lang.String getWorkflowId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +256,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_); } @@ -230,8 +279,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWorkflow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); @@ -244,22 +292,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.workflows.v1.CreateWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.CreateWorkflowRequest other = (com.google.cloud.workflows.v1.CreateWorkflowRequest) obj; + com.google.cloud.workflows.v1.CreateWorkflowRequest other = + (com.google.cloud.workflows.v1.CreateWorkflowRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasWorkflow() != other.hasWorkflow()) return false; if (hasWorkflow()) { - if (!getWorkflow() - .equals(other.getWorkflow())) return false; + if (!getWorkflow().equals(other.getWorkflow())) return false; } - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; + if (!getWorkflowId().equals(other.getWorkflowId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,98 +331,103 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1.CreateWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.CreateWorkflowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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.workflows.v1.CreateWorkflowRequest 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
    * [CreateWorkflow][google.cloud.workflows.v1.Workflows.CreateWorkflow]
@@ -385,33 +436,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1.CreateWorkflowRequest}
    */
-  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.workflows.v1.CreateWorkflowRequest)
       com.google.cloud.workflows.v1.CreateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.CreateWorkflowRequest.class, com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.CreateWorkflowRequest.class,
+              com.google.cloud.workflows.v1.CreateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.CreateWorkflowRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -427,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -448,8 +498,11 @@ public com.google.cloud.workflows.v1.CreateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.CreateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.CreateWorkflowRequest result = new com.google.cloud.workflows.v1.CreateWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1.CreateWorkflowRequest result =
+          new com.google.cloud.workflows.v1.CreateWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -460,9 +513,7 @@ private void buildPartial0(com.google.cloud.workflows.v1.CreateWorkflowRequest r
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.workflow_ = workflowBuilder_ == null
-            ? workflow_
-            : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.workflowId_ = workflowId_;
@@ -473,38 +524,39 @@ private void buildPartial0(com.google.cloud.workflows.v1.CreateWorkflowRequest r
     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.workflows.v1.CreateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.CreateWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1.CreateWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.CreateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.CreateWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1.CreateWorkflowRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -552,29 +605,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getWorkflowFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              workflowId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                workflowId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -584,23 +639,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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; @@ -609,21 +669,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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 { @@ -631,30 +694,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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() { @@ -664,18 +738,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,39 +765,58 @@ public Builder setParentBytes( private com.google.cloud.workflows.v1.Workflow workflow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> workflowBuilder_; + com.google.cloud.workflows.v1.Workflow, + com.google.cloud.workflows.v1.Workflow.Builder, + com.google.cloud.workflows.v1.WorkflowOrBuilder> + workflowBuilder_; /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ public com.google.cloud.workflows.v1.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } else { return workflowBuilder_.getMessage(); } } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { @@ -733,14 +832,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkflow( - com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { + public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -751,17 +853,21 @@ public Builder setWorkflow( return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - workflow_ != null && - workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && workflow_ != null + && workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -774,11 +880,15 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000002); @@ -791,11 +901,15 @@ public Builder clearWorkflow() { return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000002; @@ -803,36 +917,48 @@ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null ? - com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> + com.google.cloud.workflows.v1.Workflow, + com.google.cloud.workflows.v1.Workflow.Builder, + com.google.cloud.workflows.v1.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder>( - getWorkflow(), - getParentForChildren(), - isClean()); + workflowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow, + com.google.cloud.workflows.v1.Workflow.Builder, + com.google.cloud.workflows.v1.WorkflowOrBuilder>( + getWorkflow(), getParentForChildren(), isClean()); workflow_ = null; } return workflowBuilder_; @@ -840,6 +966,8 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { private java.lang.Object workflowId_ = ""; /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -852,13 +980,13 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workflowId. */ public java.lang.String getWorkflowId() { java.lang.Object ref = workflowId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; @@ -867,6 +995,8 @@ public java.lang.String getWorkflowId() { } } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -879,15 +1009,14 @@ public java.lang.String getWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workflowId. */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { + public com.google.protobuf.ByteString getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowId_ = b; return b; } else { @@ -895,6 +1024,8 @@ public java.lang.String getWorkflowId() { } } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -907,18 +1038,22 @@ public java.lang.String getWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workflowId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -931,6 +1066,7 @@ public Builder setWorkflowId(
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkflowId() { @@ -940,6 +1076,8 @@ public Builder clearWorkflowId() { return this; } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -952,21 +1090,23 @@ public Builder clearWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workflowId_ = value; bitField0_ |= 0x00000004; 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); } @@ -976,12 +1116,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.CreateWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.CreateWorkflowRequest) private static final com.google.cloud.workflows.v1.CreateWorkflowRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.CreateWorkflowRequest(); } @@ -990,27 +1130,27 @@ public static com.google.cloud.workflows.v1.CreateWorkflowRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1165,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.CreateWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java index e068e398eb8f..a4930c6c5d53 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/CreateWorkflowRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface CreateWorkflowRequestOrBuilder extends +public interface CreateWorkflowRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.CreateWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ com.google.cloud.workflows.v1.Workflow getWorkflow(); /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder(); /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -69,10 +110,13 @@ public interface CreateWorkflowRequestOrBuilder extends
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workflowId. */ java.lang.String getWorkflowId(); /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -85,8 +129,8 @@ public interface CreateWorkflowRequestOrBuilder extends
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workflowId. */ - com.google.protobuf.ByteString - getWorkflowIdBytes(); + com.google.protobuf.ByteString getWorkflowIdBytes(); } diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java similarity index 62% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java index 81aed7fbbc30..f36fc9d585eb 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** + * + * *
  * Request for the
  * [DeleteWorkflow][google.cloud.workflows.v1.Workflows.DeleteWorkflow]
@@ -12,49 +29,57 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.DeleteWorkflowRequest}
  */
-public final class DeleteWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.DeleteWorkflowRequest)
     DeleteWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteWorkflowRequest.newBuilder() to construct.
   private DeleteWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteWorkflowRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.DeleteWorkflowRequest.class,
+            com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 @@ -63,30 +88,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. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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.workflows.v1.DeleteWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.DeleteWorkflowRequest other = (com.google.cloud.workflows.v1.DeleteWorkflowRequest) obj; + com.google.cloud.workflows.v1.DeleteWorkflowRequest other = + (com.google.cloud.workflows.v1.DeleteWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,98 +186,103 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1.DeleteWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.DeleteWorkflowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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.workflows.v1.DeleteWorkflowRequest 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
    * [DeleteWorkflow][google.cloud.workflows.v1.Workflows.DeleteWorkflow]
@@ -259,33 +291,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1.DeleteWorkflowRequest}
    */
-  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.workflows.v1.DeleteWorkflowRequest)
       com.google.cloud.workflows.v1.DeleteWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.DeleteWorkflowRequest.class,
+              com.google.cloud.workflows.v1.DeleteWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.DeleteWorkflowRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -295,9 +326,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -316,8 +347,11 @@ public com.google.cloud.workflows.v1.DeleteWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.DeleteWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.DeleteWorkflowRequest result = new com.google.cloud.workflows.v1.DeleteWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1.DeleteWorkflowRequest result =
+          new com.google.cloud.workflows.v1.DeleteWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -333,38 +367,39 @@ private void buildPartial0(com.google.cloud.workflows.v1.DeleteWorkflowRequest r
     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.workflows.v1.DeleteWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.DeleteWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1.DeleteWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -372,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.DeleteWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.DeleteWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1.DeleteWorkflowRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -404,17 +440,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -424,23 +462,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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; @@ -449,21 +492,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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 { @@ -471,30 +517,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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() { @@ -504,27 +561,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -534,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.DeleteWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.DeleteWorkflowRequest) private static final com.google.cloud.workflows.v1.DeleteWorkflowRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.DeleteWorkflowRequest(); } @@ -548,27 +611,27 @@ public static com.google.cloud.workflows.v1.DeleteWorkflowRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.DeleteWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java new file mode 100644 index 000000000000..d70bbe1c6635 --- /dev/null +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/DeleteWorkflowRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1/workflows.proto + +package com.google.cloud.workflows.v1; + +public interface DeleteWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.DeleteWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * + * 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/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java similarity index 68% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java index 9826fd6c8f7f..b294b9b69f7b 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** + * + * *
  * Request for the
  * [GetWorkflow][google.cloud.workflows.v1.Workflows.GetWorkflow] method.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.GetWorkflowRequest}
  */
-public final class GetWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.GetWorkflowRequest)
     GetWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetWorkflowRequest.newBuilder() to construct.
   private GetWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetWorkflowRequest() {
     name_ = "";
     revisionId_ = "";
@@ -27,34 +45,41 @@ private GetWorkflowRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.GetWorkflowRequest.class, com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.GetWorkflowRequest.class,
+            com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 @@ -63,30 +88,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. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 { @@ -95,9 +122,12 @@ public java.lang.String getName() { } public static final int REVISION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** + * + * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -107,6 +137,7 @@ public java.lang.String getName() {
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The revisionId. */ @java.lang.Override @@ -115,14 +146,15 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** + * + * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -132,16 +164,15 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -150,6 +181,7 @@ public java.lang.String getRevisionId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +193,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_); } @@ -192,17 +223,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.workflows.v1.GetWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.GetWorkflowRequest other = (com.google.cloud.workflows.v1.GetWorkflowRequest) obj; + com.google.cloud.workflows.v1.GetWorkflowRequest other = + (com.google.cloud.workflows.v1.GetWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRevisionId() - .equals(other.getRevisionId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -223,99 +253,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1.GetWorkflowRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1.GetWorkflowRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1.GetWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.GetWorkflowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest 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.workflows.v1.GetWorkflowRequest 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
    * [GetWorkflow][google.cloud.workflows.v1.Workflows.GetWorkflow] method.
@@ -323,33 +358,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1.GetWorkflowRequest}
    */
-  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.workflows.v1.GetWorkflowRequest)
       com.google.cloud.workflows.v1.GetWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.GetWorkflowRequest.class, com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.GetWorkflowRequest.class,
+              com.google.cloud.workflows.v1.GetWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.GetWorkflowRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -360,9 +394,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -381,8 +415,11 @@ public com.google.cloud.workflows.v1.GetWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.GetWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.GetWorkflowRequest result = new com.google.cloud.workflows.v1.GetWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1.GetWorkflowRequest result =
+          new com.google.cloud.workflows.v1.GetWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -401,38 +438,39 @@ private void buildPartial0(com.google.cloud.workflows.v1.GetWorkflowRequest resu
     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.workflows.v1.GetWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.GetWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1.GetWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -440,7 +478,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.GetWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.GetWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1.GetWorkflowRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -477,22 +516,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              revisionId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                revisionId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -502,23 +544,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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; @@ -527,21 +574,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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 { @@ -549,30 +599,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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() { @@ -582,18 +643,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workflow for which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -603,6 +670,8 @@ public Builder setNameBytes( private java.lang.Object revisionId_ = ""; /** + * + * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -612,13 +681,13 @@ public Builder setNameBytes(
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -627,6 +696,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -636,15 +707,14 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -652,6 +722,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -661,18 +733,22 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } revisionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -682,6 +758,7 @@ public Builder setRevisionId(
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -691,6 +768,8 @@ public Builder clearRevisionId() { return this; } /** + * + * *
      * Optional. The revision of the workflow to retrieve. If the revision_id is
      * empty, the latest revision is retrieved.
@@ -700,21 +779,23 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000002; 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); } @@ -724,12 +805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.GetWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.GetWorkflowRequest) private static final com.google.cloud.workflows.v1.GetWorkflowRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.GetWorkflowRequest(); } @@ -738,27 +819,27 @@ public static com.google.cloud.workflows.v1.GetWorkflowRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -773,6 +854,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.GetWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java index e624e6471e29..4745573c3fcf 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/GetWorkflowRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface GetWorkflowRequestOrBuilder extends +public interface GetWorkflowRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.GetWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workflow for which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -39,10 +66,13 @@ public interface GetWorkflowRequestOrBuilder extends
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The revisionId. */ java.lang.String getRevisionId(); /** + * + * *
    * Optional. The revision of the workflow to retrieve. If the revision_id is
    * empty, the latest revision is retrieved.
@@ -52,8 +82,8 @@ public interface GetWorkflowRequestOrBuilder extends
    * 
* * string revision_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString - getRevisionIdBytes(); + com.google.protobuf.ByteString getRevisionIdBytes(); } diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java similarity index 71% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java index 8bf7e2143f82..63b1bfe1f818 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** + * + * *
  * Request for the
  * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsRequest}
  */
-public final class ListWorkflowsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListWorkflowsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.ListWorkflowsRequest)
     ListWorkflowsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListWorkflowsRequest.newBuilder() to construct.
   private ListWorkflowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListWorkflowsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -30,34 +48,41 @@ private ListWorkflowsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListWorkflowsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.ListWorkflowsRequest.class, com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
+            com.google.cloud.workflows.v1.ListWorkflowsRequest.class,
+            com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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 @@ -66,30 +91,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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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 { @@ -100,6 +127,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of workflows to return per call. The service might return
    * fewer than this value even if not at the end of the collection. If a value
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -128,6 +161,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -136,14 +170,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 page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -153,16 +188,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 { @@ -171,14 +205,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -187,29 +225,29 @@ 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; } } /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @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 { @@ -218,9 +256,12 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -229,6 +270,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -237,14 +279,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -253,16 +296,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -271,6 +313,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,8 +325,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_); } @@ -312,8 +354,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -332,23 +373,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.workflows.v1.ListWorkflowsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1.ListWorkflowsRequest other = (com.google.cloud.workflows.v1.ListWorkflowsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.workflows.v1.ListWorkflowsRequest other = + (com.google.cloud.workflows.v1.ListWorkflowsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -376,98 +413,103 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1.ListWorkflowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.ListWorkflowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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.workflows.v1.ListWorkflowsRequest 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
    * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -476,33 +518,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsRequest}
    */
-  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.workflows.v1.ListWorkflowsRequest)
       com.google.cloud.workflows.v1.ListWorkflowsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.ListWorkflowsRequest.class, com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
+              com.google.cloud.workflows.v1.ListWorkflowsRequest.class,
+              com.google.cloud.workflows.v1.ListWorkflowsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.ListWorkflowsRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -516,9 +557,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -537,8 +578,11 @@ public com.google.cloud.workflows.v1.ListWorkflowsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.ListWorkflowsRequest buildPartial() {
-      com.google.cloud.workflows.v1.ListWorkflowsRequest result = new com.google.cloud.workflows.v1.ListWorkflowsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1.ListWorkflowsRequest result =
+          new com.google.cloud.workflows.v1.ListWorkflowsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -566,38 +610,39 @@ private void buildPartial0(com.google.cloud.workflows.v1.ListWorkflowsRequest re
     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.workflows.v1.ListWorkflowsRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -605,7 +650,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.ListWorkflowsRequest other) {
-      if (other == com.google.cloud.workflows.v1.ListWorkflowsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1.ListWorkflowsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -655,37 +701,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              orderBy_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                orderBy_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -695,23 +747,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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; @@ -720,21 +777,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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,30 +802,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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() { @@ -775,18 +846,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -794,8 +871,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of workflows to return per call. The service might return
      * fewer than this value even if not at the end of the collection. If a value
@@ -804,6 +883,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -811,6 +891,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of workflows to return per call. The service might return
      * fewer than this value even if not at the end of the collection. If a value
@@ -819,6 +901,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -830,6 +913,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Maximum number of workflows to return per call. The service might return
      * fewer than this value even if not at the end of the collection. If a value
@@ -838,6 +923,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -849,6 +935,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -858,13 +946,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -873,6 +961,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -882,15 +972,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 { @@ -898,6 +987,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -907,18 +998,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -928,6 +1023,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -937,6 +1033,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -946,12 +1044,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -961,18 +1061,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @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; @@ -981,20 +1083,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @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 { @@ -1002,28 +1105,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1033,17 +1143,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1053,6 +1167,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1061,13 +1177,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1076,6 +1192,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1084,15 +1202,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1100,6 +1217,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1108,18 +1227,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1128,6 +1251,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1137,6 +1261,8 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Comma-separated list of fields that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1145,21 +1271,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; 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); } @@ -1169,12 +1297,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.ListWorkflowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.ListWorkflowsRequest) private static final com.google.cloud.workflows.v1.ListWorkflowsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.ListWorkflowsRequest(); } @@ -1183,27 +1311,27 @@ public static com.google.cloud.workflows.v1.ListWorkflowsRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1218,6 +1346,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.ListWorkflowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java index 083715e7382f..c806db4891d8 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface ListWorkflowsRequestOrBuilder extends +public interface ListWorkflowsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.ListWorkflowsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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(); /** + * + * *
    * Maximum number of workflows to return per call. The service might return
    * fewer than this value even if not at the end of the collection. If a value
@@ -38,11 +65,14 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -65,32 +98,39 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -99,10 +139,13 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Comma-separated list of fields that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -111,8 +154,8 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java similarity index 72% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java index f3ce3be76a22..16c0aabedad0 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** + * + * *
  * Response for the
  * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -12,46 +29,50 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsResponse}
  */
-public final class ListWorkflowsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListWorkflowsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.ListWorkflowsResponse)
     ListWorkflowsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListWorkflowsResponse.newBuilder() to construct.
   private ListWorkflowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListWorkflowsResponse() {
     workflows_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
-    unreachable_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListWorkflowsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.ListWorkflowsResponse.class, com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
+            com.google.cloud.workflows.v1.ListWorkflowsResponse.class,
+            com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
   }
 
   public static final int WORKFLOWS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List workflows_;
   /**
+   *
+   *
    * 
    * The workflows that match the request.
    * 
@@ -63,6 +84,8 @@ public java.util.List getWorkflowsList() return workflows_; } /** + * + * *
    * The workflows that match the request.
    * 
@@ -70,11 +93,13 @@ public java.util.List getWorkflowsList() * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkflowsOrBuilderList() { return workflows_; } /** + * + * *
    * The workflows that match the request.
    * 
@@ -86,6 +111,8 @@ public int getWorkflowsCount() { return workflows_.size(); } /** + * + * *
    * The workflows that match the request.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.workflows.v1.Workflow getWorkflows(int index) { return workflows_.get(index); } /** + * + * *
    * The workflows that match the request.
    * 
@@ -104,21 +133,24 @@ public com.google.cloud.workflows.v1.Workflow getWorkflows(int index) { * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ @java.lang.Override - public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { + public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { return workflows_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +159,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; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -159,38 +191,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -198,20 +239,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,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 < workflows_.size(); i++) { output.writeMessage(1, workflows_.get(i)); } @@ -244,8 +287,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workflows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -266,19 +308,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.workflows.v1.ListWorkflowsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.v1.ListWorkflowsResponse other = (com.google.cloud.workflows.v1.ListWorkflowsResponse) obj; + com.google.cloud.workflows.v1.ListWorkflowsResponse other = + (com.google.cloud.workflows.v1.ListWorkflowsResponse) obj; - if (!getWorkflowsList() - .equals(other.getWorkflowsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkflowsList().equals(other.getWorkflowsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,98 +346,103 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1.ListWorkflowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.ListWorkflowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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.workflows.v1.ListWorkflowsResponse 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
    * [ListWorkflows][google.cloud.workflows.v1.Workflows.ListWorkflows]
@@ -406,33 +451,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1.ListWorkflowsResponse}
    */
-  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.workflows.v1.ListWorkflowsResponse)
       com.google.cloud.workflows.v1.ListWorkflowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.ListWorkflowsResponse.class, com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
+              com.google.cloud.workflows.v1.ListWorkflowsResponse.class,
+              com.google.cloud.workflows.v1.ListWorkflowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.ListWorkflowsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,15 +489,14 @@ public Builder clear() {
       }
       bitField0_ = (bitField0_ & ~0x00000001);
       nextPageToken_ = "";
-      unreachable_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -472,14 +515,18 @@ public com.google.cloud.workflows.v1.ListWorkflowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.ListWorkflowsResponse buildPartial() {
-      com.google.cloud.workflows.v1.ListWorkflowsResponse result = new com.google.cloud.workflows.v1.ListWorkflowsResponse(this);
+      com.google.cloud.workflows.v1.ListWorkflowsResponse result =
+          new com.google.cloud.workflows.v1.ListWorkflowsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workflows.v1.ListWorkflowsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workflows.v1.ListWorkflowsResponse result) {
       if (workflowsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           workflows_ = java.util.Collections.unmodifiableList(workflows_);
@@ -506,38 +553,39 @@ private void buildPartial0(com.google.cloud.workflows.v1.ListWorkflowsResponse r
     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.workflows.v1.ListWorkflowsResponse) {
-        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsResponse)other);
+        return mergeFrom((com.google.cloud.workflows.v1.ListWorkflowsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,7 +593,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.ListWorkflowsResponse other) {
-      if (other == com.google.cloud.workflows.v1.ListWorkflowsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1.ListWorkflowsResponse.getDefaultInstance())
+        return this;
       if (workflowsBuilder_ == null) {
         if (!other.workflows_.isEmpty()) {
           if (workflows_.isEmpty()) {
@@ -564,9 +613,10 @@ public Builder mergeFrom(com.google.cloud.workflows.v1.ListWorkflowsResponse oth
             workflowsBuilder_ = null;
             workflows_ = other.workflows_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            workflowsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getWorkflowsFieldBuilder() : null;
+            workflowsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getWorkflowsFieldBuilder()
+                    : null;
           } else {
             workflowsBuilder_.addAllMessages(other.workflows_);
           }
@@ -613,36 +663,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.workflows.v1.Workflow m =
-                  input.readMessage(
-                      com.google.cloud.workflows.v1.Workflow.parser(),
-                      extensionRegistry);
-              if (workflowsBuilder_ == null) {
-                ensureWorkflowsIsMutable();
-                workflows_.add(m);
-              } else {
-                workflowsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUnreachableIsMutable();
-              unreachable_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.workflows.v1.Workflow m =
+                    input.readMessage(
+                        com.google.cloud.workflows.v1.Workflow.parser(), extensionRegistry);
+                if (workflowsBuilder_ == null) {
+                  ensureWorkflowsIsMutable();
+                  workflows_.add(m);
+                } else {
+                  workflowsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUnreachableIsMutable();
+                unreachable_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,21 +705,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List workflows_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureWorkflowsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         workflows_ = new java.util.ArrayList(workflows_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> workflowsBuilder_;
+            com.google.cloud.workflows.v1.Workflow,
+            com.google.cloud.workflows.v1.Workflow.Builder,
+            com.google.cloud.workflows.v1.WorkflowOrBuilder>
+        workflowsBuilder_;
 
     /**
+     *
+     *
      * 
      * The workflows that match the request.
      * 
@@ -681,6 +741,8 @@ public java.util.List getWorkflowsList() } } /** + * + * *
      * The workflows that match the request.
      * 
@@ -695,6 +757,8 @@ public int getWorkflowsCount() { } } /** + * + * *
      * The workflows that match the request.
      * 
@@ -709,14 +773,15 @@ public com.google.cloud.workflows.v1.Workflow getWorkflows(int index) { } } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public Builder setWorkflows( - int index, com.google.cloud.workflows.v1.Workflow value) { + public Builder setWorkflows(int index, com.google.cloud.workflows.v1.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -730,6 +795,8 @@ public Builder setWorkflows( return this; } /** + * + * *
      * The workflows that match the request.
      * 
@@ -748,6 +815,8 @@ public Builder setWorkflows( return this; } /** + * + * *
      * The workflows that match the request.
      * 
@@ -768,14 +837,15 @@ public Builder addWorkflows(com.google.cloud.workflows.v1.Workflow value) { return this; } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public Builder addWorkflows( - int index, com.google.cloud.workflows.v1.Workflow value) { + public Builder addWorkflows(int index, com.google.cloud.workflows.v1.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -789,14 +859,15 @@ public Builder addWorkflows( return this; } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public Builder addWorkflows( - com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { + public Builder addWorkflows(com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); workflows_.add(builderForValue.build()); @@ -807,6 +878,8 @@ public Builder addWorkflows( return this; } /** + * + * *
      * The workflows that match the request.
      * 
@@ -825,6 +898,8 @@ public Builder addWorkflows( return this; } /** + * + * *
      * The workflows that match the request.
      * 
@@ -835,8 +910,7 @@ public Builder addAllWorkflows( java.lang.Iterable values) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workflows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workflows_); onChanged(); } else { workflowsBuilder_.addAllMessages(values); @@ -844,6 +918,8 @@ public Builder addAllWorkflows( return this; } /** + * + * *
      * The workflows that match the request.
      * 
@@ -861,6 +937,8 @@ public Builder clearWorkflows() { return this; } /** + * + * *
      * The workflows that match the request.
      * 
@@ -878,39 +956,44 @@ public Builder removeWorkflows(int index) { return this; } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowsBuilder( - int index) { + public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowsBuilder(int index) { return getWorkflowsFieldBuilder().getBuilder(index); } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { + public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { if (workflowsBuilder_ == null) { - return workflows_.get(index); } else { + return workflows_.get(index); + } else { return workflowsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public java.util.List - getWorkflowsOrBuilderList() { + public java.util.List + getWorkflowsOrBuilderList() { if (workflowsBuilder_ != null) { return workflowsBuilder_.getMessageOrBuilderList(); } else { @@ -918,6 +1001,8 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( } } /** + * + * *
      * The workflows that match the request.
      * 
@@ -925,42 +1010,48 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder() { - return getWorkflowsFieldBuilder().addBuilder( - com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); + return getWorkflowsFieldBuilder() + .addBuilder(com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().addBuilder( - index, com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); + public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder(int index) { + return getWorkflowsFieldBuilder() + .addBuilder(index, com.google.cloud.workflows.v1.Workflow.getDefaultInstance()); } /** + * + * *
      * The workflows that match the request.
      * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - public java.util.List - getWorkflowsBuilderList() { + public java.util.List + getWorkflowsBuilderList() { return getWorkflowsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> + com.google.cloud.workflows.v1.Workflow, + com.google.cloud.workflows.v1.Workflow.Builder, + com.google.cloud.workflows.v1.WorkflowOrBuilder> getWorkflowsFieldBuilder() { if (workflowsBuilder_ == null) { - workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder>( - workflows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workflowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow, + com.google.cloud.workflows.v1.Workflow.Builder, + com.google.cloud.workflows.v1.WorkflowOrBuilder>( + workflows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workflows_ = null; } return workflowsBuilder_; @@ -968,19 +1059,21 @@ public com.google.cloud.workflows.v1.Workflow.Builder addWorkflowsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -989,21 +1082,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -1011,30 +1105,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,18 +1145,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1065,6 +1170,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1072,35 +1178,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1108,31 +1222,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1140,17 +1260,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1158,50 +1282,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1209,9 +1341,9 @@ public Builder addUnreachableBytes( 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); } @@ -1221,12 +1353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.ListWorkflowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.ListWorkflowsResponse) private static final com.google.cloud.workflows.v1.ListWorkflowsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.ListWorkflowsResponse(); } @@ -1235,27 +1367,27 @@ public static com.google.cloud.workflows.v1.ListWorkflowsResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1270,6 +1402,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.ListWorkflowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java index 1375747ad6de..5fbaf8c67349 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/ListWorkflowsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface ListWorkflowsResponseOrBuilder extends +public interface ListWorkflowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.ListWorkflowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The workflows that match the request.
    * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - java.util.List - getWorkflowsList(); + java.util.List getWorkflowsList(); /** + * + * *
    * The workflows that match the request.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkflowsResponseOrBuilder extends */ com.google.cloud.workflows.v1.Workflow getWorkflows(int index); /** + * + * *
    * The workflows that match the request.
    * 
@@ -33,84 +54,102 @@ public interface ListWorkflowsResponseOrBuilder extends */ int getWorkflowsCount(); /** + * + * *
    * The workflows that match the request.
    * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - java.util.List + java.util.List getWorkflowsOrBuilderList(); /** + * + * *
    * The workflows that match the request.
    * 
* * repeated .google.cloud.workflows.v1.Workflow workflows = 1; */ - com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder( - int index); + com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/LocationName.java diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java index 90c95269e6fd..2c0ebc708d5f 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.workflows.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -27,32 +45,36 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.OperationMetadata.class, com.google.cloud.workflows.v1.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1.OperationMetadata.class, + com.google.cloud.workflows.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -60,11 +82,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -72,6 +97,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -86,11 +113,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -98,11 +128,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -110,6 +143,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
@@ -122,14 +157,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -138,29 +177,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -169,14 +208,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -185,29 +228,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -216,14 +259,18 @@ public java.lang.String getVerb() { } public static final int API_VERSION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The apiVersion. */ @java.lang.Override @@ -232,29 +279,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -263,6 +310,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +322,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -301,12 +348,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -325,29 +370,25 @@ 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.workflows.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workflows.v1.OperationMetadata other = (com.google.cloud.workflows.v1.OperationMetadata) obj; + com.google.cloud.workflows.v1.OperationMetadata other = + (com.google.cloud.workflows.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -378,132 +419,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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.workflows.v1.OperationMetadata 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; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.workflows.v1.OperationMetadata} */ - 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.workflows.v1.OperationMetadata) com.google.cloud.workflows.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.OperationMetadata.class, com.google.cloud.workflows.v1.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1.OperationMetadata.class, + com.google.cloud.workflows.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workflows.v1.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -525,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -546,8 +591,11 @@ public com.google.cloud.workflows.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.workflows.v1.OperationMetadata buildPartial() { - com.google.cloud.workflows.v1.OperationMetadata result = new com.google.cloud.workflows.v1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.v1.OperationMetadata result = + new com.google.cloud.workflows.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -555,14 +603,10 @@ public com.google.cloud.workflows.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workflows.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -579,38 +623,39 @@ private void buildPartial0(com.google.cloud.workflows.v1.OperationMetadata resul 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.workflows.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.workflows.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.workflows.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -618,7 +663,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.v1.OperationMetadata other) { - if (other == com.google.cloud.workflows.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.workflows.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -666,41 +712,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,38 +758,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -762,14 +824,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -780,6 +843,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -788,9 +853,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -803,6 +868,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -820,6 +887,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -832,6 +901,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -842,11 +913,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -854,14 +928,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -869,24 +946,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -897,6 +983,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -917,14 +1005,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -935,6 +1024,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -943,9 +1034,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -958,6 +1049,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -975,6 +1068,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -987,6 +1082,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
@@ -997,11 +1094,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 the operation finished running.
      * 
@@ -1009,14 +1107,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1024,18 +1125,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1044,20 +1147,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1065,28 +1169,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1096,17 +1207,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1116,18 +1231,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1136,20 +1253,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1157,28 +1275,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1188,17 +1313,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1208,18 +1337,20 @@ public Builder setVerbBytes( private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1228,20 +1359,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1249,28 +1381,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1280,26 +1419,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000010; 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); } @@ -1309,12 +1452,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.OperationMetadata) private static final com.google.cloud.workflows.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.OperationMetadata(); } @@ -1323,27 +1466,27 @@ public static com.google.cloud.workflows.v1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1358,6 +1501,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java index 2d43df877d00..232967d464c3 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
@@ -62,62 +94,77 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java similarity index 64% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java index 03f64952c06b..7525ed6e46d1 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; /** + * + * *
  * Request for the
  * [UpdateWorkflow][google.cloud.workflows.v1.Workflows.UpdateWorkflow]
@@ -12,46 +29,52 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1.UpdateWorkflowRequest}
  */
-public final class UpdateWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.UpdateWorkflowRequest)
     UpdateWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateWorkflowRequest.newBuilder() to construct.
   private UpdateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateWorkflowRequest() {
-  }
+
+  private UpdateWorkflowRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1.UpdateWorkflowRequest.class,
+            com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
   }
 
   public static final int WORKFLOW_FIELD_NUMBER = 1;
   private com.google.cloud.workflows.v1.Workflow workflow_;
   /**
+   *
+   *
    * 
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ @java.lang.Override @@ -59,38 +82,54 @@ public boolean hasWorkflow() { return workflow_ != null; } /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow getWorkflow() { - return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -98,12 +137,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -111,6 +153,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
@@ -124,6 +168,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -135,8 +180,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 (workflow_ != null) {
       output.writeMessage(1, getWorkflow());
     }
@@ -153,12 +197,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (workflow_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getWorkflow());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkflow());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -168,22 +210,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.workflows.v1.UpdateWorkflowRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.workflows.v1.UpdateWorkflowRequest other = (com.google.cloud.workflows.v1.UpdateWorkflowRequest) obj;
+    com.google.cloud.workflows.v1.UpdateWorkflowRequest other =
+        (com.google.cloud.workflows.v1.UpdateWorkflowRequest) obj;
 
     if (hasWorkflow() != other.hasWorkflow()) return false;
     if (hasWorkflow()) {
-      if (!getWorkflow()
-          .equals(other.getWorkflow())) return false;
+      if (!getWorkflow().equals(other.getWorkflow())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -210,98 +251,103 @@ public int hashCode() {
   }
 
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.workflows.v1.UpdateWorkflowRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.workflows.v1.UpdateWorkflowRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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.workflows.v1.UpdateWorkflowRequest 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
    * [UpdateWorkflow][google.cloud.workflows.v1.Workflows.UpdateWorkflow]
@@ -310,33 +356,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1.UpdateWorkflowRequest}
    */
-  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.workflows.v1.UpdateWorkflowRequest)
       com.google.cloud.workflows.v1.UpdateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1.UpdateWorkflowRequest.class,
+              com.google.cloud.workflows.v1.UpdateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1.UpdateWorkflowRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -355,9 +400,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -376,8 +421,11 @@ public com.google.cloud.workflows.v1.UpdateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1.UpdateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1.UpdateWorkflowRequest result = new com.google.cloud.workflows.v1.UpdateWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1.UpdateWorkflowRequest result =
+          new com.google.cloud.workflows.v1.UpdateWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -385,14 +433,10 @@ public com.google.cloud.workflows.v1.UpdateWorkflowRequest buildPartial() {
     private void buildPartial0(com.google.cloud.workflows.v1.UpdateWorkflowRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.workflow_ = workflowBuilder_ == null
-            ? workflow_
-            : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -400,38 +444,39 @@ private void buildPartial0(com.google.cloud.workflows.v1.UpdateWorkflowRequest r
     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.workflows.v1.UpdateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1.UpdateWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1.UpdateWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -439,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1.UpdateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1.UpdateWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1.UpdateWorkflowRequest.getDefaultInstance())
+        return this;
       if (other.hasWorkflow()) {
         mergeWorkflow(other.getWorkflow());
       }
@@ -472,26 +518,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getWorkflowFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -501,43 +546,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.workflows.v1.Workflow workflow_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> workflowBuilder_;
+            com.google.cloud.workflows.v1.Workflow,
+            com.google.cloud.workflows.v1.Workflow.Builder,
+            com.google.cloud.workflows.v1.WorkflowOrBuilder>
+        workflowBuilder_;
     /**
+     *
+     *
      * 
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ public com.google.cloud.workflows.v1.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } else { return workflowBuilder_.getMessage(); } } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { @@ -553,14 +618,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkflow( - com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { + public Builder setWorkflow(com.google.cloud.workflows.v1.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -571,17 +639,21 @@ public Builder setWorkflow( return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workflow_ != null && - workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workflow_ != null + && workflow_ != com.google.cloud.workflows.v1.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -594,11 +666,15 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000001); @@ -611,11 +687,15 @@ public Builder clearWorkflow() { return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000001; @@ -623,36 +703,48 @@ public com.google.cloud.workflows.v1.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null ? - com.google.cloud.workflows.v1.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1.Workflow.getDefaultInstance() + : workflow_; } } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder> + com.google.cloud.workflows.v1.Workflow, + com.google.cloud.workflows.v1.Workflow.Builder, + com.google.cloud.workflows.v1.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow, com.google.cloud.workflows.v1.Workflow.Builder, com.google.cloud.workflows.v1.WorkflowOrBuilder>( - getWorkflow(), - getParentForChildren(), - isClean()); + workflowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow, + com.google.cloud.workflows.v1.Workflow.Builder, + com.google.cloud.workflows.v1.WorkflowOrBuilder>( + getWorkflow(), getParentForChildren(), isClean()); workflow_ = null; } return workflowBuilder_; @@ -660,36 +752,49 @@ public com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder() { 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_; /** + * + * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -711,6 +816,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -718,8 +825,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -730,6 +836,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -739,9 +847,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -754,6 +862,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -772,6 +882,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -785,6 +897,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -796,11 +910,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_;
       }
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -809,21 +926,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -833,12 +953,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.UpdateWorkflowRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.UpdateWorkflowRequest)
   private static final com.google.cloud.workflows.v1.UpdateWorkflowRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.UpdateWorkflowRequest();
   }
@@ -847,27 +967,27 @@ public static com.google.cloud.workflows.v1.UpdateWorkflowRequest getDefaultInst
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateWorkflowRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateWorkflowRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -882,6 +1002,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.workflows.v1.UpdateWorkflowRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
index 95a9290d0661..cddb8670e660 100644
--- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
+++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/UpdateWorkflowRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1/workflows.proto
 
 package com.google.cloud.workflows.v1;
 
-public interface UpdateWorkflowRequestOrBuilder extends
+public interface UpdateWorkflowRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.UpdateWorkflowRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ com.google.cloud.workflows.v1.Workflow getWorkflow(); /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workflows.v1.WorkflowOrBuilder getWorkflowOrBuilder(); /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
similarity index 69%
rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
index b5f3d19806ce..490dc76b7f81 100644
--- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
+++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/Workflow.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1/workflows.proto
 
 package com.google.cloud.workflows.v1;
 
 /**
+ *
+ *
  * 
  * Workflow program to be executed by Workflows.
  * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow} */ -public final class Workflow extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Workflow extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.Workflow) WorkflowOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Workflow.newBuilder() to construct. private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Workflow() { name_ = ""; description_ = ""; @@ -31,48 +49,51 @@ private Workflow() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Workflow(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); case 14: return internalGetUserEnvVars(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.class, com.google.cloud.workflows.v1.Workflow.Builder.class); + com.google.cloud.workflows.v1.Workflow.class, + com.google.cloud.workflows.v1.Workflow.Builder.class); } /** + * + * *
    * Describes the current state of workflow deployment.
    * 
* * Protobuf enum {@code google.cloud.workflows.v1.Workflow.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid state.
      * 
@@ -81,6 +102,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -89,6 +112,8 @@ public enum State */ ACTIVE(1), /** + * + * *
      * Workflow data is unavailable. See the `state_error` field.
      * 
@@ -100,6 +125,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -108,6 +135,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -116,6 +145,8 @@ public enum State */ public static final int ACTIVE_VALUE = 1; /** + * + * *
      * Workflow data is unavailable. See the `state_error` field.
      * 
@@ -124,7 +155,6 @@ public enum State */ public static final int UNAVAILABLE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -149,49 +179,49 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return UNAVAILABLE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return UNAVAILABLE; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.workflows.v1.Workflow.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -209,6 +239,8 @@ private State(int value) { } /** + * + * *
    * Describes the level of platform logging to apply to calls and call
    * responses during workflow executions.
@@ -216,9 +248,10 @@ private State(int value) {
    *
    * Protobuf enum {@code google.cloud.workflows.v1.Workflow.CallLogLevel}
    */
-  public enum CallLogLevel
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum CallLogLevel implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No call logging level specified.
      * 
@@ -227,6 +260,8 @@ public enum CallLogLevel */ CALL_LOG_LEVEL_UNSPECIFIED(0), /** + * + * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -236,6 +271,8 @@ public enum CallLogLevel
      */
     LOG_ALL_CALLS(1),
     /**
+     *
+     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -244,6 +281,8 @@ public enum CallLogLevel */ LOG_ERRORS_ONLY(2), /** + * + * *
      * Explicitly log nothing.
      * 
@@ -255,6 +294,8 @@ public enum CallLogLevel ; /** + * + * *
      * No call logging level specified.
      * 
@@ -263,6 +304,8 @@ public enum CallLogLevel */ public static final int CALL_LOG_LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Log all call steps within workflows, all call returns, and all exceptions
      * raised.
@@ -272,6 +315,8 @@ public enum CallLogLevel
      */
     public static final int LOG_ALL_CALLS_VALUE = 1;
     /**
+     *
+     *
      * 
      * Log only exceptions that are raised from call steps within workflows.
      * 
@@ -280,6 +325,8 @@ public enum CallLogLevel */ public static final int LOG_ERRORS_ONLY_VALUE = 2; /** + * + * *
      * Explicitly log nothing.
      * 
@@ -288,7 +335,6 @@ public enum CallLogLevel */ public static final int LOG_NONE_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -313,50 +359,51 @@ public static CallLogLevel valueOf(int value) { */ public static CallLogLevel forNumber(int value) { switch (value) { - case 0: return CALL_LOG_LEVEL_UNSPECIFIED; - case 1: return LOG_ALL_CALLS; - case 2: return LOG_ERRORS_ONLY; - case 3: return LOG_NONE; - default: return null; + case 0: + return CALL_LOG_LEVEL_UNSPECIFIED; + case 1: + return LOG_ALL_CALLS; + case 2: + return LOG_ERRORS_ONLY; + case 3: + return LOG_NONE; + 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< - CallLogLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CallLogLevel findValueByNumber(int number) { - return CallLogLevel.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 CallLogLevel findValueByNumber(int number) { + return CallLogLevel.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.workflows.v1.Workflow.getDescriptor().getEnumTypes().get(1); } private static final CallLogLevel[] VALUES = values(); - public static CallLogLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static CallLogLevel 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; @@ -373,65 +420,80 @@ private CallLogLevel(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.workflows.v1.Workflow.CallLogLevel) } - public interface StateErrorOrBuilder extends + public interface StateErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.Workflow.StateError) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The details. */ java.lang.String getDetails(); /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The bytes for details. */ - com.google.protobuf.ByteString - getDetailsBytes(); + com.google.protobuf.ByteString getDetailsBytes(); /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @return The type. */ com.google.cloud.workflows.v1.Workflow.StateError.Type getType(); } /** + * + * *
    * Describes an error related to the current state of the workflow.
    * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow.StateError} */ - public static final class StateError extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StateError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1.Workflow.StateError) StateErrorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StateError.newBuilder() to construct. private StateError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StateError() { details_ = ""; type_ = 0; @@ -439,34 +501,38 @@ private StateError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StateError(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.StateError.class, com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); + com.google.cloud.workflows.v1.Workflow.StateError.class, + com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); } /** + * + * *
      * Describes the possibled types of a state error.
      * 
* * Protobuf enum {@code google.cloud.workflows.v1.Workflow.StateError.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * No type specified.
        * 
@@ -475,6 +541,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
        * Caused by an issue with KMS.
        * 
@@ -486,6 +554,8 @@ public enum Type ; /** + * + * *
        * No type specified.
        * 
@@ -494,6 +564,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Caused by an issue with KMS.
        * 
@@ -502,7 +574,6 @@ public enum Type */ public static final int KMS_ERROR_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -527,48 +598,49 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return KMS_ERROR; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return KMS_ERROR; + 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< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.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 Type findValueByNumber(int number) { + return Type.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.workflows.v1.Workflow.StateError.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.workflows.v1.Workflow.StateError.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type 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,14 +658,18 @@ private Type(int value) { } public static final int DETAILS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object details_ = ""; /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The details. */ @java.lang.Override @@ -602,29 +678,29 @@ public java.lang.String getDetails() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; } } /** + * + * *
      * Provides specifics about the error.
      * 
* * string details = 1; + * * @return The bytes for details. */ @java.lang.Override - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -635,30 +711,42 @@ public java.lang.String getDetails() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * The type of this state error.
      * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @return The type. */ - @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError.Type getType() { - com.google.cloud.workflows.v1.Workflow.StateError.Type result = com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); - return result == null ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.v1.Workflow.StateError.Type getType() { + com.google.cloud.workflows.v1.Workflow.StateError.Type result = + com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); + return result == null + ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -670,12 +758,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(details_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, details_); } - if (type_ != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } getUnknownFields().writeTo(output); @@ -690,9 +778,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(details_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, details_); } - if (type_ != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.workflows.v1.Workflow.StateError.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -702,15 +790,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.workflows.v1.Workflow.StateError)) { return super.equals(obj); } - com.google.cloud.workflows.v1.Workflow.StateError other = (com.google.cloud.workflows.v1.Workflow.StateError) obj; + com.google.cloud.workflows.v1.Workflow.StateError other = + (com.google.cloud.workflows.v1.Workflow.StateError) obj; - if (!getDetails() - .equals(other.getDetails())) return false; + if (!getDetails().equals(other.getDetails())) return false; if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -733,89 +821,93 @@ public int hashCode() { } public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1.Workflow.StateError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1.Workflow.StateError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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.workflows.v1.Workflow.StateError 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 @@ -825,39 +917,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Describes an error related to the current state of the workflow.
      * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow.StateError} */ - 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.workflows.v1.Workflow.StateError) com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.StateError.class, com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); + com.google.cloud.workflows.v1.Workflow.StateError.class, + com.google.cloud.workflows.v1.Workflow.StateError.Builder.class); } // Construct using com.google.cloud.workflows.v1.Workflow.StateError.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -868,9 +962,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; } @java.lang.Override @@ -889,8 +983,11 @@ public com.google.cloud.workflows.v1.Workflow.StateError build() { @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError buildPartial() { - com.google.cloud.workflows.v1.Workflow.StateError result = new com.google.cloud.workflows.v1.Workflow.StateError(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.v1.Workflow.StateError result = + new com.google.cloud.workflows.v1.Workflow.StateError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -909,38 +1006,41 @@ private void buildPartial0(com.google.cloud.workflows.v1.Workflow.StateError res 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.workflows.v1.Workflow.StateError) { - return mergeFrom((com.google.cloud.workflows.v1.Workflow.StateError)other); + return mergeFrom((com.google.cloud.workflows.v1.Workflow.StateError) other); } else { super.mergeFrom(other); return this; @@ -948,7 +1048,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.v1.Workflow.StateError other) { - if (other == com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) return this; + if (other == com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) + return this; if (!other.getDetails().isEmpty()) { details_ = other.details_; bitField0_ |= 0x00000001; @@ -983,22 +1084,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - details_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1008,22 +1112,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object details_ = ""; /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @return The details. */ public java.lang.String getDetails() { java.lang.Object ref = details_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); details_ = s; return s; @@ -1032,20 +1139,21 @@ public java.lang.String getDetails() { } } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @return The bytes for details. */ - public com.google.protobuf.ByteString - getDetailsBytes() { + public com.google.protobuf.ByteString getDetailsBytes() { java.lang.Object ref = details_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); details_ = b; return b; } else { @@ -1053,28 +1161,35 @@ public java.lang.String getDetails() { } } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @param value The details to set. * @return This builder for chaining. */ - public Builder setDetails( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } details_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @return This builder for chaining. */ public Builder clearDetails() { @@ -1084,17 +1199,21 @@ public Builder clearDetails() { return this; } /** + * + * *
        * Provides specifics about the error.
        * 
* * string details = 1; + * * @param value The bytes for details to set. * @return This builder for chaining. */ - public Builder setDetailsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); details_ = value; bitField0_ |= 0x00000001; @@ -1104,22 +1223,29 @@ public Builder setDetailsBytes( private int type_ = 0; /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1130,24 +1256,33 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @return The type. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError.Type getType() { - com.google.cloud.workflows.v1.Workflow.StateError.Type result = com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); - return result == null ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED : result; + com.google.cloud.workflows.v1.Workflow.StateError.Type result = + com.google.cloud.workflows.v1.Workflow.StateError.Type.forNumber(type_); + return result == null + ? com.google.cloud.workflows.v1.Workflow.StateError.Type.UNRECOGNIZED + : result; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1161,11 +1296,14 @@ public Builder setType(com.google.cloud.workflows.v1.Workflow.StateError.Type va return this; } /** + * + * *
        * The type of this state error.
        * 
* * .google.cloud.workflows.v1.Workflow.StateError.Type type = 2; + * * @return This builder for chaining. */ public Builder clearType() { @@ -1174,6 +1312,7 @@ public Builder clearType() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1186,12 +1325,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.Workflow.StateError) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.Workflow.StateError) private static final com.google.cloud.workflows.v1.Workflow.StateError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.Workflow.StateError(); } @@ -1200,27 +1339,28 @@ public static com.google.cloud.workflows.v1.Workflow.StateError getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StateError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1235,18 +1375,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.Workflow.StateError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int sourceCodeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object sourceCode_; + public enum SourceCodeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_CONTENTS(10), SOURCECODE_NOT_SET(0); private final int value; + private SourceCodeCase(int value) { this.value = value; } @@ -1262,32 +1405,38 @@ public static SourceCodeCase valueOf(int value) { public static SourceCodeCase forNumber(int value) { switch (value) { - case 10: return SOURCE_CONTENTS; - case 0: return SOURCECODE_NOT_SET; - default: return null; + case 10: + return SOURCE_CONTENTS; + case 0: + return SOURCECODE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCodeCase - getSourceCodeCase() { - return SourceCodeCase.forNumber( - sourceCodeCase_); + public SourceCodeCase getSourceCodeCase() { + return SourceCodeCase.forNumber(sourceCodeCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1296,30 +1445,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; } } /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * 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 { @@ -1328,15 +1477,19 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -1345,30 +1498,30 @@ 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; } } /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @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 { @@ -1379,33 +1532,49 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workflows.v1.Workflow.State getState() { - com.google.cloud.workflows.v1.Workflow.State result = com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.workflows.v1.Workflow.State getState() { + com.google.cloud.workflows.v1.Workflow.State result = + com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); return result == null ? com.google.cloud.workflows.v1.Workflow.State.UNRECOGNIZED : result; } public static final int REVISION_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -1421,6 +1590,7 @@ public java.lang.String getDescription() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ @java.lang.Override @@ -1429,14 +1599,15 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -1452,16 +1623,15 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -1472,11 +1642,15 @@ public java.lang.String getRevisionId() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1484,11 +1658,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1496,11 +1674,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1510,11 +1691,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1522,11 +1707,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1534,11 +1723,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1548,12 +1740,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp revisionCreateTime_; /** + * + * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ @java.lang.Override @@ -1561,58 +1758,73 @@ public boolean hasRevisionCreateTime() { return revisionCreateTime_ != null; } /** + * + * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevisionCreateTime() { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } /** + * + * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1624,20 +1836,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1653,6 +1866,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1664,17 +1879,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -1686,11 +1903,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1698,9 +1915,12 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object serviceAccount_ = "";
   /**
+   *
+   *
    * 
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -1717,6 +1937,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ @java.lang.Override @@ -1725,14 +1946,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -1749,16 +1971,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1768,22 +1989,28 @@ public java.lang.String getServiceAccount() { public static final int SOURCE_CONTENTS_FIELD_NUMBER = 10; /** + * + * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; + * * @return Whether the sourceContents field is set. */ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** + * + * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; + * * @return The sourceContents. */ public java.lang.String getSourceContents() { @@ -1794,8 +2021,7 @@ public java.lang.String getSourceContents() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -1804,23 +2030,24 @@ public java.lang.String getSourceContents() { } } /** + * + * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; + * * @return The bytes for sourceContents. */ - public com.google.protobuf.ByteString - getSourceContentsBytes() { + public com.google.protobuf.ByteString getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -1831,9 +2058,12 @@ public java.lang.String getSourceContents() { } public static final int CRYPTO_KEY_NAME_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object cryptoKeyName_ = ""; /** + * + * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -1848,7 +2078,10 @@ public java.lang.String getSourceContents() {
    * CMEK-encrypted.
    * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The cryptoKeyName. */ @java.lang.Override @@ -1857,14 +2090,15 @@ public java.lang.String getCryptoKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyName_ = s; return s; } } /** + * + * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -1879,17 +2113,18 @@ public java.lang.String getCryptoKeyName() {
    * CMEK-encrypted.
    * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cryptoKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getCryptoKeyNameBytes() { + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { java.lang.Object ref = cryptoKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cryptoKeyName_ = b; return b; } else { @@ -1900,13 +2135,18 @@ public java.lang.String getCryptoKeyName() { public static final int STATE_ERROR_FIELD_NUMBER = 12; private com.google.cloud.workflows.v1.Workflow.StateError stateError_; /** + * + * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateError field is set. */ @java.lang.Override @@ -1914,36 +2154,51 @@ public boolean hasStateError() { return stateError_ != null; } /** + * + * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateError. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateError getStateError() { - return stateError_ == null ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; + return stateError_ == null + ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() + : stateError_; } /** + * + * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorOrBuilder() { - return stateError_ == null ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; + return stateError_ == null + ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() + : stateError_; } public static final int CALL_LOG_LEVEL_FIELD_NUMBER = 13; private int callLogLevel_ = 0; /** + * + * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -1951,13 +2206,19 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO
    * precedence.
    * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override public int getCallLogLevelValue() { + @java.lang.Override + public int getCallLogLevelValue() { return callLogLevel_; } /** + * + * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -1965,41 +2226,51 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO
    * precedence.
    * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The callLogLevel. */ - @java.lang.Override public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.v1.Workflow.CallLogLevel result = com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); - return result == null ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() { + com.google.cloud.workflows.v1.Workflow.CallLogLevel result = + com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); + return result == null + ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED + : result; } public static final int USER_ENV_VARS_FIELD_NUMBER = 14; + private static final class UserEnvVarsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userEnvVars_; + private com.google.protobuf.MapField userEnvVars_; + private com.google.protobuf.MapField - internalGetUserEnvVars() { + internalGetUserEnvVars() { if (userEnvVars_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UserEnvVarsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(UserEnvVarsDefaultEntryHolder.defaultEntry); } return userEnvVars_; } + public int getUserEnvVarsCount() { return internalGetUserEnvVars().getMap().size(); } /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2007,23 +2278,25 @@ public int getUserEnvVarsCount() {
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsUserEnvVars( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsUserEnvVars(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetUserEnvVars().getMap().containsKey(key); } - /** - * Use {@link #getUserEnvVarsMap()} instead. - */ + /** Use {@link #getUserEnvVarsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserEnvVars() { return getUserEnvVarsMap(); } /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2031,13 +2304,16 @@ public java.util.Map getUserEnvVars() {
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getUserEnvVarsMap() { return internalGetUserEnvVars().getMap(); } /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2045,20 +2321,23 @@ public java.util.Map getUserEnvVarsMap() {
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getUserEnvVarsOrDefault( + public /* nullable */ java.lang.String getUserEnvVarsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetUserEnvVars().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserEnvVars().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -2066,14 +2345,15 @@ java.lang.String getUserEnvVarsOrDefault(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getUserEnvVarsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetUserEnvVars().getMap(); + public java.lang.String getUserEnvVarsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserEnvVars().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2081,6 +2361,7 @@ public java.lang.String getUserEnvVarsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2092,8 +2373,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_); } @@ -2115,12 +2395,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (revisionCreateTime_ != null) { output.writeMessage(7, getRevisionCreateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); } @@ -2133,15 +2409,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (stateError_ != null) { output.writeMessage(12, getStateError()); } - if (callLogLevel_ != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { + if (callLogLevel_ + != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(13, callLogLevel_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUserEnvVars(), - UserEnvVarsDefaultEntryHolder.defaultEntry, - 14); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetUserEnvVars(), UserEnvVarsDefaultEntryHolder.defaultEntry, 14); getUnknownFields().writeTo(output); } @@ -2158,33 +2432,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.workflows.v1.Workflow.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (revisionCreateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getRevisionCreateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRevisionCreateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); @@ -2196,22 +2466,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, cryptoKeyName_); } if (stateError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getStateError()); - } - if (callLogLevel_ != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, callLogLevel_); - } - for (java.util.Map.Entry entry - : internalGetUserEnvVars().getMap().entrySet()) { - com.google.protobuf.MapEntry - userEnvVars__ = UserEnvVarsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, userEnvVars__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStateError()); + } + if (callLogLevel_ + != com.google.cloud.workflows.v1.Workflow.CallLogLevel.CALL_LOG_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, callLogLevel_); + } + for (java.util.Map.Entry entry : + internalGetUserEnvVars().getMap().entrySet()) { + com.google.protobuf.MapEntry userEnvVars__ = + UserEnvVarsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, userEnvVars__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2221,54 +2491,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.workflows.v1.Workflow)) { return super.equals(obj); } com.google.cloud.workflows.v1.Workflow other = (com.google.cloud.workflows.v1.Workflow) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getRevisionId() - .equals(other.getRevisionId())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; if (hasRevisionCreateTime()) { - if (!getRevisionCreateTime() - .equals(other.getRevisionCreateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getCryptoKeyName() - .equals(other.getCryptoKeyName())) return false; + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getCryptoKeyName().equals(other.getCryptoKeyName())) return false; if (hasStateError() != other.hasStateError()) return false; if (hasStateError()) { - if (!getStateError() - .equals(other.getStateError())) return false; + if (!getStateError().equals(other.getStateError())) return false; } if (callLogLevel_ != other.callLogLevel_) return false; - if (!internalGetUserEnvVars().equals( - other.internalGetUserEnvVars())) return false; + if (!internalGetUserEnvVars().equals(other.internalGetUserEnvVars())) return false; if (!getSourceCodeCase().equals(other.getSourceCodeCase())) return false; switch (sourceCodeCase_) { case 10: - if (!getSourceContents() - .equals(other.getSourceContents())) return false; + if (!getSourceContents().equals(other.getSourceContents())) return false; break; case 0: default: @@ -2335,158 +2593,160 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1.Workflow parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1.Workflow parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow 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.workflows.v1.Workflow 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; } /** + * + * *
    * Workflow program to be executed by Workflows.
    * 
* * Protobuf type {@code google.cloud.workflows.v1.Workflow} */ - 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.workflows.v1.Workflow) com.google.cloud.workflows.v1.WorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); case 14: return internalGetUserEnvVars(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 8: return internalGetMutableLabels(); case 14: return internalGetMutableUserEnvVars(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1.Workflow.class, com.google.cloud.workflows.v1.Workflow.Builder.class); + com.google.cloud.workflows.v1.Workflow.class, + com.google.cloud.workflows.v1.Workflow.Builder.class); } // Construct using com.google.cloud.workflows.v1.Workflow.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2526,9 +2786,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.v1.WorkflowsProto.internal_static_google_cloud_workflows_v1_Workflow_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.v1.WorkflowsProto + .internal_static_google_cloud_workflows_v1_Workflow_descriptor; } @java.lang.Override @@ -2547,8 +2807,11 @@ public com.google.cloud.workflows.v1.Workflow build() { @java.lang.Override public com.google.cloud.workflows.v1.Workflow buildPartial() { - com.google.cloud.workflows.v1.Workflow result = new com.google.cloud.workflows.v1.Workflow(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.v1.Workflow result = + new com.google.cloud.workflows.v1.Workflow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2569,19 +2832,16 @@ private void buildPartial0(com.google.cloud.workflows.v1.Workflow result) { result.revisionId_ = revisionId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.revisionCreateTime_ = revisionCreateTimeBuilder_ == null - ? revisionCreateTime_ - : revisionCreateTimeBuilder_.build(); + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -2594,9 +2854,7 @@ private void buildPartial0(com.google.cloud.workflows.v1.Workflow result) { result.cryptoKeyName_ = cryptoKeyName_; } if (((from_bitField0_ & 0x00000800) != 0)) { - result.stateError_ = stateErrorBuilder_ == null - ? stateError_ - : stateErrorBuilder_.build(); + result.stateError_ = stateErrorBuilder_ == null ? stateError_ : stateErrorBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.callLogLevel_ = callLogLevel_; @@ -2616,38 +2874,39 @@ private void buildPartialOneofs(com.google.cloud.workflows.v1.Workflow result) { 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.workflows.v1.Workflow) { - return mergeFrom((com.google.cloud.workflows.v1.Workflow)other); + return mergeFrom((com.google.cloud.workflows.v1.Workflow) other); } else { super.mergeFrom(other); return this; @@ -2683,8 +2942,7 @@ public Builder mergeFrom(com.google.cloud.workflows.v1.Workflow other) { if (other.hasRevisionCreateTime()) { mergeRevisionCreateTime(other.getRevisionCreateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; @@ -2702,19 +2960,20 @@ public Builder mergeFrom(com.google.cloud.workflows.v1.Workflow other) { if (other.callLogLevel_ != 0) { setCallLogLevelValue(other.getCallLogLevelValue()); } - internalGetMutableUserEnvVars().mergeFrom( - other.internalGetUserEnvVars()); + internalGetMutableUserEnvVars().mergeFrom(other.internalGetUserEnvVars()); bitField0_ |= 0x00002000; switch (other.getSourceCodeCase()) { - case SOURCE_CONTENTS: { - sourceCodeCase_ = 10; - sourceCode_ = other.sourceCode_; - onChanged(); - break; - } - case SOURCECODE_NOT_SET: { - break; - } + case SOURCE_CONTENTS: + { + sourceCodeCase_ = 10; + sourceCode_ = other.sourceCode_; + onChanged(); + break; + } + case SOURCECODE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2742,99 +3001,111 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - revisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getRevisionCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCodeCase_ = 10; - sourceCode_ = s; - break; - } // case 82 - case 90: { - cryptoKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - input.readMessage( - getStateErrorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 104: { - callLogLevel_ = input.readEnum(); - bitField0_ |= 0x00001000; - break; - } // case 104 - case 114: { - com.google.protobuf.MapEntry - userEnvVars__ = input.readMessage( - UserEnvVarsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableUserEnvVars().getMutableMap().put( - userEnvVars__.getKey(), userEnvVars__.getValue()); - bitField0_ |= 0x00002000; - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCodeCase_ = 10; + sourceCode_ = s; + break; + } // case 82 + case 90: + { + cryptoKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage(getStateErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 104: + { + callLogLevel_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: + { + com.google.protobuf.MapEntry userEnvVars__ = + input.readMessage( + UserEnvVarsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUserEnvVars() + .getMutableMap() + .put(userEnvVars__.getKey(), userEnvVars__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2844,12 +3115,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCodeCase_ = 0; private java.lang.Object sourceCode_; - public SourceCodeCase - getSourceCodeCase() { - return SourceCodeCase.forNumber( - sourceCodeCase_); + + public SourceCodeCase getSourceCodeCase() { + return SourceCodeCase.forNumber(sourceCodeCase_); } public Builder clearSourceCode() { @@ -2863,19 +3134,21 @@ public Builder clearSourceCode() { private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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; @@ -2884,21 +3157,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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 { @@ -2906,30 +3180,37 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -2939,18 +3220,22 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -2960,19 +3245,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @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; @@ -2981,21 +3268,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @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 { @@ -3003,30 +3291,37 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -3036,18 +3331,22 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -3057,22 +3356,33 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3083,24 +3393,35 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.State getState() { - com.google.cloud.workflows.v1.Workflow.State result = com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); + com.google.cloud.workflows.v1.Workflow.State result = + com.google.cloud.workflows.v1.Workflow.State.forNumber(state_); return result == null ? com.google.cloud.workflows.v1.Workflow.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3114,11 +3435,16 @@ public Builder setState(com.google.cloud.workflows.v1.Workflow.State value) { return this; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -3130,6 +3456,8 @@ public Builder clearState() { private java.lang.Object revisionId_ = ""; /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3145,13 +3473,13 @@ public Builder clearState() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -3160,6 +3488,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3175,15 +3505,14 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -3191,6 +3520,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3206,18 +3537,22 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } revisionId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3233,6 +3568,7 @@ public Builder setRevisionId(
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -3242,6 +3578,8 @@ public Builder clearRevisionId() { return this; } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -3257,12 +3595,14 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000008; @@ -3272,39 +3612,58 @@ public Builder setRevisionIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3320,14 +3679,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3338,17 +3700,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3361,11 +3727,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -3378,11 +3748,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -3390,36 +3764,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp for when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3427,39 +3813,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3475,14 +3880,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3493,17 +3901,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3516,11 +3928,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3533,11 +3949,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -3545,36 +3965,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The timestamp for when the workflow was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3582,42 +4014,61 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp revisionCreateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revisionCreateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ public com.google.protobuf.Timestamp getRevisionCreateTime() { if (revisionCreateTimeBuilder_ == null) { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } else { return revisionCreateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { @@ -3633,15 +4084,18 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRevisionCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (revisionCreateTimeBuilder_ == null) { revisionCreateTime_ = builderForValue.build(); } else { @@ -3652,18 +4106,22 @@ public Builder setRevisionCreateTime( return this; } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - revisionCreateTime_ != null && - revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getRevisionCreateTimeBuilder().mergeFrom(value); } else { revisionCreateTime_ = value; @@ -3676,12 +4134,16 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRevisionCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3694,12 +4156,16 @@ public Builder clearRevisionCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3707,58 +4173,68 @@ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { return getRevisionCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { if (revisionCreateTimeBuilder_ != null) { return revisionCreateTimeBuilder_.getMessageOrBuilder(); } else { - return revisionCreateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } } /** + * + * *
      * Output only. The timestamp for the latest revision of the workflow's
      * creation.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getRevisionCreateTimeFieldBuilder() { if (revisionCreateTimeBuilder_ == null) { - revisionCreateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRevisionCreateTime(), - getParentForChildren(), - isClean()); + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); revisionCreateTime_ = null; } return revisionCreateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3767,10 +4243,13 @@ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -3782,20 +4261,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -3811,6 +4291,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -3822,17 +4304,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -3844,23 +4328,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -3871,23 +4357,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -3898,17 +4383,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -3919,16 +4407,16 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object serviceAccount_ = "";
     /**
+     *
+     *
      * 
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -3945,13 +4433,13 @@ public Builder putAllLabels(
      * 
* * string service_account = 9; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -3960,6 +4448,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -3976,15 +4466,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -3992,6 +4481,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4008,18 +4499,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccount_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4036,6 +4531,7 @@ public Builder setServiceAccount(
      * 
* * string service_account = 9; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -4045,6 +4541,8 @@ public Builder clearServiceAccount() { return this; } /** + * + * *
      * The service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -4061,12 +4559,14 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 9; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000100; @@ -4075,11 +4575,14 @@ public Builder setServiceAccountBytes( } /** + * + * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; + * * @return Whether the sourceContents field is set. */ @java.lang.Override @@ -4087,11 +4590,14 @@ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** + * + * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; + * * @return The sourceContents. */ @java.lang.Override @@ -4101,8 +4607,7 @@ public java.lang.String getSourceContents() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -4113,24 +4618,25 @@ public java.lang.String getSourceContents() { } } /** + * + * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; + * * @return The bytes for sourceContents. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceContentsBytes() { + public com.google.protobuf.ByteString getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -4140,28 +4646,35 @@ public java.lang.String getSourceContents() { } } /** + * + * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; + * * @param value The sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCodeCase_ = 10; sourceCode_ = value; onChanged(); return this; } /** + * + * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; + * * @return This builder for chaining. */ public Builder clearSourceContents() { @@ -4173,17 +4686,21 @@ public Builder clearSourceContents() { return this; } /** + * + * *
      * Workflow code to be executed. The size limit is 128KB.
      * 
* * string source_contents = 10; + * * @param value The bytes for sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCodeCase_ = 10; sourceCode_ = value; @@ -4193,6 +4710,8 @@ public Builder setSourceContentsBytes( private java.lang.Object cryptoKeyName_ = ""; /** + * + * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4207,14 +4726,16 @@ public Builder setSourceContentsBytes(
      * CMEK-encrypted.
      * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The cryptoKeyName. */ public java.lang.String getCryptoKeyName() { java.lang.Object ref = cryptoKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cryptoKeyName_ = s; return s; @@ -4223,6 +4744,8 @@ public java.lang.String getCryptoKeyName() { } } /** + * + * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4237,16 +4760,17 @@ public java.lang.String getCryptoKeyName() {
      * CMEK-encrypted.
      * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cryptoKeyName. */ - public com.google.protobuf.ByteString - getCryptoKeyNameBytes() { + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { java.lang.Object ref = cryptoKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); cryptoKeyName_ = b; return b; } else { @@ -4254,6 +4778,8 @@ public java.lang.String getCryptoKeyName() { } } /** + * + * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4268,19 +4794,25 @@ public java.lang.String getCryptoKeyName() {
      * CMEK-encrypted.
      * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The cryptoKeyName to set. * @return This builder for chaining. */ - public Builder setCryptoKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCryptoKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } cryptoKeyName_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4295,7 +4827,10 @@ public Builder setCryptoKeyName(
      * CMEK-encrypted.
      * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearCryptoKeyName() { @@ -4305,6 +4840,8 @@ public Builder clearCryptoKeyName() { return this; } /** + * + * *
      * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
      * the data associated with the workflow.
@@ -4319,13 +4856,17 @@ public Builder clearCryptoKeyName() {
      * CMEK-encrypted.
      * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for cryptoKeyName to set. * @return This builder for chaining. */ - public Builder setCryptoKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); cryptoKeyName_ = value; bitField0_ |= 0x00000400; @@ -4335,45 +4876,64 @@ public Builder setCryptoKeyNameBytes( private com.google.cloud.workflows.v1.Workflow.StateError stateError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow.StateError, com.google.cloud.workflows.v1.Workflow.StateError.Builder, com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> stateErrorBuilder_; + com.google.cloud.workflows.v1.Workflow.StateError, + com.google.cloud.workflows.v1.Workflow.StateError.Builder, + com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> + stateErrorBuilder_; /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateError field is set. */ public boolean hasStateError() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateError. */ public com.google.cloud.workflows.v1.Workflow.StateError getStateError() { if (stateErrorBuilder_ == null) { - return stateError_ == null ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; + return stateError_ == null + ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() + : stateError_; } else { return stateErrorBuilder_.getMessage(); } } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateError(com.google.cloud.workflows.v1.Workflow.StateError value) { if (stateErrorBuilder_ == null) { @@ -4389,13 +4949,17 @@ public Builder setStateError(com.google.cloud.workflows.v1.Workflow.StateError v return this; } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStateError( com.google.cloud.workflows.v1.Workflow.StateError.Builder builderForValue) { @@ -4409,19 +4973,24 @@ public Builder setStateError( return this; } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStateError(com.google.cloud.workflows.v1.Workflow.StateError value) { if (stateErrorBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - stateError_ != null && - stateError_ != com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && stateError_ != null + && stateError_ + != com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance()) { getStateErrorBuilder().mergeFrom(value); } else { stateError_ = value; @@ -4434,13 +5003,17 @@ public Builder mergeStateError(com.google.cloud.workflows.v1.Workflow.StateError return this; } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStateError() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4453,13 +5026,17 @@ public Builder clearStateError() { return this; } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.workflows.v1.Workflow.StateError.Builder getStateErrorBuilder() { bitField0_ |= 0x00000800; @@ -4467,40 +5044,52 @@ public com.google.cloud.workflows.v1.Workflow.StateError.Builder getStateErrorBu return getStateErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorOrBuilder() { if (stateErrorBuilder_ != null) { return stateErrorBuilder_.getMessageOrBuilder(); } else { - return stateError_ == null ? - com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() : stateError_; + return stateError_ == null + ? com.google.cloud.workflows.v1.Workflow.StateError.getDefaultInstance() + : stateError_; } } /** + * + * *
      * Output only. Error regarding the state of the workflow. For example, this
      * field will have error details if the execution data is unavailable due to
      * revoked KMS key permissions.
      * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow.StateError, com.google.cloud.workflows.v1.Workflow.StateError.Builder, com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> + com.google.cloud.workflows.v1.Workflow.StateError, + com.google.cloud.workflows.v1.Workflow.StateError.Builder, + com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder> getStateErrorFieldBuilder() { if (stateErrorBuilder_ == null) { - stateErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1.Workflow.StateError, com.google.cloud.workflows.v1.Workflow.StateError.Builder, com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder>( - getStateError(), - getParentForChildren(), - isClean()); + stateErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1.Workflow.StateError, + com.google.cloud.workflows.v1.Workflow.StateError.Builder, + com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder>( + getStateError(), getParentForChildren(), isClean()); stateError_ = null; } return stateErrorBuilder_; @@ -4508,6 +5097,8 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO private int callLogLevel_ = 0; /** + * + * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -4515,13 +5106,19 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO
      * precedence.
      * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for callLogLevel. */ - @java.lang.Override public int getCallLogLevelValue() { + @java.lang.Override + public int getCallLogLevelValue() { return callLogLevel_; } /** + * + * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -4529,7 +5126,10 @@ public com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorO
      * precedence.
      * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for callLogLevel to set. * @return This builder for chaining. */ @@ -4540,6 +5140,8 @@ public Builder setCallLogLevelValue(int value) { return this; } /** + * + * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -4547,15 +5149,23 @@ public Builder setCallLogLevelValue(int value) {
      * precedence.
      * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The callLogLevel. */ @java.lang.Override public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() { - com.google.cloud.workflows.v1.Workflow.CallLogLevel result = com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); - return result == null ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED : result; + com.google.cloud.workflows.v1.Workflow.CallLogLevel result = + com.google.cloud.workflows.v1.Workflow.CallLogLevel.forNumber(callLogLevel_); + return result == null + ? com.google.cloud.workflows.v1.Workflow.CallLogLevel.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -4563,7 +5173,10 @@ public com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel() {
      * precedence.
      * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The callLogLevel to set. * @return This builder for chaining. */ @@ -4577,6 +5190,8 @@ public Builder setCallLogLevel(com.google.cloud.workflows.v1.Workflow.CallLogLev return this; } /** + * + * *
      * Optional. Describes the level of platform logging to apply to calls and
      * call responses during executions of this workflow. If both the workflow and
@@ -4584,7 +5199,10 @@ public Builder setCallLogLevel(com.google.cloud.workflows.v1.Workflow.CallLogLev
      * precedence.
      * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearCallLogLevel() { @@ -4594,8 +5212,8 @@ public Builder clearCallLogLevel() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> userEnvVars_; + private com.google.protobuf.MapField userEnvVars_; + private com.google.protobuf.MapField internalGetUserEnvVars() { if (userEnvVars_ == null) { @@ -4604,11 +5222,12 @@ public Builder clearCallLogLevel() { } return userEnvVars_; } + private com.google.protobuf.MapField internalGetMutableUserEnvVars() { if (userEnvVars_ == null) { - userEnvVars_ = com.google.protobuf.MapField.newMapField( - UserEnvVarsDefaultEntryHolder.defaultEntry); + userEnvVars_ = + com.google.protobuf.MapField.newMapField(UserEnvVarsDefaultEntryHolder.defaultEntry); } if (!userEnvVars_.isMutable()) { userEnvVars_ = userEnvVars_.copy(); @@ -4617,10 +5236,13 @@ public Builder clearCallLogLevel() { onChanged(); return userEnvVars_; } + public int getUserEnvVarsCount() { return internalGetUserEnvVars().getMap().size(); } /** + * + * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -4628,23 +5250,25 @@ public int getUserEnvVarsCount() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsUserEnvVars( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsUserEnvVars(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetUserEnvVars().getMap().containsKey(key); } - /** - * Use {@link #getUserEnvVarsMap()} instead. - */ + /** Use {@link #getUserEnvVarsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getUserEnvVars() { return getUserEnvVarsMap(); } /** + * + * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -4652,13 +5276,16 @@ public java.util.Map getUserEnvVars() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getUserEnvVarsMap() { return internalGetUserEnvVars().getMap(); } /** + * + * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -4666,20 +5293,23 @@ public java.util.Map getUserEnvVarsMap() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getUserEnvVarsOrDefault( + public /* nullable */ java.lang.String getUserEnvVarsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetUserEnvVars().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserEnvVars().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -4687,26 +5317,29 @@ java.lang.String getUserEnvVarsOrDefault(
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getUserEnvVarsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetUserEnvVars().getMap(); + public java.lang.String getUserEnvVarsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetUserEnvVars().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearUserEnvVars() { bitField0_ = (bitField0_ & ~0x00002000); - internalGetMutableUserEnvVars().getMutableMap() - .clear(); + internalGetMutableUserEnvVars().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -4714,25 +5347,25 @@ public Builder clearUserEnvVars() {
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeUserEnvVars( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableUserEnvVars().getMutableMap() - .remove(key); + public Builder removeUserEnvVars(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableUserEnvVars().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableUserEnvVars() { + public java.util.Map getMutableUserEnvVars() { bitField0_ |= 0x00002000; return internalGetMutableUserEnvVars().getMutableMap(); } /** + * + * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -4740,19 +5373,23 @@ public Builder removeUserEnvVars(
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putUserEnvVars( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableUserEnvVars().getMutableMap() - .put(key, value); + public Builder putUserEnvVars(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableUserEnvVars().getMutableMap().put(key, value); bitField0_ |= 0x00002000; return this; } /** + * + * *
      * Optional. User-defined environment variables associated with this workflow
      * revision. This map has a maximum length of 20. Each string can take up to
@@ -4760,18 +5397,17 @@ public Builder putUserEnvVars(
      * “WORKFLOWS".
      * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllUserEnvVars( - java.util.Map values) { - internalGetMutableUserEnvVars().getMutableMap() - .putAll(values); + public Builder putAllUserEnvVars(java.util.Map values) { + internalGetMutableUserEnvVars().getMutableMap().putAll(values); bitField0_ |= 0x00002000; 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); } @@ -4781,12 +5417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1.Workflow) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1.Workflow) private static final com.google.cloud.workflows.v1.Workflow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1.Workflow(); } @@ -4795,27 +5431,27 @@ public static com.google.cloud.workflows.v1.Workflow getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4830,6 +5466,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1.Workflow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java similarity index 100% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowName.java diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java similarity index 76% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java index 463e69d4636c..77a98e462f8a 100644 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowOrBuilder.java @@ -1,76 +1,114 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1/workflows.proto package com.google.cloud.workflows.v1; -public interface WorkflowOrBuilder extends +public interface WorkflowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1.Workflow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workflows.v1.Workflow.State getState(); /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -86,10 +124,13 @@ public interface WorkflowOrBuilder extends
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ java.lang.String getRevisionId(); /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -105,96 +146,134 @@ public interface WorkflowOrBuilder extends
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString - getRevisionIdBytes(); + com.google.protobuf.ByteString getRevisionIdBytes(); /** + * + * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp for when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The timestamp for when the workflow was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ boolean hasRevisionCreateTime(); /** + * + * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ com.google.protobuf.Timestamp getRevisionCreateTime(); /** + * + * *
    * Output only. The timestamp for the latest revision of the workflow's
    * creation.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); /** + * + * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -207,6 +286,8 @@ public interface WorkflowOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -217,15 +298,13 @@ public interface WorkflowOrBuilder extends
    *
    * map<string, string> labels = 8;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -236,9 +315,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -250,11 +330,13 @@ boolean containsLabels(
    * map<string, string> labels = 8;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -265,10 +347,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -285,10 +368,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * The service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -305,41 +391,51 @@ java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; + * * @return Whether the sourceContents field is set. */ boolean hasSourceContents(); /** + * + * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; + * * @return The sourceContents. */ java.lang.String getSourceContents(); /** + * + * *
    * Workflow code to be executed. The size limit is 128KB.
    * 
* * string source_contents = 10; + * * @return The bytes for sourceContents. */ - com.google.protobuf.ByteString - getSourceContentsBytes(); + com.google.protobuf.ByteString getSourceContentsBytes(); /** + * + * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -354,11 +450,16 @@ java.lang.String getLabelsOrThrow(
    * CMEK-encrypted.
    * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The cryptoKeyName. */ java.lang.String getCryptoKeyName(); /** + * + * *
    * Optional. The resource name of a KMS crypto key used to encrypt or decrypt
    * the data associated with the workflow.
@@ -373,46 +474,64 @@ java.lang.String getLabelsOrThrow(
    * CMEK-encrypted.
    * 
* - * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string crypto_key_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for cryptoKeyName. */ - com.google.protobuf.ByteString - getCryptoKeyNameBytes(); + com.google.protobuf.ByteString getCryptoKeyNameBytes(); /** + * + * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the stateError field is set. */ boolean hasStateError(); /** + * + * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The stateError. */ com.google.cloud.workflows.v1.Workflow.StateError getStateError(); /** + * + * *
    * Output only. Error regarding the state of the workflow. For example, this
    * field will have error details if the execution data is unavailable due to
    * revoked KMS key permissions.
    * 
* - * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1.Workflow.StateError state_error = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.workflows.v1.Workflow.StateErrorOrBuilder getStateErrorOrBuilder(); /** + * + * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -420,11 +539,16 @@ java.lang.String getLabelsOrThrow(
    * precedence.
    * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for callLogLevel. */ int getCallLogLevelValue(); /** + * + * *
    * Optional. Describes the level of platform logging to apply to calls and
    * call responses during executions of this workflow. If both the workflow and
@@ -432,12 +556,17 @@ java.lang.String getLabelsOrThrow(
    * precedence.
    * 
* - * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workflows.v1.Workflow.CallLogLevel call_log_level = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The callLogLevel. */ com.google.cloud.workflows.v1.Workflow.CallLogLevel getCallLogLevel(); /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -445,10 +574,13 @@ java.lang.String getLabelsOrThrow(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getUserEnvVarsCount(); /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -456,17 +588,16 @@ java.lang.String getLabelsOrThrow(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsUserEnvVars( - java.lang.String key); - /** - * Use {@link #getUserEnvVarsMap()} instead. + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsUserEnvVars(java.lang.String key); + /** Use {@link #getUserEnvVarsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getUserEnvVars(); + java.util.Map getUserEnvVars(); /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -474,11 +605,13 @@ boolean containsUserEnvVars(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getUserEnvVarsMap(); + java.util.Map getUserEnvVarsMap(); /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -486,14 +619,17 @@ boolean containsUserEnvVars(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getUserEnvVarsOrDefault( + java.lang.String getUserEnvVarsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. User-defined environment variables associated with this workflow
    * revision. This map has a maximum length of 20. Each string can take up to
@@ -501,10 +637,10 @@ java.lang.String getUserEnvVarsOrDefault(
    * “WORKFLOWS".
    * 
* - * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> user_env_vars = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getUserEnvVarsOrThrow( - java.lang.String key); + java.lang.String getUserEnvVarsOrThrow(java.lang.String key); com.google.cloud.workflows.v1.Workflow.SourceCodeCase getSourceCodeCase(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java new file mode 100644 index 000000000000..1586fa132a98 --- /dev/null +++ b/java-workflows/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java @@ -0,0 +1,320 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1/workflows.proto + +package com.google.cloud.workflows.v1; + +public final class WorkflowsProto { + private WorkflowsProto() {} + + 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_workflows_v1_Workflow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1_OperationMetadata_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/workflows/v1/workflows.pr" + + "oto\022\031google.cloud.workflows.v1\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032#google/longru" + + "nning/operations.proto\032\033google/protobuf/" + + "empty.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\"\351" + + "\t\n\010Workflow\022\014\n\004name\030\001 \001(\t\022\023\n\013description" + + "\030\002 \001(\t\022>\n\005state\030\003 \001(\0162).google.cloud.wor" + + "kflows.v1.Workflow.StateB\004\342A\001\003\022\031\n\013revisi" + + "on_id\030\004 \001(\tB\004\342A\001\003\0225\n\013create_time\030\005 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\0225\n\013upda" + + "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\022>\n\024revision_create_time\030\007 \001(\0132\032." + + "google.protobuf.TimestampB\004\342A\001\003\022?\n\006label" + + "s\030\010 \003(\0132/.google.cloud.workflows.v1.Work" + + "flow.LabelsEntry\022\027\n\017service_account\030\t \001(" + + "\t\022\031\n\017source_contents\030\n \001(\tH\000\022C\n\017crypto_k" + + "ey_name\030\013 \001(\tB*\342A\001\001\372A#\n!cloudkms.googlea" + + "pis.com/CryptoKey\022I\n\013state_error\030\014 \001(\0132." + + ".google.cloud.workflows.v1.Workflow.Stat" + + "eErrorB\004\342A\001\003\022N\n\016call_log_level\030\r \001(\01620.g" + + "oogle.cloud.workflows.v1.Workflow.CallLo" + + "gLevelB\004\342A\001\001\022Q\n\ruser_env_vars\030\016 \003(\01324.go" + + "ogle.cloud.workflows.v1.Workflow.UserEnv" + + "VarsEntryB\004\342A\001\001\032\215\001\n\nStateError\022\017\n\007detail" + + "s\030\001 \001(\t\022A\n\004type\030\002 \001(\01623.google.cloud.wor" + + "kflows.v1.Workflow.StateError.Type\"+\n\004Ty" + + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tKMS_ERROR\020\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\0322\n\020UserEnvVarsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\";\n\005State\022\025\n\021STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\017\n\013UNAVAILABLE\020\002\"" + + "d\n\014CallLogLevel\022\036\n\032CALL_LOG_LEVEL_UNSPEC" + + "IFIED\020\000\022\021\n\rLOG_ALL_CALLS\020\001\022\023\n\017LOG_ERRORS" + + "_ONLY\020\002\022\014\n\010LOG_NONE\020\003:d\352Aa\n!workflows.go" + + "ogleapis.com/Workflow\022\332A\006parent\202\323\344\223\002/\022" + + "-/v1/{parent=projects/*/locations/*}/wor" + + "kflows\022\237\001\n\013GetWorkflow\022-.google.cloud.wo" + + "rkflows.v1.GetWorkflowRequest\032#.google.c" + + "loud.workflows.v1.Workflow\"<\332A\004name\202\323\344\223\002" + + "/\022-/v1/{name=projects/*/locations/*/work" + + "flows/*}\022\340\001\n\016CreateWorkflow\0220.google.clo" + + "ud.workflows.v1.CreateWorkflowRequest\032\035." + + "google.longrunning.Operation\"}\312A\035\n\010Workf" + + "low\022\021OperationMetadata\332A\033parent,workflow" + + ",workflow_id\202\323\344\223\0029\"-/v1/{parent=projects" + + "/*/locations/*}/workflows:\010workflow\022\314\001\n\016" + + "DeleteWorkflow\0220.google.cloud.workflows." + + "v1.DeleteWorkflowRequest\032\035.google.longru" + + "nning.Operation\"i\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1" + + "/{name=projects/*/locations/*/workflows/" + + "*}\022\342\001\n\016UpdateWorkflow\0220.google.cloud.wor" + + "kflows.v1.UpdateWorkflowRequest\032\035.google" + + ".longrunning.Operation\"\177\312A\035\n\010Workflow\022\021O" + + "perationMetadata\332A\024workflow,update_mask\202" + + "\323\344\223\002B26/v1/{workflow.name=projects/*/loc" + + "ations/*/workflows/*}:\010workflow\032L\312A\030work" + + "flows.googleapis.com\322A.https://www.googl" + + "eapis.com/auth/cloud-platformB\347\001\n\035com.go" + + "ogle.cloud.workflows.v1B\016WorkflowsProtoP" + + "\001Z;cloud.google.com/go/workflows/apiv1/w" + + "orkflowspb;workflowspb\352Av\n!cloudkms.goog" + + "leapis.com/CryptoKey\022Qprojects/{project}" + + "/locations/{location}/keyRings/{keyRing}" + + "/cryptoKeys/{cryptoKey}b\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_workflows_v1_Workflow_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_descriptor, + new java.lang.String[] { + "Name", + "Description", + "State", + "RevisionId", + "CreateTime", + "UpdateTime", + "RevisionCreateTime", + "Labels", + "ServiceAccount", + "SourceContents", + "CryptoKeyName", + "StateError", + "CallLogLevel", + "UserEnvVars", + "SourceCode", + }); + internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor = + internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor, + new java.lang.String[] { + "Details", "Type", + }); + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor = + internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor = + internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor, + new java.lang.String[] { + "Workflows", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", "RevisionId", + }); + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor, + new java.lang.String[] { + "Parent", "Workflow", "WorkflowId", + }); + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor, + new java.lang.String[] { + "Workflow", "UpdateMask", + }); + internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Target", "Verb", "ApiVersion", + }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto b/java-workflows/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto similarity index 100% rename from owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto rename to java-workflows/proto-google-cloud-workflows-v1/src/main/proto/google/cloud/workflows/v1/workflows.proto diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java similarity index 65% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java index d8775cc748f0..04d1a387137c 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** + * + * *
  * Request for the
  * [CreateWorkflow][google.cloud.workflows.v1beta.Workflows.CreateWorkflow]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.CreateWorkflowRequest}
  */
-public final class CreateWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CreateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.CreateWorkflowRequest)
     CreateWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CreateWorkflowRequest.newBuilder() to construct.
   private CreateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CreateWorkflowRequest() {
     parent_ = "";
     workflowId_ = "";
@@ -28,34 +46,41 @@ private CreateWorkflowRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CreateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class, com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class,
+            com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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 @@ -64,30 +89,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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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 { @@ -98,11 +125,16 @@ public java.lang.String getParent() { public static final int WORKFLOW_FIELD_NUMBER = 2; private com.google.cloud.workflows.v1beta.Workflow workflow_; /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ @java.lang.Override @@ -110,33 +142,49 @@ public boolean hasWorkflow() { return workflow_ != null; } /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { - return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } public static final int WORKFLOW_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object workflowId_ = ""; /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -149,6 +197,7 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workflowId. */ @java.lang.Override @@ -157,14 +206,15 @@ public java.lang.String getWorkflowId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; } } /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -177,16 +227,15 @@ public java.lang.String getWorkflowId() {
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workflowId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkflowIdBytes() { + public com.google.protobuf.ByteString getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowId_ = b; return b; } else { @@ -195,6 +244,7 @@ public java.lang.String getWorkflowId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +256,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_); } @@ -230,8 +279,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (workflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWorkflow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWorkflow()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workflowId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); @@ -244,22 +292,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.workflows.v1beta.CreateWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.CreateWorkflowRequest other = (com.google.cloud.workflows.v1beta.CreateWorkflowRequest) obj; + com.google.cloud.workflows.v1beta.CreateWorkflowRequest other = + (com.google.cloud.workflows.v1beta.CreateWorkflowRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasWorkflow() != other.hasWorkflow()) return false; if (hasWorkflow()) { - if (!getWorkflow() - .equals(other.getWorkflow())) return false; + if (!getWorkflow().equals(other.getWorkflow())) return false; } - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; + if (!getWorkflowId().equals(other.getWorkflowId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,98 +331,104 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest 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.workflows.v1beta.CreateWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.v1beta.CreateWorkflowRequest 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
    * [CreateWorkflow][google.cloud.workflows.v1beta.Workflows.CreateWorkflow]
@@ -385,33 +437,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.CreateWorkflowRequest}
    */
-  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.workflows.v1beta.CreateWorkflowRequest)
       com.google.cloud.workflows.v1beta.CreateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class, com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.CreateWorkflowRequest.class,
+              com.google.cloud.workflows.v1beta.CreateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.CreateWorkflowRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -427,9 +478,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -448,8 +499,11 @@ public com.google.cloud.workflows.v1beta.CreateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.CreateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.CreateWorkflowRequest result = new com.google.cloud.workflows.v1beta.CreateWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1beta.CreateWorkflowRequest result =
+          new com.google.cloud.workflows.v1beta.CreateWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -460,9 +514,7 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.CreateWorkflowReque
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.workflow_ = workflowBuilder_ == null
-            ? workflow_
-            : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
         result.workflowId_ = workflowId_;
@@ -473,38 +525,39 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.CreateWorkflowReque
     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.workflows.v1beta.CreateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.CreateWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.CreateWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -512,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.CreateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.CreateWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1beta.CreateWorkflowRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -552,29 +606,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getWorkflowFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              workflowId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                workflowId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -584,23 +640,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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; @@ -609,21 +670,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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 { @@ -631,30 +695,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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() { @@ -664,18 +739,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project and location in which the workflow should be created.
      * Format:  projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -685,39 +766,58 @@ public Builder setParentBytes( private com.google.cloud.workflows.v1beta.Workflow workflow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> workflowBuilder_; + com.google.cloud.workflows.v1beta.Workflow, + com.google.cloud.workflows.v1beta.Workflow.Builder, + com.google.cloud.workflows.v1beta.WorkflowOrBuilder> + workflowBuilder_; /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } else { return workflowBuilder_.getMessage(); } } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { @@ -733,14 +833,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkflow( - com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { + public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -751,17 +854,21 @@ public Builder setWorkflow( return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - workflow_ != null && - workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && workflow_ != null + && workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -774,11 +881,15 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000002); @@ -791,11 +902,15 @@ public Builder clearWorkflow() { return this; } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000002; @@ -803,36 +918,48 @@ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null ? - com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } } /** + * + * *
      * Required. Workflow to be created.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> + com.google.cloud.workflows.v1beta.Workflow, + com.google.cloud.workflows.v1beta.Workflow.Builder, + com.google.cloud.workflows.v1beta.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( - getWorkflow(), - getParentForChildren(), - isClean()); + workflowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1beta.Workflow, + com.google.cloud.workflows.v1beta.Workflow.Builder, + com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( + getWorkflow(), getParentForChildren(), isClean()); workflow_ = null; } return workflowBuilder_; @@ -840,6 +967,8 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder( private java.lang.Object workflowId_ = ""; /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -852,13 +981,13 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workflowId. */ public java.lang.String getWorkflowId() { java.lang.Object ref = workflowId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; @@ -867,6 +996,8 @@ public java.lang.String getWorkflowId() { } } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -879,15 +1010,14 @@ public java.lang.String getWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workflowId. */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { + public com.google.protobuf.ByteString getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workflowId_ = b; return b; } else { @@ -895,6 +1025,8 @@ public java.lang.String getWorkflowId() { } } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -907,18 +1039,22 @@ public java.lang.String getWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workflowId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -931,6 +1067,7 @@ public Builder setWorkflowId(
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkflowId() { @@ -940,6 +1077,8 @@ public Builder clearWorkflowId() { return this; } /** + * + * *
      * Required. The ID of the workflow to be created. It has to fulfill the
      * following requirements:
@@ -952,21 +1091,23 @@ public Builder clearWorkflowId() {
      * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workflowId to set. * @return This builder for chaining. */ - public Builder setWorkflowIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkflowIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workflowId_ = value; bitField0_ |= 0x00000004; 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); } @@ -976,12 +1117,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.CreateWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.CreateWorkflowRequest) private static final com.google.cloud.workflows.v1beta.CreateWorkflowRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.CreateWorkflowRequest(); } @@ -990,27 +1131,27 @@ public static com.google.cloud.workflows.v1beta.CreateWorkflowRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,6 +1166,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.CreateWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java index 4766a2180dc6..d923af27a558 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/CreateWorkflowRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface CreateWorkflowRequestOrBuilder extends +public interface CreateWorkflowRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.CreateWorkflowRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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. Project and location in which the workflow should be created.
    * Format:  projects/{project}/locations/{location}
    * 
* - * 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. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ com.google.cloud.workflows.v1beta.Workflow getWorkflow(); /** + * + * *
    * Required. Workflow to be created.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(); /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -69,10 +110,13 @@ public interface CreateWorkflowRequestOrBuilder extends
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workflowId. */ java.lang.String getWorkflowId(); /** + * + * *
    * Required. The ID of the workflow to be created. It has to fulfill the
    * following requirements:
@@ -85,8 +129,8 @@ public interface CreateWorkflowRequestOrBuilder extends
    * 
* * string workflow_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workflowId. */ - com.google.protobuf.ByteString - getWorkflowIdBytes(); + com.google.protobuf.ByteString getWorkflowIdBytes(); } diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java similarity index 62% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java index a6c148580bf0..6689737a88d0 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** + * + * *
  * Request for the
  * [DeleteWorkflow][google.cloud.workflows.v1beta.Workflows.DeleteWorkflow]
@@ -12,49 +29,57 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.DeleteWorkflowRequest}
  */
-public final class DeleteWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeleteWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.DeleteWorkflowRequest)
     DeleteWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeleteWorkflowRequest.newBuilder() to construct.
   private DeleteWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private DeleteWorkflowRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeleteWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class,
+            com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 @@ -63,30 +88,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. Name of the workflow to be deleted.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 { @@ -95,6 +122,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,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_); } @@ -131,15 +158,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.workflows.v1beta.DeleteWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.DeleteWorkflowRequest other = (com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) obj; + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest other = + (com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,98 +186,104 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest 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.workflows.v1beta.DeleteWorkflowRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.v1beta.DeleteWorkflowRequest 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
    * [DeleteWorkflow][google.cloud.workflows.v1beta.Workflows.DeleteWorkflow]
@@ -259,33 +292,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.DeleteWorkflowRequest}
    */
-  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.workflows.v1beta.DeleteWorkflowRequest)
       com.google.cloud.workflows.v1beta.DeleteWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class, com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.class,
+              com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -295,9 +327,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -316,8 +348,11 @@ public com.google.cloud.workflows.v1beta.DeleteWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.DeleteWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.DeleteWorkflowRequest result = new com.google.cloud.workflows.v1beta.DeleteWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1beta.DeleteWorkflowRequest result =
+          new com.google.cloud.workflows.v1beta.DeleteWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -333,38 +368,39 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.DeleteWorkflowReque
     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.workflows.v1beta.DeleteWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.DeleteWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.DeleteWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -372,7 +408,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.DeleteWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1beta.DeleteWorkflowRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -404,17 +441,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -424,23 +463,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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; @@ -449,21 +493,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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 { @@ -471,30 +518,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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() { @@ -504,27 +562,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workflow to be deleted.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -534,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.DeleteWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.DeleteWorkflowRequest) private static final com.google.cloud.workflows.v1beta.DeleteWorkflowRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.DeleteWorkflowRequest(); } @@ -548,27 +612,27 @@ public static com.google.cloud.workflows.v1beta.DeleteWorkflowRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -583,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.DeleteWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java new file mode 100644 index 000000000000..67d6b72b0a86 --- /dev/null +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1beta/workflows.proto + +package com.google.cloud.workflows.v1beta; + +public interface DeleteWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.DeleteWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the workflow to be deleted.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * + * 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/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java similarity index 63% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java index 62241df4ce92..804c188f6fd3 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** + * + * *
  * Request for the
  * [GetWorkflow][google.cloud.workflows.v1beta.Workflows.GetWorkflow] method.
@@ -11,49 +28,57 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.GetWorkflowRequest}
  */
-public final class GetWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.GetWorkflowRequest)
     GetWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetWorkflowRequest.newBuilder() to construct.
   private GetWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetWorkflowRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.GetWorkflowRequest.class, com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.GetWorkflowRequest.class,
+            com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workflow which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 @@ -62,30 +87,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. Name of the workflow which information should be retrieved.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* - * 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 { @@ -94,6 +121,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -105,8 +133,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_); } @@ -130,15 +157,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.workflows.v1beta.GetWorkflowRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.GetWorkflowRequest other = (com.google.cloud.workflows.v1beta.GetWorkflowRequest) obj; + com.google.cloud.workflows.v1beta.GetWorkflowRequest other = + (com.google.cloud.workflows.v1beta.GetWorkflowRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -158,98 +185,103 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1beta.GetWorkflowRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.GetWorkflowRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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.workflows.v1beta.GetWorkflowRequest 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
    * [GetWorkflow][google.cloud.workflows.v1beta.Workflows.GetWorkflow] method.
@@ -257,33 +289,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.GetWorkflowRequest}
    */
-  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.workflows.v1beta.GetWorkflowRequest)
       com.google.cloud.workflows.v1beta.GetWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.GetWorkflowRequest.class, com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.GetWorkflowRequest.class,
+              com.google.cloud.workflows.v1beta.GetWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.GetWorkflowRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -293,9 +324,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -314,8 +345,11 @@ public com.google.cloud.workflows.v1beta.GetWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.GetWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.GetWorkflowRequest result = new com.google.cloud.workflows.v1beta.GetWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1beta.GetWorkflowRequest result =
+          new com.google.cloud.workflows.v1beta.GetWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -331,38 +365,39 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.GetWorkflowRequest
     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.workflows.v1beta.GetWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.GetWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.GetWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -370,7 +405,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.GetWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.GetWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1beta.GetWorkflowRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -402,17 +438,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -422,23 +460,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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; @@ -447,21 +490,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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 { @@ -469,30 +515,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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() { @@ -502,27 +559,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workflow which information should be retrieved.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -532,12 +595,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.GetWorkflowRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.GetWorkflowRequest) private static final com.google.cloud.workflows.v1beta.GetWorkflowRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.GetWorkflowRequest(); } @@ -546,27 +609,27 @@ public static com.google.cloud.workflows.v1beta.GetWorkflowRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkflowRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkflowRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -581,6 +644,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.GetWorkflowRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java new file mode 100644 index 000000000000..e983f7ffdd53 --- /dev/null +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1beta/workflows.proto + +package com.google.cloud.workflows.v1beta; + +public interface GetWorkflowRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.GetWorkflowRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the workflow which information should be retrieved.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the workflow which information should be retrieved.
+   * Format: projects/{project}/locations/{location}/workflows/{workflow}
+   * 
+ * + * + * 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/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java similarity index 71% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java index 3128c51d7399..0807d8440298 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** + * + * *
  * Request for the
  * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsRequest}
  */
-public final class ListWorkflowsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListWorkflowsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.ListWorkflowsRequest)
     ListWorkflowsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListWorkflowsRequest.newBuilder() to construct.
   private ListWorkflowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListWorkflowsRequest() {
     parent_ = "";
     pageToken_ = "";
@@ -30,34 +48,41 @@ private ListWorkflowsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListWorkflowsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class, com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class,
+            com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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 @@ -66,30 +91,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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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 { @@ -100,6 +127,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of workflows to return per call. The service may return
    * fewer than this value. If the value is not specified, a default value of
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -128,6 +161,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -136,14 +170,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 page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -153,16 +188,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 { @@ -171,14 +205,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -187,29 +225,29 @@ 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; } } /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @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 { @@ -218,9 +256,12 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -229,6 +270,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -237,14 +279,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -253,16 +296,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -271,6 +313,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,8 +325,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_); } @@ -312,8 +354,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -332,23 +373,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.workflows.v1beta.ListWorkflowsRequest)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.ListWorkflowsRequest other = (com.google.cloud.workflows.v1beta.ListWorkflowsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.workflows.v1beta.ListWorkflowsRequest other = + (com.google.cloud.workflows.v1beta.ListWorkflowsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -376,98 +413,104 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest 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.workflows.v1beta.ListWorkflowsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.v1beta.ListWorkflowsRequest 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
    * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -476,33 +519,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsRequest}
    */
-  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.workflows.v1beta.ListWorkflowsRequest)
       com.google.cloud.workflows.v1beta.ListWorkflowsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class, com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.ListWorkflowsRequest.class,
+              com.google.cloud.workflows.v1beta.ListWorkflowsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.ListWorkflowsRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -516,9 +558,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -537,8 +579,11 @@ public com.google.cloud.workflows.v1beta.ListWorkflowsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.ListWorkflowsRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.ListWorkflowsRequest result = new com.google.cloud.workflows.v1beta.ListWorkflowsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1beta.ListWorkflowsRequest result =
+          new com.google.cloud.workflows.v1beta.ListWorkflowsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -566,38 +611,39 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.ListWorkflowsReques
     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.workflows.v1beta.ListWorkflowsRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -605,7 +651,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.ListWorkflowsRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -655,37 +702,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              pageSize_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              pageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              orderBy_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                pageSize_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                pageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                orderBy_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -695,23 +748,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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; @@ -720,21 +778,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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,30 +803,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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() { @@ -775,18 +847,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Project and location from which the workflows should be listed.
      * Format: projects/{project}/locations/{location}
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -794,8 +872,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of workflows to return per call. The service may return
      * fewer than this value. If the value is not specified, a default value of
@@ -804,6 +884,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -811,6 +892,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of workflows to return per call. The service may return
      * fewer than this value. If the value is not specified, a default value of
@@ -819,6 +902,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -830,6 +914,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Maximum number of workflows to return per call. The service may return
      * fewer than this value. If the value is not specified, a default value of
@@ -838,6 +924,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -849,6 +936,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -858,13 +947,13 @@ public Builder clearPageSize() {
      * 
* * 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; @@ -873,6 +962,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -882,15 +973,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 { @@ -898,6 +988,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -907,18 +999,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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -928,6 +1024,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -937,6 +1034,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListWorkflows` call.
      * Provide this to retrieve the subsequent page.
@@ -946,12 +1045,14 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -961,18 +1062,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @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; @@ -981,20 +1084,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @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 { @@ -1002,28 +1106,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1033,17 +1144,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter to restrict results to specific workflows.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1053,6 +1168,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1061,13 +1178,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1076,6 +1193,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1084,15 +1203,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1100,6 +1218,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1108,18 +1228,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1128,6 +1252,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1137,6 +1262,8 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Comma-separated list of fields that that specify the order of the results.
      * Default sorting order for a field is ascending. To specify descending order
@@ -1145,21 +1272,23 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; 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); } @@ -1169,12 +1298,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.ListWorkflowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.ListWorkflowsRequest) private static final com.google.cloud.workflows.v1beta.ListWorkflowsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.ListWorkflowsRequest(); } @@ -1183,27 +1312,27 @@ public static com.google.cloud.workflows.v1beta.ListWorkflowsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1218,6 +1347,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.ListWorkflowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java index 51cae8559982..e24e5837d8b9 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface ListWorkflowsRequestOrBuilder extends +public interface ListWorkflowsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.ListWorkflowsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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. Project and location from which the workflows should be listed.
    * Format: projects/{project}/locations/{location}
    * 
* - * 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(); /** + * + * *
    * Maximum number of workflows to return per call. The service may return
    * fewer than this value. If the value is not specified, a default value of
@@ -38,11 +65,14 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListWorkflows` call.
    * Provide this to retrieve the subsequent page.
@@ -65,32 +98,39 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter to restrict results to specific workflows.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -99,10 +139,13 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Comma-separated list of fields that that specify the order of the results.
    * Default sorting order for a field is ascending. To specify descending order
@@ -111,8 +154,8 @@ public interface ListWorkflowsRequestOrBuilder extends
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java similarity index 72% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java index 70043b7371e9..b90d59271db4 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** + * + * *
  * Response for the
  * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -12,46 +29,50 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsResponse}
  */
-public final class ListWorkflowsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListWorkflowsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.ListWorkflowsResponse)
     ListWorkflowsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListWorkflowsResponse.newBuilder() to construct.
   private ListWorkflowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListWorkflowsResponse() {
     workflows_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
-    unreachable_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListWorkflowsResponse();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class, com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
+            com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class,
+            com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
   }
 
   public static final int WORKFLOWS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List workflows_;
   /**
+   *
+   *
    * 
    * The workflows which match the request.
    * 
@@ -63,6 +84,8 @@ public java.util.List getWorkflowsLi return workflows_; } /** + * + * *
    * The workflows which match the request.
    * 
@@ -70,11 +93,13 @@ public java.util.List getWorkflowsLi * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkflowsOrBuilderList() { return workflows_; } /** + * + * *
    * The workflows which match the request.
    * 
@@ -86,6 +111,8 @@ public int getWorkflowsCount() { return workflows_.size(); } /** + * + * *
    * The workflows which match the request.
    * 
@@ -97,6 +124,8 @@ public com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index) { return workflows_.get(index); } /** + * + * *
    * The workflows which match the request.
    * 
@@ -104,21 +133,24 @@ public com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index) { * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ @java.lang.Override - public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { + public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { return workflows_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +159,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; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -159,38 +191,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -198,20 +239,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,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 < workflows_.size(); i++) { output.writeMessage(1, workflows_.get(i)); } @@ -244,8 +287,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workflows_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workflows_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -266,19 +308,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.workflows.v1beta.ListWorkflowsResponse)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.ListWorkflowsResponse other = (com.google.cloud.workflows.v1beta.ListWorkflowsResponse) obj; + com.google.cloud.workflows.v1beta.ListWorkflowsResponse other = + (com.google.cloud.workflows.v1beta.ListWorkflowsResponse) obj; - if (!getWorkflowsList() - .equals(other.getWorkflowsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkflowsList().equals(other.getWorkflowsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,98 +346,104 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse 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.workflows.v1beta.ListWorkflowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workflows.v1beta.ListWorkflowsResponse 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
    * [ListWorkflows][google.cloud.workflows.v1beta.Workflows.ListWorkflows]
@@ -406,33 +452,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.ListWorkflowsResponse}
    */
-  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.workflows.v1beta.ListWorkflowsResponse)
       com.google.cloud.workflows.v1beta.ListWorkflowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class, com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
+              com.google.cloud.workflows.v1beta.ListWorkflowsResponse.class,
+              com.google.cloud.workflows.v1beta.ListWorkflowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.ListWorkflowsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -445,15 +490,14 @@ public Builder clear() {
       }
       bitField0_ = (bitField0_ & ~0x00000001);
       nextPageToken_ = "";
-      unreachable_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList();
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -472,14 +516,18 @@ public com.google.cloud.workflows.v1beta.ListWorkflowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.ListWorkflowsResponse buildPartial() {
-      com.google.cloud.workflows.v1beta.ListWorkflowsResponse result = new com.google.cloud.workflows.v1beta.ListWorkflowsResponse(this);
+      com.google.cloud.workflows.v1beta.ListWorkflowsResponse result =
+          new com.google.cloud.workflows.v1beta.ListWorkflowsResponse(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workflows.v1beta.ListWorkflowsResponse result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workflows.v1beta.ListWorkflowsResponse result) {
       if (workflowsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           workflows_ = java.util.Collections.unmodifiableList(workflows_);
@@ -506,38 +554,39 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.ListWorkflowsRespon
     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.workflows.v1beta.ListWorkflowsResponse) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsResponse)other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.ListWorkflowsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -545,7 +594,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.ListWorkflowsResponse other) {
-      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1beta.ListWorkflowsResponse.getDefaultInstance())
+        return this;
       if (workflowsBuilder_ == null) {
         if (!other.workflows_.isEmpty()) {
           if (workflows_.isEmpty()) {
@@ -564,9 +614,10 @@ public Builder mergeFrom(com.google.cloud.workflows.v1beta.ListWorkflowsResponse
             workflowsBuilder_ = null;
             workflows_ = other.workflows_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            workflowsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getWorkflowsFieldBuilder() : null;
+            workflowsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getWorkflowsFieldBuilder()
+                    : null;
           } else {
             workflowsBuilder_.addAllMessages(other.workflows_);
           }
@@ -613,36 +664,39 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.workflows.v1beta.Workflow m =
-                  input.readMessage(
-                      com.google.cloud.workflows.v1beta.Workflow.parser(),
-                      extensionRegistry);
-              if (workflowsBuilder_ == null) {
-                ensureWorkflowsIsMutable();
-                workflows_.add(m);
-              } else {
-                workflowsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            case 18: {
-              nextPageToken_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureUnreachableIsMutable();
-              unreachable_.add(s);
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.workflows.v1beta.Workflow m =
+                    input.readMessage(
+                        com.google.cloud.workflows.v1beta.Workflow.parser(), extensionRegistry);
+                if (workflowsBuilder_ == null) {
+                  ensureWorkflowsIsMutable();
+                  workflows_.add(m);
+                } else {
+                  workflowsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            case 18:
+              {
+                nextPageToken_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureUnreachableIsMutable();
+                unreachable_.add(s);
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -652,21 +706,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List workflows_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureWorkflowsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        workflows_ = new java.util.ArrayList(workflows_);
+        workflows_ =
+            new java.util.ArrayList(workflows_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> workflowsBuilder_;
+            com.google.cloud.workflows.v1beta.Workflow,
+            com.google.cloud.workflows.v1beta.Workflow.Builder,
+            com.google.cloud.workflows.v1beta.WorkflowOrBuilder>
+        workflowsBuilder_;
 
     /**
+     *
+     *
      * 
      * The workflows which match the request.
      * 
@@ -681,6 +743,8 @@ public java.util.List getWorkflowsLi } } /** + * + * *
      * The workflows which match the request.
      * 
@@ -695,6 +759,8 @@ public int getWorkflowsCount() { } } /** + * + * *
      * The workflows which match the request.
      * 
@@ -709,14 +775,15 @@ public com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index) { } } /** + * + * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public Builder setWorkflows( - int index, com.google.cloud.workflows.v1beta.Workflow value) { + public Builder setWorkflows(int index, com.google.cloud.workflows.v1beta.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -730,6 +797,8 @@ public Builder setWorkflows( return this; } /** + * + * *
      * The workflows which match the request.
      * 
@@ -748,6 +817,8 @@ public Builder setWorkflows( return this; } /** + * + * *
      * The workflows which match the request.
      * 
@@ -768,14 +839,15 @@ public Builder addWorkflows(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** + * + * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public Builder addWorkflows( - int index, com.google.cloud.workflows.v1beta.Workflow value) { + public Builder addWorkflows(int index, com.google.cloud.workflows.v1beta.Workflow value) { if (workflowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -789,6 +861,8 @@ public Builder addWorkflows( return this; } /** + * + * *
      * The workflows which match the request.
      * 
@@ -807,6 +881,8 @@ public Builder addWorkflows( return this; } /** + * + * *
      * The workflows which match the request.
      * 
@@ -825,6 +901,8 @@ public Builder addWorkflows( return this; } /** + * + * *
      * The workflows which match the request.
      * 
@@ -835,8 +913,7 @@ public Builder addAllWorkflows( java.lang.Iterable values) { if (workflowsBuilder_ == null) { ensureWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workflows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workflows_); onChanged(); } else { workflowsBuilder_.addAllMessages(values); @@ -844,6 +921,8 @@ public Builder addAllWorkflows( return this; } /** + * + * *
      * The workflows which match the request.
      * 
@@ -861,6 +940,8 @@ public Builder clearWorkflows() { return this; } /** + * + * *
      * The workflows which match the request.
      * 
@@ -878,39 +959,44 @@ public Builder removeWorkflows(int index) { return this; } /** + * + * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowsBuilder( - int index) { + public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowsBuilder(int index) { return getWorkflowsFieldBuilder().getBuilder(index); } /** + * + * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { + public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder(int index) { if (workflowsBuilder_ == null) { - return workflows_.get(index); } else { + return workflows_.get(index); + } else { return workflowsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public java.util.List - getWorkflowsOrBuilderList() { + public java.util.List + getWorkflowsOrBuilderList() { if (workflowsBuilder_ != null) { return workflowsBuilder_.getMessageOrBuilderList(); } else { @@ -918,6 +1004,8 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder } } /** + * + * *
      * The workflows which match the request.
      * 
@@ -925,42 +1013,48 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder() { - return getWorkflowsFieldBuilder().addBuilder( - com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); + return getWorkflowsFieldBuilder() + .addBuilder(com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); } /** + * + * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().addBuilder( - index, com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); + public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder(int index) { + return getWorkflowsFieldBuilder() + .addBuilder(index, com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()); } /** + * + * *
      * The workflows which match the request.
      * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - public java.util.List - getWorkflowsBuilderList() { + public java.util.List + getWorkflowsBuilderList() { return getWorkflowsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> + com.google.cloud.workflows.v1beta.Workflow, + com.google.cloud.workflows.v1beta.Workflow.Builder, + com.google.cloud.workflows.v1beta.WorkflowOrBuilder> getWorkflowsFieldBuilder() { if (workflowsBuilder_ == null) { - workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( - workflows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workflowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workflows.v1beta.Workflow, + com.google.cloud.workflows.v1beta.Workflow.Builder, + com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( + workflows_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workflows_ = null; } return workflowsBuilder_; @@ -968,19 +1062,21 @@ public com.google.cloud.workflows.v1beta.Workflow.Builder addWorkflowsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -989,21 +1085,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -1011,30 +1108,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,18 +1148,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1065,6 +1173,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1072,35 +1181,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1108,31 +1225,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1140,17 +1263,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1158,50 +1285,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1209,9 +1344,9 @@ public Builder addUnreachableBytes( 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); } @@ -1221,12 +1356,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.ListWorkflowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.ListWorkflowsResponse) private static final com.google.cloud.workflows.v1beta.ListWorkflowsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.ListWorkflowsResponse(); } @@ -1235,27 +1370,27 @@ public static com.google.cloud.workflows.v1beta.ListWorkflowsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkflowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkflowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1270,6 +1405,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.ListWorkflowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java index 9b7b89cbe5ed..d3e958da9577 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/ListWorkflowsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface ListWorkflowsResponseOrBuilder extends +public interface ListWorkflowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.ListWorkflowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The workflows which match the request.
    * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - java.util.List - getWorkflowsList(); + java.util.List getWorkflowsList(); /** + * + * *
    * The workflows which match the request.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkflowsResponseOrBuilder extends */ com.google.cloud.workflows.v1beta.Workflow getWorkflows(int index); /** + * + * *
    * The workflows which match the request.
    * 
@@ -33,84 +54,102 @@ public interface ListWorkflowsResponseOrBuilder extends */ int getWorkflowsCount(); /** + * + * *
    * The workflows which match the request.
    * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - java.util.List + java.util.List getWorkflowsOrBuilderList(); /** + * + * *
    * The workflows which match the request.
    * 
* * repeated .google.cloud.workflows.v1beta.Workflow workflows = 1; */ - com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder( - int index); + com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/LocationName.java diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java index 874ca7105a37..95379909bc81 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.workflows.v1beta.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -27,32 +45,36 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.OperationMetadata.class, com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1beta.OperationMetadata.class, + com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -60,11 +82,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -72,6 +97,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -86,11 +113,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -98,11 +128,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -110,6 +143,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
@@ -122,14 +157,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -138,29 +177,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -169,14 +208,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -185,29 +228,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -216,14 +259,18 @@ public java.lang.String getVerb() { } public static final int API_VERSION_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The apiVersion. */ @java.lang.Override @@ -232,29 +279,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -263,6 +310,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +322,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -301,12 +348,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -325,29 +370,25 @@ 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.workflows.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.OperationMetadata other = (com.google.cloud.workflows.v1beta.OperationMetadata) obj; + com.google.cloud.workflows.v1beta.OperationMetadata other = + (com.google.cloud.workflows.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,131 +420,135 @@ public int hashCode() { } public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workflows.v1beta.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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.workflows.v1beta.OperationMetadata 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; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.workflows.v1beta.OperationMetadata} */ - 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.workflows.v1beta.OperationMetadata) com.google.cloud.workflows.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.OperationMetadata.class, com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workflows.v1beta.OperationMetadata.class, + com.google.cloud.workflows.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workflows.v1beta.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -525,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -546,8 +591,11 @@ public com.google.cloud.workflows.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.workflows.v1beta.OperationMetadata buildPartial() { - com.google.cloud.workflows.v1beta.OperationMetadata result = new com.google.cloud.workflows.v1beta.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.v1beta.OperationMetadata result = + new com.google.cloud.workflows.v1beta.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -555,14 +603,10 @@ public com.google.cloud.workflows.v1beta.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workflows.v1beta.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -579,38 +623,39 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.OperationMetadata r 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.workflows.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.workflows.v1beta.OperationMetadata)other); + return mergeFrom((com.google.cloud.workflows.v1beta.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -618,7 +663,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workflows.v1beta.OperationMetadata other) { - if (other == com.google.cloud.workflows.v1beta.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.workflows.v1beta.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -666,41 +712,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -710,38 +758,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -762,14 +824,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -780,6 +843,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -788,9 +853,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -803,6 +868,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -820,6 +887,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -832,6 +901,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -842,11 +913,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -854,14 +928,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -869,24 +946,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -897,6 +983,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -917,14 +1005,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -935,6 +1024,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -943,9 +1034,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -958,6 +1049,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -975,6 +1068,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -987,6 +1082,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
@@ -997,11 +1094,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 the operation finished running.
      * 
@@ -1009,14 +1107,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1024,18 +1125,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1044,20 +1147,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1065,28 +1169,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1096,17 +1207,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1116,18 +1231,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1136,20 +1253,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1157,28 +1275,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1188,17 +1313,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1208,18 +1337,20 @@ public Builder setVerbBytes( private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1228,20 +1359,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1249,28 +1381,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1280,26 +1419,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 5; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000010; 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); } @@ -1309,12 +1452,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.OperationMetadata) private static final com.google.cloud.workflows.v1beta.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.OperationMetadata(); } @@ -1323,27 +1466,27 @@ public static com.google.cloud.workflows.v1beta.OperationMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1358,6 +1501,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java index 40dfadbdb465..c5db845293a0 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
@@ -62,62 +94,77 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 5; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java similarity index 63% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java index 61ee81a9af93..151cfd9bf0be 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; /** + * + * *
  * Request for the
  * [UpdateWorkflow][google.cloud.workflows.v1beta.Workflows.UpdateWorkflow]
@@ -12,46 +29,52 @@
  *
  * Protobuf type {@code google.cloud.workflows.v1beta.UpdateWorkflowRequest}
  */
-public final class UpdateWorkflowRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateWorkflowRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
     UpdateWorkflowRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateWorkflowRequest.newBuilder() to construct.
   private UpdateWorkflowRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private UpdateWorkflowRequest() {
-  }
+
+  private UpdateWorkflowRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateWorkflowRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
+    return com.google.cloud.workflows.v1beta.WorkflowsProto
+        .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
+            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class,
+            com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
   }
 
   public static final int WORKFLOW_FIELD_NUMBER = 1;
   private com.google.cloud.workflows.v1beta.Workflow workflow_;
   /**
+   *
+   *
    * 
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ @java.lang.Override @@ -59,38 +82,54 @@ public boolean hasWorkflow() { return workflow_ != null; } /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { - return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { - return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -98,12 +137,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -111,6 +153,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
@@ -124,6 +168,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -135,8 +180,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 (workflow_ != null) {
       output.writeMessage(1, getWorkflow());
     }
@@ -153,12 +197,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (workflow_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getWorkflow());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkflow());
     }
     if (updateMask_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getUpdateMask());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -168,22 +210,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.workflows.v1beta.UpdateWorkflowRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.workflows.v1beta.UpdateWorkflowRequest other = (com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) obj;
+    com.google.cloud.workflows.v1beta.UpdateWorkflowRequest other =
+        (com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) obj;
 
     if (hasWorkflow() != other.hasWorkflow()) return false;
     if (hasWorkflow()) {
-      if (!getWorkflow()
-          .equals(other.getWorkflow())) return false;
+      if (!getWorkflow().equals(other.getWorkflow())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -210,98 +251,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest 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.workflows.v1beta.UpdateWorkflowRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.workflows.v1beta.UpdateWorkflowRequest 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
    * [UpdateWorkflow][google.cloud.workflows.v1beta.Workflows.UpdateWorkflow]
@@ -310,33 +357,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workflows.v1beta.UpdateWorkflowRequest}
    */
-  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.workflows.v1beta.UpdateWorkflowRequest)
       com.google.cloud.workflows.v1beta.UpdateWorkflowRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class, com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
+              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.class,
+              com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -355,9 +401,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workflows.v1beta.WorkflowsProto
+          .internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor;
     }
 
     @java.lang.Override
@@ -376,8 +422,11 @@ public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest build() {
 
     @java.lang.Override
     public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest buildPartial() {
-      com.google.cloud.workflows.v1beta.UpdateWorkflowRequest result = new com.google.cloud.workflows.v1beta.UpdateWorkflowRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.workflows.v1beta.UpdateWorkflowRequest result =
+          new com.google.cloud.workflows.v1beta.UpdateWorkflowRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -385,14 +434,10 @@ public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest buildPartial() {
     private void buildPartial0(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.workflow_ = workflowBuilder_ == null
-            ? workflow_
-            : workflowBuilder_.build();
+        result.workflow_ = workflowBuilder_ == null ? workflow_ : workflowBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -400,38 +445,39 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.UpdateWorkflowReque
     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.workflows.v1beta.UpdateWorkflowRequest) {
-        return mergeFrom((com.google.cloud.workflows.v1beta.UpdateWorkflowRequest)other);
+        return mergeFrom((com.google.cloud.workflows.v1beta.UpdateWorkflowRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -439,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workflows.v1beta.UpdateWorkflowRequest other) {
-      if (other == com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workflows.v1beta.UpdateWorkflowRequest.getDefaultInstance())
+        return this;
       if (other.hasWorkflow()) {
         mergeWorkflow(other.getWorkflow());
       }
@@ -472,26 +519,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getWorkflowFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getWorkflowFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -501,43 +547,63 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.workflows.v1beta.Workflow workflow_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> workflowBuilder_;
+            com.google.cloud.workflows.v1beta.Workflow,
+            com.google.cloud.workflows.v1beta.Workflow.Builder,
+            com.google.cloud.workflows.v1beta.WorkflowOrBuilder>
+        workflowBuilder_;
     /**
+     *
+     *
      * 
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ public boolean hasWorkflow() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ public com.google.cloud.workflows.v1beta.Workflow getWorkflow() { if (workflowBuilder_ == null) { - return workflow_ == null ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } else { return workflowBuilder_.getMessage(); } } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { @@ -553,14 +619,17 @@ public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkflow( - com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { + public Builder setWorkflow(com.google.cloud.workflows.v1beta.Workflow.Builder builderForValue) { if (workflowBuilder_ == null) { workflow_ = builderForValue.build(); } else { @@ -571,17 +640,21 @@ public Builder setWorkflow( return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { if (workflowBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workflow_ != null && - workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workflow_ != null + && workflow_ != com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance()) { getWorkflowBuilder().mergeFrom(value); } else { workflow_ = value; @@ -594,11 +667,15 @@ public Builder mergeWorkflow(com.google.cloud.workflows.v1beta.Workflow value) { return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkflow() { bitField0_ = (bitField0_ & ~0x00000001); @@ -611,11 +688,15 @@ public Builder clearWorkflow() { return this; } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { bitField0_ |= 0x00000001; @@ -623,36 +704,48 @@ public com.google.cloud.workflows.v1beta.Workflow.Builder getWorkflowBuilder() { return getWorkflowFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder() { if (workflowBuilder_ != null) { return workflowBuilder_.getMessageOrBuilder(); } else { - return workflow_ == null ? - com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() : workflow_; + return workflow_ == null + ? com.google.cloud.workflows.v1beta.Workflow.getDefaultInstance() + : workflow_; } } /** + * + * *
      * Required. Workflow to be updated.
      * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder> + com.google.cloud.workflows.v1beta.Workflow, + com.google.cloud.workflows.v1beta.Workflow.Builder, + com.google.cloud.workflows.v1beta.WorkflowOrBuilder> getWorkflowFieldBuilder() { if (workflowBuilder_ == null) { - workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workflows.v1beta.Workflow, com.google.cloud.workflows.v1beta.Workflow.Builder, com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( - getWorkflow(), - getParentForChildren(), - isClean()); + workflowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workflows.v1beta.Workflow, + com.google.cloud.workflows.v1beta.Workflow.Builder, + com.google.cloud.workflows.v1beta.WorkflowOrBuilder>( + getWorkflow(), getParentForChildren(), isClean()); workflow_ = null; } return workflowBuilder_; @@ -660,36 +753,49 @@ public com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder( 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_; /** + * + * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @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(); } } /** + * + * *
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -711,6 +817,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -718,8 +826,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      *
      * .google.protobuf.FieldMask update_mask = 2;
      */
-    public Builder setUpdateMask(
-        com.google.protobuf.FieldMask.Builder builderForValue) {
+    public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) {
       if (updateMaskBuilder_ == null) {
         updateMask_ = builderForValue.build();
       } else {
@@ -730,6 +837,8 @@ public Builder setUpdateMask(
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -739,9 +848,9 @@ public Builder setUpdateMask(
      */
     public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       if (updateMaskBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          updateMask_ != null &&
-          updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && updateMask_ != null
+            && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) {
           getUpdateMaskBuilder().mergeFrom(value);
         } else {
           updateMask_ = value;
@@ -754,6 +863,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -772,6 +883,8 @@ public Builder clearUpdateMask() {
       return this;
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -785,6 +898,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
       return getUpdateMaskFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -796,11 +911,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_;
       }
     }
     /**
+     *
+     *
      * 
      * List of fields to be updated. If not present, the entire workflow
      * will be updated.
@@ -809,21 +927,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * .google.protobuf.FieldMask update_mask = 2;
      */
     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);
     }
 
@@ -833,12 +954,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
   private static final com.google.cloud.workflows.v1beta.UpdateWorkflowRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.UpdateWorkflowRequest();
   }
@@ -847,27 +968,27 @@ public static com.google.cloud.workflows.v1beta.UpdateWorkflowRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public UpdateWorkflowRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public UpdateWorkflowRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -882,6 +1003,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.workflows.v1beta.UpdateWorkflowRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
index 6ae7319b3c17..2464c3d2d22c 100644
--- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
+++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/UpdateWorkflowRequestOrBuilder.java
@@ -1,60 +1,98 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1beta/workflows.proto
 
 package com.google.cloud.workflows.v1beta;
 
-public interface UpdateWorkflowRequestOrBuilder extends
+public interface UpdateWorkflowRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.UpdateWorkflowRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workflow field is set. */ boolean hasWorkflow(); /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workflow. */ com.google.cloud.workflows.v1beta.Workflow getWorkflow(); /** + * + * *
    * Required. Workflow to be updated.
    * 
* - * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workflows.v1beta.Workflow workflow = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workflows.v1beta.WorkflowOrBuilder getWorkflowOrBuilder(); /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * List of fields to be updated. If not present, the entire workflow
    * will be updated.
diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
similarity index 69%
rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
index a4a4a399e541..1c12f37cc9f5 100644
--- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
+++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/Workflow.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workflows/v1beta/workflows.proto
 
 package com.google.cloud.workflows.v1beta;
 
 /**
+ *
+ *
  * 
  * Workflow program to be executed by Workflows.
  * 
* * Protobuf type {@code google.cloud.workflows.v1beta.Workflow} */ -public final class Workflow extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Workflow extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workflows.v1beta.Workflow) WorkflowOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Workflow.newBuilder() to construct. private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Workflow() { name_ = ""; description_ = ""; @@ -29,37 +47,39 @@ private Workflow() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Workflow(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.Workflow.class, com.google.cloud.workflows.v1beta.Workflow.Builder.class); + com.google.cloud.workflows.v1beta.Workflow.class, + com.google.cloud.workflows.v1beta.Workflow.Builder.class); } /** + * + * *
    * Describes the current state of workflow deployment. More states may be
    * added in the future.
@@ -67,9 +87,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.workflows.v1beta.Workflow.State}
    */
-  public enum State
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum State implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Invalid state.
      * 
@@ -78,6 +99,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -89,6 +112,8 @@ public enum State ; /** + * + * *
      * Invalid state.
      * 
@@ -97,6 +122,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The workflow has been deployed successfully and is serving.
      * 
@@ -105,7 +132,6 @@ public enum State */ public static final int ACTIVE_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -130,48 +156,47 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ACTIVE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.workflows.v1beta.Workflow.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -189,14 +214,18 @@ private State(int value) { } private int sourceCodeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object sourceCode_; + public enum SourceCodeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SOURCE_CONTENTS(10), SOURCECODE_NOT_SET(0); private final int value; + private SourceCodeCase(int value) { this.value = value; } @@ -212,32 +241,38 @@ public static SourceCodeCase valueOf(int value) { public static SourceCodeCase forNumber(int value) { switch (value) { - case 10: return SOURCE_CONTENTS; - case 0: return SOURCECODE_NOT_SET; - default: return null; + case 10: + return SOURCE_CONTENTS; + case 0: + return SOURCECODE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceCodeCase - getSourceCodeCase() { - return SourceCodeCase.forNumber( - sourceCodeCase_); + public SourceCodeCase getSourceCodeCase() { + return SourceCodeCase.forNumber(sourceCodeCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -246,30 +281,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; } } /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * 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 { @@ -278,15 +313,19 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -295,30 +334,30 @@ 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; } } /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @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 { @@ -329,33 +368,49 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow.State getState() { - com.google.cloud.workflows.v1beta.Workflow.State result = com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.workflows.v1beta.Workflow.State getState() { + com.google.cloud.workflows.v1beta.Workflow.State result = + com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); return result == null ? com.google.cloud.workflows.v1beta.Workflow.State.UNRECOGNIZED : result; } public static final int REVISION_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object revisionId_ = ""; /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -368,6 +423,7 @@ public java.lang.String getDescription() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ @java.lang.Override @@ -376,14 +432,15 @@ public java.lang.String getRevisionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; } } /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -396,16 +453,15 @@ public java.lang.String getRevisionId() {
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -416,11 +472,15 @@ public java.lang.String getRevisionId() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -428,11 +488,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -440,11 +504,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -454,11 +521,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -466,11 +537,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -478,11 +553,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -492,12 +570,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int REVISION_CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp revisionCreateTime_; /** + * + * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ @java.lang.Override @@ -505,58 +588,73 @@ public boolean hasRevisionCreateTime() { return revisionCreateTime_ != null; } /** + * + * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getRevisionCreateTime() { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } /** + * + * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } public static final int LABELS_FIELD_NUMBER = 8; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -568,20 +666,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -597,6 +696,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -608,17 +709,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -630,11 +733,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 8;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -642,9 +745,12 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 9;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object serviceAccount_ = "";
   /**
+   *
+   *
    * 
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -661,6 +767,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ @java.lang.Override @@ -669,14 +776,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -693,16 +801,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -712,22 +819,28 @@ public java.lang.String getServiceAccount() { public static final int SOURCE_CONTENTS_FIELD_NUMBER = 10; /** + * + * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; + * * @return Whether the sourceContents field is set. */ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** + * + * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; + * * @return The sourceContents. */ public java.lang.String getSourceContents() { @@ -738,8 +851,7 @@ public java.lang.String getSourceContents() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -748,23 +860,24 @@ public java.lang.String getSourceContents() { } } /** + * + * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; + * * @return The bytes for sourceContents. */ - public com.google.protobuf.ByteString - getSourceContentsBytes() { + public com.google.protobuf.ByteString getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -775,6 +888,7 @@ public java.lang.String getSourceContents() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -786,8 +900,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_); } @@ -809,12 +922,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (revisionCreateTime_ != null) { output.writeMessage(7, getRevisionCreateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 8); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceAccount_); } @@ -837,33 +946,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (state_ != com.google.cloud.workflows.v1beta.Workflow.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, revisionId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (revisionCreateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getRevisionCreateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRevisionCreateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceAccount_); @@ -879,44 +984,36 @@ 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.workflows.v1beta.Workflow)) { return super.equals(obj); } - com.google.cloud.workflows.v1beta.Workflow other = (com.google.cloud.workflows.v1beta.Workflow) obj; + com.google.cloud.workflows.v1beta.Workflow other = + (com.google.cloud.workflows.v1beta.Workflow) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getRevisionId() - .equals(other.getRevisionId())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasRevisionCreateTime() != other.hasRevisionCreateTime()) return false; if (hasRevisionCreateTime()) { - if (!getRevisionCreateTime() - .equals(other.getRevisionCreateTime())) return false; + if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getSourceCodeCase().equals(other.getSourceCodeCase())) return false; switch (sourceCodeCase_) { case 10: - if (!getSourceContents() - .equals(other.getSourceContents())) return false; + if (!getSourceContents().equals(other.getSourceContents())) return false; break; case 0: default: @@ -971,154 +1068,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.workflows.v1beta.Workflow parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.workflows.v1beta.Workflow parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workflows.v1beta.Workflow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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.workflows.v1beta.Workflow 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; } /** + * + * *
    * Workflow program to be executed by Workflows.
    * 
* * Protobuf type {@code google.cloud.workflows.v1beta.Workflow} */ - 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.workflows.v1beta.Workflow) com.google.cloud.workflows.v1beta.WorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 8: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 8: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workflows.v1beta.Workflow.class, com.google.cloud.workflows.v1beta.Workflow.Builder.class); + com.google.cloud.workflows.v1beta.Workflow.class, + com.google.cloud.workflows.v1beta.Workflow.Builder.class); } // Construct using com.google.cloud.workflows.v1beta.Workflow.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1150,9 +1249,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workflows.v1beta.WorkflowsProto.internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workflows.v1beta.WorkflowsProto + .internal_static_google_cloud_workflows_v1beta_Workflow_descriptor; } @java.lang.Override @@ -1171,8 +1270,11 @@ public com.google.cloud.workflows.v1beta.Workflow build() { @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow buildPartial() { - com.google.cloud.workflows.v1beta.Workflow result = new com.google.cloud.workflows.v1beta.Workflow(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workflows.v1beta.Workflow result = + new com.google.cloud.workflows.v1beta.Workflow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1193,19 +1295,16 @@ private void buildPartial0(com.google.cloud.workflows.v1beta.Workflow result) { result.revisionId_ = revisionId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.revisionCreateTime_ = revisionCreateTimeBuilder_ == null - ? revisionCreateTime_ - : revisionCreateTimeBuilder_.build(); + result.revisionCreateTime_ = + revisionCreateTimeBuilder_ == null + ? revisionCreateTime_ + : revisionCreateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.labels_ = internalGetLabels(); @@ -1225,38 +1324,39 @@ private void buildPartialOneofs(com.google.cloud.workflows.v1beta.Workflow resul 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.workflows.v1beta.Workflow) { - return mergeFrom((com.google.cloud.workflows.v1beta.Workflow)other); + return mergeFrom((com.google.cloud.workflows.v1beta.Workflow) other); } else { super.mergeFrom(other); return this; @@ -1292,8 +1392,7 @@ public Builder mergeFrom(com.google.cloud.workflows.v1beta.Workflow other) { if (other.hasRevisionCreateTime()) { mergeRevisionCreateTime(other.getRevisionCreateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000080; if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; @@ -1301,15 +1400,17 @@ public Builder mergeFrom(com.google.cloud.workflows.v1beta.Workflow other) { onChanged(); } switch (other.getSourceCodeCase()) { - case SOURCE_CONTENTS: { - sourceCodeCase_ = 10; - sourceCode_ = other.sourceCode_; - onChanged(); - break; - } - case SOURCECODE_NOT_SET: { - break; - } + case SOURCE_CONTENTS: + { + sourceCodeCase_ = 10; + sourceCode_ = other.sourceCode_; + onChanged(); + break; + } + case SOURCECODE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1337,73 +1438,81 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - revisionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getRevisionCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - sourceCodeCase_ = 10; - sourceCode_ = s; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getRevisionCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCodeCase_ = 10; + sourceCode_ = s; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1413,12 +1522,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceCodeCase_ = 0; private java.lang.Object sourceCode_; - public SourceCodeCase - getSourceCodeCase() { - return SourceCodeCase.forNumber( - sourceCodeCase_); + + public SourceCodeCase getSourceCodeCase() { + return SourceCodeCase.forNumber(sourceCodeCase_); } public Builder clearSourceCode() { @@ -1432,19 +1541,21 @@ public Builder clearSourceCode() { private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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; @@ -1453,21 +1564,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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 { @@ -1475,30 +1587,37 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1508,18 +1627,22 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the workflow.
      * Format: projects/{project}/locations/{location}/workflows/{workflow}
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1529,19 +1652,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @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; @@ -1550,21 +1675,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @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 { @@ -1572,30 +1698,37 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1605,18 +1738,22 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Description of the workflow provided by the user.
      * Must be at most 1000 unicode characters long.
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1626,22 +1763,33 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1652,24 +1800,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workflows.v1beta.Workflow.State getState() { - com.google.cloud.workflows.v1beta.Workflow.State result = com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); - return result == null ? com.google.cloud.workflows.v1beta.Workflow.State.UNRECOGNIZED : result; + com.google.cloud.workflows.v1beta.Workflow.State result = + com.google.cloud.workflows.v1beta.Workflow.State.forNumber(state_); + return result == null + ? com.google.cloud.workflows.v1beta.Workflow.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1683,11 +1844,16 @@ public Builder setState(com.google.cloud.workflows.v1beta.Workflow.State value) return this; } /** + * + * *
      * Output only. State of the workflow deployment.
      * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1699,6 +1865,8 @@ public Builder clearState() { private java.lang.Object revisionId_ = ""; /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1711,13 +1879,13 @@ public Builder clearState() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ public java.lang.String getRevisionId() { java.lang.Object ref = revisionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revisionId_ = s; return s; @@ -1726,6 +1894,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1738,15 +1908,14 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ - public com.google.protobuf.ByteString - getRevisionIdBytes() { + public com.google.protobuf.ByteString getRevisionIdBytes() { java.lang.Object ref = revisionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revisionId_ = b; return b; } else { @@ -1754,6 +1923,8 @@ public java.lang.String getRevisionId() { } } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1766,18 +1937,22 @@ public java.lang.String getRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } revisionId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1790,6 +1965,7 @@ public Builder setRevisionId(
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRevisionId() { @@ -1799,6 +1975,8 @@ public Builder clearRevisionId() { return this; } /** + * + * *
      * Output only. The revision of the workflow.
      * A new revision of a workflow is created as a result of updating the
@@ -1811,12 +1989,14 @@ public Builder clearRevisionId() {
      * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for revisionId to set. * @return This builder for chaining. */ - public Builder setRevisionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); revisionId_ = value; bitField0_ |= 0x00000008; @@ -1826,39 +2006,58 @@ public Builder setRevisionIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1874,14 +2073,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1892,17 +2094,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1915,11 +2121,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1932,11 +2142,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1944,36 +2158,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp of when the workflow was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1981,39 +2207,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2029,14 +2274,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2047,17 +2295,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2070,11 +2322,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2087,11 +2343,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -2099,36 +2359,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The last update timestamp of the workflow.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2136,42 +2408,61 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp revisionCreateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> revisionCreateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + revisionCreateTimeBuilder_; /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ public boolean hasRevisionCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ public com.google.protobuf.Timestamp getRevisionCreateTime() { if (revisionCreateTimeBuilder_ == null) { - return revisionCreateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } else { return revisionCreateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { @@ -2187,15 +2478,18 @@ public Builder setRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRevisionCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setRevisionCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (revisionCreateTimeBuilder_ == null) { revisionCreateTime_ = builderForValue.build(); } else { @@ -2206,18 +2500,22 @@ public Builder setRevisionCreateTime( return this; } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { if (revisionCreateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - revisionCreateTime_ != null && - revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && revisionCreateTime_ != null + && revisionCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getRevisionCreateTimeBuilder().mergeFrom(value); } else { revisionCreateTime_ = value; @@ -2230,12 +2528,16 @@ public Builder mergeRevisionCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRevisionCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2248,12 +2550,16 @@ public Builder clearRevisionCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2261,58 +2567,68 @@ public com.google.protobuf.Timestamp.Builder getRevisionCreateTimeBuilder() { return getRevisionCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { if (revisionCreateTimeBuilder_ != null) { return revisionCreateTimeBuilder_.getMessageOrBuilder(); } else { - return revisionCreateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : revisionCreateTime_; + return revisionCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : revisionCreateTime_; } } /** + * + * *
      * Output only. The timestamp that the latest revision of the workflow
      * was created.
      * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getRevisionCreateTimeFieldBuilder() { if (revisionCreateTimeBuilder_ == null) { - revisionCreateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRevisionCreateTime(), - getParentForChildren(), - isClean()); + revisionCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRevisionCreateTime(), getParentForChildren(), isClean()); revisionCreateTime_ = null; } return revisionCreateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2321,10 +2637,13 @@ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2336,20 +2655,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2365,6 +2685,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2376,17 +2698,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2398,23 +2722,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 8;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000080);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2425,23 +2751,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 8;
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000080;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2452,17 +2777,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 8;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000080;
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels associated with this workflow.
      * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -2473,16 +2801,16 @@ public Builder putLabels(
      *
      * map<string, string> labels = 8;
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000080;
       return this;
     }
 
     private java.lang.Object serviceAccount_ = "";
     /**
+     *
+     *
      * 
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2499,13 +2827,13 @@ public Builder putAllLabels(
      * 
* * string service_account = 9; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2514,6 +2842,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2530,15 +2860,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2546,6 +2875,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2562,18 +2893,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 9; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccount_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2590,6 +2925,7 @@ public Builder setServiceAccount(
      * 
* * string service_account = 9; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -2599,6 +2935,8 @@ public Builder clearServiceAccount() { return this; } /** + * + * *
      * Name of the service account associated with the latest workflow version.
      * This service account represents the identity of the workflow and determines
@@ -2615,12 +2953,14 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 9; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000100; @@ -2629,11 +2969,14 @@ public Builder setServiceAccountBytes( } /** + * + * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; + * * @return Whether the sourceContents field is set. */ @java.lang.Override @@ -2641,11 +2984,14 @@ public boolean hasSourceContents() { return sourceCodeCase_ == 10; } /** + * + * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; + * * @return The sourceContents. */ @java.lang.Override @@ -2655,8 +3001,7 @@ public java.lang.String getSourceContents() { ref = sourceCode_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (sourceCodeCase_ == 10) { sourceCode_ = s; @@ -2667,24 +3012,25 @@ public java.lang.String getSourceContents() { } } /** + * + * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; + * * @return The bytes for sourceContents. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceContentsBytes() { + public com.google.protobuf.ByteString getSourceContentsBytes() { java.lang.Object ref = ""; if (sourceCodeCase_ == 10) { ref = sourceCode_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (sourceCodeCase_ == 10) { sourceCode_ = b; } @@ -2694,28 +3040,35 @@ public java.lang.String getSourceContents() { } } /** + * + * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; + * * @param value The sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceCodeCase_ = 10; sourceCode_ = value; onChanged(); return this; } /** + * + * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; + * * @return This builder for chaining. */ public Builder clearSourceContents() { @@ -2727,26 +3080,30 @@ public Builder clearSourceContents() { return this; } /** + * + * *
      * Workflow code to be executed. The size limit is 32KB.
      * 
* * string source_contents = 10; + * * @param value The bytes for sourceContents to set. * @return This builder for chaining. */ - public Builder setSourceContentsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceCodeCase_ = 10; sourceCode_ = 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); } @@ -2756,12 +3113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workflows.v1beta.Workflow) } // @@protoc_insertion_point(class_scope:google.cloud.workflows.v1beta.Workflow) private static final com.google.cloud.workflows.v1beta.Workflow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workflows.v1beta.Workflow(); } @@ -2770,27 +3127,27 @@ public static com.google.cloud.workflows.v1beta.Workflow getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workflow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2805,6 +3162,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workflows.v1beta.Workflow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java similarity index 100% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowName.java diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java similarity index 78% rename from owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java rename to java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java index ce47962f1a29..9e16e08a562a 100644 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowOrBuilder.java @@ -1,76 +1,114 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workflows/v1beta/workflows.proto package com.google.cloud.workflows.v1beta; -public interface WorkflowOrBuilder extends +public interface WorkflowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.Workflow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the workflow.
    * Format: projects/{project}/locations/{location}/workflows/{workflow}
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Description of the workflow provided by the user.
    * Must be at most 1000 unicode characters long.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the workflow deployment.
    * 
* - * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workflows.v1beta.Workflow.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workflows.v1beta.Workflow.State getState(); /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -83,10 +121,13 @@ public interface WorkflowOrBuilder extends
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revisionId. */ java.lang.String getRevisionId(); /** + * + * *
    * Output only. The revision of the workflow.
    * A new revision of a workflow is created as a result of updating the
@@ -99,96 +140,134 @@ public interface WorkflowOrBuilder extends
    * 
* * string revision_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revisionId. */ - com.google.protobuf.ByteString - getRevisionIdBytes(); + com.google.protobuf.ByteString getRevisionIdBytes(); /** + * + * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp of when the workflow was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the workflow.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the revisionCreateTime field is set. */ boolean hasRevisionCreateTime(); /** + * + * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The revisionCreateTime. */ com.google.protobuf.Timestamp getRevisionCreateTime(); /** + * + * *
    * Output only. The timestamp that the latest revision of the workflow
    * was created.
    * 
* - * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp revision_create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder(); /** + * + * *
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -201,6 +280,8 @@ public interface WorkflowOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -211,15 +292,13 @@ public interface WorkflowOrBuilder extends
    *
    * map<string, string> labels = 8;
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -230,9 +309,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 8;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -244,11 +324,13 @@ boolean containsLabels(
    * map<string, string> labels = 8;
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels associated with this workflow.
    * Labels can contain at most 64 entries. Keys and values can be no longer
@@ -259,10 +341,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 8;
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -279,10 +362,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 9; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * Name of the service account associated with the latest workflow version.
    * This service account represents the identity of the workflow and determines
@@ -299,39 +385,47 @@ java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 9; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; + * * @return Whether the sourceContents field is set. */ boolean hasSourceContents(); /** + * + * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; + * * @return The sourceContents. */ java.lang.String getSourceContents(); /** + * + * *
    * Workflow code to be executed. The size limit is 32KB.
    * 
* * string source_contents = 10; + * * @return The bytes for sourceContents. */ - com.google.protobuf.ByteString - getSourceContentsBytes(); + com.google.protobuf.ByteString getSourceContentsBytes(); com.google.cloud.workflows.v1beta.Workflow.SourceCodeCase getSourceCodeCase(); } diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java new file mode 100644 index 000000000000..45359e998b36 --- /dev/null +++ b/java-workflows/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java @@ -0,0 +1,271 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workflows/v1beta/workflows.proto + +package com.google.cloud.workflows.v1beta; + +public final class WorkflowsProto { + private WorkflowsProto() {} + + 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_workflows_v1beta_Workflow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workflows_v1beta_OperationMetadata_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/workflows/v1beta/workflow" + + "s.proto\022\035google.cloud.workflows.v1beta\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/client.proto\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032#googl" + + "e/longrunning/operations.proto\032 google/p" + + "rotobuf/field_mask.proto\032\037google/protobu" + + "f/timestamp.proto\"\203\005\n\010Workflow\022\014\n\004name\030\001" + + " \001(\t\022\023\n\013description\030\002 \001(\t\022B\n\005state\030\003 \001(\016" + + "2-.google.cloud.workflows.v1beta.Workflo" + + "w.StateB\004\342A\001\003\022\031\n\013revision_id\030\004 \001(\tB\004\342A\001\003" + + "\0225\n\013create_time\030\005 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003\022>\n\024revisi" + + "on_create_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\022C\n\006labels\030\010 \003(\01323.google." + + "cloud.workflows.v1beta.Workflow.LabelsEn" + + "try\022\027\n\017service_account\030\t \001(\t\022\031\n\017source_c" + + "ontents\030\n \001(\tH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"*\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001:d\352Aa\n!workflo" + + "ws.googleapis.com/Workflow\022 + * Service for interacting with Cloud Workstations. + *
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.workstations.v1.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster> + getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster> + getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster> + getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = + getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationCluster + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = + getListWorkstationClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = + getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = + getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = + getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig> + getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig> + getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig> + getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = + getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.WorkstationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = + getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = + getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = + getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = + getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = + getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation> + getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation> + getGetWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation> + getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = + getGetWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GetWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.Workstation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse> + getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse> + getListWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse> + getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = + getListWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = + getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = + getCreateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.CreateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = + getUpdateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.UpdateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = + getDeleteWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.DeleteWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = + getStartWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StartWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StopWorkstationRequest, com.google.longrunning.Operation> + getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StopWorkstationRequest, com.google.longrunning.Operation> + getStopWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = + getStopWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.StopWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) + == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = + getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WorkstationsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + default void listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public abstract static class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public void listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.Workstation getWorkstation( + com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations( + com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation( + com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation( + com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation( + com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation( + com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation( + com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.WorkstationCluster> + getWorkstationCluster( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse> + listWorkstationClusters( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationCluster( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationCluster( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationCluster( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.WorkstationConfig> + getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse> + listWorkstationConfigs( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationConfig( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationConfig( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationConfig( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.Workstation> + getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListWorkstationsResponse> + listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse> + listUsableWorkstations( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1.GenerateAccessTokenResponse> + generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster( + (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters( + (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationClustersResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster( + (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster( + (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster( + (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig( + (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs( + (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs( + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig( + (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig( + (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig( + (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation( + (com.google.cloud.workstations.v1.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations( + (com.google.cloud.workstations.v1.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListWorkstationsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations( + (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation( + (com.google.cloud.workstations.v1.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation( + (com.google.cloud.workstations.v1.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation( + (com.google.cloud.workstations.v1.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation( + (com.google.cloud.workstations.v1.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation( + (com.google.cloud.workstations.v1.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken( + (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1.GenerateAccessTokenResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GetWorkstationRequest, + com.google.cloud.workstations.v1.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListWorkstationsRequest, + com.google.cloud.workstations.v1.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.CreateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.UpdateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.DeleteWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StartWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.StopWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private abstract static class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java new file mode 100644 index 000000000000..39395b3fdfa0 --- /dev/null +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java @@ -0,0 +1,2700 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.workstations.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for interacting with Cloud Workstations.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/workstations/v1beta/workstations.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class WorkstationsGrpc { + + private WorkstationsGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.workstations.v1beta.Workstations"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster> + getGetWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster> + getGetWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster> + getGetWorkstationClusterMethod; + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getGetWorkstationClusterMethod = + getGetWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationCluster + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) + .build(); + } + } + } + return getGetWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + getListWorkstationClustersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + getListWorkstationClustersMethod; + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) + == null) { + WorkstationsGrpc.getListWorkstationClustersMethod = + getListWorkstationClustersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) + .build(); + } + } + } + return getListWorkstationClustersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation> + getCreateWorkstationClusterMethod; + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationClusterMethod = + getCreateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) + .build(); + } + } + } + return getCreateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation> + getUpdateWorkstationClusterMethod; + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationClusterMethod = + getUpdateWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) + .build(); + } + } + } + return getUpdateWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation> + getDeleteWorkstationClusterMethod; + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationClusterMethod = + getDeleteWorkstationClusterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) + .build(); + } + } + } + return getDeleteWorkstationClusterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig> + getGetWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig> + getGetWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig> + getGetWorkstationConfigMethod; + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getGetWorkstationConfigMethod = + getGetWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.WorkstationConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) + .build(); + } + } + } + return getGetWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + getListWorkstationConfigsMethod; + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListWorkstationConfigsMethod = + getListWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) + .build(); + } + } + } + return getListWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + responseType = + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + getListUsableWorkstationConfigsMethod; + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationConfigsMethod = + WorkstationsGrpc.getListUsableWorkstationConfigsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationConfigsMethod = + getListUsableWorkstationConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta + .ListUsableWorkstationConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta + .ListUsableWorkstationConfigsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) + .build(); + } + } + } + return getListUsableWorkstationConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation> + getCreateWorkstationConfigMethod; + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getCreateWorkstationConfigMethod = + getCreateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) + .build(); + } + } + } + return getCreateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation> + getUpdateWorkstationConfigMethod; + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getUpdateWorkstationConfigMethod = + getUpdateWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) + .build(); + } + } + } + return getUpdateWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation> + getDeleteWorkstationConfigMethod; + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) + == null) { + WorkstationsGrpc.getDeleteWorkstationConfigMethod = + getDeleteWorkstationConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) + .build(); + } + } + } + return getDeleteWorkstationConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation> + getGetWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", + requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + responseType = com.google.cloud.workstations.v1beta.Workstation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation> + getGetWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation> + getGetWorkstationMethod; + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { + WorkstationsGrpc.getGetWorkstationMethod = + getGetWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GetWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.Workstation + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GetWorkstation")) + .build(); + } + } + } + return getGetWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + getListWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + getListWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + getListWorkstationsMethod; + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { + WorkstationsGrpc.getListWorkstationsMethod = + getListWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListWorkstations")) + .build(); + } + } + } + return getListWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", + requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + getListUsableWorkstationsMethod; + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + synchronized (WorkstationsGrpc.class) { + if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) + == null) { + WorkstationsGrpc.getListUsableWorkstationsMethod = + getListUsableWorkstationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) + .build(); + } + } + } + return getListUsableWorkstationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", + requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation> + getCreateWorkstationMethod; + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { + WorkstationsGrpc.getCreateWorkstationMethod = + getCreateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) + .build(); + } + } + } + return getCreateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", + requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation> + getUpdateWorkstationMethod; + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { + WorkstationsGrpc.getUpdateWorkstationMethod = + getUpdateWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) + .build(); + } + } + } + return getUpdateWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", + requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation> + getDeleteWorkstationMethod; + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { + WorkstationsGrpc.getDeleteWorkstationMethod = + getDeleteWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) + .build(); + } + } + } + return getDeleteWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", + requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation> + getStartWorkstationMethod; + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { + WorkstationsGrpc.getStartWorkstationMethod = + getStartWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StartWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StartWorkstation")) + .build(); + } + } + } + return getStartWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", + requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation> + getStopWorkstationMethod; + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { + WorkstationsGrpc.getStopWorkstationMethod = + getStopWorkstationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.StopWorkstationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("StopWorkstation")) + .build(); + } + } + } + return getStopWorkstationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", + requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + getGenerateAccessTokenMethod; + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { + synchronized (WorkstationsGrpc.class) { + if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) + == null) { + WorkstationsGrpc.getGenerateAccessTokenMethod = + getGenerateAccessTokenMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) + .build(); + } + } + } + return getGenerateAccessTokenMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static WorkstationsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + }; + return WorkstationsStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static WorkstationsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + }; + return WorkstationsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static WorkstationsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public WorkstationsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + }; + return WorkstationsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + default void getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + default void listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationClustersMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + default void createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + default void updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + default void deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationClusterMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + default void getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + default void listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + default void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationConfigsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + default void createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + default void updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + default void deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + default void getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + default void listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + default void listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUsableWorkstationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + default void createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + default void updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + default void deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + default void startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + default void stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopWorkstationMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + default void generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateAccessTokenMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public abstract static class WorkstationsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return WorkstationsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsStub + extends io.grpc.stub.AbstractAsyncStub { + private WorkstationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public void getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public void listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public void createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public void updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public void deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public void getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public void listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public void listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public void createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public void updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public void deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public void getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public void listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public void listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public void createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public void updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public void deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public void startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public void stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public void generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private WorkstationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.Workstation getWorkstation( + com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.longrunning.Operation createWorkstation( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.longrunning.Operation updateWorkstation( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.longrunning.Operation deleteWorkstation( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.longrunning.Operation startWorkstation( + com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.longrunning.Operation stopWorkstation( + com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopWorkstationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. + * + *
+   * Service for interacting with Cloud Workstations.
+   * 
+ */ + public static final class WorkstationsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private WorkstationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected WorkstationsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new WorkstationsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns the requested workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.WorkstationCluster> + getWorkstationCluster( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation clusters in the specified location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse> + listWorkstationClusters( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationCluster( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationCluster( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationCluster( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.WorkstationConfig> + getWorkstationConfig( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse> + listWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstation configurations in the specified cluster on which
+     * the caller has the "workstations.workstation.create" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse> + listUsableWorkstationConfigs( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstationConfig( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstationConfig( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstationConfig( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the requested workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.Workstation> + getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all Workstations using the specified workstation configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListWorkstationsResponse> + listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all workstations using the specified workstation configuration
+     * on which the caller has the "workstations.workstations.use" permission.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse> + listUsableWorkstations( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts running a workstation so that users can connect to it.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops running a workstation, reducing costs.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a short-lived credential that can be used to send authenticated and
+     * authorized traffic to a workstation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse> + generateAccessToken( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; + private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; + private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; + private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; + private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; + private static final int METHODID_GET_WORKSTATION_CONFIG = 5; + private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; + private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; + private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; + private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; + private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; + private static final int METHODID_GET_WORKSTATION = 11; + private static final int METHODID_LIST_WORKSTATIONS = 12; + private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; + private static final int METHODID_CREATE_WORKSTATION = 14; + private static final int METHODID_UPDATE_WORKSTATION = 15; + private static final int METHODID_DELETE_WORKSTATION = 16; + private static final int METHODID_START_WORKSTATION = 17; + private static final int METHODID_STOP_WORKSTATION = 18; + private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: + serviceImpl.getWorkstationCluster( + (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CLUSTERS: + serviceImpl.listWorkstationClusters( + (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CLUSTER: + serviceImpl.createWorkstationCluster( + (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CLUSTER: + serviceImpl.updateWorkstationCluster( + (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CLUSTER: + serviceImpl.deleteWorkstationCluster( + (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION_CONFIG: + serviceImpl.getWorkstationConfig( + (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATION_CONFIGS: + serviceImpl.listWorkstationConfigs( + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: + serviceImpl.listUsableWorkstationConfigs( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION_CONFIG: + serviceImpl.createWorkstationConfig( + (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION_CONFIG: + serviceImpl.updateWorkstationConfig( + (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION_CONFIG: + serviceImpl.deleteWorkstationConfig( + (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WORKSTATION: + serviceImpl.getWorkstation( + (com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_WORKSTATIONS: + serviceImpl.listWorkstations( + (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListWorkstationsResponse>) + responseObserver); + break; + case METHODID_LIST_USABLE_WORKSTATIONS: + serviceImpl.listUsableWorkstations( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>) + responseObserver); + break; + case METHODID_CREATE_WORKSTATION: + serviceImpl.createWorkstation( + (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_WORKSTATION: + serviceImpl.updateWorkstation( + (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSTATION: + serviceImpl.deleteWorkstation( + (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_WORKSTATION: + serviceImpl.startWorkstation( + (com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_WORKSTATION: + serviceImpl.stopWorkstation( + (com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_ACCESS_TOKEN: + serviceImpl.generateAccessToken( + (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, + com.google.cloud.workstations.v1beta.WorkstationCluster>( + service, METHODID_GET_WORKSTATION_CLUSTER))) + .addMethod( + getListWorkstationClustersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( + service, METHODID_LIST_WORKSTATION_CLUSTERS))) + .addMethod( + getCreateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSTATION_CLUSTER))) + .addMethod( + getUpdateWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_WORKSTATION_CLUSTER))) + .addMethod( + getDeleteWorkstationClusterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_WORKSTATION_CLUSTER))) + .addMethod( + getGetWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, + com.google.cloud.workstations.v1beta.WorkstationConfig>( + service, METHODID_GET_WORKSTATION_CONFIG))) + .addMethod( + getListWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( + service, METHODID_LIST_WORKSTATION_CONFIGS))) + .addMethod( + getListUsableWorkstationConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( + service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) + .addMethod( + getCreateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION_CONFIG))) + .addMethod( + getUpdateWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION_CONFIG))) + .addMethod( + getDeleteWorkstationConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION_CONFIG))) + .addMethod( + getGetWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GetWorkstationRequest, + com.google.cloud.workstations.v1beta.Workstation>( + service, METHODID_GET_WORKSTATION))) + .addMethod( + getListWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( + service, METHODID_LIST_WORKSTATIONS))) + .addMethod( + getListUsableWorkstationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( + service, METHODID_LIST_USABLE_WORKSTATIONS))) + .addMethod( + getCreateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.CreateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_WORKSTATION))) + .addMethod( + getUpdateWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_WORKSTATION))) + .addMethod( + getDeleteWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_WORKSTATION))) + .addMethod( + getStartWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StartWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_START_WORKSTATION))) + .addMethod( + getStopWorkstationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.StopWorkstationRequest, + com.google.longrunning.Operation>(service, METHODID_STOP_WORKSTATION))) + .addMethod( + getGenerateAccessTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( + service, METHODID_GENERATE_ACCESS_TOKEN))) + .build(); + } + + private abstract static class WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + WorkstationsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Workstations"); + } + } + + private static final class WorkstationsFileDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier { + WorkstationsFileDescriptorSupplier() {} + } + + private static final class WorkstationsMethodDescriptorSupplier + extends WorkstationsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) + .addMethod(getGetWorkstationClusterMethod()) + .addMethod(getListWorkstationClustersMethod()) + .addMethod(getCreateWorkstationClusterMethod()) + .addMethod(getUpdateWorkstationClusterMethod()) + .addMethod(getDeleteWorkstationClusterMethod()) + .addMethod(getGetWorkstationConfigMethod()) + .addMethod(getListWorkstationConfigsMethod()) + .addMethod(getListUsableWorkstationConfigsMethod()) + .addMethod(getCreateWorkstationConfigMethod()) + .addMethod(getUpdateWorkstationConfigMethod()) + .addMethod(getDeleteWorkstationConfigMethod()) + .addMethod(getGetWorkstationMethod()) + .addMethod(getListWorkstationsMethod()) + .addMethod(getListUsableWorkstationsMethod()) + .addMethod(getCreateWorkstationMethod()) + .addMethod(getUpdateWorkstationMethod()) + .addMethod(getDeleteWorkstationMethod()) + .addMethod(getStartWorkstationMethod()) + .addMethod(getStopWorkstationMethod()) + .addMethod(getGenerateAccessTokenMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java index 19ec0f3f0404..2a614abc84ef 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for creating a CreateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} */ -public final class CreateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationClusterRequest) CreateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationClusterRequest.newBuilder() to construct. - private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationClusterRequest() { parent_ = ""; workstationClusterId_ = ""; @@ -26,33 +45,40 @@ private CreateWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +87,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. Parent resource name.
    * 
* - * 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 { @@ -92,14 +120,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationClusterId_ = ""; /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getWorkstationClusterId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -141,11 +173,16 @@ public java.lang.String getWorkstationClusterId() { public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -153,38 +190,55 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -193,6 +247,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +259,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_); } @@ -234,12 +288,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); } if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationCluster()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,24 +301,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.workstations.v1.CreateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationClusterId() - .equals(other.getWorkstationClusterId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationClusterId().equals(other.getWorkstationClusterId())) return false; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,139 +336,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstationCluster().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest 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.workstations.v1.CreateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest 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; } /** + * + * *
    * Message for creating a CreateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationClusterRequest} */ - 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.workstations.v1.CreateWorkstationClusterRequest) com.google.cloud.workstations.v1.CreateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,13 +489,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance(); } @@ -457,13 +511,17 @@ public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -472,9 +530,10 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClu result.workstationClusterId_ = workstationClusterId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -485,46 +544,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationClu 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.workstations.v1.CreateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.CreateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -567,34 +630,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationClusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,22 +671,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -628,20 +700,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -649,28 +724,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -680,17 +766,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -700,18 +792,20 @@ public Builder setParentBytes( private java.lang.Object workstationClusterId_ = ""; /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ public java.lang.String getWorkstationClusterId() { java.lang.Object ref = workstationClusterId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; @@ -720,20 +814,21 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -741,28 +836,35 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationClusterId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationClusterId() { @@ -772,17 +874,21 @@ public Builder clearWorkstationClusterId() { return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationClusterId_ = value; bitField0_ |= 0x00000002; @@ -792,41 +898,61 @@ public Builder setWorkstationClusterIdBytes( private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -840,11 +966,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -858,17 +988,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -881,11 +1017,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.Workstat return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000004); @@ -898,61 +1038,82 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -960,12 +1121,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -977,12 +1141,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -991,9 +1158,9 @@ public Builder clearValidateOnly() { 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); } @@ -1003,41 +1170,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.CreateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,9 +1218,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java index 1d9dbdb665c2..ff29214ed206 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationClusterRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationClusterRequestOrBuilder extends +public interface CreateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ java.lang.String getWorkstationClusterId(); /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - com.google.protobuf.ByteString - getWorkstationClusterIdBytes(); + com.google.protobuf.ByteString getWorkstationClusterIdBytes(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java index 4bf2e023f380..c8f48b71855b 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for creating a CreateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} */ -public final class CreateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationConfigRequest) CreateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationConfigRequest.newBuilder() to construct. - private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationConfigRequest() { parent_ = ""; workstationConfigId_ = ""; @@ -26,33 +45,40 @@ private CreateWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +87,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. Parent resource name.
    * 
* - * 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 { @@ -92,14 +120,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationConfigId_ = ""; /** + * + * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getWorkstationConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -141,11 +173,16 @@ public java.lang.String getWorkstationConfigId() { public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -153,38 +190,55 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -193,6 +247,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +259,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_); } @@ -234,12 +288,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); } if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,24 +301,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.workstations.v1.CreateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationConfigId() - .equals(other.getWorkstationConfigId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationConfigId().equals(other.getWorkstationConfigId())) return false; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,139 +336,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstationConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest 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.workstations.v1.CreateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest 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; } /** + * + * *
    * Message for creating a CreateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationConfigRequest} */ - 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.workstations.v1.CreateWorkstationConfigRequest) com.google.cloud.workstations.v1.CreateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,13 +489,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance(); } @@ -457,13 +511,17 @@ public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -472,9 +530,10 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationCon result.workstationConfigId_ = workstationConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -485,46 +544,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationCon 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.workstations.v1.CreateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.CreateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -567,34 +630,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,22 +671,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -628,20 +700,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -649,28 +724,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -680,17 +766,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -700,18 +792,20 @@ public Builder setParentBytes( private java.lang.Object workstationConfigId_ = ""; /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ public java.lang.String getWorkstationConfigId() { java.lang.Object ref = workstationConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; @@ -720,20 +814,21 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -741,28 +836,35 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationConfigId() { @@ -772,17 +874,21 @@ public Builder clearWorkstationConfigId() { return this; } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationConfigId_ = value; bitField0_ |= 0x00000002; @@ -792,39 +898,58 @@ public Builder setWorkstationConfigIdBytes( private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { @@ -840,11 +965,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.Workstation return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -858,17 +987,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -881,11 +1016,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.Workstati return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -898,61 +1037,82 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -960,12 +1120,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -977,12 +1140,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -991,9 +1157,9 @@ public Builder clearValidateOnly() { 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); } @@ -1003,41 +1169,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.CreateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,9 +1217,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.CreateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java index 4ebd4cb0bbd7..35bd57b14bb9 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationConfigRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationConfigRequestOrBuilder extends +public interface CreateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ java.lang.String getWorkstationConfigId(); /** + * + * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - com.google.protobuf.ByteString - getWorkstationConfigIdBytes(); + com.google.protobuf.ByteString getWorkstationConfigIdBytes(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java index e55b12408051..aa9a085b4c07 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for creating a CreateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} */ -public final class CreateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.CreateWorkstationRequest) CreateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationRequest.newBuilder() to construct. private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationRequest() { parent_ = ""; workstationId_ = ""; @@ -26,33 +44,40 @@ private CreateWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -92,14 +119,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationId_ = ""; /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ @java.lang.Override @@ -108,29 +139,29 @@ public java.lang.String getWorkstationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -141,11 +172,16 @@ public java.lang.String getWorkstationId() { public static final int WORKSTATION_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1.Workstation workstation_; /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -153,38 +189,54 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -193,6 +245,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +257,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_); } @@ -234,12 +286,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); } if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstation()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,24 +299,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.workstations.v1.CreateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.CreateWorkstationRequest other = (com.google.cloud.workstations.v1.CreateWorkstationRequest) obj; + com.google.cloud.workstations.v1.CreateWorkstationRequest other = + (com.google.cloud.workstations.v1.CreateWorkstationRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationId() - .equals(other.getWorkstationId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationId().equals(other.getWorkstationId())) return false; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,139 +334,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstation().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.CreateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest 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.workstations.v1.CreateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.CreateWorkstationRequest 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; } /** + * + * *
    * Message for creating a CreateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.CreateWorkstationRequest} */ - 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.workstations.v1.CreateWorkstationRequest) com.google.cloud.workstations.v1.CreateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.CreateWorkstationRequest.class, com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1.CreateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.CreateWorkstationRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; } @java.lang.Override @@ -457,8 +508,11 @@ public com.google.cloud.workstations.v1.CreateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.CreateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.CreateWorkstationRequest result = new com.google.cloud.workstations.v1.CreateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.CreateWorkstationRequest result = + new com.google.cloud.workstations.v1.CreateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -472,9 +526,8 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationReq result.workstationId_ = workstationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -485,38 +538,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.CreateWorkstationReq 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.workstations.v1.CreateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.CreateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -524,7 +578,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.CreateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -567,34 +622,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,22 +662,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -628,20 +691,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -649,28 +715,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -680,17 +757,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -700,18 +783,20 @@ public Builder setParentBytes( private java.lang.Object workstationId_ = ""; /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ public java.lang.String getWorkstationId() { java.lang.Object ref = workstationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; @@ -720,20 +805,21 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -741,28 +827,35 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationId() { @@ -772,17 +865,21 @@ public Builder clearWorkstationId() { return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationId_ = value; bitField0_ |= 0x00000002; @@ -792,39 +889,58 @@ public Builder setWorkstationIdBytes( private com.google.cloud.workstations.v1.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { @@ -840,11 +956,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { @@ -858,17 +978,21 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstation_ != null + && workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -881,11 +1005,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation val return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -898,11 +1026,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000004; @@ -910,49 +1042,64 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilde return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -960,12 +1107,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -977,12 +1127,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -991,9 +1144,9 @@ public Builder clearValidateOnly() { 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); } @@ -1003,12 +1156,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.CreateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.CreateWorkstationRequest) private static final com.google.cloud.workstations.v1.CreateWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.CreateWorkstationRequest(); } @@ -1017,27 +1170,27 @@ public static com.google.cloud.workstations.v1.CreateWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,6 +1205,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.CreateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java index 9790e3a3f1d1..477a40e448fb 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/CreateWorkstationRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface CreateWorkstationRequestOrBuilder extends +public interface CreateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.CreateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ java.lang.String getWorkstationId(); /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - com.google.protobuf.ByteString - getWorkstationIdBytes(); + com.google.protobuf.ByteString getWorkstationIdBytes(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java index e042865e14c7..acd774c4ce43 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for deleting a workstation cluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} */ -public final class DeleteWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) DeleteWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationClusterRequest.newBuilder() to construct. - private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationClusterRequest() { name_ = ""; etag_ = ""; @@ -26,33 +45,40 @@ private DeleteWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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 @@ -61,29 +87,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. Name of the workstation cluster to delete.
    * 
* - * 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 { @@ -94,12 +122,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +139,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +160,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -159,6 +194,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -166,6 +203,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -174,6 +212,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +224,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_); } @@ -212,15 +250,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,21 +266,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.workstations.v1.DeleteWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,144 +292,147 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest 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.workstations.v1.DeleteWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest 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; } /** + * + * *
    * Message for deleting a workstation cluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationClusterRequest} */ - 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.workstations.v1.DeleteWorkstationClusterRequest) com.google.cloud.workstations.v1.DeleteWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,13 +445,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance(); } @@ -430,13 +467,17 @@ public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -456,46 +497,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationClu 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.workstations.v1.DeleteWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -538,32 +583,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,22 +623,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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; @@ -597,20 +652,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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 { @@ -618,28 +676,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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() { @@ -649,17 +718,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -667,14 +742,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -682,12 +760,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -699,12 +780,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -716,19 +800,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -737,21 +823,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -759,30 +846,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -792,18 +886,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -811,8 +909,10 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -820,6 +920,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -827,6 +928,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -834,6 +937,7 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ @@ -845,6 +949,8 @@ public Builder setForce(boolean value) { return this; } /** + * + * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -852,6 +958,7 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -860,9 +967,9 @@ public Builder clearForce() { 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); } @@ -872,41 +979,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,9 +1027,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java index 5022d126ebf1..58b14e245933 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationClusterRequestOrBuilder.java @@ -1,66 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationClusterRequestOrBuilder extends +public interface DeleteWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -68,6 +103,7 @@ public interface DeleteWorkstationClusterRequestOrBuilder extends
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java index 3f49f213c613..13b0c9567591 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Message for deleting a workstation configuration.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} */ -public final class DeleteWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) DeleteWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationConfigRequest.newBuilder() to construct. - private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationConfigRequest() { name_ = ""; etag_ = ""; @@ -26,33 +45,40 @@ private DeleteWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * 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 @@ -61,29 +87,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. Name of the workstation configuration to delete.
    * 
* - * 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 { @@ -94,12 +122,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +139,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +160,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -159,6 +194,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -166,6 +203,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -174,6 +212,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +224,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_); } @@ -212,15 +250,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,21 +266,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.workstations.v1.DeleteWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,144 +292,147 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest 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.workstations.v1.DeleteWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest 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; } /** + * + * *
    * Message for deleting a workstation configuration.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationConfigRequest} */ - 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.workstations.v1.DeleteWorkstationConfigRequest) com.google.cloud.workstations.v1.DeleteWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,13 +445,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance(); } @@ -430,13 +467,17 @@ public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -456,46 +497,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationCon 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.workstations.v1.DeleteWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -538,32 +583,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,22 +623,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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; @@ -597,20 +652,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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 { @@ -618,28 +676,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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() { @@ -649,17 +718,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -667,14 +742,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -682,12 +760,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -699,12 +780,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -716,19 +800,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -737,21 +823,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -759,30 +846,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -792,18 +886,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -811,8 +909,10 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -820,6 +920,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -827,6 +928,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -834,6 +937,7 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ @@ -845,6 +949,8 @@ public Builder setForce(boolean value) { return this; } /** + * + * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -852,6 +958,7 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -860,9 +967,9 @@ public Builder clearForce() { 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); } @@ -872,41 +979,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,9 +1027,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java index 062216b81199..25c45d84e96e 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationConfigRequestOrBuilder.java @@ -1,66 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationConfigRequestOrBuilder extends +public interface DeleteWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -68,6 +103,7 @@ public interface DeleteWorkstationConfigRequestOrBuilder extends
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java index 237ae69cf4e7..77f4a5789a86 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for DeleteWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} */ -public final class DeleteWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.DeleteWorkstationRequest) DeleteWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationRequest.newBuilder() to construct. private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,40 @@ private DeleteWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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 @@ -61,29 +86,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. Name of the workstation to delete.
    * 
* - * 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 { @@ -94,12 +121,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +138,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +159,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -157,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,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_); } @@ -192,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -206,19 +239,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.workstations.v1.DeleteWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1.DeleteWorkstationRequest) obj; + com.google.cloud.workstations.v1.DeleteWorkstationRequest other = + (com.google.cloud.workstations.v1.DeleteWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,8 +264,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -243,131 +273,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.DeleteWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest 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.workstations.v1.DeleteWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.DeleteWorkstationRequest 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 message for DeleteWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.DeleteWorkstationRequest} */ - 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.workstations.v1.DeleteWorkstationRequest) com.google.cloud.workstations.v1.DeleteWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1.DeleteWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.DeleteWorkstationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; } @java.lang.Override @@ -400,8 +435,11 @@ public com.google.cloud.workstations.v1.DeleteWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.DeleteWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.DeleteWorkstationRequest result = + new com.google.cloud.workstations.v1.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -423,38 +461,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.DeleteWorkstationReq 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.workstations.v1.DeleteWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.DeleteWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -462,7 +501,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.DeleteWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -502,27 +542,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,22 +576,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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; @@ -556,20 +605,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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 { @@ -577,28 +629,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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() { @@ -608,17 +671,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -626,14 +695,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -641,12 +713,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -658,12 +733,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -675,19 +753,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -696,21 +776,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -718,30 +799,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -751,27 +839,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.DeleteWorkstationRequest) private static final com.google.cloud.workstations.v1.DeleteWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.DeleteWorkstationRequest(); } @@ -795,27 +887,27 @@ public static com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.DeleteWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java index c17e8ff9fb92..4986c6a20462 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/DeleteWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface DeleteWorkstationRequestOrBuilder extends +public interface DeleteWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.DeleteWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java similarity index 70% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java index aa97a59e196b..eacc458f4a38 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequest.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} */ -public final class GenerateAccessTokenRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenRequest) GenerateAccessTokenRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenRequest.newBuilder() to construct. private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenRequest() { workstation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); } private int expirationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object expiration_; + public enum ExpirationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(2), TTL(3), EXPIRATION_NOT_SET(0); private final int value; + private ExpirationCase(int value) { this.value = value; } @@ -68,25 +91,30 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 2: return EXPIRE_TIME; - case 3: return TTL; - case 0: return EXPIRATION_NOT_SET; - default: return null; + case 2: + return EXPIRE_TIME; + case 3: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public static final int EXPIRE_TIME_FIELD_NUMBER = 2; /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -95,6 +123,7 @@ public int getNumber() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -102,6 +131,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -110,16 +141,19 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 2) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -132,13 +166,15 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 2) {
-       return (com.google.protobuf.Timestamp) expiration_;
+      return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -146,6 +182,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -153,6 +190,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -160,16 +199,19 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 3) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -181,21 +223,27 @@ public com.google.protobuf.Duration getTtl() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
     if (expirationCase_ == 3) {
-       return (com.google.protobuf.Duration) expiration_;
+      return (com.google.protobuf.Duration) expiration_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   public static final int WORKSTATION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object workstation_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ @java.lang.Override @@ -204,30 +252,32 @@ public java.lang.String getWorkstation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; } } /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -236,6 +286,7 @@ public java.lang.String getWorkstation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,8 +298,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(workstation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_); } @@ -271,12 +321,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_); } if (expirationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.Duration) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) expiration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -286,24 +338,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.workstations.v1.GenerateAccessTokenRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) obj; + com.google.cloud.workstations.v1.GenerateAccessTokenRequest other = + (com.google.cloud.workstations.v1.GenerateAccessTokenRequest) obj; - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 2: - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; break; case 3: - if (!getTtl() - .equals(other.getTtl())) return false; + if (!getTtl().equals(other.getTtl())) return false; break; case 0: default: @@ -339,131 +389,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest 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.workstations.v1.GenerateAccessTokenRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenRequest} */ - 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.workstations.v1.GenerateAccessTokenRequest) com.google.cloud.workstations.v1.GenerateAccessTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1.GenerateAccessTokenRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; } @java.lang.Override @@ -502,8 +557,11 @@ public com.google.cloud.workstations.v1.GenerateAccessTokenRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GenerateAccessTokenRequest buildPartial() { - com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GenerateAccessTokenRequest result = + new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -516,15 +574,14 @@ private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenR } } - private void buildPartialOneofs(com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1.GenerateAccessTokenRequest result) { result.expirationCase_ = expirationCase_; result.expiration_ = this.expiration_; - if (expirationCase_ == 2 && - expireTimeBuilder_ != null) { + if (expirationCase_ == 2 && expireTimeBuilder_ != null) { result.expiration_ = expireTimeBuilder_.build(); } - if (expirationCase_ == 3 && - ttlBuilder_ != null) { + if (expirationCase_ == 3 && ttlBuilder_ != null) { result.expiration_ = ttlBuilder_.build(); } } @@ -533,38 +590,39 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1.GenerateAccessT 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.workstations.v1.GenerateAccessTokenRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenRequest) other); } else { super.mergeFrom(other); return this; @@ -572,24 +630,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenRequest other) { - if (other == com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance()) + return this; if (!other.getWorkstation().isEmpty()) { workstation_ = other.workstation_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: { - break; - } + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -617,31 +679,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - workstation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getTtlFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -651,12 +713,12 @@ public Builder mergeFrom( } // finally return this; } + private int expirationCase_ = 0; private java.lang.Object expiration_; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public Builder clearExpiration() { @@ -669,8 +731,13 @@ public Builder clearExpiration() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -679,6 +746,7 @@ public Builder clearExpiration() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -686,6 +754,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -694,6 +764,7 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -711,6 +782,8 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -734,6 +807,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -743,8 +818,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -755,6 +829,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -766,10 +842,12 @@ public Builder setExpireTime(
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 2 &&
-            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 2
+            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -785,6 +863,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -811,6 +891,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -824,6 +906,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -845,6 +929,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -855,17 +941,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     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>
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 2)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_,
-                getParentForChildren(),
-                isClean());
+        expireTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 2;
@@ -874,8 +963,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        ttlBuilder_;
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -883,6 +977,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -890,6 +985,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -897,6 +994,7 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override @@ -914,6 +1012,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -936,6 +1036,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -944,8 +1046,7 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 3;
      */
-    public Builder setTtl(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -956,6 +1057,8 @@ public Builder setTtl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -966,10 +1069,12 @@ public Builder setTtl(
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (expirationCase_ == 3 &&
-            expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 3
+            && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -985,6 +1090,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1010,6 +1117,8 @@ public Builder clearTtl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1022,6 +1131,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1042,6 +1153,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1051,17 +1164,20 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
         if (!(expirationCase_ == 3)) {
           expiration_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) expiration_,
-                getParentForChildren(),
-                isClean());
+        ttlBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 3;
@@ -1071,19 +1187,23 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
 
     private java.lang.Object workstation_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ public java.lang.String getWorkstation() { java.lang.Object ref = workstation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; @@ -1092,21 +1212,24 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -1114,30 +1237,41 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The workstation to set. * @return This builder for chaining. */ - public Builder setWorkstation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstation_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWorkstation() { @@ -1147,27 +1281,33 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for workstation to set. * @return This builder for chaining. */ - public Builder setWorkstationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstation_ = value; bitField0_ |= 0x00000004; 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); } @@ -1177,12 +1317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenRequest) private static final com.google.cloud.workstations.v1.GenerateAccessTokenRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenRequest(); } @@ -1191,27 +1331,27 @@ public static com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1226,6 +1366,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.workstations.v1.GenerateAccessTokenRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java index 8f6b38778b6b..0dfc57c77b87 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface GenerateAccessTokenRequestOrBuilder extends +public interface GenerateAccessTokenRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -16,10 +34,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -28,10 +49,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -44,6 +68,8 @@ public interface GenerateAccessTokenRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -51,10 +77,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -62,10 +91,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -77,26 +109,35 @@ public interface GenerateAccessTokenRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ java.lang.String getWorkstation(); /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - com.google.protobuf.ByteString - getWorkstationBytes(); + com.google.protobuf.ByteString getWorkstationBytes(); com.google.cloud.workstations.v1.GenerateAccessTokenRequest.ExpirationCase getExpirationCase(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java index c5d46fc07268..0840fc42c59e 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponse.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} */ -public final class GenerateAccessTokenResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GenerateAccessTokenResponse) GenerateAccessTokenResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenResponse.newBuilder() to construct. private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object accessToken_ = ""; /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -55,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * string access_token = 1; + * * @return The accessToken. */ @java.lang.Override @@ -63,14 +86,15 @@ public java.lang.String getAccessToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; } } /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -79,16 +103,15 @@ public java.lang.String getAccessToken() {
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -99,11 +122,14 @@ public java.lang.String getAccessToken() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -111,11 +137,14 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -123,6 +152,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Time at which the generated token will expire.
    * 
@@ -135,6 +166,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +178,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(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -167,8 +198,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +208,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.workstations.v1.GenerateAccessTokenResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1.GenerateAccessTokenResponse) obj; + com.google.cloud.workstations.v1.GenerateAccessTokenResponse other = + (com.google.cloud.workstations.v1.GenerateAccessTokenResponse) obj; - if (!getAccessToken() - .equals(other.getAccessToken())) return false; + if (!getAccessToken().equals(other.getAccessToken())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,131 +244,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse 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.workstations.v1.GenerateAccessTokenResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GenerateAccessTokenResponse} */ - 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.workstations.v1.GenerateAccessTokenResponse) com.google.cloud.workstations.v1.GenerateAccessTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1.GenerateAccessTokenResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.GenerateAccessTokenResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,13 +388,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GenerateAccessTokenResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance(); } @@ -375,21 +410,23 @@ public com.google.cloud.workstations.v1.GenerateAccessTokenResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.GenerateAccessTokenResponse buildPartial() { - com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GenerateAccessTokenResponse result = + new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.GenerateAccessTokenResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accessToken_ = accessToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } } @@ -397,38 +434,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GenerateAccessTokenR 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.workstations.v1.GenerateAccessTokenResponse) { - return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.GenerateAccessTokenResponse) other); } else { super.mergeFrom(other); return this; @@ -436,7 +474,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GenerateAccessTokenResponse other) { - if (other == com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance()) + return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; bitField0_ |= 0x00000001; @@ -471,24 +511,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - accessToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -498,10 +539,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object accessToken_ = ""; /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -510,13 +554,13 @@ public Builder mergeFrom(
      * 
* * string access_token = 1; + * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; @@ -525,6 +569,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -533,15 +579,14 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -549,6 +594,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -557,18 +604,22 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accessToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -577,6 +628,7 @@ public Builder setAccessToken(
      * 
* * string access_token = 1; + * * @return This builder for chaining. */ public Builder clearAccessToken() { @@ -586,6 +638,8 @@ public Builder clearAccessToken() { return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -594,12 +648,14 @@ public Builder clearAccessToken() {
      * 
* * string access_token = 1; + * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accessToken_ = value; bitField0_ |= 0x00000001; @@ -609,34 +665,47 @@ public Builder setAccessTokenBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -657,14 +726,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -675,6 +745,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -683,9 +755,9 @@ public Builder setExpireTime( */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -698,6 +770,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -715,6 +789,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -727,6 +803,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -737,11 +815,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -749,21 +830,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_time = 2; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } + @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); } @@ -773,12 +857,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GenerateAccessTokenResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GenerateAccessTokenResponse) - private static final com.google.cloud.workstations.v1.GenerateAccessTokenResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.GenerateAccessTokenResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GenerateAccessTokenResponse(); } @@ -787,27 +872,27 @@ public static com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,6 +907,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.workstations.v1.GenerateAccessTokenResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java index 981ec55c5cf2..36a22f58c3e1 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GenerateAccessTokenResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface GenerateAccessTokenResponseOrBuilder extends +public interface GenerateAccessTokenResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GenerateAccessTokenResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -16,10 +34,13 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The accessToken. */ java.lang.String getAccessToken(); /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -28,30 +49,38 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString - getAccessTokenBytes(); + com.google.protobuf.ByteString getAccessTokenBytes(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java index 6d7cb204ec0d..cb3d1e15416a 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GetWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} */ -public final class GetWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationClusterRequest) GetWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationClusterRequest.newBuilder() to construct. private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationClusterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -60,29 +85,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. Name of the requested resource.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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.workstations.v1.GetWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.GetWorkstationClusterRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest 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.workstations.v1.GetWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest 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 message for GetWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationClusterRequest} */ - 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.workstations.v1.GetWorkstationClusterRequest) com.google.cloud.workstations.v1.GetWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.GetWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationClusterRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,13 +321,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GetWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance(); } @@ -310,13 +343,17 @@ public com.google.cloud.workstations.v1.GetWorkstationClusterRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GetWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.GetWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -327,38 +364,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationCluste 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.workstations.v1.GetWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +404,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +438,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +460,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -442,20 +489,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -463,28 +513,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -494,26 +555,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -523,12 +590,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.GetWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.GetWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationClusterRequest(); } @@ -537,27 +605,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationClusterRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +640,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.workstations.v1.GetWorkstationClusterRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..a3513ae072d0 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java index 32651e977e52..a67c482bf8cc 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GetWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} */ -public final class GetWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationConfigRequest) GetWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationConfigRequest.newBuilder() to construct. private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -60,29 +85,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. Name of the requested resource.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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.workstations.v1.GetWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.GetWorkstationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest 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.workstations.v1.GetWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest 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 message for GetWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationConfigRequest} */ - 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.workstations.v1.GetWorkstationConfigRequest) com.google.cloud.workstations.v1.GetWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.GetWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,13 +321,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.GetWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance(); } @@ -310,13 +343,17 @@ public com.google.cloud.workstations.v1.GetWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GetWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.GetWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -327,38 +364,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationConfig 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.workstations.v1.GetWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +404,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +438,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +460,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -442,20 +489,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -463,28 +513,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -494,26 +555,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -523,12 +590,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.GetWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.GetWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationConfigRequest(); } @@ -537,27 +605,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +640,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.workstations.v1.GetWorkstationConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..f64b89cccdd0 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java index eb8e03a55b2f..326aa9708e83 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for GetWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} */ -public final class GetWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.GetWorkstationRequest) GetWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationRequest.newBuilder() to construct. private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationRequest.class, + com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -60,29 +85,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. Name of the requested resource.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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.workstations.v1.GetWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.GetWorkstationRequest other = (com.google.cloud.workstations.v1.GetWorkstationRequest) obj; + com.google.cloud.workstations.v1.GetWorkstationRequest other = + (com.google.cloud.workstations.v1.GetWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.GetWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest 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.workstations.v1.GetWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.GetWorkstationRequest 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 message for GetWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.GetWorkstationRequest} */ - 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.workstations.v1.GetWorkstationRequest) com.google.cloud.workstations.v1.GetWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.GetWorkstationRequest.class, com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.GetWorkstationRequest.class, + com.google.cloud.workstations.v1.GetWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.GetWorkstationRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; } @java.lang.Override @@ -310,8 +342,11 @@ public com.google.cloud.workstations.v1.GetWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.GetWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.GetWorkstationRequest result = new com.google.cloud.workstations.v1.GetWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.GetWorkstationRequest result = + new com.google.cloud.workstations.v1.GetWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +362,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.GetWorkstationReques 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.workstations.v1.GetWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.GetWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +402,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.GetWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -442,20 +486,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -463,28 +510,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -494,26 +552,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -523,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.GetWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.GetWorkstationRequest) private static final com.google.cloud.workstations.v1.GetWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.GetWorkstationRequest(); } @@ -537,27 +601,27 @@ public static com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.GetWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..cd247916dc8b --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public interface GetWorkstationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java index 993fb0c79e83..9549d02a5d1d 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequest.java @@ -1,24 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} */ -public final class ListUsableWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) ListUsableWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. - private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +46,40 @@ private ListUsableWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +88,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +123,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +139,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +160,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +192,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +204,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_); } @@ -191,8 +227,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +240,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.workstations.v1.ListUsableWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +274,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest + 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.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest 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.workstations.v1.ListUsableWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest} */ - 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.workstations.v1.ListUsableWorkstationConfigsRequest) com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +417,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + .getDefaultInstance(); } @java.lang.Override @@ -398,13 +440,17 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest buil @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,46 +467,51 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio 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.workstations.v1.ListUsableWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest other) { + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +551,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +585,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +614,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +638,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +680,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +704,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +721,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +740,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +759,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +782,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +805,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +845,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +879,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +927,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java index 6c72875a9192..09685e4d0219 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationConfigsRequestOrBuilder extends +public interface ListUsableWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java index 647dbcf1f902..98e0a7cf598a 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponse.java @@ -1,55 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} */ -public final class ListUsableWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) ListUsableWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. - private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
@@ -57,10 +80,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -68,11 +94,13 @@ public java.util.List getWor * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -84,6 +112,8 @@ public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
@@ -95,6 +125,8 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
@@ -108,15 +140,19 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +161,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 { @@ -157,38 +193,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +241,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,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 { for (int i = 0; i < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -242,8 +289,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +311,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.workstations.v1.ListUsableWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +349,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse + 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.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse 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.workstations.v1.ListUsableWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse} */ - 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.workstations.v1.ListUsableWorkstationConfigsResponse) com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,20 +493,21 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -468,14 +521,18 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse bui @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -487,7 +544,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsa } } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +560,51 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio 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.workstations.v1.ListUsableWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + .getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -560,9 +623,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationC workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -609,36 +673,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,28 +716,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -677,11 +756,14 @@ public java.util.List getWor } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -691,11 +773,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -705,11 +790,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -726,11 +814,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -744,11 +835,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { @@ -764,11 +858,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -785,11 +882,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -803,11 +903,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -821,18 +924,20 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -840,11 +945,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -857,11 +965,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -874,39 +985,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -914,45 +1035,62 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -964,19 +1102,21 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstation 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; @@ -985,21 +1125,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 { @@ -1007,30 +1148,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1188,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1213,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1221,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1265,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1303,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1325,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1384,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1396,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1444,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java index edba880d6698..343defcdca12 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationConfigsResponseOrBuilder extends +public interface ListUsableWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List - getWorkstationConfigsList(); + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
@@ -25,6 +44,8 @@ public interface ListUsableWorkstationConfigsResponseOrBuilder extends */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
@@ -33,15 +54,19 @@ public interface ListUsableWorkstationConfigsResponseOrBuilder extends */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
@@ -52,65 +77,80 @@ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfig 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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java similarity index 64% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java index 6dc344027dc1..53f3a63d0696 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} */ -public final class ListUsableWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsRequest) ListUsableWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsRequest.newBuilder() to construct. private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,40 @@ private ListUsableWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +121,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +137,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +158,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +190,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +202,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_); } @@ -191,8 +225,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +238,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.workstations.v1.ListUsableWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other = + (com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +272,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest 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.workstations.v1.ListUsableWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsRequest} */ - 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.workstations.v1.ListUsableWorkstationsRequest) com.google.cloud.workstations.v1.ListUsableWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,13 +413,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance(); } @@ -398,13 +435,17 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result = + new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,38 +462,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio 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.workstations.v1.ListUsableWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) other); } else { super.mergeFrom(other); return this; @@ -460,7 +502,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +578,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +607,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +631,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +673,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +697,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +714,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +733,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +752,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +775,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +798,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +838,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +872,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsRequest) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsRequest(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +920,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java index 08013e36d027..40dd9fe367bf 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationsRequestOrBuilder extends +public interface ListUsableWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java similarity index 70% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java index 6da899b1d4fe..e62334e7a6af 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponse.java @@ -1,55 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} */ -public final class ListUsableWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListUsableWorkstationsResponse) ListUsableWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsResponse.newBuilder() to construct. - private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -61,6 +83,8 @@ public java.util.List getWorkstati return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -68,11 +92,13 @@ public java.util.List getWorkstati * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -84,6 +110,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -95,6 +123,8 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -102,21 +132,24 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index) { return workstations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +158,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 { @@ -157,38 +190,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +238,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +266,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -242,8 +286,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +307,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.workstations.v1.ListUsableWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) obj; + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other = + (com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +345,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse 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.workstations.v1.ListUsableWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListUsableWorkstationsResponse} */ - 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.workstations.v1.ListUsableWorkstationsResponse) com.google.cloud.workstations.v1.ListUsableWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,19 +487,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance(); } @@ -468,14 +514,18 @@ public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(this); + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result = + new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -487,7 +537,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListUsa } } - private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +553,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListUsableWorkstatio 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.workstations.v1.ListUsableWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListUsableWorkstationsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListUsableWorkstationsResponse other) { + if (other + == com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance()) + return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -560,9 +615,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListUsableWorkstations workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -609,36 +665,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,21 +707,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -677,6 +744,8 @@ public java.util.List getWorkstati } } /** + * + * *
      * The requested workstations.
      * 
@@ -691,6 +760,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -705,14 +776,15 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder setWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -726,6 +798,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -744,6 +818,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -764,14 +840,15 @@ public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation valu return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder addWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -785,6 +862,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -803,6 +882,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -821,6 +902,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -831,8 +914,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -840,6 +922,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -857,6 +941,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -874,17 +960,20 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( - int index) { + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder(int index) { return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -894,19 +983,22 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuild public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -914,6 +1006,8 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu } } /** + * + * *
      * The requested workstations.
      * 
@@ -921,42 +1015,48 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( - int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder(int index) { + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -964,19 +1064,21 @@ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuild 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; @@ -985,21 +1087,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 { @@ -1007,30 +1110,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1150,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1175,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1183,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1227,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1265,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1287,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1346,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1358,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListUsableWorkstationsResponse) - private static final com.google.cloud.workstations.v1.ListUsableWorkstationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListUsableWorkstationsResponse(); } - public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1406,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java index cd01e585b84e..571b94ec213d 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListUsableWorkstationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListUsableWorkstationsResponseOrBuilder extends +public interface ListUsableWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListUsableWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java index 08725290ac7e..717db770ed21 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} */ -public final class ListWorkstationClustersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersRequest) ListWorkstationClustersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersRequest.newBuilder() to construct. - private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +45,40 @@ private ListWorkstationClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +87,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +122,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +138,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +159,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +191,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +203,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_); } @@ -191,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +239,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.workstations.v1.ListWorkstationClustersRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationClustersRequest other = + (com.google.cloud.workstations.v1.ListWorkstationClustersRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +273,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest 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.workstations.v1.ListWorkstationClustersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersRequest} */ - 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.workstations.v1.ListWorkstationClustersRequest) com.google.cloud.workstations.v1.ListWorkstationClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1.ListWorkstationClustersRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,13 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance(); } @@ -398,13 +436,17 @@ public com.google.cloud.workstations.v1.ListWorkstationClustersRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationClustersRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListWorkstationClustersRequest result = + new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,46 +463,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClust 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.workstations.v1.ListWorkstationClustersRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersRequest other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListWorkstationClustersRequest other) { + if (other + == com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +546,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +580,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +609,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +633,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +675,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +699,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +716,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +735,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +754,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +777,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +800,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +840,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +874,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersRequest) - private static final com.google.cloud.workstations.v1.ListWorkstationClustersRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationClustersRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersRequest(); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationClustersRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +922,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java index e7210f22b7eb..bd71a096bdc7 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationClustersRequestOrBuilder extends +public interface ListWorkstationClustersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java index 45e513c64c67..96b9adf4f8e5 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponse.java @@ -1,122 +1,162 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} */ -public final class ListWorkstationClustersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationClustersResponse) ListWorkstationClustersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersResponse.newBuilder() to construct. - private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersResponse() { workstationClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); } public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstationClusters_; /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationClustersOrBuilderList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public int getWorkstationClustersCount() { return workstationClusters_.size(); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { return workstationClusters_.get(index); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { return workstationClusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +165,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 { @@ -157,38 +197,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +245,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +273,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 < workstationClusters_.size(); i++) { output.writeMessage(1, workstationClusters_.get(i)); } @@ -242,8 +293,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationClusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationClusters_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationClusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +315,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.workstations.v1.ListWorkstationClustersResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1.ListWorkstationClustersResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationClustersResponse other = + (com.google.cloud.workstations.v1.ListWorkstationClustersResponse) obj; - if (!getWorkstationClustersList() - .equals(other.getWorkstationClustersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationClustersList().equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +353,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse 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.workstations.v1.ListWorkstationClustersResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationClustersResponse} */ - 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.workstations.v1.ListWorkstationClustersResponse) com.google.cloud.workstations.v1.ListWorkstationClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1.ListWorkstationClustersResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationClustersResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,19 +495,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance(); } @@ -468,14 +522,18 @@ public com.google.cloud.workstations.v1.ListWorkstationClustersResponse build() @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationClustersResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(this); + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result = + new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { if (workstationClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); @@ -487,7 +545,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWor } } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +561,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationClust 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.workstations.v1.ListWorkstationClustersResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationClustersResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationClustersResponse other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListWorkstationClustersResponse other) { + if (other + == com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance()) + return this; if (workstationClustersBuilder_ == null) { if (!other.workstationClusters_.isEmpty()) { if (workstationClusters_.isEmpty()) { @@ -560,9 +623,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationCluster workstationClustersBuilder_ = null; workstationClusters_ = other.workstationClusters_; bitField0_ = (bitField0_ & ~0x00000001); - workstationClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationClustersFieldBuilder() : null; + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationClustersFieldBuilder() + : null; } else { workstationClustersBuilder_.addAllMessages(other.workstationClusters_); } @@ -609,36 +673,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.WorkstationCluster m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationCluster.parser(), - extensionRegistry); - if (workstationClustersBuilder_ == null) { - ensureWorkstationClustersIsMutable(); - workstationClusters_.add(m); - } else { - workstationClustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,28 +716,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationClusters_ = - java.util.Collections.emptyList(); + private java.util.List + workstationClusters_ = java.util.Collections.emptyList(); + private void ensureWorkstationClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationClusters_ = new java.util.ArrayList(workstationClusters_); + workstationClusters_ = + new java.util.ArrayList( + workstationClusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClustersBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + workstationClustersBuilder_; /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { if (workstationClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationClusters_); } else { @@ -677,11 +756,14 @@ public java.util.List getWo } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public int getWorkstationClustersCount() { if (workstationClustersBuilder_ == null) { @@ -691,11 +773,14 @@ public int getWorkstationClustersCount() { } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -705,11 +790,14 @@ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster value) { @@ -726,11 +814,14 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -744,13 +835,17 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public Builder addWorkstationClusters(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder addWorkstationClusters( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -764,11 +859,14 @@ public Builder addWorkstationClusters(com.google.cloud.workstations.v1.Workstati return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster value) { @@ -785,11 +883,14 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -803,11 +904,14 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -821,18 +925,20 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder addAllWorkstationClusters( java.lang.Iterable values) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationClusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationClusters_); onChanged(); } else { workstationClustersBuilder_.addAllMessages(values); @@ -840,11 +946,14 @@ public Builder addAllWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder clearWorkstationClusters() { if (workstationClustersBuilder_ == null) { @@ -857,11 +966,14 @@ public Builder clearWorkstationClusters() { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ public Builder removeWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -874,39 +986,49 @@ public Builder removeWorkstationClusters(int index) { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClustersBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + getWorkstationClustersBuilder(int index) { return getWorkstationClustersFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { if (workstationClustersBuilder_ == null) { - return workstationClusters_.get(index); } else { + return workstationClusters_.get(index); + } else { return workstationClustersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersOrBuilderList() { + public java.util.List + getWorkstationClustersOrBuilderList() { if (workstationClustersBuilder_ != null) { return workstationClustersBuilder_.getMessageOrBuilderList(); } else { @@ -914,45 +1036,62 @@ public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstati } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder() { - return getWorkstationClustersFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstationClustersBuilder( - int index) { - return getWorkstationClustersFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + addWorkstationClustersBuilder(int index) { + return getWorkstationClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersBuilderList() { + public java.util.List + getWorkstationClustersBuilderList() { return getWorkstationClustersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClustersFieldBuilder() { if (workstationClustersBuilder_ == null) { - workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + workstationClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( workstationClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -964,19 +1103,21 @@ public com.google.cloud.workstations.v1.WorkstationCluster.Builder addWorkstatio 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; @@ -985,21 +1126,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 { @@ -1007,30 +1149,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1189,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1214,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1222,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1266,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1304,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1326,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1385,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1397,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationClustersResponse) - private static final com.google.cloud.workstations.v1.ListWorkstationClustersResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationClustersResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationClustersResponse(); } - public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationClustersResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1445,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationClustersResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java index 532e1a47c5b1..ed0722da132f 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationClustersResponseOrBuilder.java @@ -1,116 +1,161 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationClustersResponseOrBuilder extends +public interface ListWorkstationClustersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationClustersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List - getWorkstationClustersList(); + java.util.List getWorkstationClustersList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationClusters(int index); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ int getWorkstationClustersCount(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List + java.util.List getWorkstationClustersOrBuilderList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( 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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java similarity index 64% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java index e7b416aed8a7..f320e3f00f80 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} */ -public final class ListWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsRequest) ListWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsRequest.newBuilder() to construct. private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,40 @@ private ListWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +121,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +137,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +158,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +190,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +202,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_); } @@ -191,8 +225,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +238,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.workstations.v1.ListWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +272,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest 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.workstations.v1.ListWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsRequest} */ - 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.workstations.v1.ListWorkstationConfigsRequest) com.google.cloud.workstations.v1.ListWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,13 +413,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance(); } @@ -398,13 +435,17 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,38 +462,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfi 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.workstations.v1.ListWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; @@ -460,7 +502,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +578,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +607,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +631,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +673,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +697,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +714,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +733,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +752,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +775,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +798,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +838,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +872,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1.ListWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +920,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java index c03e8992cb56..b34b74f46cf5 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationConfigsRequestOrBuilder extends +public interface ListWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java similarity index 69% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java index 9b15badd2a50..58250a4a0502 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponse.java @@ -1,55 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} */ -public final class ListWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationConfigsResponse) ListWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsResponse.newBuilder() to construct. - private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
@@ -57,10 +79,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -68,11 +93,13 @@ public java.util.List getWor * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
@@ -84,6 +111,8 @@ public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
@@ -95,6 +124,8 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
@@ -108,15 +139,19 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +160,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 { @@ -157,38 +192,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +240,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +268,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -242,8 +288,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +310,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.workstations.v1.ListWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +348,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse 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.workstations.v1.ListWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationConfigsResponse} */ - 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.workstations.v1.ListWorkstationConfigsResponse) com.google.cloud.workstations.v1.ListWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,19 +490,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance(); } @@ -468,14 +517,18 @@ public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -487,7 +540,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWor } } - private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +556,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationConfi 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.workstations.v1.ListWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.ListWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance()) + return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -560,9 +618,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationConfigs workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -609,36 +668,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,28 +711,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -677,11 +751,14 @@ public java.util.List getWor } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -691,11 +768,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -705,11 +785,14 @@ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs( } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -726,11 +809,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -744,11 +830,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { @@ -764,11 +853,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig value) { @@ -785,11 +877,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -803,11 +898,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -821,18 +919,20 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( java.lang.Iterable values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -840,11 +940,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -857,11 +960,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -874,39 +980,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigsBuilder( int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -914,45 +1030,62 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstationConfigsBuilder( int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -964,19 +1097,21 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Builder addWorkstation 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; @@ -985,21 +1120,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 { @@ -1007,30 +1143,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1183,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1208,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1216,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1260,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1298,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1320,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1379,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1391,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1.ListWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1439,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java index 2aebefd737b5..f740012db441 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationConfigsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationConfigsResponseOrBuilder extends +public interface ListWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List - getWorkstationConfigsList(); + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkstationConfigsResponseOrBuilder extends */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
@@ -33,15 +54,19 @@ public interface ListWorkstationConfigsResponseOrBuilder extends */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* * repeated .google.cloud.workstations.v1.WorkstationConfig workstation_configs = 1; */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
@@ -52,65 +77,80 @@ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfig 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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java index 68a2561bffa4..0bdfb788638e 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} */ -public final class ListWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsRequest) ListWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsRequest.newBuilder() to construct. private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,40 @@ private ListWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +121,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +137,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +158,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +190,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +202,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_); } @@ -191,8 +225,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +238,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.workstations.v1.ListWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationsRequest other = (com.google.cloud.workstations.v1.ListWorkstationsRequest) obj; + com.google.cloud.workstations.v1.ListWorkstationsRequest other = + (com.google.cloud.workstations.v1.ListWorkstationsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +272,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest 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.workstations.v1.ListWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationsRequest 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsRequest} */ - 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.workstations.v1.ListWorkstationsRequest) com.google.cloud.workstations.v1.ListWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsRequest.class, com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1.ListWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; } @java.lang.Override @@ -398,8 +434,11 @@ public com.google.cloud.workstations.v1.ListWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationsRequest result = new com.google.cloud.workstations.v1.ListWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.ListWorkstationsRequest result = + new com.google.cloud.workstations.v1.ListWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -421,38 +460,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsRequ 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.workstations.v1.ListWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsRequest) other); } else { super.mergeFrom(other); return this; @@ -460,7 +500,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +541,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +575,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +604,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +628,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +670,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +694,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +711,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +730,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +749,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +772,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +795,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +835,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,12 +869,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsRequest) private static final com.google.cloud.workstations.v1.ListWorkstationsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsRequest(); } @@ -790,27 +883,27 @@ public static com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -825,6 +918,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.ListWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java index 99fdb26bcb97..9538b641ce8a 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationsRequestOrBuilder extends +public interface ListWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java similarity index 72% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java index d9466cba32a0..42c5d28c0e2b 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponse.java @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Response message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} */ -public final class ListWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.ListWorkstationsResponse) ListWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsResponse.newBuilder() to construct. private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -61,6 +82,8 @@ public java.util.List getWorkstati return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -68,11 +91,13 @@ public java.util.List getWorkstati * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -84,6 +109,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -95,6 +122,8 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -102,21 +131,24 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index) { return workstations_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,30 +157,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; } } /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -157,38 +189,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +237,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -242,8 +285,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +306,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.workstations.v1.ListWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1.ListWorkstationsResponse other = (com.google.cloud.workstations.v1.ListWorkstationsResponse) obj; + com.google.cloud.workstations.v1.ListWorkstationsResponse other = + (com.google.cloud.workstations.v1.ListWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +344,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.ListWorkstationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse 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.workstations.v1.ListWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.ListWorkstationsResponse 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.ListWorkstationsResponse} */ - 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.workstations.v1.ListWorkstationsResponse) com.google.cloud.workstations.v1.ListWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.ListWorkstationsResponse.class, com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1.ListWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1.ListWorkstationsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,15 +486,14 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; } @java.lang.Override @@ -468,14 +512,18 @@ public com.google.cloud.workstations.v1.ListWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1.ListWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1.ListWorkstationsResponse result = new com.google.cloud.workstations.v1.ListWorkstationsResponse(this); + com.google.cloud.workstations.v1.ListWorkstationsResponse result = + new com.google.cloud.workstations.v1.ListWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.ListWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1.ListWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -502,38 +550,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.ListWorkstationsResp 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.workstations.v1.ListWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1.ListWorkstationsResponse) other); } else { super.mergeFrom(other); return this; @@ -541,7 +590,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance()) + return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -560,9 +610,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.ListWorkstationsRespon workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -609,36 +660,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1.Workstation.parser(), extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,21 +702,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList(workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -677,6 +739,8 @@ public java.util.List getWorkstati } } /** + * + * *
      * The requested workstations.
      * 
@@ -691,6 +755,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -705,14 +771,15 @@ public com.google.cloud.workstations.v1.Workstation getWorkstations(int index) { } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder setWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder setWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -726,6 +793,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -744,6 +813,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -764,14 +835,15 @@ public Builder addWorkstations(com.google.cloud.workstations.v1.Workstation valu return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public Builder addWorkstations( - int index, com.google.cloud.workstations.v1.Workstation value) { + public Builder addWorkstations(int index, com.google.cloud.workstations.v1.Workstation value) { if (workstationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -785,6 +857,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -803,6 +877,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -821,6 +897,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -831,8 +909,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -840,6 +917,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -857,6 +936,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -874,17 +955,20 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder( - int index) { + public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuilder(int index) { return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -894,19 +978,22 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationsBuild public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -914,6 +1001,8 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu } } /** + * + * *
      * The requested workstations.
      * 
@@ -921,42 +1010,48 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBu * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder( - int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); + public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuilder(int index) { + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -964,19 +1059,21 @@ public com.google.cloud.workstations.v1.Workstation.Builder addWorkstationsBuild private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -985,21 +1082,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1007,30 +1105,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1040,18 +1145,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1170,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1178,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1222,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1260,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1282,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1341,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,12 +1353,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.ListWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.ListWorkstationsResponse) private static final com.google.cloud.workstations.v1.ListWorkstationsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.ListWorkstationsResponse(); } @@ -1231,27 +1367,27 @@ public static com.google.cloud.workstations.v1.ListWorkstationsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1266,6 +1402,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.ListWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java index 55bf12dadd38..9f7560126ae8 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/ListWorkstationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface ListWorkstationsResponseOrBuilder extends +public interface ListWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.ListWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1.Workstation workstations = 1; */ - com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationsOrBuilder(int index); /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/LocationName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java index 7ce390ca879c..083bed938f22 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Metadata for long-running operations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,32 +46,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1.OperationMetadata.class, + com.google.cloud.workstations.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -61,11 +84,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -73,11 +100,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -87,11 +117,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -99,11 +133,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -111,11 +149,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -123,14 +164,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -139,29 +184,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -170,14 +215,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -186,29 +235,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -217,14 +266,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -233,29 +286,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -266,12 +319,15 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -280,14 +336,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -296,29 +356,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -327,6 +387,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,8 +399,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -371,12 +431,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -388,8 +446,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -402,33 +459,27 @@ 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.workstations.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workstations.v1.OperationMetadata other = (com.google.cloud.workstations.v1.OperationMetadata) obj; + com.google.cloud.workstations.v1.OperationMetadata other = + (com.google.cloud.workstations.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -455,8 +506,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -465,131 +515,135 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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.workstations.v1.OperationMetadata 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; } /** + * + * *
    * Metadata for long-running operations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.OperationMetadata} */ - 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.workstations.v1.OperationMetadata) com.google.cloud.workstations.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.OperationMetadata.class, com.google.cloud.workstations.v1.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1.OperationMetadata.class, + com.google.cloud.workstations.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workstations.v1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -613,9 +667,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -634,8 +688,11 @@ public com.google.cloud.workstations.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.workstations.v1.OperationMetadata buildPartial() { - com.google.cloud.workstations.v1.OperationMetadata result = new com.google.cloud.workstations.v1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.OperationMetadata result = + new com.google.cloud.workstations.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -643,14 +700,10 @@ public com.google.cloud.workstations.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workstations.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -673,38 +726,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.OperationMetadata re 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.workstations.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.workstations.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.workstations.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -712,7 +766,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.OperationMetadata other) { - if (other == com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -768,51 +823,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -822,43 +881,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -874,14 +953,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -892,17 +974,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -915,11 +1001,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -932,11 +1022,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -944,36 +1038,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -981,24 +1087,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1009,11 +1126,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1029,14 +1149,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1047,17 +1169,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1070,11 +1195,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1087,11 +1215,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1099,36 +1230,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -1136,18 +1275,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1156,20 +1297,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1177,28 +1319,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1208,17 +1357,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1228,18 +1381,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1248,20 +1403,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1269,28 +1425,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1300,17 +1463,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1320,18 +1487,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1340,20 +1509,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1361,28 +1531,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1392,17 +1569,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1410,14 +1591,17 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1425,12 +1609,15 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1442,12 +1629,15 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1459,18 +1649,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1479,20 +1671,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1500,28 +1693,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1531,26 +1731,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; 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); } @@ -1560,12 +1764,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.OperationMetadata) private static final com.google.cloud.workstations.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.OperationMetadata(); } @@ -1574,27 +1778,27 @@ public static com.google.cloud.workstations.v1.OperationMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1609,6 +1813,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java index ecae7415ff41..94a6ace985cb 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/OperationMetadataOrBuilder.java @@ -1,154 +1,215 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java index cec1fba104a3..33635450c80a 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for StartWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} */ -public final class StartWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StartWorkstationRequest) StartWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartWorkstationRequest.newBuilder() to construct. private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,40 @@ private StartWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StartWorkstationRequest.class, + com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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 @@ -61,29 +86,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. Name of the workstation to start.
    * 
* - * 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 { @@ -94,12 +121,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +138,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +159,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -157,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,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_); } @@ -192,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -206,19 +239,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.workstations.v1.StartWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.StartWorkstationRequest other = (com.google.cloud.workstations.v1.StartWorkstationRequest) obj; + com.google.cloud.workstations.v1.StartWorkstationRequest other = + (com.google.cloud.workstations.v1.StartWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,8 +264,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -243,131 +273,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.StartWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest 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.workstations.v1.StartWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.StartWorkstationRequest 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 message for StartWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.StartWorkstationRequest} */ - 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.workstations.v1.StartWorkstationRequest) com.google.cloud.workstations.v1.StartWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StartWorkstationRequest.class, com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StartWorkstationRequest.class, + com.google.cloud.workstations.v1.StartWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.StartWorkstationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; } @java.lang.Override @@ -400,8 +435,11 @@ public com.google.cloud.workstations.v1.StartWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.StartWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.StartWorkstationRequest result = new com.google.cloud.workstations.v1.StartWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.StartWorkstationRequest result = + new com.google.cloud.workstations.v1.StartWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -423,38 +461,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.StartWorkstationRequ 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.workstations.v1.StartWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.StartWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.StartWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -462,7 +501,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.StartWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -502,27 +542,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,22 +576,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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; @@ -556,20 +605,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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 { @@ -577,28 +629,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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() { @@ -608,17 +671,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -626,14 +695,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -641,12 +713,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -658,12 +733,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -675,19 +753,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -696,21 +776,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -718,30 +799,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -751,27 +839,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StartWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StartWorkstationRequest) private static final com.google.cloud.workstations.v1.StartWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StartWorkstationRequest(); } @@ -795,27 +887,27 @@ public static com.google.cloud.workstations.v1.StartWorkstationRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.StartWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java index b7d4829fb285..98f2435641c8 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StartWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface StartWorkstationRequestOrBuilder extends +public interface StartWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StartWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java index 21d44860f100..ac9f09ca50ce 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for StopWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} */ -public final class StopWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.StopWorkstationRequest) StopWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopWorkstationRequest.newBuilder() to construct. private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,40 @@ private StopWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StopWorkstationRequest.class, + com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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 @@ -61,29 +86,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. Name of the workstation to stop.
    * 
* - * 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 { @@ -94,12 +121,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +138,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +159,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -157,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,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_); } @@ -192,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -206,19 +239,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.workstations.v1.StopWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.StopWorkstationRequest other = (com.google.cloud.workstations.v1.StopWorkstationRequest) obj; + com.google.cloud.workstations.v1.StopWorkstationRequest other = + (com.google.cloud.workstations.v1.StopWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,8 +264,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -243,131 +273,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.StopWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest 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.workstations.v1.StopWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.StopWorkstationRequest 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 message for StopWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.StopWorkstationRequest} */ - 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.workstations.v1.StopWorkstationRequest) com.google.cloud.workstations.v1.StopWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.StopWorkstationRequest.class, com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.StopWorkstationRequest.class, + com.google.cloud.workstations.v1.StopWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.StopWorkstationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; } @java.lang.Override @@ -400,8 +435,11 @@ public com.google.cloud.workstations.v1.StopWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.StopWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.StopWorkstationRequest result = new com.google.cloud.workstations.v1.StopWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.StopWorkstationRequest result = + new com.google.cloud.workstations.v1.StopWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -423,38 +461,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.StopWorkstationReque 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.workstations.v1.StopWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.StopWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.StopWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -462,7 +501,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.StopWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -502,27 +542,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,22 +576,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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; @@ -556,20 +605,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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 { @@ -577,28 +629,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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() { @@ -608,17 +671,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -626,14 +695,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -641,12 +713,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -658,12 +733,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -675,19 +753,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -696,21 +776,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -718,30 +799,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -751,27 +839,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.StopWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.StopWorkstationRequest) private static final com.google.cloud.workstations.v1.StopWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.StopWorkstationRequest(); } @@ -795,27 +887,27 @@ public static com.google.cloud.workstations.v1.StopWorkstationRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.StopWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java index da6f3cd86dab..6ebe1072ce07 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/StopWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface StopWorkstationRequestOrBuilder extends +public interface StopWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.StopWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java index 816fd64929ae..20378f5641e3 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequest.java @@ -1,55 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for UpdateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} */ -public final class UpdateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) UpdateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationClusterRequest.newBuilder() to construct. - private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationClusterRequest() { - } + + private UpdateWorkstationClusterRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); } public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -57,38 +81,56 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +138,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +155,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,12 +173,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -140,6 +192,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -147,6 +201,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -155,6 +210,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +222,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 (workstationCluster_ != null) { output.writeMessage(1, getWorkstationCluster()); } @@ -190,20 +245,16 @@ public int getSerializedSize() { size = 0; if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,27 +264,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.workstations.v1.UpdateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) obj; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,142 +302,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest 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.workstations.v1.UpdateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest 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 message for UpdateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationClusterRequest} */ - 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.workstations.v1.UpdateWorkstationClusterRequest) com.google.cloud.workstations.v1.UpdateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,13 +461,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance(); } @@ -431,23 +483,26 @@ public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -461,46 +516,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationClu 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.workstations.v1.UpdateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance()) + return this; if (other.hasWorkstationCluster()) { mergeWorkstationCluster(other.getWorkstationCluster()); } @@ -539,36 +598,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,45 +639,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -630,11 +712,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1.Workstatio return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1.WorkstationCluster.Builder builderForValue) { @@ -648,17 +734,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -671,11 +763,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1.Workstat return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,48 +784,66 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster, com.google.cloud.workstations.v1.WorkstationCluster.Builder, com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster, + com.google.cloud.workstations.v1.WorkstationCluster.Builder, + com.google.cloud.workstations.v1.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; @@ -737,42 +851,58 @@ public com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstati 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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -788,15 +918,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -807,18 +939,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -831,12 +966,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -849,12 +987,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -862,51 +1003,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -914,12 +1068,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -931,12 +1088,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -946,8 +1106,10 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -955,6 +1117,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -962,6 +1125,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -969,6 +1134,7 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -980,6 +1146,8 @@ public Builder setAllowMissing(boolean value) { return this; } /** + * + * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -987,6 +1155,7 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -995,9 +1164,9 @@ public Builder clearAllowMissing() { 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); } @@ -1007,41 +1176,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,9 +1224,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java index 4d04b696a06d..84470c7701b3 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationClusterRequestOrBuilder.java @@ -1,81 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationClusterRequestOrBuilder extends +public interface UpdateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -83,6 +129,7 @@ public interface UpdateWorkstationClusterRequestOrBuilder extends
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java index 873f9d009306..c4f53ea3cbab 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequest.java @@ -1,55 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for UpdateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} */ -public final class UpdateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) UpdateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationConfigRequest.newBuilder() to construct. - private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationConfigRequest() { - } + + private UpdateWorkstationConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); } public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -57,38 +81,56 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +138,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +155,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,12 +173,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -140,6 +192,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -147,6 +201,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -155,6 +210,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +222,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 (workstationConfig_ != null) { output.writeMessage(1, getWorkstationConfig()); } @@ -190,20 +245,16 @@ public int getSerializedSize() { size = 0; if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,27 +264,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.workstations.v1.UpdateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) obj; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,142 +302,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest 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.workstations.v1.UpdateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest 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 message for UpdateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationConfigRequest} */ - 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.workstations.v1.UpdateWorkstationConfigRequest) com.google.cloud.workstations.v1.UpdateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,13 +461,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance(); } @@ -431,23 +483,26 @@ public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -461,46 +516,50 @@ private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationCon 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.workstations.v1.UpdateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance()) + return this; if (other.hasWorkstationConfig()) { mergeWorkstationConfig(other.getWorkstationConfig()); } @@ -539,36 +598,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,43 +639,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { @@ -630,11 +711,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1.Workstation return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1.WorkstationConfig.Builder builderForValue) { @@ -648,17 +733,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -671,11 +762,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1.Workstati return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,48 +783,66 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig, com.google.cloud.workstations.v1.WorkstationConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; @@ -737,42 +850,58 @@ public com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstatio 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -788,15 +917,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -807,18 +938,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -831,12 +965,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -849,12 +986,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -862,51 +1002,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -914,12 +1067,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -931,12 +1087,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -946,8 +1105,10 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -955,6 +1116,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -962,6 +1124,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -969,6 +1133,7 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -980,6 +1145,8 @@ public Builder setAllowMissing(boolean value) { return this; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -987,6 +1154,7 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -995,9 +1163,9 @@ public Builder clearAllowMissing() { 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); } @@ -1007,41 +1175,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,9 +1223,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java index 56c8e3bc1e3e..f18b678d5fbd 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationConfigRequestOrBuilder.java @@ -1,81 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationConfigRequestOrBuilder extends +public interface UpdateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -83,6 +129,7 @@ public interface UpdateWorkstationConfigRequestOrBuilder extends
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java index b54a49ef2fb4..ef0db7c06e30 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequest.java @@ -1,55 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * Request message for UpdateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} */ -public final class UpdateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.UpdateWorkstationRequest) UpdateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationRequest.newBuilder() to construct. private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationRequest() { - } + + private UpdateWorkstationRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); } public static final int WORKSTATION_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1.Workstation workstation_; /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -57,38 +80,55 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +136,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +153,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,12 +171,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -140,6 +190,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -147,6 +199,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -155,6 +208,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +220,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 (workstation_ != null) { output.writeMessage(1, getWorkstation()); } @@ -190,20 +243,16 @@ public int getSerializedSize() { size = 0; if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,27 +262,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.workstations.v1.UpdateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1.UpdateWorkstationRequest) obj; + com.google.cloud.workstations.v1.UpdateWorkstationRequest other = + (com.google.cloud.workstations.v1.UpdateWorkstationRequest) obj; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,142 +300,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.UpdateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest 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.workstations.v1.UpdateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.UpdateWorkstationRequest 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 message for UpdateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.UpdateWorkstationRequest} */ - 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.workstations.v1.UpdateWorkstationRequest) com.google.cloud.workstations.v1.UpdateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1.UpdateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1.UpdateWorkstationRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; } @java.lang.Override @@ -431,8 +480,11 @@ public com.google.cloud.workstations.v1.UpdateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1.UpdateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.UpdateWorkstationRequest result = + new com.google.cloud.workstations.v1.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -440,14 +492,11 @@ public com.google.cloud.workstations.v1.UpdateWorkstationRequest buildPartial() private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -461,38 +510,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.UpdateWorkstationReq 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.workstations.v1.UpdateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1.UpdateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -500,7 +550,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.UpdateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance()) + return this; if (other.hasWorkstation()) { mergeWorkstation(other.getWorkstation()); } @@ -539,36 +590,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,43 +630,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { @@ -630,11 +702,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1.Workstation value return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1.Workstation.Builder builderForValue) { @@ -648,17 +724,21 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstation_ != null + && workstation_ != com.google.cloud.workstations.v1.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -671,11 +751,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1.Workstation val return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,11 +772,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000001; @@ -700,36 +788,48 @@ public com.google.cloud.workstations.v1.Workstation.Builder getWorkstationBuilde return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder> + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.Workstation, com.google.cloud.workstations.v1.Workstation.Builder, com.google.cloud.workstations.v1.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.Workstation, + com.google.cloud.workstations.v1.Workstation.Builder, + com.google.cloud.workstations.v1.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; @@ -737,42 +837,58 @@ public com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBui 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -788,15 +904,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -807,18 +925,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -831,12 +952,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -849,12 +973,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -862,51 +989,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -914,12 +1054,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -931,12 +1074,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -946,8 +1092,10 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -955,6 +1103,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -962,6 +1111,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -969,6 +1120,7 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -980,6 +1132,8 @@ public Builder setAllowMissing(boolean value) { return this; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -987,6 +1141,7 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -995,9 +1150,9 @@ public Builder clearAllowMissing() { 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); } @@ -1007,12 +1162,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.UpdateWorkstationRequest) private static final com.google.cloud.workstations.v1.UpdateWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.UpdateWorkstationRequest(); } @@ -1021,27 +1176,27 @@ public static com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,6 +1211,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.UpdateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java index 3143baf2ff05..786db1729717 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/UpdateWorkstationRequestOrBuilder.java @@ -1,81 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface UpdateWorkstationRequestOrBuilder extends +public interface UpdateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.UpdateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -83,6 +129,7 @@ public interface UpdateWorkstationRequestOrBuilder extends
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java similarity index 66% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java index 894548341e0d..8b3066d6a61b 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/Workstation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * A single instance of a developer workstation with its own persistent storage.
  * 
* * Protobuf type {@code google.cloud.workstations.v1.Workstation} */ -public final class Workstation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Workstation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.Workstation) WorkstationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Workstation.newBuilder() to construct. private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Workstation() { name_ = ""; displayName_ = ""; @@ -30,48 +48,51 @@ private Workstation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Workstation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); case 13: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); + com.google.cloud.workstations.v1.Workstation.class, + com.google.cloud.workstations.v1.Workstation.Builder.class); } /** + * + * *
    * Whether a workstation is running and ready to receive user requests.
    * 
* * Protobuf enum {@code google.cloud.workstations.v1.Workstation.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Do not use.
      * 
@@ -80,6 +101,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -89,6 +112,8 @@ public enum State
      */
     STATE_STARTING(1),
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -97,6 +122,8 @@ public enum State */ STATE_RUNNING(2), /** + * + * *
      * The workstation is being stopped.
      * 
@@ -105,6 +132,8 @@ public enum State */ STATE_STOPPING(3), /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -117,6 +146,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -125,6 +156,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -134,6 +167,8 @@ public enum State
      */
     public static final int STATE_STARTING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -142,6 +177,8 @@ public enum State */ public static final int STATE_RUNNING_VALUE = 2; /** + * + * *
      * The workstation is being stopped.
      * 
@@ -150,6 +187,8 @@ public enum State */ public static final int STATE_STOPPING_VALUE = 3; /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -159,7 +198,6 @@ public enum State
      */
     public static final int STATE_STOPPED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -184,51 +222,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return STATE_STARTING;
-        case 2: return STATE_RUNNING;
-        case 3: return STATE_STOPPING;
-        case 4: return STATE_STOPPED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return STATE_STARTING;
+        case 2:
+          return STATE_RUNNING;
+        case 3:
+          return STATE_STOPPING;
+        case 4:
+          return STATE_STOPPED;
+        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<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.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 State findValueByNumber(int number) {
+            return State.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.workstations.v1.Workstation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -246,14 +286,18 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Full name of this workstation.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -262,29 +306,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; } } /** + * + * *
    * Full name of this workstation.
    * 
* * 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 { @@ -293,14 +337,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -309,29 +357,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; } } /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -340,14 +388,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -356,29 +408,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -389,12 +441,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -403,94 +458,106 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -498,32 +565,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 13; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -534,20 +603,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -562,6 +632,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -572,17 +644,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -593,11 +667,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -607,11 +681,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -619,11 +697,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -631,11 +713,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -645,11 +730,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -657,11 +746,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -669,11 +762,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -683,12 +779,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -696,12 +796,16 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -709,12 +813,15 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -724,11 +831,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -736,11 +847,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -748,11 +863,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -760,9 +878,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -770,6 +891,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -778,14 +900,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -793,16 +916,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -813,33 +935,51 @@ public java.lang.String getEtag() { public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workstations.v1.Workstation.State getState() { - com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1.Workstation.State getState() { + com.google.cloud.workstations.v1.Workstation.State result = + com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED + : result; } public static final int HOST_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -849,6 +989,7 @@ public java.lang.String getEtag() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -857,14 +998,15 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -874,16 +1016,15 @@ public java.lang.String getHost() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -892,6 +1033,7 @@ public java.lang.String getHost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -903,8 +1045,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_); } @@ -917,12 +1058,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -935,18 +1072,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } - if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 13); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13); if (startTime_ != null) { output.writeMessage(14, getStartTime()); } @@ -969,54 +1103,49 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } - if (state_ != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + if (state_ + != com.google.cloud.workstations.v1.Workstation.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, labels__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, labels__); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getStartTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1026,50 +1155,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.workstations.v1.Workstation)) { return super.equals(obj); } - com.google.cloud.workstations.v1.Workstation other = (com.google.cloud.workstations.v1.Workstation) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.Workstation other = + (com.google.cloud.workstations.v1.Workstation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (state_ != other.state_) return false; - if (!getHost() - .equals(other.getHost())) return false; + if (!getHost().equals(other.getHost())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1088,8 +1206,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -1125,158 +1242,160 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.Workstation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.workstations.v1.Workstation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.Workstation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation 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.workstations.v1.Workstation 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 single instance of a developer workstation with its own persistent storage.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.Workstation} */ - 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.workstations.v1.Workstation) com.google.cloud.workstations.v1.WorkstationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); case 13: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableAnnotations(); case 13: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.Workstation.class, com.google.cloud.workstations.v1.Workstation.Builder.class); + com.google.cloud.workstations.v1.Workstation.class, + com.google.cloud.workstations.v1.Workstation.Builder.class); } // Construct using com.google.cloud.workstations.v1.Workstation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1314,9 +1433,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_Workstation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_Workstation_descriptor; } @java.lang.Override @@ -1335,8 +1454,11 @@ public com.google.cloud.workstations.v1.Workstation build() { @java.lang.Override public com.google.cloud.workstations.v1.Workstation buildPartial() { - com.google.cloud.workstations.v1.Workstation result = new com.google.cloud.workstations.v1.Workstation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.Workstation result = + new com.google.cloud.workstations.v1.Workstation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1364,24 +1486,16 @@ private void buildPartial0(com.google.cloud.workstations.v1.Workstation result) result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.etag_ = etag_; @@ -1398,38 +1512,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.Workstation result) 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.workstations.v1.Workstation) { - return mergeFrom((com.google.cloud.workstations.v1.Workstation)other); + return mergeFrom((com.google.cloud.workstations.v1.Workstation) other); } else { super.mergeFrom(other); return this; @@ -1456,11 +1571,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.Workstation other) { if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000010; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); @@ -1513,93 +1626,103 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 80: { - state_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 80 - case 90: { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 90 - case 106: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 106 - case 114: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 74: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 80 + case 90: + { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 106 + case 114: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1609,22 +1732,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Full name of this workstation.
      * 
* * 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; @@ -1633,20 +1759,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation.
      * 
* * 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 { @@ -1654,28 +1781,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this workstation.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1685,17 +1819,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this workstation.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1705,18 +1843,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1725,20 +1865,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1746,28 +1887,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1777,17 +1925,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1797,18 +1949,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1817,20 +1971,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1838,28 +1993,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -1869,17 +2031,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -1887,14 +2053,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1902,12 +2071,15 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -1919,12 +2091,15 @@ public Builder setReconciling(boolean value) { return this; } /** + * + * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -1934,8 +2109,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -1944,11 +2119,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -1957,153 +2133,168 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2112,10 +2303,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2126,20 +2320,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2154,6 +2349,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2164,17 +2361,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2185,23 +2384,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2211,23 +2412,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2237,17 +2437,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2257,49 +2460,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2315,14 +2535,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2333,17 +2556,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2356,11 +2583,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2373,11 +2604,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2385,36 +2620,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2422,39 +2669,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2470,14 +2736,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2488,17 +2757,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2511,11 +2784,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2528,11 +2805,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2540,36 +2821,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2577,26 +2870,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2607,12 +2913,16 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2628,15 +2938,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -2647,18 +2960,22 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -2671,12 +2988,16 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2689,12 +3010,16 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000100; @@ -2702,38 +3027,48 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2741,39 +3076,58 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2789,14 +3143,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -2807,17 +3164,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -2830,11 +3191,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2847,11 +3212,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000200; @@ -2859,36 +3228,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -2896,6 +3277,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -2903,13 +3286,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2918,6 +3301,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -2925,15 +3310,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -2941,6 +3325,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -2948,18 +3334,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -2967,6 +3357,7 @@ public Builder setEtag(
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -2976,6 +3367,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -2983,12 +3376,14 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -2998,22 +3393,33 @@ public Builder setEtagBytes( private int state_ = 0; /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3024,24 +3430,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workstations.v1.Workstation.State getState() { - com.google.cloud.workstations.v1.Workstation.State result = com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED : result; + com.google.cloud.workstations.v1.Workstation.State result = + com.google.cloud.workstations.v1.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1.Workstation.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3055,11 +3474,16 @@ public Builder setState(com.google.cloud.workstations.v1.Workstation.State value return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -3071,6 +3495,8 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3080,13 +3506,13 @@ public Builder clearState() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -3095,6 +3521,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3104,15 +3532,14 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -3120,6 +3547,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3129,18 +3558,22 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } host_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3150,6 +3583,7 @@ public Builder setHost(
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHost() { @@ -3159,6 +3593,8 @@ public Builder clearHost() { return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3168,21 +3604,23 @@ public Builder clearHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00001000; 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); } @@ -3192,12 +3630,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.Workstation) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.Workstation) private static final com.google.cloud.workstations.v1.Workstation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.Workstation(); } @@ -3206,27 +3644,27 @@ public static com.google.cloud.workstations.v1.Workstation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workstation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Workstation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3241,6 +3679,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.Workstation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java similarity index 68% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java index 51da1b9417a7..652852554f15 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationCluster.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * A workstation cluster resource in the Cloud Workstations API.
  *
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster}
  */
-public final class WorkstationCluster extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationCluster extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster)
     WorkstationClusterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationCluster.newBuilder() to construct.
   private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationCluster() {
     name_ = "";
     displayName_ = "";
@@ -35,53 +53,59 @@ private WorkstationCluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WorkstationCluster();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 15:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
+            com.google.cloud.workstations.v1.WorkstationCluster.class,
+            com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
   }
 
-  public interface PrivateClusterConfigOrBuilder extends
+  public interface PrivateClusterConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -91,10 +115,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ java.lang.String getClusterHostname(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -104,12 +131,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - com.google.protobuf.ByteString - getClusterHostnameBytes(); + com.google.protobuf.ByteString getClusterHostnameBytes(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -119,10 +148,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ java.lang.String getServiceAttachmentUri(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -132,12 +164,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ - com.google.protobuf.ByteString - getServiceAttachmentUriBytes(); + com.google.protobuf.ByteString getServiceAttachmentUriBytes(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -145,11 +179,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedProjects. */ - java.util.List - getAllowedProjectsList(); + java.util.List getAllowedProjectsList(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -157,10 +193,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedProjects. */ int getAllowedProjectsCount(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -168,11 +207,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ java.lang.String getAllowedProjects(int index); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -180,63 +222,70 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - com.google.protobuf.ByteString - getAllowedProjectsBytes(int index); + com.google.protobuf.ByteString getAllowedProjectsBytes(int index); } /** + * + * *
    * Configuration options for private workstation clusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} */ - public static final class PrivateClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateClusterConfig.newBuilder() to construct. private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrivateClusterConfig() { clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrivateClusterConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + .class); } public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; private boolean enablePrivateEndpoint_ = false; /** + * + * *
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -245,9 +294,12 @@ public boolean getEnablePrivateEndpoint() { } public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object clusterHostname_ = ""; /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -257,6 +309,7 @@ public boolean getEnablePrivateEndpoint() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ @java.lang.Override @@ -265,14 +318,15 @@ public java.lang.String getClusterHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; } } /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -282,16 +336,15 @@ public java.lang.String getClusterHostname() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -300,9 +353,12 @@ public java.lang.String getClusterHostname() { } public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -312,6 +368,7 @@ public java.lang.String getClusterHostname() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ @java.lang.Override @@ -320,14 +377,15 @@ public java.lang.String getServiceAttachmentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; } } /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -337,16 +395,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -355,10 +412,13 @@ public java.lang.String getServiceAttachmentUri() { } public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -366,13 +426,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { return allowedProjects_; } /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -380,12 +442,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -393,6 +458,7 @@ public int getAllowedProjectsCount() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -400,6 +466,8 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -407,15 +475,16 @@ public java.lang.String getAllowedProjects(int index) {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -427,8 +496,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 (enablePrivateEndpoint_ != false) { output.writeBool(1, enablePrivateEndpoint_); } @@ -451,8 +519,7 @@ public int getSerializedSize() { size = 0; if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enablePrivateEndpoint_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); @@ -476,21 +543,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.workstations.v1.WorkstationCluster.PrivateClusterConfig)) { + if (!(obj + instanceof com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) obj; + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other = + (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) obj; - if (getEnablePrivateEndpoint() - != other.getEnablePrivateEndpoint()) return false; - if (!getClusterHostname() - .equals(other.getClusterHostname())) return false; - if (!getServiceAttachmentUri() - .equals(other.getServiceAttachmentUri())) return false; - if (!getAllowedProjectsList() - .equals(other.getAllowedProjectsList())) return false; + if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname().equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri().equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList().equals(other.getAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -503,8 +568,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnablePrivateEndpoint()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getClusterHostname().hashCode(); hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; @@ -518,90 +582,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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.workstations.v1.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1.WorkstationCluster.PrivateClusterConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig 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 @@ -611,39 +686,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration options for private workstation clusters.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig} */ - 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.workstations.v1.WorkstationCluster.PrivateClusterConfig) com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + .class); } - // Construct using com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -651,25 +730,27 @@ public Builder clear() { enablePrivateEndpoint_ = false; clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig build() { - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = buildPartial(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -677,14 +758,19 @@ public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig buildPartial() { - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + buildPartial() { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result = + new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enablePrivateEndpoint_ = enablePrivateEndpoint_; @@ -705,46 +791,54 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster.P 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.workstations.v1.WorkstationCluster.PrivateClusterConfig) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig)other); + if (other + instanceof com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other) { - if (other == com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig other) { + if (other + == com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) return this; if (other.getEnablePrivateEndpoint() != false) { setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); } @@ -794,33 +888,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - clusterHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - serviceAttachmentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedProjectsIsMutable(); - allowedProjects_.add(s); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -830,15 +929,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enablePrivateEndpoint_ ; + private boolean enablePrivateEndpoint_; /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -846,11 +949,14 @@ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -862,11 +968,14 @@ public Builder setEnablePrivateEndpoint(boolean value) { return this; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -878,6 +987,8 @@ public Builder clearEnablePrivateEndpoint() { private java.lang.Object clusterHostname_ = ""; /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -887,13 +998,13 @@ public Builder clearEnablePrivateEndpoint() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ public java.lang.String getClusterHostname() { java.lang.Object ref = clusterHostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; @@ -902,6 +1013,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -911,15 +1024,14 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -927,6 +1039,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -936,18 +1050,22 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clusterHostname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -957,6 +1075,7 @@ public Builder setClusterHostname(
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterHostname() { @@ -966,6 +1085,8 @@ public Builder clearClusterHostname() { return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -975,12 +1096,14 @@ public Builder clearClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clusterHostname_ = value; bitField0_ |= 0x00000002; @@ -990,6 +1113,8 @@ public Builder setClusterHostnameBytes( private java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -998,14 +1123,15 @@ public Builder setClusterHostnameBytes(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The serviceAttachmentUri. */ public java.lang.String getServiceAttachmentUri() { java.lang.Object ref = serviceAttachmentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; @@ -1014,6 +1140,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1022,16 +1150,16 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for serviceAttachmentUri. */ - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -1039,6 +1167,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1047,19 +1177,24 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1068,7 +1203,9 @@ public Builder setServiceAttachmentUri(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearServiceAttachmentUri() { @@ -1078,6 +1215,8 @@ public Builder clearServiceAttachmentUri() { return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1086,13 +1225,16 @@ public Builder clearServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; @@ -1102,6 +1244,7 @@ public Builder setServiceAttachmentUriBytes( private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedProjectsIsMutable() { if (!allowedProjects_.isModifiable()) { allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); @@ -1109,41 +1252,52 @@ private void ensureAllowedProjectsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { allowedProjects_.makeImmutable(); return allowedProjects_; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -1151,35 +1305,43 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedProjects to set. * @return This builder for chaining. */ - public Builder setAllowedProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.set(index, value); bitField0_ |= 0x00000008; @@ -1187,19 +1349,24 @@ public Builder setAllowedProjects( return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); bitField0_ |= 0x00000008; @@ -1207,56 +1374,67 @@ public Builder addAllowedProjects( return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllAllowedProjects( - java.lang.Iterable values) { + public Builder addAllAllowedProjects(java.lang.Iterable values) { ensureAllowedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProjects_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedProjects() { - allowedProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); @@ -1264,6 +1442,7 @@ public Builder addAllowedProjectsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1276,41 +1455,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig) - private static final com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig(); } - public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1322,21 +1505,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1345,29 +1532,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; } } /** + * + * *
    * Full name of this workstation cluster.
    * 
* * 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 { @@ -1376,14 +1563,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -1392,29 +1583,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; } } /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1423,15 +1614,19 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -1440,30 +1635,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1474,12 +1669,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1488,94 +1686,106 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1583,32 +1793,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 15; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1619,20 +1831,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1647,6 +1860,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1657,17 +1872,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1678,11 +1895,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1692,11 +1909,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1704,11 +1925,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1716,11 +1941,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1730,11 +1958,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1742,11 +1974,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1754,11 +1990,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1768,11 +2007,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1780,11 +2023,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1792,11 +2039,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1804,9 +2054,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -1814,6 +2067,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -1822,14 +2076,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -1837,16 +2092,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1855,15 +2109,19 @@ public java.lang.String getEtag() { } public static final int NETWORK_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ @java.lang.Override @@ -1872,30 +2130,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1904,9 +2162,12 @@ public java.lang.String getNetwork() { } public static final int SUBNETWORK_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -1914,6 +2175,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ @java.lang.Override @@ -1922,14 +2184,15 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -1937,16 +2200,15 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -1955,9 +2217,12 @@ public java.lang.String getSubnetwork() { } public static final int CONTROL_PLANE_IP_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private volatile java.lang.Object controlPlaneIp_ = ""; /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -1966,6 +2231,7 @@ public java.lang.String getSubnetwork() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The controlPlaneIp. */ @java.lang.Override @@ -1974,14 +2240,15 @@ public java.lang.String getControlPlaneIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; } } /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -1990,16 +2257,15 @@ public java.lang.String getControlPlaneIp() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for controlPlaneIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getControlPlaneIpBytes() { + public com.google.protobuf.ByteString getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -2008,13 +2274,19 @@ public java.lang.String getControlPlaneIp() { } public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -2022,32 +2294,51 @@ public boolean hasPrivateClusterConfig() { return privateClusterConfig_ != null; } /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateClusterConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } public static final int DEGRADED_FIELD_NUMBER = 13; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -2056,6 +2347,7 @@ public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigO
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -2064,72 +2356,87 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2141,8 +2448,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_); } @@ -2155,12 +2461,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -2188,12 +2490,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(14, conditions_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 15); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, controlPlaneIp_); } @@ -2216,30 +2514,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); @@ -2251,26 +2545,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); } if (privateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getPrivateClusterConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPrivateClusterConfig()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, conditions_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, conditions_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, controlPlaneIp_); @@ -2283,57 +2575,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.workstations.v1.WorkstationCluster)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationCluster other = (com.google.cloud.workstations.v1.WorkstationCluster) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.WorkstationCluster other = + (com.google.cloud.workstations.v1.WorkstationCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnetwork() - .equals(other.getSubnetwork())) return false; - if (!getControlPlaneIp() - .equals(other.getControlPlaneIp())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (!getControlPlaneIp().equals(other.getControlPlaneIp())) return false; if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig() - .equals(other.getPrivateClusterConfig())) return false; + if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; } - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2352,8 +2629,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -2387,8 +2663,7 @@ public int hashCode() { hash = (53 * hash) + getPrivateClusterConfig().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -2399,98 +2674,103 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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.workstations.v1.WorkstationCluster 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 workstation cluster resource in the Cloud Workstations API.
    *
@@ -2500,59 +2780,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationCluster}
    */
-  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.workstations.v1.WorkstationCluster)
       com.google.cloud.workstations.v1.WorkstationClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 15:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 15:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationCluster.class, com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationCluster.class,
+              com.google.cloud.workstations.v1.WorkstationCluster.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1.WorkstationCluster.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2599,9 +2876,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor;
     }
 
     @java.lang.Override
@@ -2620,14 +2897,18 @@ public com.google.cloud.workstations.v1.WorkstationCluster build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1.WorkstationCluster buildPartial() {
-      com.google.cloud.workstations.v1.WorkstationCluster result = new com.google.cloud.workstations.v1.WorkstationCluster(this);
+      com.google.cloud.workstations.v1.WorkstationCluster result =
+          new com.google.cloud.workstations.v1.WorkstationCluster(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationCluster result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1.WorkstationCluster result) {
       if (conditionsBuilder_ == null) {
         if (((bitField0_ & 0x00008000) != 0)) {
           conditions_ = java.util.Collections.unmodifiableList(conditions_);
@@ -2662,19 +2943,13 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
@@ -2689,9 +2964,10 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
         result.controlPlaneIp_ = controlPlaneIp_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.privateClusterConfig_ = privateClusterConfigBuilder_ == null
-            ? privateClusterConfig_
-            : privateClusterConfigBuilder_.build();
+        result.privateClusterConfig_ =
+            privateClusterConfigBuilder_ == null
+                ? privateClusterConfig_
+                : privateClusterConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
         result.degraded_ = degraded_;
@@ -2702,38 +2978,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationCluster r
     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.workstations.v1.WorkstationCluster) {
-        return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster)other);
+        return mergeFrom((com.google.cloud.workstations.v1.WorkstationCluster) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2741,7 +3018,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster other) {
-      if (other == com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -2760,11 +3038,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster oth
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -2819,9 +3095,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationCluster oth
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00008000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2853,116 +3130,128 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              network_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              subnetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getPrivateClusterConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 98
-            case 104: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 104
-            case 114: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 122
-            case 130: {
-              controlPlaneIp_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 130
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                network_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                subnetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(
+                    getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 98
+            case 104:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 104
+            case 114:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 122
+            case 130:
+              {
+                controlPlaneIp_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 130
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2972,22 +3261,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this workstation cluster.
      * 
* * 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; @@ -2996,20 +3288,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * 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 { @@ -3017,28 +3310,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3048,17 +3348,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3068,18 +3372,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -3088,20 +3394,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -3109,28 +3416,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3140,17 +3454,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3160,19 +3478,21 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3181,21 +3501,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -3203,30 +3524,37 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -3236,18 +3564,22 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -3255,14 +3587,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3270,12 +3605,15 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -3287,12 +3625,15 @@ public Builder setReconciling(boolean value) { return this; } /** + * + * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3302,8 +3643,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3312,11 +3653,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3325,153 +3667,168 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3480,10 +3837,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3494,20 +3854,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3522,6 +3883,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3532,17 +3895,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3553,23 +3918,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3579,23 +3946,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3605,17 +3971,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3625,49 +3994,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3683,14 +4069,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3701,17 +4090,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3724,11 +4117,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3741,11 +4138,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3753,36 +4154,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3790,39 +4203,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3838,14 +4270,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3856,17 +4291,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3879,11 +4318,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3896,11 +4339,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3908,36 +4355,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3945,39 +4404,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3993,14 +4471,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -4011,17 +4492,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4034,11 +4519,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4051,11 +4540,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -4063,36 +4556,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4100,6 +4605,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4107,13 +4614,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4122,6 +4629,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4129,15 +4638,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -4145,6 +4653,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4152,18 +4662,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4171,6 +4685,7 @@ public Builder setEtag(
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4180,6 +4695,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4187,12 +4704,14 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -4202,19 +4721,21 @@ public Builder setEtagBytes( private java.lang.Object network_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -4223,21 +4744,22 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -4245,30 +4767,37 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4278,18 +4807,22 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; @@ -4299,6 +4832,8 @@ public Builder setNetworkBytes( private java.lang.Object subnetwork_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4306,13 +4841,13 @@ public Builder setNetworkBytes(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -4321,6 +4856,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4328,15 +4865,14 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -4344,6 +4880,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4351,18 +4889,22 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subnetwork_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4370,6 +4912,7 @@ public Builder setSubnetwork(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -4379,6 +4922,8 @@ public Builder clearSubnetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4386,12 +4931,14 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000800; @@ -4401,6 +4948,8 @@ public Builder setSubnetworkBytes( private java.lang.Object controlPlaneIp_ = ""; /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4409,13 +4958,13 @@ public Builder setSubnetworkBytes(
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The controlPlaneIp. */ public java.lang.String getControlPlaneIp() { java.lang.Object ref = controlPlaneIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; @@ -4424,6 +4973,8 @@ public java.lang.String getControlPlaneIp() { } } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4432,15 +4983,14 @@ public java.lang.String getControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for controlPlaneIp. */ - public com.google.protobuf.ByteString - getControlPlaneIpBytes() { + public com.google.protobuf.ByteString getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -4448,6 +4998,8 @@ public java.lang.String getControlPlaneIp() { } } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4456,18 +5008,22 @@ public java.lang.String getControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setControlPlaneIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } controlPlaneIp_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4476,6 +5032,7 @@ public Builder setControlPlaneIp(
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearControlPlaneIp() { @@ -4485,6 +5042,8 @@ public Builder clearControlPlaneIp() { return this; } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4493,12 +5052,14 @@ public Builder clearControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setControlPlaneIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); controlPlaneIp_ = value; bitField0_ |= 0x00001000; @@ -4506,43 +5067,66 @@ public Builder setControlPlaneIpBytes( return this; } - private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> + privateClusterConfigBuilder_; /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privateClusterConfig field is set. */ public boolean hasPrivateClusterConfig() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateClusterConfig. */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } else { return privateClusterConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + public Builder setPrivateClusterConfig( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4556,14 +5140,19 @@ public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1.Workstat return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + builderForValue) { if (privateClusterConfigBuilder_ == null) { privateClusterConfig_ = builderForValue.build(); } else { @@ -4574,17 +5163,24 @@ public Builder setPrivateClusterConfig( return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { + public Builder mergePrivateClusterConfig( + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - privateClusterConfig_ != null && - privateClusterConfig_ != com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && privateClusterConfig_ != null + && privateClusterConfig_ + != com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) { getPrivateClusterConfigBuilder().mergeFrom(value); } else { privateClusterConfig_ = value; @@ -4597,11 +5193,15 @@ public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1.Workst return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4614,55 +5214,76 @@ public Builder clearPrivateClusterConfig() { return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder + getPrivateClusterConfigBuilder() { bitField0_ |= 0x00002000; onChanged(); return getPrivateClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { if (privateClusterConfigBuilder_ != null) { return privateClusterConfigBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder> getPrivateClusterConfigFieldBuilder() { if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), - getParentForChildren(), - isClean()); + privateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), getParentForChildren(), isClean()); privateClusterConfig_ = null; } return privateClusterConfigBuilder_; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -4671,6 +5292,7 @@ public com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigO
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -4678,6 +5300,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -4686,6 +5310,7 @@ public boolean getDegraded() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ @@ -4697,6 +5322,8 @@ public Builder setDegraded(boolean value) { return this; } /** + * + * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -4705,6 +5332,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -4714,25 +5342,30 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00008000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00008000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -4742,12 +5375,16 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -4757,12 +5394,16 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -4772,15 +5413,18 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4794,15 +5438,18 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -4813,12 +5460,16 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -4834,15 +5485,18 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4856,15 +5510,18 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -4875,15 +5532,18 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -4894,19 +5554,21 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -4914,12 +5576,16 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -4932,12 +5598,16 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -4950,42 +5620,52 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -4993,59 +5673,69 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00008000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } + @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); } @@ -5055,12 +5745,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationCluster) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationCluster) private static final com.google.cloud.workstations.v1.WorkstationCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationCluster(); } @@ -5069,27 +5759,27 @@ public static com.google.cloud.workstations.v1.WorkstationCluster getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5104,6 +5794,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java index aacc396c1d0d..8a2135fb881e 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationClusterOrBuilder.java @@ -1,140 +1,185 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationClusterOrBuilder extends +public interface WorkstationClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAnnotationsCount(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -146,6 +191,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -155,15 +202,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -173,9 +218,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -186,11 +232,13 @@ boolean containsLabels(
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -200,91 +248,125 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -292,10 +374,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -303,34 +388,41 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -338,10 +430,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -349,12 +444,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString - getSubnetworkBytes(); + com.google.protobuf.ByteString getSubnetworkBytes(); /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -363,10 +460,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The controlPlaneIp. */ java.lang.String getControlPlaneIp(); /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -375,39 +475,57 @@ java.lang.String getLabelsOrThrow(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for controlPlaneIp. */ - com.google.protobuf.ByteString - getControlPlaneIpBytes(); + com.google.protobuf.ByteString getControlPlaneIpBytes(); /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateClusterConfig. */ - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig(); /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder(); /** + * + * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -416,56 +534,69 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java similarity index 69% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java index c84bfc4c0c48..b02f6d62413f 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; /** + * + * *
  * A workstation configuration resource in the Cloud Workstations API.
  *
@@ -18,15 +35,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig}
  */
-public final class WorkstationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig)
     WorkstationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationConfig.newBuilder() to construct.
   private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationConfig() {
     name_ = "";
     displayName_ = "";
@@ -34,122 +52,140 @@ private WorkstationConfig() {
     etag_ = "";
     persistentDirectories_ = java.util.Collections.emptyList();
     readinessChecks_ = java.util.Collections.emptyList();
-    replicaZones_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
     conditions_ = 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 WorkstationConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 18:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
+    return com.google.cloud.workstations.v1.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
+            com.google.cloud.workstations.v1.WorkstationConfig.class,
+            com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
   }
 
-  public interface HostOrBuilder extends
+  public interface HostOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ boolean hasGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder(); com.google.cloud.workstations.v1.WorkstationConfig.Host.ConfigCase getConfigCase(); } /** + * + * *
    * Runtime host for a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} */ - public static final class Host extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Host extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host) HostOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Host() { - } + + private Host() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Host(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); } - public interface GceInstanceOrBuilder extends + public interface GceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -159,10 +195,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -172,12 +211,14 @@ public interface GceInstanceOrBuilder extends
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -199,10 +240,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -224,12 +268,14 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -238,12 +284,15 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - java.util.List - getServiceAccountScopesList(); + java.util.List getServiceAccountScopesList(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -252,11 +301,15 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ int getServiceAccountScopesCount(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -265,12 +318,16 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ java.lang.String getServiceAccountScopes(int index); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -279,14 +336,17 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index); + com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -298,11 +358,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -314,10 +376,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -329,11 +394,14 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -345,13 +413,15 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -359,22 +429,28 @@ public interface GceInstanceOrBuilder extends
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The poolSize. */ int getPoolSize(); /** + * + * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pooledInstances. */ int getPooledInstances(); /** + * + * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -385,12 +461,16 @@ public interface GceInstanceOrBuilder extends
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disablePublicIpAddresses. */ boolean getDisablePublicIpAddresses(); /** + * + * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -428,202 +508,266 @@ public interface GceInstanceOrBuilder extends
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableNestedVirtualization. */ boolean getEnableNestedVirtualization(); /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig + getShieldedInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder(); /** + * + * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); } /** + * + * *
      * A runtime using a Compute Engine instance.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} */ - public static final class GceInstance extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceInstance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) GceInstanceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceInstance.newBuilder() to construct. private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceInstance() { machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceInstance(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); } - public interface GceShieldedInstanceConfigOrBuilder extends + public interface GceShieldedInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** + * + * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ boolean getEnableVtpm(); /** + * + * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class GceShieldedInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceShieldedInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) GceShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceShieldedInstanceConfig.newBuilder() to construct. - private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceShieldedInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceShieldedInstanceConfig() { - } + + private GceShieldedInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceShieldedInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_ = false; /** + * + * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -634,11 +778,14 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_ = false; /** + * + * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ @java.lang.Override @@ -649,11 +796,15 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_ = false; /** + * + * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -662,6 +813,7 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -674,7 +826,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 (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -694,16 +846,15 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableIntegrityMonitoring_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -713,19 +864,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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; - - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() - != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() - != other.getEnableIntegrityMonitoring()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + obj; + + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -738,103 +894,131 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableIntegrityMonitoring()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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 @@ -844,39 +1028,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -888,19 +1079,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -908,14 +1106,25 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceSh } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableSecureBoot_ = enableSecureBoot_; @@ -932,46 +1141,60 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -1007,27 +1230,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - enableVtpm_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1037,15 +1264,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableSecureBoot_ ; + private boolean enableSecureBoot_; /** + * + * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -1053,11 +1284,14 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ @@ -1069,11 +1303,14 @@ public Builder setEnableSecureBoot(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { @@ -1083,13 +1320,16 @@ public Builder clearEnableSecureBoot() { return this; } - private boolean enableVtpm_ ; + private boolean enableVtpm_; /** + * + * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ @java.lang.Override @@ -1097,11 +1337,14 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** + * + * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableVtpm to set. * @return This builder for chaining. */ @@ -1113,11 +1356,14 @@ public Builder setEnableVtpm(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableVtpm() { @@ -1127,13 +1373,17 @@ public Builder clearEnableVtpm() { return this; } - private boolean enableIntegrityMonitoring_ ; + private boolean enableIntegrityMonitoring_; /** + * + * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -1141,11 +1391,15 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** + * + * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ @@ -1157,11 +1411,15 @@ public Builder setEnableIntegrityMonitoring(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { @@ -1170,6 +1428,7 @@ public Builder clearEnableIntegrityMonitoring() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1182,41 +1441,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,73 +1494,91 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GceConfidentialInstanceConfigOrBuilder extends + public interface GceConfidentialInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableConfidentialCompute. */ boolean getEnableConfidentialCompute(); } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class GceConfidentialInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceConfidentialInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) GceConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceConfidentialInstanceConfig.newBuilder() to construct. - private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceConfidentialInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceConfidentialInstanceConfig() { - } + + private GceConfidentialInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceConfidentialInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; /** + * + * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1303,6 +1587,7 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1315,7 +1600,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 (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -1329,8 +1614,9 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableConfidentialCompute_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1340,15 +1626,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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; - - if (getEnableConfidentialCompute() - != other.getEnableConfidentialCompute()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + obj; + + if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1361,97 +1654,127 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableConfidentialCompute()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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 @@ -1461,39 +1784,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1503,19 +1833,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + build() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1523,14 +1860,25 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceCo } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; @@ -1541,46 +1889,60 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho 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.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) return this; if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } @@ -1610,17 +1972,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableConfidentialCompute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1630,15 +1994,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableConfidentialCompute_ ; + private boolean enableConfidentialCompute_; /** + * + * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1646,11 +2015,15 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** + * + * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ @@ -1662,11 +2035,15 @@ public Builder setEnableConfidentialCompute(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { @@ -1675,6 +2052,7 @@ public Builder clearEnableConfidentialCompute() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1687,41 +2065,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1733,16 +2118,20 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -1752,6 +2141,7 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceCo
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ @java.lang.Override @@ -1760,14 +2150,15 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -1777,16 +2168,15 @@ public java.lang.String getMachineType() {
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -1795,9 +2185,12 @@ public java.lang.String getMachineType() { } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -1819,6 +2212,7 @@ public java.lang.String getMachineType() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ @java.lang.Override @@ -1827,14 +2221,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -1856,16 +2251,15 @@ public java.lang.String getServiceAccount() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -1874,10 +2268,13 @@ public java.lang.String getServiceAccount() { } public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -1886,14 +2283,17 @@ public java.lang.String getServiceAccount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { return serviceAccountScopes_; } /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -1902,13 +2302,17 @@ public java.lang.String getServiceAccount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -1917,7 +2321,9 @@ public int getServiceAccountScopesCount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -1925,6 +2331,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -1933,20 +2341,24 @@ public java.lang.String getServiceAccountScopes(int index) {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -1958,13 +2370,15 @@ public java.lang.String getServiceAccountScopes(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -1976,12 +2390,15 @@ public java.lang.String getServiceAccountScopes(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -1993,6 +2410,7 @@ public int getTagsCount() {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2000,6 +2418,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2011,17 +2431,19 @@ public java.lang.String getTags(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POOL_SIZE_FIELD_NUMBER = 5; private int poolSize_ = 0; /** + * + * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -2029,6 +2451,7 @@ public java.lang.String getTags(int index) {
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The poolSize. */ @java.lang.Override @@ -2039,12 +2462,15 @@ public int getPoolSize() { public static final int POOLED_INSTANCES_FIELD_NUMBER = 12; private int pooledInstances_ = 0; /** + * + * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pooledInstances. */ @java.lang.Override @@ -2055,6 +2481,8 @@ public int getPooledInstances() { public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; private boolean disablePublicIpAddresses_ = false; /** + * + * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -2065,7 +2493,9 @@ public int getPooledInstances() {
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -2076,6 +2506,8 @@ public boolean getDisablePublicIpAddresses() { public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER = 7; private boolean enableNestedVirtualization_ = false; /** + * + * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -2113,7 +2545,9 @@ public boolean getDisablePublicIpAddresses() {
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableNestedVirtualization. */ @java.lang.Override @@ -2122,13 +2556,20 @@ public boolean getEnableNestedVirtualization() { } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -2136,37 +2577,63 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -2174,38 +2641,60 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; private int bootDiskSizeGb_ = 0; /** + * + * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -2214,6 +2703,7 @@ public int getBootDiskSizeGb() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2225,8 +2715,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -2234,7 +2723,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountScopes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, serviceAccountScopes_.getRaw(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); @@ -2292,32 +2782,31 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, poolSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, poolSize_); } if (disablePublicIpAddresses_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, disablePublicIpAddresses_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(6, disablePublicIpAddresses_); } if (enableNestedVirtualization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, enableNestedVirtualization_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableNestedVirtualization_); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getShieldedInstanceConfig()); } if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, bootDiskSizeGb_); } if (confidentialInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getConfidentialInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getConfidentialInstanceConfig()); } if (pooledInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, pooledInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, pooledInstances_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2327,41 +2816,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.workstations.v1.WorkstationConfig.Host.GceInstance)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) obj; - - if (!getMachineType() - .equals(other.getMachineType())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList() - .equals(other.getServiceAccountScopesList())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getPoolSize() - != other.getPoolSize()) return false; - if (getPooledInstances() - != other.getPooledInstances()) return false; - if (getDisablePublicIpAddresses() - != other.getDisablePublicIpAddresses()) return false; - if (getEnableNestedVirtualization() - != other.getEnableNestedVirtualization()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType().equals(other.getMachineType())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) + return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (getPoolSize() != other.getPoolSize()) return false; + if (getPooledInstances() != other.getPooledInstances()) return false; + if (getDisablePublicIpAddresses() != other.getDisablePublicIpAddresses()) return false; + if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig() - .equals(other.getConfidentialInstanceConfig())) return false; + if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) + return false; } - if (getBootDiskSizeGb() - != other.getBootDiskSizeGb()) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2390,11 +2871,11 @@ public int hashCode() { hash = (37 * hash) + POOLED_INSTANCES_FIELD_NUMBER; hash = (53 * hash) + getPooledInstances(); hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisablePublicIpAddresses()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePublicIpAddresses()); hash = (37 * hash) + ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableNestedVirtualization()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); @@ -2411,89 +2892,96 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance + 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.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance 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.workstations.v1.WorkstationConfig.Host.GceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance 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 @@ -2503,49 +2991,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A runtime using a Compute Engine instance.
        * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance} */ - 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.workstations.v1.WorkstationConfig.Host.GceInstance) com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder + .class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); poolSize_ = 0; pooledInstances_ = 0; disablePublicIpAddresses_ = false; @@ -2565,19 +3055,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance build() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = buildPartial(); + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2586,13 +3079,17 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance build @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.machineType_ = machineType_; @@ -2621,14 +3118,16 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho result.enableNestedVirtualization_ = enableNestedVirtualization_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); + result.shieldedInstanceConfig_ = + shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null - ? confidentialInstanceConfig_ - : confidentialInstanceConfigBuilder_.build(); + result.confidentialInstanceConfig_ = + confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.bootDiskSizeGb_ = bootDiskSizeGb_; @@ -2639,46 +3138,54 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho 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.workstations.v1.WorkstationConfig.Host.GceInstance) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance)other); + if (other + instanceof com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -2756,73 +3263,84 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(s); - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: { - poolSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - disablePublicIpAddresses_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 56: { - enableNestedVirtualization_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 72: { - bootDiskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 72 - case 82: { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 96: { - pooledInstances_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountScopesIsMutable(); + serviceAccountScopes_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: + { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: + { + enableNestedVirtualization_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 72: + { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 72 + case 82: + { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 96: + { + pooledInstances_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2832,10 +3350,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object machineType_ = ""; /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -2845,13 +3366,13 @@ public Builder mergeFrom(
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -2860,6 +3381,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -2869,15 +3392,14 @@ public java.lang.String getMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -2885,6 +3407,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -2894,18 +3418,22 @@ public java.lang.String getMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -2915,6 +3443,7 @@ public Builder setMachineType(
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -2924,6 +3453,8 @@ public Builder clearMachineType() { return this; } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -2933,12 +3464,14 @@ public Builder clearMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -2948,6 +3481,8 @@ public Builder setMachineTypeBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -2969,13 +3504,13 @@ public Builder setMachineTypeBytes(
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -2984,6 +3519,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3005,15 +3542,14 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -3021,6 +3557,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3042,18 +3580,22 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3075,6 +3617,7 @@ public Builder setServiceAccount(
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -3084,6 +3627,8 @@ public Builder clearServiceAccount() { return this; } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3105,12 +3650,14 @@ public Builder clearServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; @@ -3120,13 +3667,17 @@ public Builder setServiceAccountBytes( private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServiceAccountScopesIsMutable() { if (!serviceAccountScopes_.isModifiable()) { - serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); + serviceAccountScopes_ = + new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); } bitField0_ |= 0x00000004; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3135,15 +3686,19 @@ private void ensureServiceAccountScopesIsMutable() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { serviceAccountScopes_.makeImmutable(); return serviceAccountScopes_; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3152,13 +3707,18 @@ private void ensureServiceAccountScopesIsMutable() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3167,7 +3727,10 @@ public int getServiceAccountScopesCount() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -3175,6 +3738,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3183,15 +3748,19 @@ public java.lang.String getServiceAccountScopes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3200,14 +3769,18 @@ public java.lang.String getServiceAccountScopes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The serviceAccountScopes to set. * @return This builder for chaining. */ - public Builder setServiceAccountScopes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); bitField0_ |= 0x00000004; @@ -3215,6 +3788,8 @@ public Builder setServiceAccountScopes( return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3223,13 +3798,17 @@ public Builder setServiceAccountScopes(
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceAccountScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); bitField0_ |= 0x00000004; @@ -3237,6 +3816,8 @@ public Builder addServiceAccountScopes( return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3245,20 +3826,23 @@ public Builder addServiceAccountScopes(
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountScopes( - java.lang.Iterable values) { + public Builder addAllServiceAccountScopes(java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceAccountScopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3267,17 +3851,22 @@ public Builder addAllServiceAccountScopes(
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearServiceAccountScopes() { - serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
@@ -3286,13 +3875,17 @@ public Builder clearServiceAccountScopes() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); @@ -3303,6 +3896,7 @@ public Builder addServiceAccountScopesBytes( private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); @@ -3310,6 +3904,8 @@ private void ensureTagsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3321,14 +3917,16 @@ private void ensureTagsIsMutable() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3340,12 +3938,15 @@ private void ensureTagsIsMutable() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3357,6 +3958,7 @@ public int getTagsCount() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -3364,6 +3966,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3375,14 +3979,16 @@ public java.lang.String getTags(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3394,13 +4000,15 @@ public java.lang.String getTags(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000008; @@ -3408,6 +4016,8 @@ public Builder setTags( return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3419,12 +4029,14 @@ public Builder setTags(
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000008; @@ -3432,6 +4044,8 @@ public Builder addTags( return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3443,19 +4057,20 @@ public Builder addTags(
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3467,16 +4082,19 @@ public Builder addAllTags(
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTags() { - tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -3488,12 +4106,14 @@ public Builder clearTags() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -3502,8 +4122,10 @@ public Builder addTagsBytes( return this; } - private int poolSize_ ; + private int poolSize_; /** + * + * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -3511,6 +4133,7 @@ public Builder addTagsBytes(
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The poolSize. */ @java.lang.Override @@ -3518,6 +4141,8 @@ public int getPoolSize() { return poolSize_; } /** + * + * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -3525,6 +4150,7 @@ public int getPoolSize() {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The poolSize to set. * @return This builder for chaining. */ @@ -3536,6 +4162,8 @@ public Builder setPoolSize(int value) { return this; } /** + * + * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -3543,6 +4171,7 @@ public Builder setPoolSize(int value) {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPoolSize() { @@ -3552,14 +4181,17 @@ public Builder clearPoolSize() { return this; } - private int pooledInstances_ ; + private int pooledInstances_; /** + * + * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pooledInstances. */ @java.lang.Override @@ -3567,12 +4199,15 @@ public int getPooledInstances() { return pooledInstances_; } /** + * + * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pooledInstances to set. * @return This builder for chaining. */ @@ -3584,12 +4219,15 @@ public Builder setPooledInstances(int value) { return this; } /** + * + * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPooledInstances() { @@ -3599,8 +4237,10 @@ public Builder clearPooledInstances() { return this; } - private boolean disablePublicIpAddresses_ ; + private boolean disablePublicIpAddresses_; /** + * + * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -3611,7 +4251,9 @@ public Builder clearPooledInstances() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -3619,6 +4261,8 @@ public boolean getDisablePublicIpAddresses() { return disablePublicIpAddresses_; } /** + * + * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -3629,7 +4273,9 @@ public boolean getDisablePublicIpAddresses() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The disablePublicIpAddresses to set. * @return This builder for chaining. */ @@ -3641,6 +4287,8 @@ public Builder setDisablePublicIpAddresses(boolean value) { return this; } /** + * + * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -3651,7 +4299,9 @@ public Builder setDisablePublicIpAddresses(boolean value) {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDisablePublicIpAddresses() { @@ -3661,8 +4311,10 @@ public Builder clearDisablePublicIpAddresses() { return this; } - private boolean enableNestedVirtualization_ ; + private boolean enableNestedVirtualization_; /** + * + * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -3700,7 +4352,9 @@ public Builder clearDisablePublicIpAddresses() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableNestedVirtualization. */ @java.lang.Override @@ -3708,6 +4362,8 @@ public boolean getEnableNestedVirtualization() { return enableNestedVirtualization_; } /** + * + * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -3745,7 +4401,9 @@ public boolean getEnableNestedVirtualization() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableNestedVirtualization to set. * @return This builder for chaining. */ @@ -3757,6 +4415,8 @@ public Builder setEnableNestedVirtualization(boolean value) { return this; } /** + * + * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -3794,7 +4454,9 @@ public Builder setEnableNestedVirtualization(boolean value) {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableNestedVirtualization() { @@ -3804,43 +4466,73 @@ public Builder clearEnableNestedVirtualization() { return this; } - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3854,14 +4546,20 @@ public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1.Workst return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + builderForValue) { if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = builderForValue.build(); } else { @@ -3872,17 +4570,26 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - shieldedInstanceConfig_ != null && - shieldedInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && shieldedInstanceConfig_ != null + && shieldedInstanceConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) { getShieldedInstanceConfigBuilder().mergeFrom(value); } else { shieldedInstanceConfig_ = value; @@ -3895,11 +4602,15 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1.Work return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearShieldedInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3912,90 +4623,147 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { bitField0_ |= 0x00000100; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> + confidentialInstanceConfigBuilder_; /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder setConfidentialInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4009,14 +4777,20 @@ public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1.Wo return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + builderForValue) { if (confidentialInstanceConfigBuilder_ == null) { confidentialInstanceConfig_ = builderForValue.build(); } else { @@ -4027,17 +4801,26 @@ public Builder setConfidentialInstanceConfig( return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder mergeConfidentialInstanceConfig( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - confidentialInstanceConfig_ != null && - confidentialInstanceConfig_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && confidentialInstanceConfig_ != null + && confidentialInstanceConfig_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) { getConfidentialInstanceConfigBuilder().mergeFrom(value); } else { confidentialInstanceConfig_ = value; @@ -4050,11 +4833,15 @@ public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1. return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConfidentialInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000200); @@ -4067,61 +4854,91 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + getConfidentialInstanceConfigBuilder() { bitField0_ |= 0x00000200; onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), - getParentForChildren(), - isClean()); + confidentialInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), getParentForChildren(), isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - private int bootDiskSizeGb_ ; + private int bootDiskSizeGb_; /** + * + * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -4129,12 +4946,15 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** + * + * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ @@ -4146,12 +4966,15 @@ public Builder setBootDiskSizeGb(int value) { return this; } /** + * + * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { @@ -4160,6 +4983,7 @@ public Builder clearBootDiskSizeGb() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4172,41 +4996,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4218,21 +5046,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int configCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object config_; + public enum ConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_INSTANCE(1), CONFIG_NOT_SET(0); private final int value; + private ConfigCase(int value) { this.value = value; } @@ -4248,29 +5080,35 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: return GCE_INSTANCE; - case 0: return CONFIG_NOT_SET; - default: return null; + case 1: + return GCE_INSTANCE; + case 0: + return CONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public static final int GCE_INSTANCE_FIELD_NUMBER = 1; /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -4278,36 +5116,47 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGceInstance() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4319,10 +5168,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 (configCase_ == 1) { - output.writeMessage(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + output.writeMessage( + 1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); } getUnknownFields().writeTo(output); } @@ -4334,8 +5183,9 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4345,18 +5195,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.workstations.v1.WorkstationConfig.Host)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Host other = (com.google.cloud.workstations.v1.WorkstationConfig.Host) obj; + com.google.cloud.workstations.v1.WorkstationConfig.Host other = + (com.google.cloud.workstations.v1.WorkstationConfig.Host) obj; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getGceInstance() - .equals(other.getGceInstance())) return false; + if (!getGceInstance().equals(other.getGceInstance())) return false; break; case 0: default: @@ -4386,89 +5236,94 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Host parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host 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.workstations.v1.WorkstationConfig.Host prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Host 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 @@ -4478,39 +5333,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Runtime host for a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Host} */ - 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.workstations.v1.WorkstationConfig.Host) com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Host.class, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder.class); } // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Host.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4524,9 +5381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; } @java.lang.Override @@ -4545,8 +5402,11 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host build() { @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Host result = new com.google.cloud.workstations.v1.WorkstationConfig.Host(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.WorkstationConfig.Host result = + new com.google.cloud.workstations.v1.WorkstationConfig.Host(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -4556,11 +5416,11 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Ho int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.Host result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1.WorkstationConfig.Host result) { result.configCase_ = configCase_; result.config_ = this.config_; - if (configCase_ == 1 && - gceInstanceBuilder_ != null) { + if (configCase_ == 1 && gceInstanceBuilder_ != null) { result.config_ = gceInstanceBuilder_.build(); } } @@ -4569,38 +5429,41 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConf 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.workstations.v1.WorkstationConfig.Host) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host)other); + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Host) other); } else { super.mergeFrom(other); return this; @@ -4608,15 +5471,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Host other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) + return this; switch (other.getConfigCase()) { - case GCE_INSTANCE: { - mergeGceInstance(other.getGceInstance()); - break; - } - case CONFIG_NOT_SET: { - break; - } + case GCE_INSTANCE: + { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4644,19 +5510,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGceInstanceFieldBuilder().getBuilder(), - extensionRegistry); - configCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGceInstanceFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4666,12 +5532,12 @@ public Builder mergeFrom( } // finally return this; } + private int configCase_ = 0; private java.lang.Object config_; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public Builder clearConfig() { @@ -4684,13 +5550,20 @@ public Builder clearConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> + gceInstanceBuilder_; /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -4698,11 +5571,15 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override @@ -4711,22 +5588,28 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance getGc if (configCase_ == 1) { return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } else { if (configCase_ == 1) { return gceInstanceBuilder_.getMessage(); } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder setGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + public Builder setGceInstance( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4740,14 +5623,18 @@ public Builder setGceInstance(com.google.cloud.workstations.v1.WorkstationConfig return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder setGceInstance( - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder + builderForValue) { if (gceInstanceBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -4758,18 +5645,28 @@ public Builder setGceInstance( return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder mergeGceInstance(com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { + public Builder mergeGceInstance( + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { - if (configCase_ == 1 && - config_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { - config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_) - .mergeFrom(value).buildPartial(); + if (configCase_ == 1 + && config_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) { + config_ = + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.newBuilder( + (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) + config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -4785,11 +5682,14 @@ public Builder mergeGceInstance(com.google.cloud.workstations.v1.WorkstationConf return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder clearGceInstance() { if (gceInstanceBuilder_ == null) { @@ -4808,49 +5708,68 @@ public Builder clearGceInstance() { return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder + getGceInstanceBuilder() { return getGceInstanceFieldBuilder().getBuilder(); } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { return gceInstanceBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 1) { return (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder> getGceInstanceFieldBuilder() { if (gceInstanceBuilder_ == null) { if (!(configCase_ == 1)) { - config_ = com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + config_ = + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } - gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder>( + gceInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuilder>( (com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance) config_, getParentForChildren(), isClean()); @@ -4860,6 +5779,7 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.GceInstanceOrBuil onChanged(); return gceInstanceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4872,12 +5792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Host) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Host) private static final com.google.cloud.workstations.v1.WorkstationConfig.Host DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Host(); } @@ -4886,27 +5806,28 @@ public static com.google.cloud.workstations.v1.WorkstationConfig.Host getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Host parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4921,107 +5842,137 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationConfig.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PersistentDirectoryOrBuilder extends + public interface PersistentDirectoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk + getGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder(); /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.DirectoryTypeCase + getDirectoryTypeCase(); } /** + * + * *
    * A directory to persist across workstation sessions.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} */ - public static final class PersistentDirectory extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PersistentDirectory extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) PersistentDirectoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistentDirectory.newBuilder() to construct. private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PersistentDirectory() { mountPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersistentDirectory(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); } - public interface GceRegionalPersistentDiskOrBuilder extends + public interface GceRegionalPersistentDiskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -5036,11 +5987,14 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sizeGb. */ int getSizeGb(); /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -5050,10 +6004,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The fsType. */ java.lang.String getFsType(); /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -5063,12 +6020,14 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for fsType. */ - com.google.protobuf.ByteString - getFsTypeBytes(); + com.google.protobuf.ByteString getFsTypeBytes(); /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -5076,10 +6035,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ java.lang.String getDiskType(); /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -5087,12 +6049,14 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ - com.google.protobuf.ByteString - getDiskTypeBytes(); + com.google.protobuf.ByteString getDiskTypeBytes(); /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -5103,10 +6067,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -5117,35 +6084,49 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString - getSourceSnapshotBytes(); + com.google.protobuf.ByteString getSourceSnapshotBytes(); /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ int getReclaimPolicyValue(); /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reclaimPolicy. */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine regional persistent
      * disk. The
@@ -5159,17 +6140,20 @@ public interface GceRegionalPersistentDiskOrBuilder extends
      * directory.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class GceRegionalPersistentDisk extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceRegionalPersistentDisk + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) GceRegionalPersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceRegionalPersistentDisk.newBuilder() to construct. private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceRegionalPersistentDisk() { fsType_ = ""; diskType_ = ""; @@ -5179,35 +6163,42 @@ private GceRegionalPersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceRegionalPersistentDisk(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } /** + * + * *
        * Value representing what should happen to the disk after the workstation
        * is deleted.
        * 
* - * Protobuf enum {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + * Protobuf enum {@code + * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} */ - public enum ReclaimPolicy - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Do not use.
          * 
@@ -5216,6 +6207,8 @@ public enum ReclaimPolicy */ RECLAIM_POLICY_UNSPECIFIED(0), /** + * + * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -5224,6 +6217,8 @@ public enum ReclaimPolicy */ DELETE(1), /** + * + * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -5236,6 +6231,8 @@ public enum ReclaimPolicy
         ;
 
         /**
+         *
+         *
          * 
          * Do not use.
          * 
@@ -5244,6 +6241,8 @@ public enum ReclaimPolicy */ public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -5252,6 +6251,8 @@ public enum ReclaimPolicy */ public static final int DELETE_VALUE = 1; /** + * + * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -5261,7 +6262,6 @@ public enum ReclaimPolicy
          */
         public static final int RETAIN_VALUE = 2;
 
-
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -5286,10 +6286,14 @@ public static ReclaimPolicy valueOf(int value) {
          */
         public static ReclaimPolicy forNumber(int value) {
           switch (value) {
-            case 0: return RECLAIM_POLICY_UNSPECIFIED;
-            case 1: return DELETE;
-            case 2: return RETAIN;
-            default: return null;
+            case 0:
+              return RECLAIM_POLICY_UNSPECIFIED;
+            case 1:
+              return DELETE;
+            case 2:
+              return RETAIN;
+            default:
+              return null;
           }
         }
 
@@ -5297,29 +6301,32 @@ public static ReclaimPolicy forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
-        private static final com.google.protobuf.Internal.EnumLiteMap<
-            ReclaimPolicy> internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public ReclaimPolicy findValueByNumber(int number) {
-                  return ReclaimPolicy.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 ReclaimPolicy findValueByNumber(int number) {
+                    return ReclaimPolicy.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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0);
+
+        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+          return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory
+              .GceRegionalPersistentDisk.getDescriptor()
+              .getEnumTypes()
+              .get(0);
         }
 
         private static final ReclaimPolicy[] VALUES = values();
@@ -5328,7 +6335,7 @@ public static ReclaimPolicy valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-              "EnumValueDescriptor is not for this type.");
+                "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -5348,6 +6355,8 @@ private ReclaimPolicy(int value) {
       public static final int SIZE_GB_FIELD_NUMBER = 1;
       private int sizeGb_ = 0;
       /**
+       *
+       *
        * 
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -5362,6 +6371,7 @@ private ReclaimPolicy(int value) {
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sizeGb. */ @java.lang.Override @@ -5370,9 +6380,12 @@ public int getSizeGb() { } public static final int FS_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object fsType_ = ""; /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -5382,6 +6395,7 @@ public int getSizeGb() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The fsType. */ @java.lang.Override @@ -5390,14 +6404,15 @@ public java.lang.String getFsType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; } } /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -5407,16 +6422,15 @@ public java.lang.String getFsType() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for fsType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -5425,9 +6439,12 @@ public java.lang.String getFsType() { } public static final int DISK_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -5435,6 +6452,7 @@ public java.lang.String getFsType() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ @java.lang.Override @@ -5443,14 +6461,15 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -5458,16 +6477,15 @@ public java.lang.String getDiskType() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -5476,9 +6494,12 @@ public java.lang.String getDiskType() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -5489,6 +6510,7 @@ public java.lang.String getDiskType() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ @java.lang.Override @@ -5497,14 +6519,15 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -5515,16 +6538,15 @@ public java.lang.String getSourceSnapshot() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -5535,34 +6557,56 @@ public java.lang.String getSourceSnapshot() { public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; private int reclaimPolicy_ = 0; /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reclaimPolicy. */ - @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5574,8 +6618,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 (sizeGb_ != 0) { output.writeInt32(1, sizeGb_); } @@ -5585,7 +6628,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + if (reclaimPolicy_ + != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { @@ -5601,8 +6647,7 @@ public int getSerializedSize() { size = 0; if (sizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); @@ -5610,9 +6655,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, reclaimPolicy_); + if (reclaimPolicy_ + != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); @@ -5625,21 +6672,25 @@ 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; - - if (getSizeGb() - != other.getSizeGb()) return false; - if (!getFsType() - .equals(other.getFsType())) return false; - if (!getDiskType() - .equals(other.getDiskType())) return false; - if (!getSourceSnapshot() - .equals(other.getSourceSnapshot())) return false; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other = + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + obj; + + if (getSizeGb() != other.getSizeGb()) return false; + if (!getFsType().equals(other.getFsType())) return false; + if (!getDiskType().equals(other.getDiskType())) return false; + if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; if (reclaimPolicy_ != other.reclaimPolicy_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5667,90 +6718,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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(); } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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 @@ -5760,6 +6838,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine regional persistent
        * disk. The
@@ -5773,35 +6853,40 @@ protected Builder newBuilderForType(
        * directory.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5815,19 +6900,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + build() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -5835,14 +6927,25 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Gc } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + buildPartial() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sizeGb_ = sizeGb_; @@ -5865,46 +6968,60 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Pe 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.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); + if (other + instanceof + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) return this; if (other.getSizeGb() != 0) { setSizeGb(other.getSizeGb()); } @@ -5952,37 +7069,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - fsType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reclaimPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5992,10 +7115,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int sizeGb_ ; + private int sizeGb_; /** + * + * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -6010,6 +7136,7 @@ public Builder mergeFrom(
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sizeGb. */ @java.lang.Override @@ -6017,6 +7144,8 @@ public int getSizeGb() { return sizeGb_; } /** + * + * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -6031,6 +7160,7 @@ public int getSizeGb() {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sizeGb to set. * @return This builder for chaining. */ @@ -6042,6 +7172,8 @@ public Builder setSizeGb(int value) { return this; } /** + * + * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -6056,6 +7188,7 @@ public Builder setSizeGb(int value) {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -6067,6 +7200,8 @@ public Builder clearSizeGb() { private java.lang.Object fsType_ = ""; /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -6076,13 +7211,13 @@ public Builder clearSizeGb() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The fsType. */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; @@ -6091,6 +7226,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -6100,15 +7237,14 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for fsType. */ - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -6116,6 +7252,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -6125,18 +7263,22 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fsType to set. * @return This builder for chaining. */ - public Builder setFsType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fsType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -6146,6 +7288,7 @@ public Builder setFsType(
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFsType() { @@ -6155,6 +7298,8 @@ public Builder clearFsType() { return this; } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -6164,12 +7309,14 @@ public Builder clearFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for fsType to set. * @return This builder for chaining. */ - public Builder setFsTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fsType_ = value; bitField0_ |= 0x00000002; @@ -6179,6 +7326,8 @@ public Builder setFsTypeBytes( private java.lang.Object diskType_ = ""; /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6186,13 +7335,13 @@ public Builder setFsTypeBytes(
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -6201,6 +7350,8 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6208,15 +7359,14 @@ public java.lang.String getDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -6224,6 +7374,8 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6231,18 +7383,22 @@ public java.lang.String getDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } diskType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6250,6 +7406,7 @@ public Builder setDiskType(
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -6259,6 +7416,8 @@ public Builder clearDiskType() { return this; } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6266,12 +7425,14 @@ public Builder clearDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000004; @@ -6281,6 +7442,8 @@ public Builder setDiskTypeBytes( private java.lang.Object sourceSnapshot_ = ""; /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -6291,13 +7454,13 @@ public Builder setDiskTypeBytes(
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -6306,6 +7469,8 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -6316,15 +7481,14 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -6332,6 +7496,8 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -6342,18 +7508,22 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceSnapshot_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -6364,6 +7534,7 @@ public Builder setSourceSnapshot(
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -6373,6 +7544,8 @@ public Builder clearSourceSnapshot() { return this; } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -6383,12 +7556,14 @@ public Builder clearSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000008; @@ -6398,26 +7573,37 @@ public Builder setSourceSnapshotBytes( private int reclaimPolicy_ = 0; /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for reclaimPolicy to set. * @return This builder for chaining. */ @@ -6428,32 +7614,54 @@ public Builder setReclaimPolicyValue(int value) { return this; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reclaimPolicy. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The reclaimPolicy to set. * @return This builder for chaining. */ - public Builder setReclaimPolicy(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { + public Builder setReclaimPolicy( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + value) { if (value == null) { throw new NullPointerException(); } @@ -6463,13 +7671,18 @@ public Builder setReclaimPolicy(com.google.cloud.workstations.v1.WorkstationConf return this; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearReclaimPolicy() { @@ -6478,6 +7691,7 @@ public Builder clearReclaimPolicy() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6490,41 +7704,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceRegionalPersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6536,21 +7757,26 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int directoryTypeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object directoryType_; + public enum DirectoryTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(2), DIRECTORYTYPE_NOT_SET(0); private final int value; + private DirectoryTypeCase(int value) { this.value = value; } @@ -6566,29 +7792,36 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 2: return GCE_PD; - case 0: return DIRECTORYTYPE_NOT_SET; - default: return null; + case 2: + return GCE_PD; + case 0: + return DIRECTORYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public static final int GCE_PD_FIELD_NUMBER = 2; /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -6596,44 +7829,67 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mountPath. */ @java.lang.Override @@ -6642,29 +7898,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -6673,6 +7929,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6684,13 +7941,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + output.writeMessage( + 2, + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } getUnknownFields().writeTo(output); } @@ -6705,8 +7965,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6716,20 +7980,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.workstations.v1.WorkstationConfig.PersistentDirectory)) { + if (!(obj + instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) obj; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other = + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) obj; - if (!getMountPath() - .equals(other.getMountPath())) return false; + if (!getMountPath().equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 2: - if (!getGcePd() - .equals(other.getGcePd())) return false; + if (!getGcePd().equals(other.getGcePd())) return false; break; case 0: default: @@ -6761,89 +8025,95 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory + 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.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory 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.workstations.v1.WorkstationConfig.PersistentDirectory prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory 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 @@ -6853,39 +8123,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A directory to persist across workstation sessions.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory} */ - 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.workstations.v1.WorkstationConfig.PersistentDirectory) com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + .class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6900,19 +8174,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory build() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = buildPartial(); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -6921,25 +8198,29 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory bu @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.mountPath_ = mountPath_; } } - private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory result) { result.directoryTypeCase_ = directoryTypeCase_; result.directoryType_ = this.directoryType_; - if (directoryTypeCase_ == 2 && - gcePdBuilder_ != null) { + if (directoryTypeCase_ == 2 && gcePdBuilder_ != null) { result.directoryType_ = gcePdBuilder_.build(); } } @@ -6948,59 +8229,69 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1.WorkstationConf 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.workstations.v1.WorkstationConfig.PersistentDirectory) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory)other); + if (other + instanceof com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) { + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance()) return this; if (!other.getMountPath().isEmpty()) { mountPath_ = other.mountPath_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDirectoryTypeCase()) { - case GCE_PD: { - mergeGcePd(other.getGcePd()); - break; - } - case DIRECTORYTYPE_NOT_SET: { - break; - } + case GCE_PD: + { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -7028,24 +8319,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mountPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - input.readMessage( - getGcePdFieldBuilder().getBuilder(), - extensionRegistry); - directoryTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry); + directoryTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7055,12 +8347,12 @@ public Builder mergeFrom( } // finally return this; } + private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public Builder clearDirectoryType() { @@ -7073,13 +8365,24 @@ public Builder clearDirectoryType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> + gcePdBuilder_; /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -7087,35 +8390,53 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 2) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder setGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder setGcePd( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7129,14 +8450,20 @@ public Builder setGcePd(com.google.cloud.workstations.v1.WorkstationConfig.Persi return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder setGcePd( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -7147,18 +8474,33 @@ public Builder setGcePd( return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder mergeGcePd(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder mergeGcePd( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 2 && - directoryType_ != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { - directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) - .mergeFrom(value).buildPartial(); + if (directoryTypeCase_ == 2 + && directoryType_ + != com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.newBuilder( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_) + .mergeFrom(value) + .buildPartial(); } else { directoryType_ = value; } @@ -7174,11 +8516,15 @@ public Builder mergeGcePd(com.google.cloud.workstations.v1.WorkstationConfig.Per return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -7197,50 +8543,84 @@ public Builder clearGcePd() { return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 2)) { - directoryType_ = com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + directoryType_ = + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } - gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, + gcePdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -7252,18 +8632,20 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Gc private java.lang.Object mountPath_ = ""; /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -7272,20 +8654,21 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -7293,28 +8676,35 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -7324,23 +8714,28 @@ public Builder clearMountPath() { return this; } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7353,41 +8748,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory) - private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistentDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7399,17 +8798,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ContainerOrBuilder extends + public interface ContainerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.Container) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -7426,10 +8828,13 @@ public interface ContainerOrBuilder extends
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -7446,98 +8851,120 @@ public interface ContainerOrBuilder extends
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the command. */ - java.util.List - getCommandList(); + java.util.List getCommandList(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of command. */ int getCommandCount(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString - getCommandBytes(int index); + com.google.protobuf.ByteString getCommandBytes(int index); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -7546,30 +8973,31 @@ public interface ContainerOrBuilder extends */ int getEnvCount(); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsEnv( - java.lang.String key); - /** - * Use {@link #getEnvMap()} instead. - */ + boolean containsEnv(java.lang.String key); + /** Use {@link #getEnvMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnv(); + java.util.Map getEnv(); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getEnvMap(); + java.util.Map getEnvMap(); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -7577,112 +9005,125 @@ boolean containsEnv( * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ -java.lang.String getEnvOrDefault( + java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getEnvOrThrow( - java.lang.String key); + java.lang.String getEnvOrThrow(java.lang.String key); /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The workingDir. */ java.lang.String getWorkingDir(); /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString - getWorkingDirBytes(); + com.google.protobuf.ByteString getWorkingDirBytes(); /** + * + * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The runAsUser. */ int getRunAsUser(); } /** + * + * *
    * A Docker container.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} */ - public static final class Container extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Container extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.Container) ContainerOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Container() { image_ = ""; - command_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = com.google.protobuf.LazyStringArrayList.emptyList(); workingDir_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Container(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -7699,6 +9140,7 @@ protected com.google.protobuf.MapField internalGetMapField(
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The image. */ @java.lang.Override @@ -7707,14 +9149,15 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -7731,16 +9174,15 @@ public java.lang.String getImage() {
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -7749,41 +9191,50 @@ public java.lang.String getImage() { } public static final int COMMAND_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -7791,53 +9242,64 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -7845,46 +9307,50 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 4; + private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -7892,20 +9358,21 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -7917,6 +9384,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -7924,17 +9393,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -7942,11 +9413,11 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -7954,14 +9425,18 @@ public java.lang.String getEnvOrThrow( } public static final int WORKING_DIR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object workingDir_ = ""; /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The workingDir. */ @java.lang.Override @@ -7970,29 +9445,29 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -8003,12 +9478,15 @@ public java.lang.String getWorkingDir() { public static final int RUN_AS_USER_FIELD_NUMBER = 6; private int runAsUser_ = 0; /** + * + * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The runAsUser. */ @java.lang.Override @@ -8017,6 +9495,7 @@ public int getRunAsUser() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8028,8 +9507,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(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -8039,12 +9517,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetEnv(), - EnvDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } @@ -8079,22 +9553,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } - for (java.util.Map.Entry entry - : internalGetEnv().getMap().entrySet()) { - com.google.protobuf.MapEntry - env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, env__); + for (java.util.Map.Entry entry : + internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry env__ = + EnvDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } if (runAsUser_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, runAsUser_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8104,25 +9577,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.workstations.v1.WorkstationConfig.Container)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.Container other = (com.google.cloud.workstations.v1.WorkstationConfig.Container) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!internalGetEnv().equals( - other.internalGetEnv())) return false; - if (!getWorkingDir() - .equals(other.getWorkingDir())) return false; - if (getRunAsUser() - != other.getRunAsUser()) return false; + com.google.cloud.workstations.v1.WorkstationConfig.Container other = + (com.google.cloud.workstations.v1.WorkstationConfig.Container) obj; + + if (!getImage().equals(other.getImage())) return false; + if (!getCommandList().equals(other.getCommandList())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!internalGetEnv().equals(other.internalGetEnv())) return false; + if (!getWorkingDir().equals(other.getWorkingDir())) return false; + if (getRunAsUser() != other.getRunAsUser()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8158,89 +9626,94 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.Container parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container 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.workstations.v1.WorkstationConfig.Container prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.Container 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 @@ -8250,70 +9723,68 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Docker container.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.Container} */ - 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.workstations.v1.WorkstationConfig.Container) com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.Container.class, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder.class); } // Construct using com.google.cloud.workstations.v1.WorkstationConfig.Container.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; image_ = ""; - command_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableEnv().clear(); workingDir_ = ""; runAsUser_ = 0; @@ -8321,13 +9792,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container + getDefaultInstanceForType() { return com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance(); } @@ -8342,13 +9814,17 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Container build() { @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Container buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.Container result = new com.google.cloud.workstations.v1.WorkstationConfig.Container(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.WorkstationConfig.Container result = + new com.google.cloud.workstations.v1.WorkstationConfig.Container(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Container result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; @@ -8377,38 +9853,41 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Co 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.workstations.v1.WorkstationConfig.Container) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Container)other); + return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.Container) other); } else { super.mergeFrom(other); return this; @@ -8416,7 +9895,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Container other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) + return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; @@ -8442,8 +9923,7 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.Cont } onChanged(); } - internalGetMutableEnv().mergeFrom( - other.internalGetEnv()); + internalGetMutableEnv().mergeFrom(other.internalGetEnv()); bitField0_ |= 0x00000008; if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; @@ -8479,48 +9959,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - image_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandIsMutable(); - command_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - env__ = input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put( - env__.getKey(), env__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - runAsUser_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry env__ = + input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8530,10 +10016,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object image_ = ""; /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -8550,13 +10039,13 @@ public Builder mergeFrom(
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -8565,6 +10054,8 @@ public java.lang.String getImage() { } } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -8581,15 +10072,14 @@ public java.lang.String getImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -8597,6 +10087,8 @@ public java.lang.String getImage() { } } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -8613,18 +10105,22 @@ public java.lang.String getImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -8641,6 +10137,7 @@ public Builder setImage(
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearImage() { @@ -8650,6 +10147,8 @@ public Builder clearImage() { return this; } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -8666,12 +10165,14 @@ public Builder clearImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; @@ -8681,6 +10182,7 @@ public Builder setImageBytes( private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCommandIsMutable() { if (!command_.isModifiable()) { command_ = new com.google.protobuf.LazyStringArrayList(command_); @@ -8688,38 +10190,46 @@ private void ensureCommandIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { command_.makeImmutable(); return command_; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -8727,33 +10237,39 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCommand(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.set(index, value); bitField0_ |= 0x00000002; @@ -8761,18 +10277,22 @@ public Builder setCommand( return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.add(value); bitField0_ |= 0x00000002; @@ -8780,53 +10300,61 @@ public Builder addCommand( return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand( - java.lang.Iterable values) { + public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCommand() { - command_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); @@ -8837,6 +10365,7 @@ public Builder addCommandBytes( private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureArgsIsMutable() { if (!args_.isModifiable()) { args_ = new com.google.protobuf.LazyStringArrayList(args_); @@ -8844,35 +10373,43 @@ private void ensureArgsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { args_.makeImmutable(); return args_; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -8880,31 +10417,37 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.set(index, value); bitField0_ |= 0x00000004; @@ -8912,17 +10455,21 @@ public Builder setArgs( return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.add(value); bitField0_ |= 0x00000004; @@ -8930,50 +10477,58 @@ public Builder addArgs( return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { - args_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); @@ -8982,21 +10537,19 @@ public Builder addArgsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField( - EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -9005,10 +10558,13 @@ public Builder addArgsBytes( onChanged(); return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -9016,20 +10572,21 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -9041,6 +10598,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -9048,17 +10607,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -9066,91 +10627,95 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableEnv().getMutableMap() - .clear(); + internalGetMutableEnv().getMutableMap().clear(); return this; } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnv().getMutableMap() - .remove(key); + public Builder removeEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnv().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnv() { + public java.util.Map getMutableEnv() { bitField0_ |= 0x00000008; return internalGetMutableEnv().getMutableMap(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putEnv( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableEnv().getMutableMap() - .put(key, value); + public Builder putEnv(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableEnv().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllEnv( - java.util.Map values) { - internalGetMutableEnv().getMutableMap() - .putAll(values); + public Builder putAllEnv(java.util.Map values) { + internalGetMutableEnv().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object workingDir_ = ""; /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -9159,20 +10724,21 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -9180,28 +10746,35 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWorkingDir() { @@ -9211,17 +10784,21 @@ public Builder clearWorkingDir() { return this; } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workingDir_ = value; bitField0_ |= 0x00000010; @@ -9229,14 +10806,17 @@ public Builder setWorkingDirBytes( return this; } - private int runAsUser_ ; + private int runAsUser_; /** + * + * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The runAsUser. */ @java.lang.Override @@ -9244,12 +10824,15 @@ public int getRunAsUser() { return runAsUser_; } /** + * + * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The runAsUser to set. * @return This builder for chaining. */ @@ -9261,12 +10844,15 @@ public Builder setRunAsUser(int value) { return this; } /** + * + * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRunAsUser() { @@ -9275,6 +10861,7 @@ public Builder clearRunAsUser() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9287,41 +10874,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.Container) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.Container) - private static final com.google.cloud.workstations.v1.WorkstationConfig.Container DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.Container + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.Container(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.Container + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9333,17 +10923,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.Container getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CustomerEncryptionKeyOrBuilder extends + public interface CustomerEncryptionKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9351,10 +10944,13 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9362,12 +10958,14 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9379,10 +10977,13 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyServiceAccount. */ java.lang.String getKmsKeyServiceAccount(); /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9394,12 +10995,14 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyServiceAccount. */ - com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes(); + com.google.protobuf.ByteString getKmsKeyServiceAccountBytes(); } /** + * + * *
    * A customer-managed encryption key (CMEK) for the Compute Engine
    * resources of the associated workstation configuration. Specify the name of
@@ -9411,15 +11014,16 @@ public interface CustomerEncryptionKeyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey}
    */
-  public static final class CustomerEncryptionKey extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)
       CustomerEncryptionKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use CustomerEncryptionKey.newBuilder() to construct.
     private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private CustomerEncryptionKey() {
       kmsKey_ = "";
       kmsKeyServiceAccount_ = "";
@@ -9427,28 +11031,33 @@ private CustomerEncryptionKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new CustomerEncryptionKey();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class,
+              com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder
+                  .class);
     }
 
     public static final int KMS_KEY_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object kmsKey_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9456,6 +11065,7 @@ protected java.lang.Object newInstance(
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKey. */ @java.lang.Override @@ -9464,14 +11074,15 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** + * + * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9479,16 +11090,15 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -9497,9 +11107,12 @@ public java.lang.String getKmsKey() { } public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9511,6 +11124,7 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyServiceAccount. */ @java.lang.Override @@ -9519,14 +11133,15 @@ public java.lang.String getKmsKeyServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; } } /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -9538,16 +11153,15 @@ public java.lang.String getKmsKeyServiceAccount() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -9556,6 +11170,7 @@ public java.lang.String getKmsKeyServiceAccount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9567,8 +11182,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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -9598,17 +11212,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.workstations.v1.WorkstationConfig.CustomerEncryptionKey)) { + if (!(obj + instanceof com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) obj; + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other = + (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) obj; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; - if (!getKmsKeyServiceAccount() - .equals(other.getKmsKeyServiceAccount())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount().equals(other.getKmsKeyServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9629,90 +11243,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1.WorkstationConfig.CustomerEncryptionKey prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey 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 @@ -9722,6 +11347,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A customer-managed encryption key (CMEK) for the Compute Engine
      * resources of the associated workstation configuration. Specify the name of
@@ -9733,33 +11360,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey}
      */
-    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.workstations.v1.WorkstationConfig.CustomerEncryptionKey)
         com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.workstations.v1.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+        return com.google.cloud.workstations.v1.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder.class);
+                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.class,
+                com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -9770,19 +11399,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.workstations.v1.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() {
-        return com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance();
+      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+          getDefaultInstanceForType() {
+        return com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey build() {
-        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = buildPartial();
+        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -9790,14 +11422,19 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey buildPartial() {
-        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+          buildPartial() {
+        com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result =
+            new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result) {
+      private void buildPartial0(
+          com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
           result.kmsKey_ = kmsKey_;
@@ -9811,46 +11448,54 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Cu
       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.workstations.v1.WorkstationConfig.CustomerEncryptionKey) {
-          return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey)other);
+        if (other
+            instanceof com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) {
+          return mergeFrom(
+              (com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other) {
-        if (other == com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey other) {
+        if (other
+            == com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
+                .getDefaultInstance()) return this;
         if (!other.getKmsKey().isEmpty()) {
           kmsKey_ = other.kmsKey_;
           bitField0_ |= 0x00000001;
@@ -9887,22 +11532,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                kmsKey_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                kmsKeyServiceAccount_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  kmsKey_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  kmsKeyServiceAccount_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9912,10 +11560,13 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private java.lang.Object kmsKey_ = "";
       /**
+       *
+       *
        * 
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9923,13 +11574,13 @@ public Builder mergeFrom(
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -9938,6 +11589,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9945,15 +11598,14 @@ public java.lang.String getKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -9961,6 +11613,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9968,18 +11622,22 @@ public java.lang.String getKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -9987,6 +11645,7 @@ public Builder setKmsKey(
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -9996,6 +11655,8 @@ public Builder clearKmsKey() { return this; } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -10003,12 +11664,14 @@ public Builder clearKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000001; @@ -10018,6 +11681,8 @@ public Builder setKmsKeyBytes( private java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10029,13 +11694,13 @@ public Builder setKmsKeyBytes(
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyServiceAccount. */ public java.lang.String getKmsKeyServiceAccount() { java.lang.Object ref = kmsKeyServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; @@ -10044,6 +11709,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10055,15 +11722,14 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyServiceAccount. */ - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -10071,6 +11737,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10082,18 +11750,22 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10105,6 +11777,7 @@ public Builder setKmsKeyServiceAccount(
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearKmsKeyServiceAccount() { @@ -10114,6 +11787,8 @@ public Builder clearKmsKeyServiceAccount() { return this; } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -10125,18 +11800,21 @@ public Builder clearKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10149,41 +11827,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey) - private static final com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10195,95 +11877,112 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ReadinessCheckOrBuilder extends + public interface ReadinessCheckOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The port. */ int getPort(); } /** + * + * *
    * A readiness check to be performed on a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck} */ - public static final class ReadinessCheck extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReadinessCheck extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) ReadinessCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadinessCheck.newBuilder() to construct. private ReadinessCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadinessCheck() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadinessCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ @java.lang.Override @@ -10292,29 +11991,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -10325,11 +12024,14 @@ public java.lang.String getPath() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** + * + * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The port. */ @java.lang.Override @@ -10338,6 +12040,7 @@ public int getPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10349,8 +12052,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -10370,8 +12072,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10381,17 +12082,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.workstations.v1.WorkstationConfig.ReadinessCheck)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other = (com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) obj; + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other = + (com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) obj; - if (!getPath() - .equals(other.getPath())) return false; - if (getPort() - != other.getPort()) return false; + if (!getPath().equals(other.getPath())) return false; + if (getPort() != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10413,89 +12113,95 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck + 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.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck 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.workstations.v1.WorkstationConfig.ReadinessCheck prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck 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 @@ -10505,39 +12211,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A readiness check to be performed on a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck} */ - 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.workstations.v1.WorkstationConfig.ReadinessCheck) com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.class, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder.class); } - // Construct using com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -10548,14 +12257,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { - return com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance(); + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + .getDefaultInstance(); } @java.lang.Override @@ -10569,13 +12280,17 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck build() @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck buildPartial() { - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result = new com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result = + new com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result) { + private void buildPartial0( + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; @@ -10589,46 +12304,53 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig.Re 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.workstations.v1.WorkstationConfig.ReadinessCheck) { - return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck)other); + return mergeFrom( + (com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other) { - if (other == com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck other) { + if (other + == com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + .getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -10663,22 +12385,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10688,22 +12413,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object path_ = ""; /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -10712,20 +12440,21 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -10733,28 +12462,35 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPath() { @@ -10764,17 +12500,21 @@ public Builder clearPath() { return this; } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -10782,13 +12522,16 @@ public Builder setPathBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The port. */ @java.lang.Override @@ -10796,11 +12539,14 @@ public int getPort() { return port_; } /** + * + * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The port to set. * @return This builder for chaining. */ @@ -10812,11 +12558,14 @@ public Builder setPort(int value) { return this; } /** + * + * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -10825,6 +12574,7 @@ public Builder clearPort() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10837,41 +12587,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck) - private static final com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck(); } - public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getDefaultInstance() { + public static com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadinessCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadinessCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10883,21 +12636,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -10906,29 +12663,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; } } /** + * + * *
    * Full name of this workstation configuration.
    * 
* * 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 { @@ -10937,14 +12694,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -10953,29 +12714,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; } } /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -10984,15 +12745,19 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -11001,30 +12766,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -11035,12 +12800,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -11049,94 +12817,106 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -11144,32 +12924,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 18; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1.WorkstationsProto + .internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -11180,20 +12962,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -11208,6 +12991,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -11218,17 +13003,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -11239,11 +13026,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -11253,11 +13040,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -11265,11 +13056,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -11277,11 +13072,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -11291,12 +13089,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -11304,12 +13106,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -11317,12 +13123,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -11332,11 +13141,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -11344,11 +13157,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -11356,11 +13173,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -11368,9 +13188,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -11378,6 +13201,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -11386,14 +13210,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -11401,16 +13226,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -11421,6 +13245,8 @@ public java.lang.String getEtag() { public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration idleTimeout_; /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -11433,7 +13259,9 @@ public java.lang.String getEtag() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleTimeout field is set. */ @java.lang.Override @@ -11441,6 +13269,8 @@ public boolean hasIdleTimeout() { return idleTimeout_ != null; } /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -11453,7 +13283,9 @@ public boolean hasIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleTimeout. */ @java.lang.Override @@ -11461,6 +13293,8 @@ public com.google.protobuf.Duration getIdleTimeout() { return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -11473,7 +13307,8 @@ public com.google.protobuf.Duration getIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { @@ -11483,6 +13318,8 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11; private com.google.protobuf.Duration runningTimeout_; /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -11508,7 +13345,9 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runningTimeout field is set. */ @java.lang.Override @@ -11516,6 +13355,8 @@ public boolean hasRunningTimeout() { return runningTimeout_ != null; } /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -11541,14 +13382,20 @@ public boolean hasRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runningTimeout. */ @java.lang.Override public com.google.protobuf.Duration getRunningTimeout() { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -11574,21 +13421,29 @@ public com.google.protobuf.Duration getRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } public static final int HOST_FIELD_NUMBER = 12; private com.google.cloud.workstations.v1.WorkstationConfig.Host host_; /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the host field is set. */ @java.lang.Override @@ -11596,99 +13451,142 @@ public boolean hasHost() { return host_ != null; } /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The host. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { - return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder() { - return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; + @SuppressWarnings("serial") - private java.util.List persistentDirectories_; + private java.util.List + persistentDirectories_; /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getPersistentDirectoriesList() { + public java.util.List + getPersistentDirectoriesList() { return persistentDirectories_; } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList() { return persistentDirectories_; } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getPersistentDirectoriesCount() { return persistentDirectories_.size(); } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { return persistentDirectories_.get(index); } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { return persistentDirectories_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 14; private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the container field is set. */ @java.lang.Override @@ -11696,34 +13594,50 @@ public boolean hasContainer() { return container_ != null; } /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The container. */ @java.lang.Override public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { - return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() + : container_; } /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { - return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder + getContainerOrBuilder() { + return container_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() + : container_; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17; private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_; /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -11745,7 +13659,10 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder get
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -11753,6 +13670,8 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -11774,14 +13693,23 @@ public boolean hasEncryptionKey() {
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The encryptionKey. */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -11803,89 +13731,123 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } public static final int READINESS_CHECKS_FIELD_NUMBER = 19; + @SuppressWarnings("serial") - private java.util.List readinessChecks_; + private java.util.List + readinessChecks_; /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getReadinessChecksList() { + public java.util.List + getReadinessChecksList() { return readinessChecks_; } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksOrBuilderList() { return readinessChecks_; } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReadinessChecksCount() { return readinessChecks_.size(); } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks( + int index) { return readinessChecks_.get(index); } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder + getReadinessChecksOrBuilder(int index) { return readinessChecks_.get(index); } public static final int REPLICA_ZONES_FIELD_NUMBER = 23; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -11896,14 +13858,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilde
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList - getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { return replicaZones_; } /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -11914,13 +13880,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilde
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -11931,7 +13902,10 @@ public int getReplicaZonesCount() {
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -11939,6 +13913,8 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -11949,18 +13925,22 @@ public java.lang.String getReplicaZones(int index) {
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString - getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } public static final int DEGRADED_FIELD_NUMBER = 15; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -11969,6 +13949,7 @@ public java.lang.String getReplicaZones(int index) {
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -11977,67 +13958,82 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12049,8 +14045,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_); } @@ -12063,12 +14058,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -12105,12 +14096,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (encryptionKey_ != null) { output.writeMessage(17, getEncryptionKey()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 18); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); for (int i = 0; i < readinessChecks_.size(); i++) { output.writeMessage(19, readinessChecks_.get(i)); } @@ -12136,79 +14123,68 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (idleTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getIdleTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIdleTimeout()); } if (runningTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getRunningTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunningTimeout()); } if (host_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getHost()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getHost()); } for (int i = 0; i < persistentDirectories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, persistentDirectories_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, persistentDirectories_.get(i)); } if (container_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getContainer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getContainer()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, conditions_.get(i)); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getEncryptionKey()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionKey()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, labels__); } for (int i = 0; i < readinessChecks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, readinessChecks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, readinessChecks_.get(i)); } { int dataSize = 0; @@ -12226,77 +14202,58 @@ 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.workstations.v1.WorkstationConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1.WorkstationConfig other = (com.google.cloud.workstations.v1.WorkstationConfig) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1.WorkstationConfig other = + (com.google.cloud.workstations.v1.WorkstationConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (hasIdleTimeout() != other.hasIdleTimeout()) return false; if (hasIdleTimeout()) { - if (!getIdleTimeout() - .equals(other.getIdleTimeout())) return false; + if (!getIdleTimeout().equals(other.getIdleTimeout())) return false; } if (hasRunningTimeout() != other.hasRunningTimeout()) return false; if (hasRunningTimeout()) { - if (!getRunningTimeout() - .equals(other.getRunningTimeout())) return false; + if (!getRunningTimeout().equals(other.getRunningTimeout())) return false; } if (hasHost() != other.hasHost()) return false; if (hasHost()) { - if (!getHost() - .equals(other.getHost())) return false; + if (!getHost().equals(other.getHost())) return false; } - if (!getPersistentDirectoriesList() - .equals(other.getPersistentDirectoriesList())) return false; + if (!getPersistentDirectoriesList().equals(other.getPersistentDirectoriesList())) return false; if (hasContainer() != other.hasContainer()) return false; if (hasContainer()) { - if (!getContainer() - .equals(other.getContainer())) return false; + if (!getContainer().equals(other.getContainer())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; - } - if (!getReadinessChecksList() - .equals(other.getReadinessChecksList())) return false; - if (!getReplicaZonesList() - .equals(other.getReplicaZonesList())) return false; - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + } + if (!getReadinessChecksList().equals(other.getReadinessChecksList())) return false; + if (!getReplicaZonesList().equals(other.getReplicaZonesList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12315,8 +14272,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -12372,8 +14328,7 @@ public int hashCode() { hash = (53 * hash) + getReplicaZonesList().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -12384,98 +14339,103 @@ public int hashCode() { } public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1.WorkstationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1.WorkstationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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.workstations.v1.WorkstationConfig 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 workstation configuration resource in the Cloud Workstations API.
    *
@@ -12490,59 +14450,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1.WorkstationConfig}
    */
-  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.workstations.v1.WorkstationConfig)
       com.google.cloud.workstations.v1.WorkstationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 18:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 18:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1.WorkstationConfig.class, com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
+              com.google.cloud.workstations.v1.WorkstationConfig.class,
+              com.google.cloud.workstations.v1.WorkstationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1.WorkstationConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -12608,8 +14565,7 @@ public Builder clear() {
         readinessChecksBuilder_.clear();
       }
       bitField0_ = (bitField0_ & ~0x00010000);
-      replicaZones_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
       degraded_ = false;
       if (conditionsBuilder_ == null) {
         conditions_ = java.util.Collections.emptyList();
@@ -12622,9 +14578,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1.WorkstationsProto.internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -12643,14 +14599,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1.WorkstationConfig buildPartial() {
-      com.google.cloud.workstations.v1.WorkstationConfig result = new com.google.cloud.workstations.v1.WorkstationConfig(this);
+      com.google.cloud.workstations.v1.WorkstationConfig result =
+          new com.google.cloud.workstations.v1.WorkstationConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1.WorkstationConfig result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1.WorkstationConfig result) {
       if (persistentDirectoriesBuilder_ == null) {
         if (((bitField0_ & 0x00002000) != 0)) {
           persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_);
@@ -12703,47 +14663,34 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig re
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.idleTimeout_ = idleTimeoutBuilder_ == null
-            ? idleTimeout_
-            : idleTimeoutBuilder_.build();
+        result.idleTimeout_ =
+            idleTimeoutBuilder_ == null ? idleTimeout_ : idleTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.runningTimeout_ = runningTimeoutBuilder_ == null
-            ? runningTimeout_
-            : runningTimeoutBuilder_.build();
+        result.runningTimeout_ =
+            runningTimeoutBuilder_ == null ? runningTimeout_ : runningTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.host_ = hostBuilder_ == null
-            ? host_
-            : hostBuilder_.build();
+        result.host_ = hostBuilder_ == null ? host_ : hostBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
-        result.container_ = containerBuilder_ == null
-            ? container_
-            : containerBuilder_.build();
+        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.encryptionKey_ = encryptionKeyBuilder_ == null
-            ? encryptionKey_
-            : encryptionKeyBuilder_.build();
+        result.encryptionKey_ =
+            encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00020000) != 0)) {
         replicaZones_.makeImmutable();
@@ -12758,38 +14705,39 @@ private void buildPartial0(com.google.cloud.workstations.v1.WorkstationConfig re
     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.workstations.v1.WorkstationConfig) {
-        return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig)other);
+        return mergeFrom((com.google.cloud.workstations.v1.WorkstationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -12797,7 +14745,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig other) {
-      if (other == com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -12816,11 +14765,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -12863,9 +14810,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             persistentDirectoriesBuilder_ = null;
             persistentDirectories_ = other.persistentDirectories_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            persistentDirectoriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPersistentDirectoriesFieldBuilder() : null;
+            persistentDirectoriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPersistentDirectoriesFieldBuilder()
+                    : null;
           } else {
             persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_);
           }
@@ -12895,9 +14843,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             readinessChecksBuilder_ = null;
             readinessChecks_ = other.readinessChecks_;
             bitField0_ = (bitField0_ & ~0x00010000);
-            readinessChecksBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReadinessChecksFieldBuilder() : null;
+            readinessChecksBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReadinessChecksFieldBuilder()
+                    : null;
           } else {
             readinessChecksBuilder_.addAllMessages(other.readinessChecks_);
           }
@@ -12934,9 +14883,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1.WorkstationConfig othe
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00080000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -12968,161 +14918,169 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getIdleTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getRunningTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getHostFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 106: {
-              com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory m =
-                  input.readMessage(
-                      com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.parser(),
-                      extensionRegistry);
-              if (persistentDirectoriesBuilder_ == null) {
-                ensurePersistentDirectoriesIsMutable();
-                persistentDirectories_.add(m);
-              } else {
-                persistentDirectoriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getContainerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 114
-            case 120: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00040000;
-              break;
-            } // case 120
-            case 130: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 130
-            case 138: {
-              input.readMessage(
-                  getEncryptionKeyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 138
-            case 146: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 146
-            case 154: {
-              com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck m =
-                  input.readMessage(
-                      com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.parser(),
-                      extensionRegistry);
-              if (readinessChecksBuilder_ == null) {
-                ensureReadinessChecksIsMutable();
-                readinessChecks_.add(m);
-              } else {
-                readinessChecksBuilder_.addMessage(m);
-              }
-              break;
-            } // case 154
-            case 186: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureReplicaZonesIsMutable();
-              replicaZones_.add(s);
-              break;
-            } // case 186
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getIdleTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getRunningTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getHostFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 106:
+              {
+                com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory m =
+                    input.readMessage(
+                        com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory
+                            .parser(),
+                        extensionRegistry);
+                if (persistentDirectoriesBuilder_ == null) {
+                  ensurePersistentDirectoriesIsMutable();
+                  persistentDirectories_.add(m);
+                } else {
+                  persistentDirectoriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 114
+            case 120:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00040000;
+                break;
+              } // case 120
+            case 130:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 130
+            case 138:
+              {
+                input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 138
+            case 146:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 146
+            case 154:
+              {
+                com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck m =
+                    input.readMessage(
+                        com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.parser(),
+                        extensionRegistry);
+                if (readinessChecksBuilder_ == null) {
+                  ensureReadinessChecksIsMutable();
+                  readinessChecks_.add(m);
+                } else {
+                  readinessChecksBuilder_.addMessage(m);
+                }
+                break;
+              } // case 154
+            case 186:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureReplicaZonesIsMutable();
+                replicaZones_.add(s);
+                break;
+              } // case 186
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -13132,22 +15090,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this workstation configuration.
      * 
* * 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; @@ -13156,20 +15117,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * 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 { @@ -13177,28 +15139,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -13208,17 +15177,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -13228,18 +15201,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -13248,20 +15223,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -13269,28 +15245,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -13300,17 +15283,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -13320,19 +15307,21 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -13341,21 +15330,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -13363,30 +15353,37 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -13396,18 +15393,22 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -13415,14 +15416,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -13430,12 +15434,15 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -13447,12 +15454,15 @@ public Builder setReconciling(boolean value) { return this; } /** + * + * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -13462,8 +15472,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -13472,11 +15482,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -13485,153 +15496,168 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -13640,10 +15666,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13654,20 +15683,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13682,6 +15712,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13692,17 +15724,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13713,23 +15747,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13739,23 +15775,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13765,17 +15800,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -13785,49 +15823,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -13843,14 +15898,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -13861,17 +15919,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -13884,11 +15946,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -13901,11 +15967,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -13913,36 +15983,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -13950,42 +16032,61 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -14001,15 +16102,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -14020,18 +16124,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -14044,12 +16152,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -14062,12 +16174,16 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -14075,38 +16191,50 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -14114,39 +16242,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -14162,14 +16309,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -14180,17 +16330,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -14203,11 +16357,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -14220,11 +16378,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -14232,36 +16394,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -14269,6 +16443,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -14276,13 +16452,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -14291,6 +16467,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -14298,15 +16476,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -14314,6 +16491,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -14321,18 +16500,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -14340,6 +16523,7 @@ public Builder setEtag(
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -14349,6 +16533,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -14356,12 +16542,14 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -14371,8 +16559,13 @@ public Builder setEtagBytes( private com.google.protobuf.Duration idleTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + idleTimeoutBuilder_; /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14385,13 +16578,17 @@ public Builder setEtagBytes(
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleTimeout field is set. */ public boolean hasIdleTimeout() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14404,17 +16601,23 @@ public boolean hasIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleTimeout. */ public com.google.protobuf.Duration getIdleTimeout() { if (idleTimeoutBuilder_ == null) { - return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + return idleTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleTimeout_; } else { return idleTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14427,7 +16630,8 @@ public com.google.protobuf.Duration getIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { @@ -14443,6 +16647,8 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14455,10 +16661,10 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIdleTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (idleTimeoutBuilder_ == null) { idleTimeout_ = builderForValue.build(); } else { @@ -14469,6 +16675,8 @@ public Builder setIdleTimeout( return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14481,13 +16689,14 @@ public Builder setIdleTimeout(
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - idleTimeout_ != null && - idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && idleTimeout_ != null + && idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getIdleTimeoutBuilder().mergeFrom(value); } else { idleTimeout_ = value; @@ -14500,6 +16709,8 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14512,7 +16723,8 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIdleTimeout() { bitField0_ = (bitField0_ & ~0x00000400); @@ -14525,6 +16737,8 @@ public Builder clearIdleTimeout() { return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14537,7 +16751,8 @@ public Builder clearIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { bitField0_ |= 0x00000400; @@ -14545,6 +16760,8 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { return getIdleTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14557,17 +16774,21 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { if (idleTimeoutBuilder_ != null) { return idleTimeoutBuilder_.getMessageOrBuilder(); } else { - return idleTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + return idleTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleTimeout_; } } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -14580,17 +16801,21 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getIdleTimeoutFieldBuilder() { if (idleTimeoutBuilder_ == null) { - idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getIdleTimeout(), - getParentForChildren(), - isClean()); + idleTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getIdleTimeout(), getParentForChildren(), isClean()); idleTimeout_ = null; } return idleTimeoutBuilder_; @@ -14598,8 +16823,13 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { private com.google.protobuf.Duration runningTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + runningTimeoutBuilder_; /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14625,13 +16855,18 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runningTimeout field is set. */ public boolean hasRunningTimeout() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14657,17 +16892,24 @@ public boolean hasRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runningTimeout. */ public com.google.protobuf.Duration getRunningTimeout() { if (runningTimeoutBuilder_ == null) { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } else { return runningTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14693,7 +16935,9 @@ public com.google.protobuf.Duration getRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { @@ -14709,6 +16953,8 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14734,10 +16980,11 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRunningTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (runningTimeoutBuilder_ == null) { runningTimeout_ = builderForValue.build(); } else { @@ -14748,6 +16995,8 @@ public Builder setRunningTimeout( return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14773,13 +17022,15 @@ public Builder setRunningTimeout(
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - runningTimeout_ != null && - runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && runningTimeout_ != null + && runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getRunningTimeoutBuilder().mergeFrom(value); } else { runningTimeout_ = value; @@ -14792,6 +17043,8 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14817,7 +17070,9 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRunningTimeout() { bitField0_ = (bitField0_ & ~0x00000800); @@ -14830,6 +17085,8 @@ public Builder clearRunningTimeout() { return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14855,7 +17112,9 @@ public Builder clearRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { bitField0_ |= 0x00000800; @@ -14863,6 +17122,8 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { return getRunningTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14888,17 +17149,22 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { if (runningTimeoutBuilder_ != null) { return runningTimeoutBuilder_.getMessageOrBuilder(); } else { - return runningTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -14924,17 +17190,22 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getRunningTimeoutFieldBuilder() { if (runningTimeoutBuilder_ == null) { - runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getRunningTimeout(), - getParentForChildren(), - isClean()); + runningTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRunningTimeout(), getParentForChildren(), isClean()); runningTimeout_ = null; } return runningTimeoutBuilder_; @@ -14942,39 +17213,58 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { private com.google.cloud.workstations.v1.WorkstationConfig.Host host_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> hostBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Host, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> + hostBuilder_; /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the host field is set. */ public boolean hasHost() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The host. */ public com.google.cloud.workstations.v1.WorkstationConfig.Host getHost() { if (hostBuilder_ == null) { - return host_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } else { return hostBuilder_.getMessage(); } } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHost(com.google.cloud.workstations.v1.WorkstationConfig.Host value) { if (hostBuilder_ == null) { @@ -14990,11 +17280,15 @@ public Builder setHost(com.google.cloud.workstations.v1.WorkstationConfig.Host v return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHost( com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder builderForValue) { @@ -15008,17 +17302,22 @@ public Builder setHost( return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHost(com.google.cloud.workstations.v1.WorkstationConfig.Host value) { if (hostBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - host_ != null && - host_ != com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && host_ != null + && host_ + != com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance()) { getHostBuilder().mergeFrom(value); } else { host_ = value; @@ -15031,11 +17330,15 @@ public Builder mergeHost(com.google.cloud.workstations.v1.WorkstationConfig.Host return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00001000); @@ -15048,11 +17351,15 @@ public Builder clearHost() { return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder getHostBuilder() { bitField0_ |= 0x00001000; @@ -15060,61 +17367,85 @@ public com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder getHostBu return getHostFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder() { if (hostBuilder_ != null) { return hostBuilder_.getMessageOrBuilder(); } else { - return host_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Host.getDefaultInstance() + : host_; } } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Host, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder> getHostFieldBuilder() { if (hostBuilder_ == null) { - hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Host, com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>( - getHost(), - getParentForChildren(), - isClean()); + hostBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Host, + com.google.cloud.workstations.v1.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder>( + getHost(), getParentForChildren(), isClean()); host_ = null; } return hostBuilder_; } - private java.util.List persistentDirectories_ = - java.util.Collections.emptyList(); + private java.util.List + persistentDirectories_ = java.util.Collections.emptyList(); + private void ensurePersistentDirectoriesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); + persistentDirectories_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory>( + persistentDirectories_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + persistentDirectoriesBuilder_; /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getPersistentDirectoriesList() { + public java.util.List + getPersistentDirectoriesList() { if (persistentDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(persistentDirectories_); } else { @@ -15122,11 +17453,15 @@ public java.util.List * Optional. Directories to persist across workstation sessions. *
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getPersistentDirectoriesCount() { if (persistentDirectoriesBuilder_ == null) { @@ -15136,13 +17471,18 @@ public int getPersistentDirectoriesCount() { } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { return persistentDirectories_.get(index); } else { @@ -15150,11 +17490,15 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory ge } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPersistentDirectories( int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { @@ -15171,14 +17515,20 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPersistentDirectories( - int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.set(index, builderForValue.build()); @@ -15189,13 +17539,18 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addPersistentDirectories(com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { + public Builder addPersistentDirectories( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15209,11 +17564,15 @@ public Builder addPersistentDirectories(com.google.cloud.workstations.v1.Worksta return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPersistentDirectories( int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory value) { @@ -15230,14 +17589,19 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPersistentDirectories( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(builderForValue.build()); @@ -15248,14 +17612,20 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPersistentDirectories( - int index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(index, builderForValue.build()); @@ -15266,18 +17636,23 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllPersistentDirectories( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory> + values) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, persistentDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, persistentDirectories_); onChanged(); } else { persistentDirectoriesBuilder_.addAllMessages(values); @@ -15285,11 +17660,15 @@ public Builder addAllPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPersistentDirectories() { if (persistentDirectoriesBuilder_ == null) { @@ -15302,11 +17681,15 @@ public Builder clearPersistentDirectories() { return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removePersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { @@ -15319,39 +17702,54 @@ public Builder removePersistentDirectories(int index) { return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + getPersistentDirectoriesBuilder(int index) { return getPersistentDirectoriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { if (persistentDirectoriesBuilder_ == null) { - return persistentDirectories_.get(index); } else { + return persistentDirectories_.get(index); + } else { return persistentDirectoriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPersistentDirectoriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + getPersistentDirectoriesOrBuilderList() { if (persistentDirectoriesBuilder_ != null) { return persistentDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -15359,45 +17757,70 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrB } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { - return getPersistentDirectoriesFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( - int index) { - return getPersistentDirectoriesFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder(int index) { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPersistentDirectoriesBuilderList() { + public java.util.List< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder> + getPersistentDirectoriesBuilderList() { return getPersistentDirectoriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesFieldBuilder() { if (persistentDirectoriesBuilder_ == null) { - persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder>( + persistentDirectoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder>( persistentDirectories_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), @@ -15409,44 +17832,64 @@ public com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.Bu private com.google.cloud.workstations.v1.WorkstationConfig.Container container_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> containerBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.Container, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> + containerBuilder_; /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00004000) != 0); } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The container. */ public com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer() { if (containerBuilder_ == null) { - return container_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() + : container_; } else { return containerBuilder_.getMessage(); } } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) { + public Builder setContainer( + com.google.cloud.workstations.v1.WorkstationConfig.Container value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15460,12 +17903,16 @@ public Builder setContainer(com.google.cloud.workstations.v1.WorkstationConfig.C return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setContainer( com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder builderForValue) { @@ -15479,18 +17926,25 @@ public Builder setContainer( return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeContainer(com.google.cloud.workstations.v1.WorkstationConfig.Container value) { + public Builder mergeContainer( + com.google.cloud.workstations.v1.WorkstationConfig.Container value) { if (containerBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) && - container_ != null && - container_ != com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance()) { + if (((bitField0_ & 0x00004000) != 0) + && container_ != null + && container_ + != com.google.cloud.workstations.v1.WorkstationConfig.Container + .getDefaultInstance()) { getContainerBuilder().mergeFrom(value); } else { container_ = value; @@ -15503,12 +17957,16 @@ public Builder mergeContainer(com.google.cloud.workstations.v1.WorkstationConfig return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00004000); @@ -15521,51 +17979,69 @@ public Builder clearContainer() { return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder getContainerBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder + getContainerBuilder() { bitField0_ |= 0x00004000; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder + getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { - return container_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.Container.getDefaultInstance() + : container_; } } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.Container, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder> getContainerFieldBuilder() { if (containerBuilder_ == null) { - containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.Container, com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>( - getContainer(), - getParentForChildren(), - isClean()); + containerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.Container, + com.google.cloud.workstations.v1.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder>( + getContainer(), getParentForChildren(), isClean()); container_ = null; } return containerBuilder_; @@ -15573,8 +18049,13 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder get private com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + encryptionKeyBuilder_; /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15596,13 +18077,18 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder get
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15624,17 +18110,26 @@ public boolean hasEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The encryptionKey. */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15656,9 +18151,12 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + public Builder setEncryptionKey( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15672,6 +18170,8 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConf return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15693,10 +18193,13 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1.WorkstationConf
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setEncryptionKey( - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder + builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { @@ -15707,6 +18210,8 @@ public Builder setEncryptionKey( return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15728,13 +18233,18 @@ public Builder setEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { + public Builder mergeEncryptionKey( + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - encryptionKey_ != null && - encryptionKey_ != com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && encryptionKey_ != null + && encryptionKey_ + != com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; @@ -15747,6 +18257,8 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationCo return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15768,7 +18280,9 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1.WorkstationCo
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00008000); @@ -15781,6 +18295,8 @@ public Builder clearEncryptionKey() { return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15802,14 +18318,19 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder + getEncryptionKeyBuilder() { bitField0_ |= 0x00008000; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15831,17 +18352,24 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null ? - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -15863,44 +18391,61 @@ public com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyO
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( - getEncryptionKey(), - getParentForChildren(), - isClean()); + encryptionKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), getParentForChildren(), isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } - private java.util.List readinessChecks_ = - java.util.Collections.emptyList(); + private java.util.List + readinessChecks_ = java.util.Collections.emptyList(); + private void ensureReadinessChecksIsMutable() { if (!((bitField0_ & 0x00010000) != 0)) { - readinessChecks_ = new java.util.ArrayList(readinessChecks_); + readinessChecks_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck>( + readinessChecks_); bitField0_ |= 0x00010000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> readinessChecksBuilder_; + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> + readinessChecksBuilder_; /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getReadinessChecksList() { + public java.util.List + getReadinessChecksList() { if (readinessChecksBuilder_ == null) { return java.util.Collections.unmodifiableList(readinessChecks_); } else { @@ -15908,13 +18453,17 @@ public java.util.List * Optional. Readiness checks to perform when starting a workstation using * this workstation configuration. Mark a workstation as running only after * all specified readiness checks return 200 status codes. *
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReadinessChecksCount() { if (readinessChecksBuilder_ == null) { @@ -15924,15 +18473,20 @@ public int getReadinessChecksCount() { } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks( + int index) { if (readinessChecksBuilder_ == null) { return readinessChecks_.get(index); } else { @@ -15940,13 +18494,17 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getRead } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadinessChecks( int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { @@ -15963,16 +18521,21 @@ public Builder setReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadinessChecks( - int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.set(index, builderForValue.build()); @@ -15983,15 +18546,20 @@ public Builder setReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addReadinessChecks(com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { + public Builder addReadinessChecks( + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { if (readinessChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16005,13 +18573,17 @@ public Builder addReadinessChecks(com.google.cloud.workstations.v1.WorkstationCo return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReadinessChecks( int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck value) { @@ -16028,13 +18600,17 @@ public Builder addReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReadinessChecks( com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { @@ -16048,16 +18624,21 @@ public Builder addReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReadinessChecks( - int index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.add(index, builderForValue.build()); @@ -16068,20 +18649,25 @@ public Builder addReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReadinessChecks( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck> + values) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, readinessChecks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readinessChecks_); onChanged(); } else { readinessChecksBuilder_.addAllMessages(values); @@ -16089,13 +18675,17 @@ public Builder addAllReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadinessChecks() { if (readinessChecksBuilder_ == null) { @@ -16108,13 +18698,17 @@ public Builder clearReadinessChecks() { return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReadinessChecks(int index) { if (readinessChecksBuilder_ == null) { @@ -16127,45 +18721,59 @@ public Builder removeReadinessChecks(int index) { return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder getReadinessChecksBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder + getReadinessChecksBuilder(int index) { return getReadinessChecksFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( - int index) { + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder + getReadinessChecksOrBuilder(int index) { if (readinessChecksBuilder_ == null) { - return readinessChecks_.get(index); } else { + return readinessChecks_.get(index); + } else { return readinessChecksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReadinessChecksOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> + getReadinessChecksOrBuilderList() { if (readinessChecksBuilder_ != null) { return readinessChecksBuilder_.getMessageOrBuilderList(); } else { @@ -16173,51 +18781,75 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilde } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder() { - return getReadinessChecksFieldBuilder().addBuilder( - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder + addReadinessChecksBuilder() { + return getReadinessChecksFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + .getDefaultInstance()); } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder( - int index) { - return getReadinessChecksFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.getDefaultInstance()); + public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder + addReadinessChecksBuilder(int index) { + return getReadinessChecksFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck + .getDefaultInstance()); } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReadinessChecksBuilderList() { + public java.util.List + getReadinessChecksBuilderList() { return getReadinessChecksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksFieldBuilder() { if (readinessChecksBuilder_ == null) { - readinessChecksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder>( + readinessChecksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder, + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder>( readinessChecks_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), @@ -16229,6 +18861,7 @@ public com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck.Builder private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureReplicaZonesIsMutable() { if (!replicaZones_.isModifiable()) { replicaZones_ = new com.google.protobuf.LazyStringArrayList(replicaZones_); @@ -16236,6 +18869,8 @@ private void ensureReplicaZonesIsMutable() { bitField0_ |= 0x00020000; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16246,15 +18881,19 @@ private void ensureReplicaZonesIsMutable() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList - getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { replicaZones_.makeImmutable(); return replicaZones_; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16265,13 +18904,18 @@ private void ensureReplicaZonesIsMutable() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16282,7 +18926,10 @@ public int getReplicaZonesCount() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -16290,6 +18937,8 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16300,15 +18949,19 @@ public java.lang.String getReplicaZones(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString - getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16319,14 +18972,18 @@ public java.lang.String getReplicaZones(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index to set the value at. * @param value The replicaZones to set. * @return This builder for chaining. */ - public Builder setReplicaZones( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplicaZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureReplicaZonesIsMutable(); replicaZones_.set(index, value); bitField0_ |= 0x00020000; @@ -16334,6 +18991,8 @@ public Builder setReplicaZones( return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16344,13 +19003,17 @@ public Builder setReplicaZones(
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZones( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addReplicaZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureReplicaZonesIsMutable(); replicaZones_.add(value); bitField0_ |= 0x00020000; @@ -16358,6 +19021,8 @@ public Builder addReplicaZones( return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16368,20 +19033,23 @@ public Builder addReplicaZones(
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param values The replicaZones to add. * @return This builder for chaining. */ - public Builder addAllReplicaZones( - java.lang.Iterable values) { + public Builder addAllReplicaZones(java.lang.Iterable values) { ensureReplicaZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, replicaZones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaZones_); bitField0_ |= 0x00020000; onChanged(); return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16392,17 +19060,22 @@ public Builder addAllReplicaZones(
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearReplicaZones() { - replicaZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000);; + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + ; onChanged(); return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -16413,13 +19086,17 @@ public Builder clearReplicaZones() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes of the replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZonesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureReplicaZonesIsMutable(); replicaZones_.add(value); @@ -16428,8 +19105,10 @@ public Builder addReplicaZonesBytes( return this; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -16438,6 +19117,7 @@ public Builder addReplicaZonesBytes(
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -16445,6 +19125,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -16453,6 +19135,7 @@ public boolean getDegraded() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ @@ -16464,6 +19147,8 @@ public Builder setDegraded(boolean value) { return this; } /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -16472,6 +19157,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -16481,24 +19167,29 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00080000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00080000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -16508,11 +19199,15 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -16522,11 +19217,15 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -16536,14 +19235,17 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16557,14 +19259,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -16575,11 +19280,15 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -16595,14 +19304,17 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -16616,14 +19328,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -16634,14 +19349,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -16652,18 +19370,20 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -16671,11 +19391,15 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -16688,11 +19412,15 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -16705,39 +19433,49 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -16745,56 +19483,66 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00080000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } + @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); } @@ -16804,12 +19552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1.WorkstationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1.WorkstationConfig) private static final com.google.cloud.workstations.v1.WorkstationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1.WorkstationConfig(); } @@ -16818,27 +19566,27 @@ public static com.google.cloud.workstations.v1.WorkstationConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16853,6 +19601,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1.WorkstationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java index 6cb25405eacb..3f32c3f3b5a6 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationConfigOrBuilder.java @@ -1,140 +1,185 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationConfigOrBuilder extends +public interface WorkstationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.WorkstationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAnnotationsCount(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -146,6 +191,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -155,15 +202,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -173,9 +218,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -186,11 +232,13 @@ boolean containsLabels(
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -200,94 +248,128 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -295,10 +377,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -306,12 +391,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -324,11 +411,15 @@ java.lang.String getLabelsOrThrow(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleTimeout field is set. */ boolean hasIdleTimeout(); /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -341,11 +432,15 @@ java.lang.String getLabelsOrThrow(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleTimeout. */ com.google.protobuf.Duration getIdleTimeout(); /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -358,11 +453,14 @@ java.lang.String getLabelsOrThrow(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder(); /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -388,11 +486,15 @@ java.lang.String getLabelsOrThrow(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runningTimeout field is set. */ boolean hasRunningTimeout(); /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -418,11 +520,15 @@ java.lang.String getLabelsOrThrow(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runningTimeout. */ com.google.protobuf.Duration getRunningTimeout(); /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -448,112 +554,165 @@ java.lang.String getLabelsOrThrow(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder(); /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the host field is set. */ boolean hasHost(); /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The host. */ com.google.cloud.workstations.v1.WorkstationConfig.Host getHost(); /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.workstations.v1.WorkstationConfig.HostOrBuilder getHostOrBuilder(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getPersistentDirectoriesList(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory getPersistentDirectories( + int index); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPersistentDirectoriesCount(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index); + com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index); /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the container field is set. */ boolean hasContainer(); /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The container. */ com.google.cloud.workstations.v1.WorkstationConfig.Container getContainer(); /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.workstations.v1.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder(); /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -575,11 +734,16 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -601,11 +765,16 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The encryptionKey. */ com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -627,65 +796,91 @@ com.google.cloud.workstations.v1.WorkstationConfig.PersistentDirectoryOrBuilder
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + com.google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getReadinessChecksList(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck getReadinessChecks(int index); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getReadinessChecksCount(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksOrBuilderList(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( - int index); + com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder + getReadinessChecksOrBuilder(int index); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -696,12 +891,16 @@ com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getRe
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return A list containing the replicaZones. */ - java.util.List - getReplicaZonesList(); + java.util.List getReplicaZonesList(); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -712,11 +911,16 @@ com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getRe
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The count of replicaZones. */ int getReplicaZonesCount(); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -727,12 +931,17 @@ com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getRe
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the element to return. * @return The replicaZones at the given index. */ java.lang.String getReplicaZones(int index); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -743,14 +952,18 @@ com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getRe
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - com.google.protobuf.ByteString - getReplicaZonesBytes(int index); + com.google.protobuf.ByteString getReplicaZonesBytes(int index); /** + * + * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -759,51 +972,64 @@ com.google.cloud.workstations.v1.WorkstationConfig.ReadinessCheckOrBuilder getRe
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationName.java diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java similarity index 75% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java index c85c44673a2b..505792eb6c34 100644 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationOrBuilder.java @@ -1,138 +1,183 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1/workstations.proto package com.google.cloud.workstations.v1; -public interface WorkstationOrBuilder extends +public interface WorkstationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.Workstation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this workstation.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this workstation.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAnnotationsCount(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -144,6 +189,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -153,15 +200,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -171,9 +216,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -184,11 +230,13 @@ boolean containsLabels(
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -198,121 +246,166 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -320,10 +413,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -331,31 +427,43 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workstations.v1.Workstation.State getState(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -365,10 +473,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -378,8 +489,8 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); } diff --git a/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java new file mode 100644 index 000000000000..5a409e39f15f --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java @@ -0,0 +1,1135 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1/workstations.proto + +package com.google.cloud.workstations.v1; + +public final class WorkstationsProto { + private WorkstationsProto() {} + + 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_workstations_v1_WorkstationCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_workstations_v1_OperationMetadata_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/workstations/v1/workstati" + + "ons.proto\022\034google.cloud.workstations.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032 google/protobuf" + + "/field_mask.proto\032\037google/protobuf/times" + + "tamp.proto\032\027google/rpc/status.proto\"\232\t\n\022" + + "WorkstationCluster\022\014\n\004name\030\001 \001(\t\022\032\n\014disp" + + "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022" + + "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022\\\n\013annotation" + + "s\030\005 \003(\0132A.google.cloud.workstations.v1.W" + + "orkstationCluster.AnnotationsEntryB\004\342A\001\001" + + "\022R\n\006labels\030\017 \003(\0132<.google.cloud.workstat" + + "ions.v1.WorkstationCluster.LabelsEntryB\004" + + "\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\013" + + "2\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013de" + + "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022\025\n\007network" + + "\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwork\030\013 \001(\tB\004\342A\001\005\022\036" + + "\n\020control_plane_ip\030\020 \001(\tB\004\342A\001\003\022k\n\026privat" + + "e_cluster_config\030\014 \001(\0132E.google.cloud.wo" + + "rkstations.v1.WorkstationCluster.Private" + + "ClusterConfigB\004\342A\001\001\022\026\n\010degraded\030\r \001(\010B\004\342" + + "A\001\003\022,\n\nconditions\030\016 \003(\0132\022.google.rpc.Sta" + + "tusB\004\342A\001\003\032\243\001\n\024PrivateClusterConfig\022%\n\027en" + + "able_private_endpoint\030\001 \001(\010B\004\342A\001\005\022\036\n\020clu" + + "ster_hostname\030\002 \001(\tB\004\342A\001\003\022$\n\026service_att" + + "achment_uri\030\003 \001(\tB\004\342A\001\003\022\036\n\020allowed_proje" + + "cts\030\004 \003(\tB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\263\001\352A\257" + + "\001\n.workstations.googleapis.com/Workstati" + + "onCluster\022Qprojects/{project}/locations/" + + "{location}/workstationClusters/{workstat" + + "ion_cluster}*\023workstationClusters2\022works" + + "tationClusterR\001\001\"\342\031\n\021WorkstationConfig\022\014" + + "\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001" + + "\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010" + + "B\004\342A\001\003\022[\n\013annotations\030\005 \003(\0132@.google.clo" + + "ud.workstations.v1.WorkstationConfig.Ann" + + "otationsEntryB\004\342A\001\001\022Q\n\006labels\030\022 \003(\0132;.go" + + "ogle.cloud.workstations.v1.WorkstationCo" + + "nfig.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 " + + "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\007 \001(\0132\032.google.protobuf.Tim" + + "estampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(" + + "\tB\004\342A\001\001\0225\n\014idle_timeout\030\n \001(\0132\031.google.p" + + "rotobuf.DurationB\004\342A\001\001\0228\n\017running_timeou" + + "t\030\013 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" + + "\022H\n\004host\030\014 \001(\01324.google.cloud.workstatio" + + "ns.v1.WorkstationConfig.HostB\004\342A\001\001\022i\n\026pe" + + "rsistent_directories\030\r \003(\0132C.google.clou" + + "d.workstations.v1.WorkstationConfig.Pers" + + "istentDirectoryB\004\342A\001\001\022R\n\tcontainer\030\016 \001(\013" + + "29.google.cloud.workstations.v1.Workstat" + + "ionConfig.ContainerB\004\342A\001\001\022c\n\016encryption_" + + "key\030\021 \001(\0132E.google.cloud.workstations.v1" + + ".WorkstationConfig.CustomerEncryptionKey" + + "B\004\342A\001\005\022^\n\020readiness_checks\030\023 \003(\0132>.googl" + + "e.cloud.workstations.v1.WorkstationConfi" + + "g.ReadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030" + + "\027 \003(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\n" + + "conditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A" + + "\001\003\032\204\007\n\004Host\022X\n\014gce_instance\030\001 \001(\0132@.goog" + + "le.cloud.workstations.v1.WorkstationConf" + + "ig.Host.GceInstanceH\000\032\227\006\n\013GceInstance\022\032\n" + + "\014machine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_acc" + + "ount\030\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scop" + + "es\030\003 \003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpo" + + "ol_size\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030" + + "\014 \001(\005B\004\342A\001\003\022)\n\033disable_public_ip_address" + + "es\030\006 \001(\010B\004\342A\001\001\022*\n\034enable_nested_virtuali" + + "zation\030\007 \001(\010B\004\342A\001\001\022\202\001\n\030shielded_instance" + + "_config\030\010 \001(\0132Z.google.cloud.workstation" + + "s.v1.WorkstationConfig.Host.GceInstance." + + "GceShieldedInstanceConfigB\004\342A\001\001\022\212\001\n\034conf" + + "idential_instance_config\030\n \001(\0132^.google." + + "cloud.workstations.v1.WorkstationConfig." + + "Host.GceInstance.GceConfidentialInstance" + + "ConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001(\005B" + + "\004\342A\001\001\032\203\001\n\031GceShieldedInstanceConfig\022 \n\022e" + + "nable_secure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_" + + "vtpm\030\002 \001(\010B\004\342A\001\001\022)\n\033enable_integrity_mon" + + "itoring\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialIn" + + "stanceConfig\022)\n\033enable_confidential_comp" + + "ute\030\001 \001(\010B\004\342A\001\001B\010\n\006config\032\213\004\n\023Persistent" + + "Directory\022o\n\006gce_pd\030\002 \001(\0132].google.cloud" + + ".workstations.v1.WorkstationConfig.Persi" + + "stentDirectory.GceRegionalPersistentDisk" + + "H\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001\001\032\326\002\n\031GceRegi" + + "onalPersistentDisk\022\025\n\007size_gb\030\001 \001(\005B\004\342A\001" + + "\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n\tdisk_type\030\003 " + + "\001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\005 \001(\tB\004\342A\001\001" + + "\022\211\001\n\016reclaim_policy\030\004 \001(\0162k.google.cloud" + + ".workstations.v1.WorkstationConfig.Persi" + + "stentDirectory.GceRegionalPersistentDisk" + + ".ReclaimPolicyB\004\342A\001\001\"G\n\rReclaimPolicy\022\036\n" + + "\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006DELETE\020" + + "\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\204\002\n\tCont" + + "ainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command\030\002 " + + "\003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022U\n\003env\030\004 \003" + + "(\0132B.google.cloud.workstations.v1.Workst" + + "ationConfig.Container.EnvEntryB\004\342A\001\001\022\031\n\013" + + "working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as_user\030\006" + + " \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\032U\n\025CustomerEncryptionKey\022" + + "\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key_servic" + + "e_account\030\002 \001(\tB\004\342A\001\005\0328\n\016ReadinessCheck\022" + + "\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005B\004\342A\001\001\032" + + "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workstations." + + "googleapis.com/WorkstationConfig\022yprojec" + + "ts/{project}/locations/{location}/workst" + + "ationClusters/{workstation_cluster}/work" + + "stationConfigs/{workstation_config}*\022wor" + + "kstationConfigs2\021workstationConfigR\001\001\"\210\010" + + "\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014display_n" + + "ame\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013re" + + "conciling\030\004 \001(\010B\004\342A\001\003\022U\n\013annotations\030\005 \003" + + "(\0132:.google.cloud.workstations.v1.Workst" + + "ation.AnnotationsEntryB\004\342A\001\001\022K\n\006labels\030\r" + + " \003(\01325.google.cloud.workstations.v1.Work" + + "station.LabelsEntryB\004\342A\001\001\0225\n\013create_time" + + "\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\0225\n\013update_time\030\007 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\0224\n\nstart_time\030\016 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\0225\n\013delete_" + + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022D\n\005state\030\n \001(\0162" + + "/.google.cloud.workstations.v1.Workstati" + + "on.StateB\004\342A\001\003\022\022\n\004host\030\013 \001(\tB\004\342A\001\003\0322\n\020An" + + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\022\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNI" + + "NG\020\002\022\022\n\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPE" + + "D\020\004:\342\001\352A\336\001\n\'workstations.googleapis.com/" + + "Workstation\022\224\001projects/{project}/locatio" + + "ns/{location}/workstationClusters/{works" + + "tation_cluster}/workstationConfigs/{work" + + "station_config}/workstations/{workstatio" + + "n}*\014workstations2\013workstationR\001\001\"e\n\034GetW" + + "orkstationClusterRequest\022E\n\004name\030\001 \001(\tB7" + + "\342A\001\002\372A0\n.workstations.googleapis.com/Wor" + + "kstationCluster\"\234\001\n\036ListWorkstationClust" + + "ersRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.wor" + + "kstations.googleapis.com/WorkstationClus" + + "ter\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + + "en\030\003 \001(\tB\004\342A\001\001\"\237\001\n\037ListWorkstationCluste" + + "rsResponse\022N\n\024workstation_clusters\030\001 \003(\013" + + "20.google.cloud.workstations.v1.Workstat" + + "ionCluster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"\202\002\n\037CreateWorkstationCl" + + "usterRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.w" + + "orkstations.googleapis.com/WorkstationCl" + + "uster\022$\n\026workstation_cluster_id\030\002 \001(\tB\004\342" + + "A\001\002\022S\n\023workstation_cluster\030\003 \001(\01320.googl" + + "e.cloud.workstations.v1.WorkstationClust" + + "erB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001\001\"\347\001" + + "\n\037UpdateWorkstationClusterRequest\022S\n\023wor" + + "kstation_cluster\030\001 \001(\01320.google.cloud.wo" + + "rkstations.v1.WorkstationClusterB\004\342A\001\002\0225" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A" + + "\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037Dele" + + "teWorkstationClusterRequest\022E\n\004name\030\001 \001(" + + "\tB7\342A\001\002\372A0\n.workstations.googleapis.com/" + + "WorkstationCluster\022\033\n\rvalidate_only\030\002 \001(" + + "\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001" + + "(\010B\004\342A\001\001\"c\n\033GetWorkstationConfigRequest\022" + + "D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goo" + + "gleapis.com/WorkstationConfig\"\233\001\n\035ListWo" + + "rkstationConfigsRequest\022G\n\006parent\030\001 \001(\tB" + + "7\342A\001\002\372A0\n.workstations.googleapis.com/Wo" + + "rkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" + + "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\234\001\n\036ListWork" + + "stationConfigsResponse\022L\n\023workstation_co" + + "nfigs\030\001 \003(\0132/.google.cloud.workstations." + + "v1.WorkstationConfig\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsabl" + + "eWorkstationConfigsRequest\022G\n\006parent\030\001 \001" + + "(\tB7\342A\001\002\372A0\n.workstations.googleapis.com" + + "/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004" + + "\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\242\001\n$ListU" + + "sableWorkstationConfigsResponse\022L\n\023works" + + "tation_configs\030\001 \003(\0132/.google.cloud.work" + + "stations.v1.WorkstationConfig\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\376\001\n\036" + + "CreateWorkstationConfigRequest\022G\n\006parent" + + "\030\001 \001(\tB7\342A\001\002\372A0\n.workstations.googleapis" + + ".com/WorkstationCluster\022#\n\025workstation_c" + + "onfig_id\030\002 \001(\tB\004\342A\001\002\022Q\n\022workstation_conf" + + "ig\030\003 \001(\0132/.google.cloud.workstations.v1." + + "WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_only" + + "\030\004 \001(\010B\004\342A\001\001\"\344\001\n\036UpdateWorkstationConfig" + + "Request\022Q\n\022workstation_config\030\001 \001(\0132/.go" + + "ogle.cloud.workstations.v1.WorkstationCo" + + "nfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_on" + + "ly\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342" + + "A\001\001\"\254\001\n\036DeleteWorkstationConfigRequest\022D" + + "\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog" + + "leapis.com/WorkstationConfig\022\033\n\rvalidate" + + "_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n" + + "\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstationRequ" + + "est\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstations" + + ".googleapis.com/Workstation\"\224\001\n\027ListWork" + + "stationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" + + "\n-workstations.googleapis.com/Workstatio" + + "nConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\"\225\001\n\030ListWorkstationsR" + + "esponse\022?\n\014workstations\030\001 \003(\0132).google.c" + + "loud.workstations.v1.Workstation\022\035\n\017next" + + "_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unreachable\030\003" + + " \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorkstationsReq" + + "uest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstati" + + "ons.googleapis.com/WorkstationConfig\022\027\n\t" + + "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" + + "\tB\004\342A\001\001\"\217\001\n\036ListUsableWorkstationsRespon" + + "se\022?\n\014workstations\030\001 \003(\0132).google.cloud." + + "workstations.v1.Workstation\022\027\n\017next_page" + + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\343\001\n\030Cr" + + "eateWorkstationRequest\022F\n\006parent\030\001 \001(\tB6" + + "\342A\001\002\372A/\n-workstations.googleapis.com/Wor" + + "kstationConfig\022\034\n\016workstation_id\030\002 \001(\tB\004" + + "\342A\001\002\022D\n\013workstation\030\003 \001(\0132).google.cloud" + + ".workstations.v1.WorkstationB\004\342A\001\002\022\033\n\rva" + + "lidate_only\030\004 \001(\010B\004\342A\001\001\"\321\001\n\030UpdateWorkst" + + "ationRequest\022D\n\013workstation\030\001 \001(\0132).goog" + + "le.cloud.workstations.v1.WorkstationB\004\342A" + + "\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010" + + "B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030" + + "DeleteWorkstationRequest\022>\n\004name\030\001 \001(\tB0" + + "\342A\001\002\372A)\n\'workstations.googleapis.com/Wor" + + "kstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n" + + "\004etag\030\003 \001(\tB\004\342A\001\001\"\212\001\n\027StartWorkstationRe" + + "quest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstatio" + + "ns.googleapis.com/Workstation\022\033\n\rvalidat" + + "e_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211" + + "\001\n\026StopWorkstationRequest\022>\n\004name\030\001 \001(\tB" + + "0\342A\001\002\372A)\n\'workstations.googleapis.com/Wo" + + "rkstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022" + + "\n\004etag\030\003 \001(\tB\004\342A\001\001\"\316\001\n\032GenerateAccessTok" + + "enRequest\0221\n\013expire_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampH\000\022(\n\003ttl\030\003 \001(\0132\031.goog" + + "le.protobuf.DurationH\000\022E\n\013workstation\030\001 " + + "\001(\tB0\342A\001\002\372A)\n\'workstations.googleapis.co" + + "m/WorkstationB\014\n\nexpiration\"d\n\033GenerateA" + + "ccessTokenResponse\022\024\n\014access_token\030\001 \001(\t" + + "\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf." + + "Timestamp\"\207\002\n\021OperationMetadata\0225\n\013creat" + + "e_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003" + + "\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016status_message\030\005" + + " \001(\tB\004\342A\001\003\022$\n\026requested_cancellation\030\006 \001" + + "(\010B\004\342A\001\003\022\031\n\013api_version\030\007 \001(\tB\004\342A\001\0032\233*\n\014" + + "Workstations\022\315\001\n\025GetWorkstationCluster\022:" + + ".google.cloud.workstations.v1.GetWorksta" + + "tionClusterRequest\0320.google.cloud.workst" + + "ations.v1.WorkstationCluster\"F\332A\004name\202\323\344" + + "\223\0029\0227/v1/{name=projects/*/locations/*/wo" + + "rkstationClusters/*}\022\340\001\n\027ListWorkstation" + + "Clusters\022<.google.cloud.workstations.v1." + + "ListWorkstationClustersRequest\032=.google." + + "cloud.workstations.v1.ListWorkstationClu" + + "stersResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{par" + + "ent=projects/*/locations/*}/workstationC" + + "lusters\022\255\002\n\030CreateWorkstationCluster\022=.g" + + "oogle.cloud.workstations.v1.CreateWorkst" + + "ationClusterRequest\032\035.google.longrunning" + + ".Operation\"\262\001\312A\'\n\022WorkstationCluster\022\021Op" + + "erationMetadata\332A1parent,workstation_clu" + + "ster,workstation_cluster_id\202\323\344\223\002N\"7/v1/{" + + "parent=projects/*/locations/*}/workstati" + + "onClusters:\023workstation_cluster\022\257\002\n\030Upda" + + "teWorkstationCluster\022=.google.cloud.work" + + "stations.v1.UpdateWorkstationClusterRequ" + + "est\032\035.google.longrunning.Operation\"\264\001\312A\'" + + "\n\022WorkstationCluster\022\021OperationMetadata\332" + + "A\037workstation_cluster,update_mask\202\323\344\223\002b2" + + "K/v1/{workstation_cluster.name=projects/" + + "*/locations/*/workstationClusters/*}:\023wo" + + "rkstation_cluster\022\352\001\n\030DeleteWorkstationC" + + "luster\022=.google.cloud.workstations.v1.De" + + "leteWorkstationClusterRequest\032\035.google.l" + + "ongrunning.Operation\"p\312A\'\n\022WorkstationCl" + + "uster\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7/" + + "v1/{name=projects/*/locations/*/workstat" + + "ionClusters/*}\022\337\001\n\024GetWorkstationConfig\022" + + "9.google.cloud.workstations.v1.GetWorkst" + + "ationConfigRequest\032/.google.cloud.workst" + + "ations.v1.WorkstationConfig\"[\332A\004name\202\323\344\223" + + "\002N\022L/v1/{name=projects/*/locations/*/wor" + + "kstationClusters/*/workstationConfigs/*}" + + "\022\362\001\n\026ListWorkstationConfigs\022;.google.clo" + + "ud.workstations.v1.ListWorkstationConfig" + + "sRequest\032<.google.cloud.workstations.v1." + + "ListWorkstationConfigsResponse\"]\332A\006paren" + + "t\202\323\344\223\002N\022L/v1/{parent=projects/*/location" + + "s/*/workstationClusters/*}/workstationCo" + + "nfigs\022\217\002\n\034ListUsableWorkstationConfigs\022A" + + ".google.cloud.workstations.v1.ListUsable" + + "WorkstationConfigsRequest\032B.google.cloud" + + ".workstations.v1.ListUsableWorkstationCo" + + "nfigsResponse\"h\332A\006parent\202\323\344\223\002Y\022W/v1/{par" + + "ent=projects/*/locations/*/workstationCl" + + "usters/*}/workstationConfigs:listUsable\022" + + "\274\002\n\027CreateWorkstationConfig\022<.google.clo" + + "ud.workstations.v1.CreateWorkstationConf" + + "igRequest\032\035.google.longrunning.Operation" + + "\"\303\001\312A&\n\021WorkstationConfig\022\021OperationMeta" + + "data\332A/parent,workstation_config,worksta" + + "tion_config_id\202\323\344\223\002b\"L/v1/{parent=projec" + + "ts/*/locations/*/workstationClusters/*}/" + + "workstationConfigs:\022workstation_config\022\276" + + "\002\n\027UpdateWorkstationConfig\022<.google.clou" + + "d.workstations.v1.UpdateWorkstationConfi" + + "gRequest\032\035.google.longrunning.Operation\"" + + "\305\001\312A&\n\021WorkstationConfig\022\021OperationMetad" + + "ata\332A\036workstation_config,update_mask\202\323\344\223" + + "\002u2_/v1/{workstation_config.name=project" + + "s/*/locations/*/workstationClusters/*/wo" + + "rkstationConfigs/*}:\022workstation_config\022" + + "\375\001\n\027DeleteWorkstationConfig\022<.google.clo" + + "ud.workstations.v1.DeleteWorkstationConf" + + "igRequest\032\035.google.longrunning.Operation" + + "\"\204\001\312A&\n\021WorkstationConfig\022\021OperationMeta" + + "data\332A\004name\202\323\344\223\002N*L/v1/{name=projects/*/" + + "locations/*/workstationClusters/*/workst" + + "ationConfigs/*}\022\334\001\n\016GetWorkstation\0223.goo" + + "gle.cloud.workstations.v1.GetWorkstation" + + "Request\032).google.cloud.workstations.v1.W" + + "orkstation\"j\332A\004name\202\323\344\223\002]\022[/v1/{name=pro" + + "jects/*/locations/*/workstationClusters/" + + "*/workstationConfigs/*/workstations/*}\022\357" + + "\001\n\020ListWorkstations\0225.google.cloud.works" + + "tations.v1.ListWorkstationsRequest\0326.goo" + + "gle.cloud.workstations.v1.ListWorkstatio" + + "nsResponse\"l\332A\006parent\202\323\344\223\002]\022[/v1/{parent" + + "=projects/*/locations/*/workstationClust" + + "ers/*/workstationConfigs/*}/workstations" + + "\022\214\002\n\026ListUsableWorkstations\022;.google.clo" + + "ud.workstations.v1.ListUsableWorkstation" + + "sRequest\032<.google.cloud.workstations.v1." + + "ListUsableWorkstationsResponse\"w\332A\006paren" + + "t\202\323\344\223\002h\022f/v1/{parent=projects/*/location" + + "s/*/workstationClusters/*/workstationCon" + + "figs/*}/workstations:listUsable\022\244\002\n\021Crea" + + "teWorkstation\0226.google.cloud.workstation" + + "s.v1.CreateWorkstationRequest\032\035.google.l" + + "ongrunning.Operation\"\267\001\312A \n\013Workstation\022" + + "\021OperationMetadata\332A!parent,workstation," + + "workstation_id\202\323\344\223\002j\"[/v1/{parent=projec" + + "ts/*/locations/*/workstationClusters/*/w" + + "orkstationConfigs/*}/workstations:\013works" + + "tation\022\246\002\n\021UpdateWorkstation\0226.google.cl" + + "oud.workstations.v1.UpdateWorkstationReq" + + "uest\032\035.google.longrunning.Operation\"\271\001\312A" + + " \n\013Workstation\022\021OperationMetadata\332A\027work" + + "station,update_mask\202\323\344\223\002v2g/v1/{workstat" + + "ion.name=projects/*/locations/*/workstat" + + "ionClusters/*/workstationConfigs/*/works" + + "tations/*}:\013workstation\022\372\001\n\021DeleteWorkst" + + "ation\0226.google.cloud.workstations.v1.Del" + + "eteWorkstationRequest\032\035.google.longrunni" + + "ng.Operation\"\215\001\312A \n\013Workstation\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002]*[/v1/{name=proje" + + "cts/*/locations/*/workstationClusters/*/" + + "workstationConfigs/*/workstations/*}\022\201\002\n" + + "\020StartWorkstation\0225.google.cloud.worksta" + + "tions.v1.StartWorkstationRequest\032\035.googl" + + "e.longrunning.Operation\"\226\001\312A \n\013Workstati" + + "on\022\021OperationMetadata\332A\004name\202\323\344\223\002f\"a/v1/" + + "{name=projects/*/locations/*/workstation" + + "Clusters/*/workstationConfigs/*/workstat" + + "ions/*}:start:\001*\022\376\001\n\017StopWorkstation\0224.g" + + "oogle.cloud.workstations.v1.StopWorkstat" + + "ionRequest\032\035.google.longrunning.Operatio" + + "n\"\225\001\312A \n\013Workstation\022\021OperationMetadata\332" + + "A\004name\202\323\344\223\002e\"`/v1/{name=projects/*/locat" + + "ions/*/workstationClusters/*/workstation" + + "Configs/*/workstations/*}:stop:\001*\022\234\002\n\023Ge" + + "nerateAccessToken\0228.google.cloud.worksta" + + "tions.v1.GenerateAccessTokenRequest\0329.go" + + "ogle.cloud.workstations.v1.GenerateAcces" + + "sTokenResponse\"\217\001\332A\013workstation\202\323\344\223\002{\"v/" + + "v1/{workstation=projects/*/locations/*/w" + + "orkstationClusters/*/workstationConfigs/" + + "*/workstations/*}:generateAccessToken:\001*" + + "\032O\312A\033workstations.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB}\n com.google.cloud.workstations.v1B\021W" + + "orkstationsProtoP\001ZDcloud.google.com/go/", + "workstations/apiv1/workstationspb;workst" + "ationspbb\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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "Network", + "Subnetwork", + "ControlPlaneIp", + "PrivateClusterConfig", + "Degraded", + "Conditions", + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor, + new java.lang.String[] { + "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "DeleteTime", + "Etag", + "IdleTimeout", + "RunningTimeout", + "Host", + "PersistentDirectories", + "Container", + "EncryptionKey", + "ReadinessChecks", + "ReplicaZones", + "Degraded", + "Conditions", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor, + new java.lang.String[] { + "GceInstance", "Config", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor, + new java.lang.String[] { + "MachineType", + "ServiceAccount", + "ServiceAccountScopes", + "Tags", + "PoolSize", + "PooledInstances", + "DisablePublicIpAddresses", + "EnableNestedVirtualization", + "ShieldedInstanceConfig", + "ConfidentialInstanceConfig", + "BootDiskSizeGb", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, + new java.lang.String[] { + "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, + new java.lang.String[] { + "EnableConfidentialCompute", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor, + new java.lang.String[] { + "GcePd", "MountPath", "DirectoryType", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, + new java.lang.String[] { + "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor, + new java.lang.String[] { + "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor, + new java.lang.String[] { + "KmsKey", "KmsKeyServiceAccount", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(4); + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor, + new java.lang.String[] { + "Path", "Port", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor + .getNestedTypes() + .get(6); + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_Workstation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Uid", + "Reconciling", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "StartTime", + "DeleteTime", + "Etag", + "State", + "Host", + }); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor = + internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor, + new java.lang.String[] { + "WorkstationClusters", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", "Force", + }); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor, + new java.lang.String[] { + "WorkstationConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor, + new java.lang.String[] { + "WorkstationConfigs", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", "Force", + }); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor, + new java.lang.String[] { + "Workstations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor, + new java.lang.String[] { + "Workstations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkstationId", "Workstation", "ValidateOnly", + }); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor, + new java.lang.String[] { + "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", + }); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor, + new java.lang.String[] { + "Name", "ValidateOnly", "Etag", + }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor, + new java.lang.String[] { + "ExpireTime", "Ttl", "Workstation", "Expiration", + }); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor, + new java.lang.String[] { + "AccessToken", "ExpireTime", + }); + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto b/java-workstations/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto similarity index 100% rename from owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto rename to java-workstations/proto-google-cloud-workstations-v1/src/main/proto/google/cloud/workstations/v1/workstations.proto diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java index 447afbce1618..8789646165d8 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for creating a CreateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ -public final class CreateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) CreateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationClusterRequest.newBuilder() to construct. - private CreateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationClusterRequest() { parent_ = ""; workstationClusterId_ = ""; @@ -26,33 +45,40 @@ private CreateWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +87,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. Parent resource name.
    * 
* - * 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 { @@ -92,14 +120,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CLUSTER_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationClusterId_ = ""; /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getWorkstationClusterId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -141,11 +173,16 @@ public java.lang.String getWorkstationClusterId() { public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -153,38 +190,55 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -193,6 +247,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +259,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_); } @@ -234,12 +288,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationClusterId_); } if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationCluster()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,24 +301,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.workstations.v1beta.CreateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationClusterId() - .equals(other.getWorkstationClusterId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationClusterId().equals(other.getWorkstationClusterId())) return false; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,139 +336,145 @@ public int hashCode() { hash = (53 * hash) + getWorkstationCluster().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest + 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest 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.workstations.v1beta.CreateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest 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; } /** + * + * *
    * Message for creating a CreateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationClusterRequest} */ - 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.workstations.v1beta.CreateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,14 +491,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + .getDefaultInstance(); } @java.lang.Override @@ -457,13 +514,17 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -472,9 +533,10 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio result.workstationClusterId_ = workstationClusterId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -485,46 +547,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio 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.workstations.v1beta.CreateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -567,34 +634,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationClusterId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationClusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,22 +675,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -628,20 +704,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -649,28 +728,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -680,17 +770,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -700,18 +796,20 @@ public Builder setParentBytes( private java.lang.Object workstationClusterId_ = ""; /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ public java.lang.String getWorkstationClusterId() { java.lang.Object ref = workstationClusterId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationClusterId_ = s; return s; @@ -720,20 +818,21 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - public com.google.protobuf.ByteString - getWorkstationClusterIdBytes() { + public com.google.protobuf.ByteString getWorkstationClusterIdBytes() { java.lang.Object ref = workstationClusterId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationClusterId_ = b; return b; } else { @@ -741,28 +840,35 @@ public java.lang.String getWorkstationClusterId() { } } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationClusterId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationClusterId() { @@ -772,17 +878,21 @@ public Builder clearWorkstationClusterId() { return this; } /** + * + * *
      * Required. ID to use for the workstation cluster.
      * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationClusterId to set. * @return This builder for chaining. */ - public Builder setWorkstationClusterIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationClusterId_ = value; bitField0_ |= 0x00000002; @@ -792,41 +902,61 @@ public Builder setWorkstationClusterIdBytes( private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -840,11 +970,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -858,17 +992,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -881,11 +1021,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.Work return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000004); @@ -898,61 +1042,82 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -960,12 +1125,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -977,12 +1145,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -991,9 +1162,9 @@ public Builder clearValidateOnly() { 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); } @@ -1003,41 +1174,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,9 +1222,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java index a9317e8e4cf2..8de9747400e2 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationClusterRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationClusterRequestOrBuilder extends +public interface CreateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationClusterId. */ java.lang.String getWorkstationClusterId(); /** + * + * *
    * Required. ID to use for the workstation cluster.
    * 
* * string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationClusterId. */ - com.google.protobuf.ByteString - getWorkstationClusterIdBytes(); + com.google.protobuf.ByteString getWorkstationClusterIdBytes(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java similarity index 61% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java index 20a6b64015d2..c93d92bdb600 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for creating a CreateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ -public final class CreateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) CreateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationConfigRequest.newBuilder() to construct. - private CreateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationConfigRequest() { parent_ = ""; workstationConfigId_ = ""; @@ -26,33 +45,40 @@ private CreateWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +87,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. Parent resource name.
    * 
* - * 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 { @@ -92,14 +120,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_CONFIG_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationConfigId_ = ""; /** + * + * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ @java.lang.Override @@ -108,29 +140,29 @@ public java.lang.String getWorkstationConfigId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -141,11 +173,16 @@ public java.lang.String getWorkstationConfigId() { public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -153,38 +190,55 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -193,6 +247,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +259,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_); } @@ -234,12 +288,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationConfigId_); } if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstationConfig()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,24 +301,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.workstations.v1beta.CreateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationConfigId() - .equals(other.getWorkstationConfigId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationConfigId().equals(other.getWorkstationConfigId())) return false; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,139 +336,145 @@ public int hashCode() { hash = (53 * hash) + getWorkstationConfig().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest + 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest 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.workstations.v1beta.CreateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest 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; } /** + * + * *
    * Message for creating a CreateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationConfigRequest} */ - 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.workstations.v1beta.CreateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,14 +491,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -457,13 +514,17 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -472,9 +533,10 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio result.workstationConfigId_ = workstationConfigId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -485,46 +547,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio 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.workstations.v1beta.CreateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -567,34 +634,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationConfigId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationConfigId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,22 +675,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -628,20 +704,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -649,28 +728,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -680,17 +770,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -700,18 +796,20 @@ public Builder setParentBytes( private java.lang.Object workstationConfigId_ = ""; /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ public java.lang.String getWorkstationConfigId() { java.lang.Object ref = workstationConfigId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationConfigId_ = s; return s; @@ -720,20 +818,21 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - public com.google.protobuf.ByteString - getWorkstationConfigIdBytes() { + public com.google.protobuf.ByteString getWorkstationConfigIdBytes() { java.lang.Object ref = workstationConfigId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationConfigId_ = b; return b; } else { @@ -741,28 +840,35 @@ public java.lang.String getWorkstationConfigId() { } } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationConfigId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationConfigId() { @@ -772,17 +878,21 @@ public Builder clearWorkstationConfigId() { return this; } /** + * + * *
      * Required. ID to use for the workstation configuration.
      * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationConfigId to set. * @return This builder for chaining. */ - public Builder setWorkstationConfigIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationConfigId_ = value; bitField0_ |= 0x00000002; @@ -792,41 +902,61 @@ public Builder setWorkstationConfigIdBytes( private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -840,11 +970,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.Worksta return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -858,17 +992,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -881,11 +1021,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.Works return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000004); @@ -898,61 +1042,82 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000004; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to create.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -960,12 +1125,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -977,12 +1145,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -991,9 +1162,9 @@ public Builder clearValidateOnly() { 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); } @@ -1003,41 +1174,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,9 +1222,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java index 201bfd1783f1..57b9433c0726 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationConfigRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationConfigRequestOrBuilder extends +public interface CreateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationConfigId. */ java.lang.String getWorkstationConfigId(); /** + * + * *
    * Required. ID to use for the workstation configuration.
    * 
* * string workstation_config_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationConfigId. */ - com.google.protobuf.ByteString - getWorkstationConfigIdBytes(); + com.google.protobuf.ByteString getWorkstationConfigIdBytes(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to create.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java index 76bdbc66f7b8..af231eb1dc99 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for creating a CreateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ -public final class CreateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.CreateWorkstationRequest) CreateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWorkstationRequest.newBuilder() to construct. private CreateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWorkstationRequest() { parent_ = ""; workstationId_ = ""; @@ -26,33 +44,40 @@ private CreateWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -92,14 +119,18 @@ public java.lang.String getParent() { } public static final int WORKSTATION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object workstationId_ = ""; /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ @java.lang.Override @@ -108,29 +139,29 @@ public java.lang.String getWorkstationId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; } } /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -141,11 +172,16 @@ public java.lang.String getWorkstationId() { public static final int WORKSTATION_FIELD_NUMBER = 3; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -153,38 +189,54 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -193,6 +245,7 @@ public boolean getValidateOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +257,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_); } @@ -234,12 +286,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workstationId_); } if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWorkstation()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -249,24 +299,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.workstations.v1beta.CreateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.CreateWorkstationRequest other = + (com.google.cloud.workstations.v1beta.CreateWorkstationRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWorkstationId() - .equals(other.getWorkstationId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWorkstationId().equals(other.getWorkstationId())) return false; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) return false; } - if (getValidateOnly() - != other.getValidateOnly()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,139 +334,143 @@ public int hashCode() { hash = (53 * hash) + getWorkstation().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest 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.workstations.v1beta.CreateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest 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; } /** + * + * *
    * Message for creating a CreateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.CreateWorkstationRequest} */ - 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.workstations.v1beta.CreateWorkstationRequest) com.google.cloud.workstations.v1beta.CreateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.CreateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.CreateWorkstationRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -436,13 +487,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.CreateWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance(); } @@ -457,13 +509,17 @@ public com.google.cloud.workstations.v1beta.CreateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.CreateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.CreateWorkstationRequest result = + new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.CreateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -472,9 +528,8 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio result.workstationId_ = workstationId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.validateOnly_ = validateOnly_; @@ -485,38 +540,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.CreateWorkstatio 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.workstations.v1beta.CreateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -524,7 +580,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.CreateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -567,34 +625,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - workstationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workstationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -604,22 +665,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -628,20 +694,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -649,28 +718,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -680,17 +760,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -700,18 +786,20 @@ public Builder setParentBytes( private java.lang.Object workstationId_ = ""; /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ public java.lang.String getWorkstationId() { java.lang.Object ref = workstationId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstationId_ = s; return s; @@ -720,20 +808,21 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - public com.google.protobuf.ByteString - getWorkstationIdBytes() { + public com.google.protobuf.ByteString getWorkstationIdBytes() { java.lang.Object ref = workstationId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstationId_ = b; return b; } else { @@ -741,28 +830,35 @@ public java.lang.String getWorkstationId() { } } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWorkstationId() { @@ -772,17 +868,21 @@ public Builder clearWorkstationId() { return this; } /** + * + * *
      * Required. ID to use for the workstation.
      * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for workstationId to set. * @return This builder for chaining. */ - public Builder setWorkstationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstationId_ = value; bitField0_ |= 0x00000002; @@ -792,39 +892,58 @@ public Builder setWorkstationIdBytes( private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -840,11 +959,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -858,17 +981,22 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && workstation_ != null + && workstation_ + != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -881,11 +1009,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000004); @@ -898,11 +1030,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000004; @@ -910,49 +1046,64 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to create.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -960,12 +1111,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -977,12 +1131,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -991,9 +1148,9 @@ public Builder clearValidateOnly() { 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); } @@ -1003,12 +1160,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.CreateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.CreateWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.CreateWorkstationRequest(); } @@ -1017,27 +1175,27 @@ public static com.google.cloud.workstations.v1beta.CreateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1052,6 +1210,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.CreateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java index 92d834ae429a..34168e31676a 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/CreateWorkstationRequestOrBuilder.java @@ -1,86 +1,133 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface CreateWorkstationRequestOrBuilder extends +public interface CreateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.CreateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The workstationId. */ java.lang.String getWorkstationId(); /** + * + * *
    * Required. ID to use for the workstation.
    * 
* * string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for workstationId. */ - com.google.protobuf.ByteString - getWorkstationIdBytes(); + com.google.protobuf.ByteString getWorkstationIdBytes(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to create.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java index 91cd2580d5ab..a36f13efba76 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for deleting a workstation cluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ -public final class DeleteWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) DeleteWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationClusterRequest.newBuilder() to construct. - private DeleteWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationClusterRequest() { name_ = ""; etag_ = ""; @@ -26,33 +45,40 @@ private DeleteWorkstationClusterRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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 @@ -61,29 +87,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. Name of the workstation cluster to delete.
    * 
* - * 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 { @@ -94,12 +122,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +139,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +160,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -159,6 +194,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -166,6 +203,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -174,6 +212,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +224,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_); } @@ -212,15 +250,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,21 +266,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.workstations.v1beta.DeleteWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,144 +292,149 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest + 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest 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.workstations.v1beta.DeleteWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest 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; } /** + * + * *
    * Message for deleting a workstation cluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest} */ - 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.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,14 +447,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + .getDefaultInstance(); } @java.lang.Override @@ -430,13 +470,17 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -456,46 +500,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstatio 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.workstations.v1beta.DeleteWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -538,32 +587,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,22 +627,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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; @@ -597,20 +656,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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 { @@ -618,28 +680,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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() { @@ -649,17 +722,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation cluster to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -667,14 +746,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -682,12 +764,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -699,12 +784,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -716,19 +804,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -737,21 +827,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -759,30 +850,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -792,18 +890,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation cluster on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -811,8 +913,10 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -820,6 +924,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -827,6 +932,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -834,6 +941,7 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ @@ -845,6 +953,8 @@ public Builder setForce(boolean value) { return this; } /** + * + * *
      * Optional. If set, any workstation configurations and workstations in the
      * workstation cluster are also deleted. Otherwise, the request only
@@ -852,6 +962,7 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -860,9 +971,9 @@ public Builder clearForce() { 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); } @@ -872,41 +983,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,9 +1031,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java index bd52627badde..08f7d49dc78f 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationClusterRequestOrBuilder.java @@ -1,66 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationClusterRequestOrBuilder extends +public interface DeleteWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation cluster to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation cluster on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. If set, any workstation configurations and workstations in the
    * workstation cluster are also deleted. Otherwise, the request only
@@ -68,6 +103,7 @@ public interface DeleteWorkstationClusterRequestOrBuilder extends
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java index 2db331397806..87fbe8c588a2 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Message for deleting a workstation configuration.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ -public final class DeleteWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) DeleteWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationConfigRequest.newBuilder() to construct. - private DeleteWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationConfigRequest() { name_ = ""; etag_ = ""; @@ -26,33 +45,40 @@ private DeleteWorkstationConfigRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * 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 @@ -61,29 +87,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. Name of the workstation configuration to delete.
    * 
* - * 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 { @@ -94,12 +122,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +139,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +160,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -159,6 +194,8 @@ public java.lang.String getEtag() { public static final int FORCE_FIELD_NUMBER = 4; private boolean force_ = false; /** + * + * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -166,6 +203,7 @@ public java.lang.String getEtag() {
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -174,6 +212,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +224,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_); } @@ -212,15 +250,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,21 +266,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.workstations.v1beta.DeleteWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -259,144 +292,149 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest + 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest 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.workstations.v1beta.DeleteWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest 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; } /** + * + * *
    * Message for deleting a workstation configuration.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest} */ - 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.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -409,14 +447,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -430,13 +470,17 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -456,46 +500,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstatio 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.workstations.v1beta.DeleteWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -538,32 +587,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - force_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,22 +627,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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; @@ -597,20 +656,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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 { @@ -618,28 +680,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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() { @@ -649,17 +722,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation configuration to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -667,14 +746,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -682,12 +764,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -699,12 +784,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -716,19 +804,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -737,21 +827,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -759,30 +850,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -792,18 +890,22 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request is rejected if the latest version of the
      * workstation configuration on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; @@ -811,8 +913,10 @@ public Builder setEtagBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -820,6 +924,7 @@ public Builder setEtagBytes(
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -827,6 +932,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -834,6 +941,7 @@ public boolean getForce() {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ @@ -845,6 +953,8 @@ public Builder setForce(boolean value) { return this; } /** + * + * *
      * Optional. If set, any workstations in the workstation configuration are
      * also deleted. Otherwise, the request works only if the workstation
@@ -852,6 +962,7 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -860,9 +971,9 @@ public Builder clearForce() { 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); } @@ -872,41 +983,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -918,9 +1031,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java index 36020746429a..7740b544455a 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationConfigRequestOrBuilder.java @@ -1,66 +1,101 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationConfigRequestOrBuilder extends +public interface DeleteWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation configuration to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request is rejected if the latest version of the
    * workstation configuration on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. If set, any workstations in the workstation configuration are
    * also deleted. Otherwise, the request works only if the workstation
@@ -68,6 +103,7 @@ public interface DeleteWorkstationConfigRequestOrBuilder extends
    * 
* * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java index d75a2e5c19b6..2d55d392f3c9 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for DeleteWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ -public final class DeleteWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.DeleteWorkstationRequest) DeleteWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteWorkstationRequest.newBuilder() to construct. private DeleteWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,40 @@ private DeleteWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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 @@ -61,29 +86,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. Name of the workstation to delete.
    * 
* - * 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 { @@ -94,12 +121,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +138,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +159,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -157,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,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_); } @@ -192,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -206,19 +239,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.workstations.v1beta.DeleteWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other = + (com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,8 +264,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -243,131 +273,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest 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.workstations.v1beta.DeleteWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest 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 message for DeleteWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.DeleteWorkstationRequest} */ - 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.workstations.v1beta.DeleteWorkstationRequest) com.google.cloud.workstations.v1beta.DeleteWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,13 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance(); } @@ -400,13 +436,17 @@ public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result = + new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.DeleteWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -423,38 +463,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.DeleteWorkstatio 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.workstations.v1beta.DeleteWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -462,7 +503,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -502,27 +545,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,22 +579,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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; @@ -556,20 +608,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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 { @@ -577,28 +632,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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() { @@ -608,17 +674,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to delete.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -626,14 +698,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -641,12 +716,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -658,12 +736,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -675,19 +756,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -696,21 +779,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -718,30 +802,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -751,27 +842,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,12 +876,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.DeleteWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.DeleteWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.DeleteWorkstationRequest(); } @@ -795,27 +891,27 @@ public static com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.DeleteWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java index 2c87efc9d51e..31ddd11752c8 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/DeleteWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface DeleteWorkstationRequestOrBuilder extends +public interface DeleteWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.DeleteWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to delete.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java similarity index 70% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java index d9fe8c8ce1b2..c7e3a86fe7a6 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequest.java @@ -1,58 +1,81 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ -public final class GenerateAccessTokenRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) GenerateAccessTokenRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenRequest.newBuilder() to construct. private GenerateAccessTokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenRequest() { workstation_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } private int expirationCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object expiration_; + public enum ExpirationCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXPIRE_TIME(2), TTL(3), EXPIRATION_NOT_SET(0); private final int value; + private ExpirationCase(int value) { this.value = value; } @@ -68,25 +91,30 @@ public static ExpirationCase valueOf(int value) { public static ExpirationCase forNumber(int value) { switch (value) { - case 2: return EXPIRE_TIME; - case 3: return TTL; - case 0: return EXPIRATION_NOT_SET; - default: return null; + case 2: + return EXPIRE_TIME; + case 3: + return TTL; + case 0: + return EXPIRATION_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public static final int EXPIRE_TIME_FIELD_NUMBER = 2; /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -95,6 +123,7 @@ public int getNumber() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -102,6 +131,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -110,16 +141,19 @@ public boolean hasExpireTime() {
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override public com.google.protobuf.Timestamp getExpireTime() { if (expirationCase_ == 2) { - return (com.google.protobuf.Timestamp) expiration_; + return (com.google.protobuf.Timestamp) expiration_; } return com.google.protobuf.Timestamp.getDefaultInstance(); } /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -132,13 +166,15 @@ public com.google.protobuf.Timestamp getExpireTime() {
   @java.lang.Override
   public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     if (expirationCase_ == 2) {
-       return (com.google.protobuf.Timestamp) expiration_;
+      return (com.google.protobuf.Timestamp) expiration_;
     }
     return com.google.protobuf.Timestamp.getDefaultInstance();
   }
 
   public static final int TTL_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -146,6 +182,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -153,6 +190,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -160,16 +199,19 @@ public boolean hasTtl() {
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override public com.google.protobuf.Duration getTtl() { if (expirationCase_ == 3) { - return (com.google.protobuf.Duration) expiration_; + return (com.google.protobuf.Duration) expiration_; } return com.google.protobuf.Duration.getDefaultInstance(); } /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -181,21 +223,27 @@ public com.google.protobuf.Duration getTtl() {
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
     if (expirationCase_ == 3) {
-       return (com.google.protobuf.Duration) expiration_;
+      return (com.google.protobuf.Duration) expiration_;
     }
     return com.google.protobuf.Duration.getDefaultInstance();
   }
 
   public static final int WORKSTATION_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object workstation_ = "";
   /**
+   *
+   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ @java.lang.Override @@ -204,30 +252,32 @@ public java.lang.String getWorkstation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; } } /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -236,6 +286,7 @@ public java.lang.String getWorkstation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,8 +298,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(workstation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workstation_); } @@ -271,12 +321,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workstation_); } if (expirationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.protobuf.Timestamp) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.protobuf.Timestamp) expiration_); } if (expirationCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.protobuf.Duration) expiration_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Duration) expiration_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -286,24 +338,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.workstations.v1beta.GenerateAccessTokenRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj; + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other = + (com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) obj; - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 2: - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; break; case 3: - if (!getTtl() - .equals(other.getTtl())) return false; + if (!getTtl().equals(other.getTtl())) return false; break; case 0: default: @@ -339,131 +389,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest 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.workstations.v1beta.GenerateAccessTokenRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenRequest} */ - 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.workstations.v1beta.GenerateAccessTokenRequest) com.google.cloud.workstations.v1beta.GenerateAccessTokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,13 +536,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance(); } @@ -502,29 +558,32 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result = + new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { result.workstation_ = workstation_; } } - private void buildPartialOneofs(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest result) { result.expirationCase_ = expirationCase_; result.expiration_ = this.expiration_; - if (expirationCase_ == 2 && - expireTimeBuilder_ != null) { + if (expirationCase_ == 2 && expireTimeBuilder_ != null) { result.expiration_ = expireTimeBuilder_.build(); } - if (expirationCase_ == 3 && - ttlBuilder_ != null) { + if (expirationCase_ == 3 && ttlBuilder_ != null) { result.expiration_ = ttlBuilder_.build(); } } @@ -533,63 +592,70 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1beta.GenerateAcc 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.workstations.v1beta.GenerateAccessTokenRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { - if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest other) { + if (other + == com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance()) + return this; if (!other.getWorkstation().isEmpty()) { workstation_ = other.workstation_; bitField0_ |= 0x00000004; onChanged(); } switch (other.getExpirationCase()) { - case EXPIRE_TIME: { - mergeExpireTime(other.getExpireTime()); - break; - } - case TTL: { - mergeTtl(other.getTtl()); - break; - } - case EXPIRATION_NOT_SET: { - break; - } + case EXPIRE_TIME: + { + mergeExpireTime(other.getExpireTime()); + break; + } + case TTL: + { + mergeTtl(other.getTtl()); + break; + } + case EXPIRATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -617,31 +683,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - workstation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getTtlFieldBuilder().getBuilder(), - extensionRegistry); - expirationCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + workstation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getTtlFieldBuilder().getBuilder(), extensionRegistry); + expirationCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -651,12 +717,12 @@ public Builder mergeFrom( } // finally return this; } + private int expirationCase_ = 0; private java.lang.Object expiration_; - public ExpirationCase - getExpirationCase() { - return ExpirationCase.forNumber( - expirationCase_); + + public ExpirationCase getExpirationCase() { + return ExpirationCase.forNumber(expirationCase_); } public Builder clearExpiration() { @@ -669,8 +735,13 @@ public Builder clearExpiration() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -679,6 +750,7 @@ public Builder clearExpiration() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -686,6 +758,8 @@ public boolean hasExpireTime() { return expirationCase_ == 2; } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -694,6 +768,7 @@ public boolean hasExpireTime() {
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -711,6 +786,8 @@ public com.google.protobuf.Timestamp getExpireTime() { } } /** + * + * *
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -734,6 +811,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -743,8 +822,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp expire_time = 2;
      */
-    public Builder setExpireTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (expireTimeBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -755,6 +833,8 @@ public Builder setExpireTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -766,10 +846,12 @@ public Builder setExpireTime(
      */
     public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       if (expireTimeBuilder_ == null) {
-        if (expirationCase_ == 2 &&
-            expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 2
+            && expiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -785,6 +867,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -811,6 +895,8 @@ public Builder clearExpireTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -824,6 +910,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
       return getExpireTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -845,6 +933,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired expiration time of the access token. This value must
      * be at most 24 hours in the future. If a value is not specified, the
@@ -855,17 +945,20 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * .google.protobuf.Timestamp expire_time = 2;
      */
     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>
         getExpireTimeFieldBuilder() {
       if (expireTimeBuilder_ == null) {
         if (!(expirationCase_ == 2)) {
           expiration_ = com.google.protobuf.Timestamp.getDefaultInstance();
         }
-        expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                (com.google.protobuf.Timestamp) expiration_,
-                getParentForChildren(),
-                isClean());
+        expireTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                (com.google.protobuf.Timestamp) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 2;
@@ -874,8 +967,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        ttlBuilder_;
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -883,6 +981,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ @java.lang.Override @@ -890,6 +989,8 @@ public boolean hasTtl() { return expirationCase_ == 3; } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -897,6 +998,7 @@ public boolean hasTtl() {
      * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ @java.lang.Override @@ -914,6 +1016,8 @@ public com.google.protobuf.Duration getTtl() { } } /** + * + * *
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -936,6 +1040,8 @@ public Builder setTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -944,8 +1050,7 @@ public Builder setTtl(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration ttl = 3;
      */
-    public Builder setTtl(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTtl(com.google.protobuf.Duration.Builder builderForValue) {
       if (ttlBuilder_ == null) {
         expiration_ = builderForValue.build();
         onChanged();
@@ -956,6 +1061,8 @@ public Builder setTtl(
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -966,10 +1073,12 @@ public Builder setTtl(
      */
     public Builder mergeTtl(com.google.protobuf.Duration value) {
       if (ttlBuilder_ == null) {
-        if (expirationCase_ == 3 &&
-            expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
-          expiration_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
-              .mergeFrom(value).buildPartial();
+        if (expirationCase_ == 3
+            && expiration_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          expiration_ =
+              com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) expiration_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           expiration_ = value;
         }
@@ -985,6 +1094,8 @@ public Builder mergeTtl(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1010,6 +1121,8 @@ public Builder clearTtl() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1022,6 +1135,8 @@ public com.google.protobuf.Duration.Builder getTtlBuilder() {
       return getTtlFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1042,6 +1157,8 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Desired lifetime duration of the access token. This value must
      * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -1051,17 +1168,20 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
      * .google.protobuf.Duration ttl = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTtlFieldBuilder() {
       if (ttlBuilder_ == null) {
         if (!(expirationCase_ == 3)) {
           expiration_ = com.google.protobuf.Duration.getDefaultInstance();
         }
-        ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                (com.google.protobuf.Duration) expiration_,
-                getParentForChildren(),
-                isClean());
+        ttlBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                (com.google.protobuf.Duration) expiration_, getParentForChildren(), isClean());
         expiration_ = null;
       }
       expirationCase_ = 3;
@@ -1071,19 +1191,23 @@ public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() {
 
     private java.lang.Object workstation_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ public java.lang.String getWorkstation() { java.lang.Object ref = workstation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workstation_ = s; return s; @@ -1092,21 +1216,24 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - public com.google.protobuf.ByteString - getWorkstationBytes() { + public com.google.protobuf.ByteString getWorkstationBytes() { java.lang.Object ref = workstation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workstation_ = b; return b; } else { @@ -1114,30 +1241,41 @@ public java.lang.String getWorkstation() { } } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The workstation to set. * @return This builder for chaining. */ - public Builder setWorkstation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workstation_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWorkstation() { @@ -1147,27 +1285,33 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Name of the workstation for which the access token should be
      * generated.
      * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for workstation to set. * @return This builder for chaining. */ - public Builder setWorkstationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkstationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workstation_ = value; bitField0_ |= 0x00000004; 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); } @@ -1177,41 +1321,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) - private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest(); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1223,9 +1369,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java index 9b8617562aaa..bd32d92efb53 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface GenerateAccessTokenRequestOrBuilder extends +public interface GenerateAccessTokenRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -16,10 +34,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -28,10 +49,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Desired expiration time of the access token. This value must
    * be at most 24 hours in the future. If a value is not specified, the
@@ -44,6 +68,8 @@ public interface GenerateAccessTokenRequestOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -51,10 +77,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return Whether the ttl field is set. */ boolean hasTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -62,10 +91,13 @@ public interface GenerateAccessTokenRequestOrBuilder extends
    * 
* * .google.protobuf.Duration ttl = 3; + * * @return The ttl. */ com.google.protobuf.Duration getTtl(); /** + * + * *
    * Desired lifetime duration of the access token. This value must
    * be at most 24 hours. If a value is not specified, the token's lifetime
@@ -77,26 +109,36 @@ public interface GenerateAccessTokenRequestOrBuilder extends
   com.google.protobuf.DurationOrBuilder getTtlOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The workstation. */ java.lang.String getWorkstation(); /** + * + * *
    * Required. Name of the workstation for which the access token should be
    * generated.
    * 
* - * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string workstation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for workstation. */ - com.google.protobuf.ByteString - getWorkstationBytes(); + com.google.protobuf.ByteString getWorkstationBytes(); - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase getExpirationCase(); + com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.ExpirationCase + getExpirationCase(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java similarity index 68% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java index d083fa42fc29..1913764c2100 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponse.java @@ -1,52 +1,74 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for GenerateAccessToken.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ -public final class GenerateAccessTokenResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) GenerateAccessTokenResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateAccessTokenResponse.newBuilder() to construct. private GenerateAccessTokenResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateAccessTokenResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateAccessTokenResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object accessToken_ = ""; /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -55,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * string access_token = 1; + * * @return The accessToken. */ @java.lang.Override @@ -63,14 +86,15 @@ public java.lang.String getAccessToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; } } /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -79,16 +103,15 @@ public java.lang.String getAccessToken() {
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -99,11 +122,14 @@ public java.lang.String getAccessToken() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -111,11 +137,14 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -123,6 +152,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Time at which the generated token will expire.
    * 
@@ -135,6 +166,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +178,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(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -167,8 +198,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +208,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.workstations.v1beta.GenerateAccessTokenResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other = + (com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) obj; - if (!getAccessToken() - .equals(other.getAccessToken())) return false; + if (!getAccessToken().equals(other.getAccessToken())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,131 +244,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse 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.workstations.v1beta.GenerateAccessTokenResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse 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 message for GenerateAccessToken.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GenerateAccessTokenResponse} */ - 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.workstations.v1beta.GenerateAccessTokenResponse) com.google.cloud.workstations.v1beta.GenerateAccessTokenResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,13 +388,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance(); } @@ -375,21 +410,23 @@ public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse build() @java.lang.Override public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse buildPartial() { - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result = + new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.accessToken_ = accessToken_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } } @@ -397,46 +434,50 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GenerateAccessTo 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.workstations.v1beta.GenerateAccessTokenResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { - if (other == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse other) { + if (other + == com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance()) + return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; bitField0_ |= 0x00000001; @@ -471,24 +512,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - accessToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -498,10 +540,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object accessToken_ = ""; /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -510,13 +555,13 @@ public Builder mergeFrom(
      * 
* * string access_token = 1; + * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accessToken_ = s; return s; @@ -525,6 +570,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -533,15 +580,14 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accessToken_ = b; return b; } else { @@ -549,6 +595,8 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -557,18 +605,22 @@ public java.lang.String getAccessToken() {
      * 
* * string access_token = 1; + * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } accessToken_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -577,6 +629,7 @@ public Builder setAccessToken(
      * 
* * string access_token = 1; + * * @return This builder for chaining. */ public Builder clearAccessToken() { @@ -586,6 +639,8 @@ public Builder clearAccessToken() { return this; } /** + * + * *
      * The generated bearer access token. To use this token, include it in an
      * Authorization header of an HTTP request sent to the associated
@@ -594,12 +649,14 @@ public Builder clearAccessToken() {
      * 
* * string access_token = 1; + * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); accessToken_ = value; bitField0_ |= 0x00000001; @@ -609,34 +666,47 @@ public Builder setAccessTokenBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -657,14 +727,15 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
* * .google.protobuf.Timestamp expire_time = 2; */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -675,6 +746,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -683,9 +756,9 @@ public Builder setExpireTime( */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -698,6 +771,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -715,6 +790,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -727,6 +804,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -737,11 +816,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Time at which the generated token will expire.
      * 
@@ -749,21 +831,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * .google.protobuf.Timestamp expire_time = 2; */ 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> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; } + @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); } @@ -773,41 +858,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) - private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse(); } - public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateAccessTokenResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateAccessTokenResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,9 +906,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java index bef51fe8c5f1..df9ebd632c06 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GenerateAccessTokenResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface GenerateAccessTokenResponseOrBuilder extends +public interface GenerateAccessTokenResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GenerateAccessTokenResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -16,10 +34,13 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The accessToken. */ java.lang.String getAccessToken(); /** + * + * *
    * The generated bearer access token. To use this token, include it in an
    * Authorization header of an HTTP request sent to the associated
@@ -28,30 +49,38 @@ public interface GenerateAccessTokenResponseOrBuilder extends
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString - getAccessTokenBytes(); + com.google.protobuf.ByteString getAccessTokenBytes(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Time at which the generated token will expire.
    * 
diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java similarity index 59% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java index e7bddada4bee..f857580c4124 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GetWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ -public final class GetWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) GetWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationClusterRequest.newBuilder() to construct. private GetWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationClusterRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -60,29 +85,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. Name of the requested resource.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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.workstations.v1beta.GetWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest + 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest 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.workstations.v1beta.GetWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest 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 message for GetWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationClusterRequest} */ - 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.workstations.v1beta.GetWorkstationClusterRequest) com.google.cloud.workstations.v1beta.GetWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,13 +323,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance(); } @@ -310,13 +345,17 @@ public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -327,46 +366,50 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationCl 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.workstations.v1beta.GetWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +463,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -442,20 +492,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -463,28 +516,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -494,26 +558,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -523,41 +593,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,9 +641,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java new file mode 100644 index 000000000000..750b11651c6d --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationClusterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java similarity index 60% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java index d1eca740476c..07d3de8cb5b8 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GetWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ -public final class GetWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) GetWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationConfigRequest.newBuilder() to construct. private GetWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationConfigRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -60,29 +85,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. Name of the requested resource.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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.workstations.v1beta.GetWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest 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.workstations.v1beta.GetWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest 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 message for GetWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationConfigRequest} */ - 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.workstations.v1beta.GetWorkstationConfigRequest) com.google.cloud.workstations.v1beta.GetWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,13 +321,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance(); } @@ -310,13 +343,17 @@ public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest build() @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -327,46 +364,50 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationCo 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.workstations.v1beta.GetWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +461,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -442,20 +490,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -463,28 +514,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -494,26 +556,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -523,41 +591,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,9 +639,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java new file mode 100644 index 000000000000..6f33d8bb6df5 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java index c4721aab7f5a..a48eef5ee1c3 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequest.java @@ -1,57 +1,82 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for GetWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ -public final class GetWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.GetWorkstationRequest) GetWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWorkstationRequest.newBuilder() to construct. private GetWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWorkstationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the requested resource.
    * 
* - * 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 @@ -60,29 +85,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. Name of the requested resource.
    * 
* - * 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 { @@ -91,6 +118,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +130,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_); } @@ -127,15 +154,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.workstations.v1beta.GetWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.GetWorkstationRequest other = (com.google.cloud.workstations.v1beta.GetWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.GetWorkstationRequest other = + (com.google.cloud.workstations.v1beta.GetWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -155,131 +182,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.GetWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest 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.workstations.v1beta.GetWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.GetWorkstationRequest 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 message for GetWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.GetWorkstationRequest} */ - 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.workstations.v1beta.GetWorkstationRequest) com.google.cloud.workstations.v1beta.GetWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, + com.google.cloud.workstations.v1beta.GetWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.GetWorkstationRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; } @java.lang.Override @@ -310,8 +342,11 @@ public com.google.cloud.workstations.v1beta.GetWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.GetWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.GetWorkstationRequest result = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.GetWorkstationRequest result = + new com.google.cloud.workstations.v1beta.GetWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -327,38 +362,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.GetWorkstationRe 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.workstations.v1beta.GetWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.GetWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -366,7 +402,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.GetWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -398,17 +435,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -418,22 +457,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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; @@ -442,20 +486,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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 { @@ -463,28 +510,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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() { @@ -494,26 +552,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the requested resource.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; 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); } @@ -523,12 +587,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.GetWorkstationRequest) private static final com.google.cloud.workstations.v1beta.GetWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.GetWorkstationRequest(); } @@ -537,27 +601,27 @@ public static com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -572,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.GetWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java new file mode 100644 index 000000000000..ac1d074a2e85 --- /dev/null +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/workstations/v1beta/workstations.proto + +package com.google.cloud.workstations.v1beta; + +public interface GetWorkstationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the requested resource.
+   * 
+ * + * + * 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/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java index 8cd2eacd6770..3e1d88ab2d64 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequest.java @@ -1,24 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ -public final class ListUsableWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) ListUsableWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsRequest.newBuilder() to construct. - private ListUsableWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +46,40 @@ private ListUsableWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +88,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +123,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +139,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +160,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +192,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +204,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_); } @@ -191,8 +227,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +240,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.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +275,139 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest + 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest 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.workstations.v1beta.ListUsableWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest} */ - 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.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,19 +419,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -398,13 +443,17 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,46 +470,52 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst 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.workstations.v1beta.ListUsableWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest)other); + if (other + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +589,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +618,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +642,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +684,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +708,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +725,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +744,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +763,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +786,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +809,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +849,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +883,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +932,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java index 5226a195a8f6..f4a48e091da4 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsRequestOrBuilder extends +public interface ListUsableWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java index db58eff89db5..a469a26da21e 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponse.java @@ -1,122 +1,165 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListUsableWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ -public final class ListUsableWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationConfigsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) ListUsableWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationConfigsResponse.newBuilder() to construct. - private ListUsableWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder + .class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List workstationConfigs_; + private java.util.List + workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +168,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 { @@ -157,38 +200,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +248,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +276,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -242,8 +296,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +318,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.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +357,139 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse + 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse 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.workstations.v1beta.ListUsableWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse 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 message for ListUsableWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse} */ - 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.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,25 +502,27 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse build() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = buildPartial(); + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -467,15 +530,20 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + buildPartial() { + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -487,7 +555,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis } } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +571,52 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst 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.workstations.v1beta.ListUsableWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse)other); + if (other + instanceof com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + .getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -560,9 +635,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstat workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -609,36 +685,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,28 +728,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + workstationConfigs_ = java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -677,11 +768,14 @@ public java.util.List ge } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -691,11 +785,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -705,11 +802,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -726,11 +826,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -744,13 +847,17 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -764,11 +871,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -785,11 +895,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -803,11 +916,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -821,18 +937,21 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -840,11 +959,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -857,11 +979,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -874,39 +999,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigsBuilder(int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -914,45 +1049,62 @@ public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkst } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( - int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder(int index) { + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -964,19 +1116,21 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorksta 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; @@ -985,21 +1139,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 { @@ -1007,30 +1162,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1202,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1227,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1235,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1279,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1317,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1339,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1398,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1410,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1459,8 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java index ee1df19e661a..bf3a121bebb0 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationConfigsResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationConfigsResponseOrBuilder extends +public interface ListUsableWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( 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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java index b11c7d27e728..9ea0c232ff2d 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ -public final class ListUsableWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) ListUsableWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsRequest.newBuilder() to construct. private ListUsableWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,40 @@ private ListUsableWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +121,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +137,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +158,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +190,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +202,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_); } @@ -191,8 +225,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +238,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.workstations.v1beta.ListUsableWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +272,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest + 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest 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.workstations.v1beta.ListUsableWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsRequest} */ - 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.workstations.v1beta.ListUsableWorkstationsRequest) com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +415,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + .getDefaultInstance(); } @java.lang.Override @@ -398,13 +438,17 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,46 +465,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst 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.workstations.v1beta.ListUsableWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +549,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +583,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +612,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +636,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +678,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +702,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +719,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +738,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +757,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +780,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +803,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +843,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +877,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +925,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java index ee438c9e9bdb..ee5a596abe21 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsRequestOrBuilder extends +public interface ListUsableWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java similarity index 71% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java index 9e621ddf0e19..253bfa315ece 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponse.java @@ -1,55 +1,77 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListUsableWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ -public final class ListUsableWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListUsableWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) ListUsableWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListUsableWorkstationsResponse.newBuilder() to construct. - private ListUsableWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListUsableWorkstationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListUsableWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListUsableWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -61,6 +83,8 @@ public java.util.List getWorks return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -68,11 +92,13 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -84,6 +110,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -95,6 +123,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -108,15 +138,19 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +159,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 { @@ -157,38 +191,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +239,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -242,8 +287,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +308,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.workstations.v1beta.ListUsableWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other = + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +346,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse + 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse 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.workstations.v1beta.ListUsableWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse 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 message for ListUsableWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListUsableWorkstationsResponse} */ - 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.workstations.v1beta.ListUsableWorkstationsResponse) com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,20 +490,21 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + .getDefaultInstance(); } @java.lang.Override @@ -468,14 +518,18 @@ public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result = + new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -487,7 +541,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis } } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +557,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListUsableWorkst 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.workstations.v1beta.ListUsableWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + .getDefaultInstance()) return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -560,9 +620,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListUsableWorkstat workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -609,36 +670,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,21 +713,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList( + workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -677,6 +751,8 @@ public java.util.List getWorks } } /** + * + * *
      * The requested workstations.
      * 
@@ -691,6 +767,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -705,6 +783,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** + * + * *
      * The requested workstations.
      * 
@@ -726,6 +806,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -744,6 +826,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -764,6 +848,8 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -785,6 +871,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -803,6 +891,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -821,6 +911,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -831,8 +923,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -840,6 +931,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -857,6 +950,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -874,6 +969,8 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -885,6 +982,8 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -894,19 +993,22 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -914,6 +1016,8 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** + * + * *
      * The requested workstations.
      * 
@@ -921,10 +1025,12 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
@@ -933,30 +1039,35 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -964,19 +1075,21 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB 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; @@ -985,21 +1098,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 { @@ -1007,30 +1121,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1161,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1186,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1194,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1238,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1276,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1298,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1357,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1369,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse(); } - public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListUsableWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUsableWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1417,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java index 2574a0b6563a..f24ff23cf72a 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListUsableWorkstationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListUsableWorkstationsResponseOrBuilder extends +public interface ListUsableWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListUsableWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListUsableWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java index 106970d60954..9dc2a0626d25 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ -public final class ListWorkstationClustersRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) ListWorkstationClustersRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersRequest.newBuilder() to construct. - private ListWorkstationClustersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +45,40 @@ private ListWorkstationClustersRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +87,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +122,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +138,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +159,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +191,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +203,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_); } @@ -191,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +239,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.workstations.v1beta.ListWorkstationClustersRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other = + (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +273,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest + 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest 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.workstations.v1beta.ListWorkstationClustersRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersRequest} */ - 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.workstations.v1beta.ListWorkstationClustersRequest) com.google.cloud.workstations.v1beta.ListWorkstationClustersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +416,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + .getDefaultInstance(); } @java.lang.Override @@ -398,13 +439,17 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result = + new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,46 +466,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC 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.workstations.v1beta.ListWorkstationClustersRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +550,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +584,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +613,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +637,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +679,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +703,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +720,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +739,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +758,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +781,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +804,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +844,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +878,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +926,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java index 4c05b54036f4..8bcfa12bb505 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersRequestOrBuilder extends +public interface ListWorkstationClustersRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java similarity index 67% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java index 09ae170cb905..4b3a596d7902 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponse.java @@ -1,122 +1,163 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListWorkstationClusters.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ -public final class ListWorkstationClustersResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationClustersResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) ListWorkstationClustersResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationClustersResponse.newBuilder() to construct. - private ListWorkstationClustersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationClustersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationClustersResponse() { workstationClusters_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationClustersResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } public static final int WORKSTATION_CLUSTERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List workstationClusters_; + private java.util.List + workstationClusters_; /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationClustersOrBuilderList() { return workstationClusters_; } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public int getWorkstationClustersCount() { return workstationClusters_.size(); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { return workstationClusters_.get(index); } /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { return workstationClusters_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +166,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 { @@ -157,38 +198,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +246,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +274,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 < workstationClusters_.size(); i++) { output.writeMessage(1, workstationClusters_.get(i)); } @@ -242,8 +294,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationClusters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationClusters_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationClusters_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +316,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.workstations.v1beta.ListWorkstationClustersResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other = + (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) obj; - if (!getWorkstationClustersList() - .equals(other.getWorkstationClustersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationClustersList().equals(other.getWorkstationClustersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +354,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse + 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse 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.workstations.v1beta.ListWorkstationClustersResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse 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 message for ListWorkstationClusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationClustersResponse} */ - 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.workstations.v1beta.ListWorkstationClustersResponse) com.google.cloud.workstations.v1beta.ListWorkstationClustersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,20 +498,21 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + .getDefaultInstance(); } @java.lang.Override @@ -468,14 +526,18 @@ public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buil @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result = + new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { if (workstationClustersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationClusters_ = java.util.Collections.unmodifiableList(workstationClusters_); @@ -487,7 +549,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis } } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +565,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC 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.workstations.v1beta.ListWorkstationClustersResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + .getDefaultInstance()) return this; if (workstationClustersBuilder_ == null) { if (!other.workstationClusters_.isEmpty()) { if (workstationClusters_.isEmpty()) { @@ -560,9 +628,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationClu workstationClustersBuilder_ = null; workstationClusters_ = other.workstationClusters_; bitField0_ = (bitField0_ & ~0x00000001); - workstationClustersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationClustersFieldBuilder() : null; + workstationClustersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationClustersFieldBuilder() + : null; } else { workstationClustersBuilder_.addAllMessages(other.workstationClusters_); } @@ -609,36 +678,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.WorkstationCluster m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), - extensionRegistry); - if (workstationClustersBuilder_ == null) { - ensureWorkstationClustersIsMutable(); - workstationClusters_.add(m); - } else { - workstationClustersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.WorkstationCluster m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationCluster.parser(), + extensionRegistry); + if (workstationClustersBuilder_ == null) { + ensureWorkstationClustersIsMutable(); + workstationClusters_.add(m); + } else { + workstationClustersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,28 +721,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationClusters_ = - java.util.Collections.emptyList(); + private java.util.List + workstationClusters_ = java.util.Collections.emptyList(); + private void ensureWorkstationClustersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationClusters_ = new java.util.ArrayList(workstationClusters_); + workstationClusters_ = + new java.util.ArrayList( + workstationClusters_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClustersBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + workstationClustersBuilder_; /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List getWorkstationClustersList() { + public java.util.List + getWorkstationClustersList() { if (workstationClustersBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationClusters_); } else { @@ -677,11 +761,14 @@ public java.util.List g } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public int getWorkstationClustersCount() { if (workstationClustersBuilder_ == null) { @@ -691,13 +778,17 @@ public int getWorkstationClustersCount() { } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters( + int index) { if (workstationClustersBuilder_ == null) { return workstationClusters_.get(index); } else { @@ -705,11 +796,14 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClu } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -726,14 +820,18 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder setWorkstationClusters( - int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.set(index, builderForValue.build()); @@ -744,13 +842,17 @@ public Builder setWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public Builder addWorkstationClusters(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder addWorkstationClusters( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClustersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -764,11 +866,14 @@ public Builder addWorkstationClusters(com.google.cloud.workstations.v1beta.Works return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( int index, com.google.cloud.workstations.v1beta.WorkstationCluster value) { @@ -785,11 +890,14 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -803,14 +911,18 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addWorkstationClusters( - int index, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); workstationClusters_.add(index, builderForValue.build()); @@ -821,18 +933,21 @@ public Builder addWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder addAllWorkstationClusters( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (workstationClustersBuilder_ == null) { ensureWorkstationClustersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationClusters_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationClusters_); onChanged(); } else { workstationClustersBuilder_.addAllMessages(values); @@ -840,11 +955,14 @@ public Builder addAllWorkstationClusters( return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder clearWorkstationClusters() { if (workstationClustersBuilder_ == null) { @@ -857,11 +975,14 @@ public Builder clearWorkstationClusters() { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ public Builder removeWorkstationClusters(int index) { if (workstationClustersBuilder_ == null) { @@ -874,39 +995,50 @@ public Builder removeWorkstationClusters(int index) { return this; } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClustersBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + getWorkstationClustersBuilder(int index) { return getWorkstationClustersFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClustersOrBuilder(int index) { if (workstationClustersBuilder_ == null) { - return workstationClusters_.get(index); } else { + return workstationClusters_.get(index); + } else { return workstationClustersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + getWorkstationClustersOrBuilderList() { if (workstationClustersBuilder_ != null) { return workstationClustersBuilder_.getMessageOrBuilderList(); } else { @@ -914,45 +1046,62 @@ public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorks } } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder() { - return getWorkstationClustersFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + addWorkstationClustersBuilder() { + return getWorkstationClustersFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkstationClustersBuilder( - int index) { - return getWorkstationClustersFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + addWorkstationClustersBuilder(int index) { + return getWorkstationClustersFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()); } /** + * + * *
      * The requested workstation clusters.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - public java.util.List - getWorkstationClustersBuilderList() { + public java.util.List + getWorkstationClustersBuilderList() { return getWorkstationClustersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClustersFieldBuilder() { if (workstationClustersBuilder_ == null) { - workstationClustersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + workstationClustersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( workstationClusters_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -964,19 +1113,21 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder addWorkst 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; @@ -985,21 +1136,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 { @@ -1007,30 +1159,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1199,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1224,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1232,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1276,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1314,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1336,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1395,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1407,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationClustersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationClustersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1455,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java index 1677fecb41ee..09eb9c73746b 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationClustersResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationClustersResponseOrBuilder extends +public interface ListWorkstationClustersResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationClustersResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List + java.util.List getWorkstationClustersList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationClusters(int index); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ int getWorkstationClustersCount(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ - java.util.List + java.util.List getWorkstationClustersOrBuilderList(); /** + * + * *
    * The requested workstation clusters.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationCluster workstation_clusters = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClustersOrBuilder( 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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java index c30bf387fbd3..785ff92d4c2a 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ -public final class ListWorkstationConfigsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) ListWorkstationConfigsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsRequest.newBuilder() to construct. private ListWorkstationConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,40 @@ private ListWorkstationConfigsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +121,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +137,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +158,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +190,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +202,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_); } @@ -191,8 +225,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +238,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.workstations.v1beta.ListWorkstationConfigsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other = + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +272,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest + 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest 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.workstations.v1beta.ListWorkstationConfigsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsRequest} */ - 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.workstations.v1beta.ListWorkstationConfigsRequest) com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,14 +415,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + .getDefaultInstance(); } @java.lang.Override @@ -398,13 +438,17 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest build( @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result = + new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,46 +465,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC 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.workstations.v1beta.ListWorkstationConfigsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +549,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +583,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +612,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +636,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +678,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +702,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +719,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +738,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +757,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +780,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +803,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +843,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,41 +877,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,9 +925,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java index cc23beb9526a..1441a77af7dd 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsRequestOrBuilder extends +public interface ListWorkstationConfigsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java similarity index 67% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java index 1aa08eb48f87..8db53a23c2d6 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponse.java @@ -1,122 +1,163 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListWorkstationConfigs.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ -public final class ListWorkstationConfigsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) ListWorkstationConfigsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationConfigsResponse.newBuilder() to construct. - private ListWorkstationConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListWorkstationConfigsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationConfigsResponse() { workstationConfigs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationConfigsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } public static final int WORKSTATION_CONFIGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List workstationConfigs_; + private java.util.List + workstationConfigs_; /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationConfigsOrBuilderList() { return workstationConfigs_; } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public int getWorkstationConfigsCount() { return workstationConfigs_.size(); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { return workstationConfigs_.get(index); } /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { return workstationConfigs_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") 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 @@ -125,30 +166,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 { @@ -157,38 +198,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +246,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +274,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 < workstationConfigs_.size(); i++) { output.writeMessage(1, workstationConfigs_.get(i)); } @@ -242,8 +294,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstationConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstationConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstationConfigs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +316,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.workstations.v1beta.ListWorkstationConfigsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other = + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) obj; - if (!getWorkstationConfigsList() - .equals(other.getWorkstationConfigsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationConfigsList().equals(other.getWorkstationConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +354,138 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse + 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse 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.workstations.v1beta.ListWorkstationConfigsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse 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 message for ListWorkstationConfigs.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationConfigsResponse} */ - 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.workstations.v1beta.ListWorkstationConfigsResponse) com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,20 +498,21 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + .getDefaultInstance(); } @java.lang.Override @@ -468,14 +526,18 @@ public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse build @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result = + new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { if (workstationConfigsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstationConfigs_ = java.util.Collections.unmodifiableList(workstationConfigs_); @@ -487,7 +549,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis } } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,46 +565,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationC 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.workstations.v1beta.ListWorkstationConfigsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse other) { + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + .getDefaultInstance()) return this; if (workstationConfigsBuilder_ == null) { if (!other.workstationConfigs_.isEmpty()) { if (workstationConfigs_.isEmpty()) { @@ -560,9 +628,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationCon workstationConfigsBuilder_ = null; workstationConfigs_ = other.workstationConfigs_; bitField0_ = (bitField0_ & ~0x00000001); - workstationConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationConfigsFieldBuilder() : null; + workstationConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationConfigsFieldBuilder() + : null; } else { workstationConfigsBuilder_.addAllMessages(other.workstationConfigs_); } @@ -609,36 +678,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.WorkstationConfig m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), - extensionRegistry); - if (workstationConfigsBuilder_ == null) { - ensureWorkstationConfigsIsMutable(); - workstationConfigs_.add(m); - } else { - workstationConfigsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.WorkstationConfig m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.parser(), + extensionRegistry); + if (workstationConfigsBuilder_ == null) { + ensureWorkstationConfigsIsMutable(); + workstationConfigs_.add(m); + } else { + workstationConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,28 +721,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List workstationConfigs_ = - java.util.Collections.emptyList(); + private java.util.List + workstationConfigs_ = java.util.Collections.emptyList(); + private void ensureWorkstationConfigsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstationConfigs_ = new java.util.ArrayList(workstationConfigs_); + workstationConfigs_ = + new java.util.ArrayList( + workstationConfigs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigsBuilder_; /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List getWorkstationConfigsList() { + public java.util.List + getWorkstationConfigsList() { if (workstationConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(workstationConfigs_); } else { @@ -677,11 +761,14 @@ public java.util.List ge } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public int getWorkstationConfigsCount() { if (workstationConfigsBuilder_ == null) { @@ -691,11 +778,14 @@ public int getWorkstationConfigsCount() { } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -705,11 +795,14 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConf } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -726,11 +819,14 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder setWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -744,13 +840,17 @@ public Builder setWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder addWorkstationConfigs( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -764,11 +864,14 @@ public Builder addWorkstationConfigs(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig value) { @@ -785,11 +888,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -803,11 +909,14 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addWorkstationConfigs( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -821,18 +930,21 @@ public Builder addWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder addAllWorkstationConfigs( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (workstationConfigsBuilder_ == null) { ensureWorkstationConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstationConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstationConfigs_); onChanged(); } else { workstationConfigsBuilder_.addAllMessages(values); @@ -840,11 +952,14 @@ public Builder addAllWorkstationConfigs( return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder clearWorkstationConfigs() { if (workstationConfigsBuilder_ == null) { @@ -857,11 +972,14 @@ public Builder clearWorkstationConfigs() { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ public Builder removeWorkstationConfigs(int index) { if (workstationConfigsBuilder_ == null) { @@ -874,39 +992,49 @@ public Builder removeWorkstationConfigs(int index) { return this; } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigsBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigsBuilder(int index) { return getWorkstationConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigsOrBuilder(int index) { if (workstationConfigsBuilder_ == null) { - return workstationConfigs_.get(index); } else { + return workstationConfigs_.get(index); + } else { return workstationConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsOrBuilderList() { + public java.util.List + getWorkstationConfigsOrBuilderList() { if (workstationConfigsBuilder_ != null) { return workstationConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -914,45 +1042,62 @@ public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkst } } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder() { - return getWorkstationConfigsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder() { + return getWorkstationConfigsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorkstationConfigsBuilder( - int index) { - return getWorkstationConfigsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + addWorkstationConfigsBuilder(int index) { + return getWorkstationConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()); } /** + * + * *
      * The requested configs.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - public java.util.List - getWorkstationConfigsBuilderList() { + public java.util.List + getWorkstationConfigsBuilderList() { return getWorkstationConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigsFieldBuilder() { if (workstationConfigsBuilder_ == null) { - workstationConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + workstationConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( workstationConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -964,19 +1109,21 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder addWorksta 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; @@ -985,21 +1132,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 { @@ -1007,30 +1155,37 @@ 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; 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() { @@ -1040,18 +1195,22 @@ public Builder clearNextPageToken() { 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1220,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1228,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1272,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1310,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1332,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Unreachable resources.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1391,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,41 +1403,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse(); } - public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationConfigsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1263,9 +1451,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java index 061c38b5ea1b..a25a049c50da 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationConfigsResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationConfigsResponseOrBuilder extends +public interface ListWorkstationConfigsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationConfigsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfigs(int index); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ int getWorkstationConfigsCount(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ - java.util.List + java.util.List getWorkstationConfigsOrBuilderList(); /** + * + * *
    * The requested configs.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * repeated .google.cloud.workstations.v1beta.WorkstationConfig workstation_configs = 1; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigsOrBuilder( 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(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Unreachable resources.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java index e66c45815d5a..a776093206f9 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ -public final class ListWorkstationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsRequest) ListWorkstationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsRequest.newBuilder() to construct. private ListWorkstationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,33 +44,40 @@ private ListWorkstationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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 @@ -61,29 +86,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. Parent resource name.
    * 
* - * 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 { @@ -94,11 +121,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -107,15 +137,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -124,30 +158,30 @@ 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; } } /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -156,6 +190,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +202,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_); } @@ -191,8 +225,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -205,19 +238,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.workstations.v1beta.ListWorkstationsRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsRequest other = + (com.google.cloud.workstations.v1beta.ListWorkstationsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,131 +272,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest 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.workstations.v1beta.ListWorkstationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsRequest} */ - 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.workstations.v1beta.ListWorkstationsRequest) com.google.cloud.workstations.v1beta.ListWorkstationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, + com.google.cloud.workstations.v1beta.ListWorkstationsRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -377,13 +413,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance(); } @@ -398,13 +435,17 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsRequest buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.ListWorkstationsRequest result = + new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -421,38 +462,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstations 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.workstations.v1beta.ListWorkstationsRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) other); } else { super.mergeFrom(other); return this; @@ -460,7 +502,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRequest other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -500,27 +544,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,22 +578,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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; @@ -554,20 +607,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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 { @@ -575,28 +631,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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() { @@ -606,17 +673,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent resource name.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -624,13 +697,16 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -638,11 +714,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -654,11 +733,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. Maximum number of items to return.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -670,19 +752,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -691,21 +775,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -713,30 +798,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -746,27 +838,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. next_page_token value returned from a previous List request, if
      * any.
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; 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); } @@ -776,12 +872,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsRequest) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsRequest(); } @@ -790,27 +887,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -825,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java index d208d9ee43a5..af85cced8191 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsRequestOrBuilder.java @@ -1,61 +1,94 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsRequestOrBuilder extends +public interface ListWorkstationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent resource name.
    * 
* - * 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. Parent resource name.
    * 
* - * 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(); /** + * + * *
    * Optional. Maximum number of items to return.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. next_page_token value returned from a previous List request, if
    * any.
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java similarity index 73% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java index 1a002d3e1bd6..090a55b41a08 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponse.java @@ -1,55 +1,76 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Response message for ListWorkstations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ -public final class ListWorkstationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListWorkstationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.ListWorkstationsResponse) ListWorkstationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListWorkstationsResponse.newBuilder() to construct. private ListWorkstationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListWorkstationsResponse() { workstations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListWorkstationsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } public static final int WORKSTATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List workstations_; /** + * + * *
    * The requested workstations.
    * 
@@ -61,6 +82,8 @@ public java.util.List getWorks return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -68,11 +91,13 @@ public java.util.List getWorks * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getWorkstationsOrBuilderList() { return workstations_; } /** + * + * *
    * The requested workstations.
    * 
@@ -84,6 +109,8 @@ public int getWorkstationsCount() { return workstations_.size(); } /** + * + * *
    * The requested workstations.
    * 
@@ -95,6 +122,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde return workstations_.get(index); } /** + * + * *
    * The requested workstations.
    * 
@@ -108,15 +137,19 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,30 +158,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; } } /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -157,38 +190,47 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +238,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +266,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 < workstations_.size(); i++) { output.writeMessage(1, workstations_.get(i)); } @@ -242,8 +286,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < workstations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workstations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, workstations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +307,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.workstations.v1beta.ListWorkstationsResponse)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; + com.google.cloud.workstations.v1beta.ListWorkstationsResponse other = + (com.google.cloud.workstations.v1beta.ListWorkstationsResponse) obj; - if (!getWorkstationsList() - .equals(other.getWorkstationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getWorkstationsList().equals(other.getWorkstationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,131 +345,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse 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.workstations.v1beta.ListWorkstationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse 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 message for ListWorkstations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.ListWorkstationsResponse} */ - 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.workstations.v1beta.ListWorkstationsResponse) com.google.cloud.workstations.v1beta.ListWorkstationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, + com.google.cloud.workstations.v1beta.ListWorkstationsResponse.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.ListWorkstationsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,19 +487,19 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.ListWorkstationsResponse + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance(); } @@ -468,14 +514,18 @@ public com.google.cloud.workstations.v1beta.ListWorkstationsResponse build() { @java.lang.Override public com.google.cloud.workstations.v1beta.ListWorkstationsResponse buildPartial() { - com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result = + new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { if (workstationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { workstations_ = java.util.Collections.unmodifiableList(workstations_); @@ -487,7 +537,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Lis } } - private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.ListWorkstationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -502,38 +553,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.ListWorkstations 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.workstations.v1beta.ListWorkstationsResponse) { - return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse)other); + return mergeFrom((com.google.cloud.workstations.v1beta.ListWorkstationsResponse) other); } else { super.mergeFrom(other); return this; @@ -541,7 +593,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsResponse other) { - if (other == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance()) + return this; if (workstationsBuilder_ == null) { if (!other.workstations_.isEmpty()) { if (workstations_.isEmpty()) { @@ -560,9 +614,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.ListWorkstationsRe workstationsBuilder_ = null; workstations_ = other.workstations_; bitField0_ = (bitField0_ & ~0x00000001); - workstationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkstationsFieldBuilder() : null; + workstationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWorkstationsFieldBuilder() + : null; } else { workstationsBuilder_.addAllMessages(other.workstations_); } @@ -609,36 +664,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.workstations.v1beta.Workstation m = - input.readMessage( - com.google.cloud.workstations.v1beta.Workstation.parser(), - extensionRegistry); - if (workstationsBuilder_ == null) { - ensureWorkstationsIsMutable(); - workstations_.add(m); - } else { - workstationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.workstations.v1beta.Workstation m = + input.readMessage( + com.google.cloud.workstations.v1beta.Workstation.parser(), + extensionRegistry); + if (workstationsBuilder_ == null) { + ensureWorkstationsIsMutable(); + workstations_.add(m); + } else { + workstationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -648,21 +707,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List workstations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWorkstationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - workstations_ = new java.util.ArrayList(workstations_); + workstations_ = + new java.util.ArrayList( + workstations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationsBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationsBuilder_; /** + * + * *
      * The requested workstations.
      * 
@@ -677,6 +745,8 @@ public java.util.List getWorks } } /** + * + * *
      * The requested workstations.
      * 
@@ -691,6 +761,8 @@ public int getWorkstationsCount() { } } /** + * + * *
      * The requested workstations.
      * 
@@ -705,6 +777,8 @@ public com.google.cloud.workstations.v1beta.Workstation getWorkstations(int inde } } /** + * + * *
      * The requested workstations.
      * 
@@ -726,6 +800,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -744,6 +820,8 @@ public Builder setWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -764,6 +842,8 @@ public Builder addWorkstations(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -785,6 +865,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -803,6 +885,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -821,6 +905,8 @@ public Builder addWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -831,8 +917,7 @@ public Builder addAllWorkstations( java.lang.Iterable values) { if (workstationsBuilder_ == null) { ensureWorkstationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workstations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workstations_); onChanged(); } else { workstationsBuilder_.addAllMessages(values); @@ -840,6 +925,8 @@ public Builder addAllWorkstations( return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -857,6 +944,8 @@ public Builder clearWorkstations() { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -874,6 +963,8 @@ public Builder removeWorkstations(int index) { return this; } /** + * + * *
      * The requested workstations.
      * 
@@ -885,6 +976,8 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB return getWorkstationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The requested workstations.
      * 
@@ -894,19 +987,22 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationsB public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( int index) { if (workstationsBuilder_ == null) { - return workstations_.get(index); } else { + return workstations_.get(index); + } else { return workstationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsOrBuilderList() { + public java.util.List + getWorkstationsOrBuilderList() { if (workstationsBuilder_ != null) { return workstationsBuilder_.getMessageOrBuilderList(); } else { @@ -914,6 +1010,8 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations } } /** + * + * *
      * The requested workstations.
      * 
@@ -921,10 +1019,12 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstations * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder() { - return getWorkstationsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
@@ -933,30 +1033,35 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB */ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsBuilder( int index) { - return getWorkstationsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); + return getWorkstationsFieldBuilder() + .addBuilder(index, com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()); } /** + * + * *
      * The requested workstations.
      * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - public java.util.List - getWorkstationsBuilderList() { + public java.util.List + getWorkstationsBuilderList() { return getWorkstationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationsFieldBuilder() { if (workstationsBuilder_ == null) { - workstationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - workstations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + workstationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + workstations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); workstations_ = null; } return workstationsBuilder_; @@ -964,19 +1069,21 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder addWorkstationsB private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -985,21 +1092,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1007,30 +1115,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1040,18 +1155,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * Optional. Token to retrieve the next page of results, or empty if there are
      * no more results in the list.
      * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,6 +1180,7 @@ public Builder setNextPageTokenBytes( private com.google.protobuf.LazyStringArrayList unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureUnreachableIsMutable() { if (!unreachable_.isModifiable()) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); @@ -1068,35 +1188,43 @@ private void ensureUnreachableIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { unreachable_.makeImmutable(); return unreachable_; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,31 +1232,37 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); bitField0_ |= 0x00000004; @@ -1136,17 +1270,21 @@ public Builder setUnreachable( return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); bitField0_ |= 0x00000004; @@ -1154,50 +1292,58 @@ public Builder addUnreachable( return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUnreachable() { - unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
      * Optional. Unreachable resources.
      * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); @@ -1205,9 +1351,9 @@ public Builder addUnreachableBytes( 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); } @@ -1217,12 +1363,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.ListWorkstationsResponse) - private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.ListWorkstationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.ListWorkstationsResponse(); } @@ -1231,27 +1378,27 @@ public static com.google.cloud.workstations.v1beta.ListWorkstationsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListWorkstationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkstationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1266,6 +1413,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.ListWorkstationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java index aa014e1725f2..3625cac45d9a 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/ListWorkstationsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface ListWorkstationsResponseOrBuilder extends +public interface ListWorkstationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.ListWorkstationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List - getWorkstationsList(); + java.util.List getWorkstationsList(); /** + * + * *
    * The requested workstations.
    * 
@@ -25,6 +44,8 @@ public interface ListWorkstationsResponseOrBuilder extends */ com.google.cloud.workstations.v1beta.Workstation getWorkstations(int index); /** + * + * *
    * The requested workstations.
    * 
@@ -33,84 +54,102 @@ public interface ListWorkstationsResponseOrBuilder extends */ int getWorkstationsCount(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - java.util.List + java.util.List getWorkstationsOrBuilderList(); /** + * + * *
    * The requested workstations.
    * 
* * repeated .google.cloud.workstations.v1beta.Workstation workstations = 1; */ - com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationsOrBuilder(int index); /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Optional. Token to retrieve the next page of results, or empty if there are
    * no more results in the list.
    * 
* * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Optional. Unreachable resources.
    * 
* * repeated string unreachable = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/LocationName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java similarity index 70% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java index c48f01d2ab53..2bf78d34cb30 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Metadata for long-running operations.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,32 +46,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, + com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -61,11 +84,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -73,11 +100,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -87,11 +117,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -99,11 +133,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -111,11 +149,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -123,14 +164,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -139,29 +184,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -170,14 +215,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -186,29 +235,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -217,14 +266,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -233,29 +286,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -266,12 +319,15 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -280,14 +336,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -296,29 +356,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -327,6 +387,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,8 +399,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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -371,12 +431,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -388,8 +446,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -402,33 +459,27 @@ 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.workstations.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.OperationMetadata other = (com.google.cloud.workstations.v1beta.OperationMetadata) obj; + com.google.cloud.workstations.v1beta.OperationMetadata other = + (com.google.cloud.workstations.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -455,8 +506,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -465,131 +515,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata 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.workstations.v1beta.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.OperationMetadata 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; } /** + * + * *
    * Metadata for long-running operations.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.OperationMetadata} */ - 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.workstations.v1beta.OperationMetadata) com.google.cloud.workstations.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.OperationMetadata.class, com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); + com.google.cloud.workstations.v1beta.OperationMetadata.class, + com.google.cloud.workstations.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -613,9 +668,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -634,8 +689,11 @@ public com.google.cloud.workstations.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { - com.google.cloud.workstations.v1beta.OperationMetadata result = new com.google.cloud.workstations.v1beta.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.OperationMetadata result = + new com.google.cloud.workstations.v1beta.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -643,14 +701,10 @@ public com.google.cloud.workstations.v1beta.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -673,38 +727,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.OperationMetadat 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.workstations.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata)other); + return mergeFrom((com.google.cloud.workstations.v1beta.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -712,7 +767,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.OperationMetadata other) { - if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -768,51 +824,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -822,43 +882,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -874,14 +954,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -892,17 +975,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -915,11 +1002,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -932,11 +1023,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -944,36 +1039,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time that the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -981,24 +1088,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1009,11 +1127,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1029,14 +1150,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1047,17 +1170,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1070,11 +1196,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1087,11 +1216,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1099,36 +1231,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Time that the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -1136,18 +1276,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1156,20 +1298,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1177,28 +1320,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1208,17 +1358,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1228,18 +1382,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1248,20 +1404,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1269,28 +1426,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1300,17 +1464,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1320,18 +1488,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1340,20 +1510,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1361,28 +1532,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1392,17 +1570,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1410,14 +1592,17 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1425,12 +1610,15 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ @@ -1442,12 +1630,15 @@ public Builder setRequestedCancellation(boolean value) { return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1459,18 +1650,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1479,20 +1672,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1500,28 +1694,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1531,26 +1732,30 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; 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); } @@ -1560,12 +1765,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.OperationMetadata) private static final com.google.cloud.workstations.v1beta.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.OperationMetadata(); } @@ -1574,27 +1779,27 @@ public static com.google.cloud.workstations.v1beta.OperationMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1609,6 +1814,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java index 396fa0fb8a60..2730a241b264 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/OperationMetadataOrBuilder.java @@ -1,154 +1,215 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time that the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time that the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java similarity index 66% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java index 41bbcc900260..44683eed4873 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for StartWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ -public final class StartWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StartWorkstationRequest) StartWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartWorkstationRequest.newBuilder() to construct. private StartWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,40 @@ private StartWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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 @@ -61,29 +86,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. Name of the workstation to start.
    * 
* - * 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 { @@ -94,12 +121,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +138,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +159,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -157,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,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_); } @@ -192,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -206,19 +239,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.workstations.v1beta.StartWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StartWorkstationRequest other = (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StartWorkstationRequest other = + (com.google.cloud.workstations.v1beta.StartWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,8 +264,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -243,131 +273,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StartWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest 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.workstations.v1beta.StartWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.StartWorkstationRequest 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 message for StartWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StartWorkstationRequest} */ - 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.workstations.v1beta.StartWorkstationRequest) com.google.cloud.workstations.v1beta.StartWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StartWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StartWorkstationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,13 +414,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.StartWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance(); } @@ -400,13 +436,17 @@ public com.google.cloud.workstations.v1beta.StartWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StartWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StartWorkstationRequest result = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.StartWorkstationRequest result = + new com.google.cloud.workstations.v1beta.StartWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.StartWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -423,38 +463,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.StartWorkstation 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.workstations.v1beta.StartWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.StartWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -462,7 +503,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StartWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -502,27 +545,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,22 +579,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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; @@ -556,20 +608,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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 { @@ -577,28 +632,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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() { @@ -608,17 +674,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to start.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -626,14 +698,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -641,12 +716,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -658,12 +736,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -675,19 +756,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -696,21 +779,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -718,30 +802,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -751,27 +842,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,12 +876,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StartWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.StartWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StartWorkstationRequest(); } @@ -795,27 +891,27 @@ public static com.google.cloud.workstations.v1beta.StartWorkstationRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StartWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java index 31f94439b7d6..62c72a2f40ca 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StartWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StartWorkstationRequestOrBuilder extends +public interface StartWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StartWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to start.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java similarity index 67% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java index 7dbf2a8cda2d..03d829f8793f 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for StopWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ -public final class StopWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.StopWorkstationRequest) StopWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopWorkstationRequest.newBuilder() to construct. private StopWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopWorkstationRequest() { name_ = ""; etag_ = ""; @@ -26,33 +44,40 @@ private StopWorkstationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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 @@ -61,29 +86,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. Name of the workstation to stop.
    * 
* - * 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 { @@ -94,12 +121,15 @@ public java.lang.String getName() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -108,15 +138,19 @@ public boolean getValidateOnly() { } public static final int ETAG_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -125,30 +159,30 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -157,6 +191,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +203,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_); } @@ -192,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); @@ -206,19 +239,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.workstations.v1beta.StopWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.StopWorkstationRequest other = (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.StopWorkstationRequest other = + (com.google.cloud.workstations.v1beta.StopWorkstationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getName().equals(other.getName())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,8 +264,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -243,131 +273,136 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.StopWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest 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.workstations.v1beta.StopWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.StopWorkstationRequest 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 message for StopWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.StopWorkstationRequest} */ - 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.workstations.v1beta.StopWorkstationRequest) com.google.cloud.workstations.v1beta.StopWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, + com.google.cloud.workstations.v1beta.StopWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.StopWorkstationRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; } @java.lang.Override @@ -400,8 +435,11 @@ public com.google.cloud.workstations.v1beta.StopWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.StopWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.StopWorkstationRequest result = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.StopWorkstationRequest result = + new com.google.cloud.workstations.v1beta.StopWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -423,38 +461,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.StopWorkstationR 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.workstations.v1beta.StopWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.StopWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -462,7 +501,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.StopWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -502,27 +542,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,22 +576,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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; @@ -556,20 +605,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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 { @@ -577,28 +629,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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() { @@ -608,17 +671,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the workstation to stop.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -626,14 +695,17 @@ public Builder setNameBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -641,12 +713,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -658,12 +733,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -675,19 +753,21 @@ public Builder clearValidateOnly() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -696,21 +776,22 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -718,30 +799,37 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -751,27 +839,31 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. If set, the request will be rejected if the latest version of the
      * workstation on the server does not have this ETag.
      * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000004; 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,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.StopWorkstationRequest) private static final com.google.cloud.workstations.v1beta.StopWorkstationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.StopWorkstationRequest(); } @@ -795,27 +887,27 @@ public static com.google.cloud.workstations.v1beta.StopWorkstationRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,6 +922,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.StopWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java index 5bd5321d4144..5b2d40e51904 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/StopWorkstationRequestOrBuilder.java @@ -1,62 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface StopWorkstationRequestOrBuilder extends +public interface StopWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.StopWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. Name of the workstation to stop.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. If set, the request will be rejected if the latest version of the
    * workstation on the server does not have this ETag.
    * 
* * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java index 2b566da775bd..c165fe305604 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequest.java @@ -1,55 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for UpdateWorkstationCluster.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ -public final class UpdateWorkstationClusterRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationClusterRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) UpdateWorkstationClusterRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationClusterRequest.newBuilder() to construct. - private UpdateWorkstationClusterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationClusterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationClusterRequest() { - } + + private UpdateWorkstationClusterRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationClusterRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } public static final int WORKSTATION_CLUSTER_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ @java.lang.Override @@ -57,38 +81,56 @@ public boolean hasWorkstationCluster() { return workstationCluster_ != null; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +138,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +155,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,12 +173,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -140,6 +192,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -147,6 +201,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -155,6 +210,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +222,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 (workstationCluster_ != null) { output.writeMessage(1, getWorkstationCluster()); } @@ -190,20 +245,16 @@ public int getSerializedSize() { size = 0; if (workstationCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationCluster()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,27 +264,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.workstations.v1beta.UpdateWorkstationClusterRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other = + (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) obj; if (hasWorkstationCluster() != other.hasWorkstationCluster()) return false; if (hasWorkstationCluster()) { - if (!getWorkstationCluster() - .equals(other.getWorkstationCluster())) return false; + if (!getWorkstationCluster().equals(other.getWorkstationCluster())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,142 +302,147 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest + 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest 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.workstations.v1beta.UpdateWorkstationClusterRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest 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 message for UpdateWorkstationCluster.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest} */ - 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.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +463,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + .getDefaultInstance(); } @java.lang.Override @@ -431,23 +486,26 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buil @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result = + new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationCluster_ = workstationClusterBuilder_ == null - ? workstationCluster_ - : workstationClusterBuilder_.build(); + result.workstationCluster_ = + workstationClusterBuilder_ == null + ? workstationCluster_ + : workstationClusterBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -461,46 +519,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstatio 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.workstations.v1beta.UpdateWorkstationClusterRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { - if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest other) { + if (other + == com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + .getDefaultInstance()) return this; if (other.hasWorkstationCluster()) { mergeWorkstationCluster(other.getWorkstationCluster()); } @@ -539,36 +602,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationClusterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationClusterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,45 +643,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationCluster workstationCluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> workstationClusterBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + workstationClusterBuilder_; /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ public boolean hasWorkstationCluster() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster() { if (workstationClusterBuilder_ == null) { - return workstationCluster_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } else { return workstationClusterBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder setWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -630,11 +716,15 @@ public Builder setWorkstationCluster(com.google.cloud.workstations.v1beta.Workst return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationCluster( com.google.cloud.workstations.v1beta.WorkstationCluster.Builder builderForValue) { @@ -648,17 +738,23 @@ public Builder setWorkstationCluster( return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.WorkstationCluster value) { + public Builder mergeWorkstationCluster( + com.google.cloud.workstations.v1beta.WorkstationCluster value) { if (workstationClusterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationCluster_ != null && - workstationCluster_ != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationCluster_ != null + && workstationCluster_ + != com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) { getWorkstationClusterBuilder().mergeFrom(value); } else { workstationCluster_ = value; @@ -671,11 +767,15 @@ public Builder mergeWorkstationCluster(com.google.cloud.workstations.v1beta.Work return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationCluster() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,48 +788,66 @@ public Builder clearWorkstationCluster() { return this; } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder getWorkstationClusterBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.Builder + getWorkstationClusterBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder + getWorkstationClusterOrBuilder() { if (workstationClusterBuilder_ != null) { return workstationClusterBuilder_.getMessageOrBuilder(); } else { - return workstationCluster_ == null ? - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() : workstationCluster_; + return workstationCluster_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance() + : workstationCluster_; } } /** + * + * *
      * Required. Workstation cluster to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder> getWorkstationClusterFieldBuilder() { if (workstationClusterBuilder_ == null) { - workstationClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( - getWorkstationCluster(), - getParentForChildren(), - isClean()); + workstationClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster, + com.google.cloud.workstations.v1beta.WorkstationCluster.Builder, + com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder>( + getWorkstationCluster(), getParentForChildren(), isClean()); workstationCluster_ = null; } return workstationClusterBuilder_; @@ -737,42 +855,58 @@ public com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorks 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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -788,15 +922,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -807,18 +943,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -831,12 +970,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -849,12 +991,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -862,51 +1007,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask that specifies which fields in the workstation cluster
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -914,12 +1072,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -931,12 +1092,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -946,8 +1110,10 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -955,6 +1121,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -962,6 +1129,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -969,6 +1138,7 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -980,6 +1150,8 @@ public Builder setAllowMissing(boolean value) { return this; } /** + * + * *
      * Optional. If set, and the workstation cluster is not found, a new
      * workstation cluster will be created. In this situation, update_mask is
@@ -987,6 +1159,7 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -995,9 +1168,9 @@ public Builder clearAllowMissing() { 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); } @@ -1007,41 +1180,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationClusterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationClusterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,9 +1228,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java index cd135639ed27..7490d3872eee 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationClusterRequestOrBuilder.java @@ -1,81 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationClusterRequestOrBuilder extends +public interface UpdateWorkstationClusterRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationCluster field is set. */ boolean hasWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationCluster. */ com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(); /** + * + * *
    * Required. Workstation cluster to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder getWorkstationClusterOrBuilder(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask that specifies which fields in the workstation cluster
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set, and the workstation cluster is not found, a new
    * workstation cluster will be created. In this situation, update_mask is
@@ -83,6 +129,7 @@ public interface UpdateWorkstationClusterRequestOrBuilder extends
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java similarity index 62% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java index c03a5c67d072..334eaabd1b30 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequest.java @@ -1,55 +1,79 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for UpdateWorkstationConfig.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ -public final class UpdateWorkstationConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) UpdateWorkstationConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationConfigRequest.newBuilder() to construct. - private UpdateWorkstationConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateWorkstationConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationConfigRequest() { - } + + private UpdateWorkstationConfigRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationConfigRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } public static final int WORKSTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ @java.lang.Override @@ -57,38 +81,56 @@ public boolean hasWorkstationConfig() { return workstationConfig_ != null; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +138,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +155,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,12 +173,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -140,6 +192,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -147,6 +201,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -155,6 +210,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +222,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 (workstationConfig_ != null) { output.writeMessage(1, getWorkstationConfig()); } @@ -190,20 +245,16 @@ public int getSerializedSize() { size = 0; if (workstationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstationConfig()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,27 +264,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.workstations.v1beta.UpdateWorkstationConfigRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other = + (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) obj; if (hasWorkstationConfig() != other.hasWorkstationConfig()) return false; if (hasWorkstationConfig()) { - if (!getWorkstationConfig() - .equals(other.getWorkstationConfig())) return false; + if (!getWorkstationConfig().equals(other.getWorkstationConfig())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,142 +302,147 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest + 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest 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.workstations.v1beta.UpdateWorkstationConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest 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 message for UpdateWorkstationConfig.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest} */ - 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.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,14 +463,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + .getDefaultInstance(); } @java.lang.Override @@ -431,23 +486,26 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest build @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result = + new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstationConfig_ = workstationConfigBuilder_ == null - ? workstationConfig_ - : workstationConfigBuilder_.build(); + result.workstationConfig_ = + workstationConfigBuilder_ == null + ? workstationConfig_ + : workstationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -461,46 +519,51 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstatio 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.workstations.v1beta.UpdateWorkstationConfigRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { - if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest other) { + if (other + == com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + .getDefaultInstance()) return this; if (other.hasWorkstationConfig()) { mergeWorkstationConfig(other.getWorkstationConfig()); } @@ -539,36 +602,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getWorkstationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,45 +643,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1beta.WorkstationConfig workstationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> workstationConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + workstationConfigBuilder_; /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ public boolean hasWorkstationConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig() { if (workstationConfigBuilder_ == null) { - return workstationConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } else { return workstationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder setWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -630,11 +716,15 @@ public Builder setWorkstationConfig(com.google.cloud.workstations.v1beta.Worksta return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstationConfig( com.google.cloud.workstations.v1beta.WorkstationConfig.Builder builderForValue) { @@ -648,17 +738,23 @@ public Builder setWorkstationConfig( return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.WorkstationConfig value) { + public Builder mergeWorkstationConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig value) { if (workstationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstationConfig_ != null && - workstationConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstationConfig_ != null + && workstationConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) { getWorkstationConfigBuilder().mergeFrom(value); } else { workstationConfig_ = value; @@ -671,11 +767,15 @@ public Builder mergeWorkstationConfig(com.google.cloud.workstations.v1beta.Works return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstationConfig() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,48 +788,66 @@ public Builder clearWorkstationConfig() { return this; } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder getWorkstationConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Builder + getWorkstationConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorkstationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder + getWorkstationConfigOrBuilder() { if (workstationConfigBuilder_ != null) { return workstationConfigBuilder_.getMessageOrBuilder(); } else { - return workstationConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() : workstationConfig_; + return workstationConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance() + : workstationConfig_; } } /** + * + * *
      * Required. Config to update.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder> getWorkstationConfigFieldBuilder() { if (workstationConfigBuilder_ == null) { - workstationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( - getWorkstationConfig(), - getParentForChildren(), - isClean()); + workstationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder>( + getWorkstationConfig(), getParentForChildren(), isClean()); workstationConfig_ = null; } return workstationConfigBuilder_; @@ -737,42 +855,58 @@ public com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkst 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -788,15 +922,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -807,18 +943,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -831,12 +970,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -849,12 +991,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -862,51 +1007,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -914,12 +1072,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -931,12 +1092,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -946,8 +1110,10 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -955,6 +1121,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -962,6 +1129,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -969,6 +1138,7 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -980,6 +1150,8 @@ public Builder setAllowMissing(boolean value) { return this; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration will be created. In this situation,
@@ -987,6 +1159,7 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -995,9 +1168,9 @@ public Builder clearAllowMissing() { 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); } @@ -1007,41 +1180,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest(); } - public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1053,9 +1228,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java index 15a436201fcc..d5835c6a1678 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationConfigRequestOrBuilder.java @@ -1,81 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationConfigRequestOrBuilder extends +public interface UpdateWorkstationConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstationConfig field is set. */ boolean hasWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstationConfig. */ com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(); /** + * + * *
    * Required. Config to update.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig workstation_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder getWorkstationConfigOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration will be created. In this situation,
@@ -83,6 +129,7 @@ public interface UpdateWorkstationConfigRequestOrBuilder extends
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java similarity index 65% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java index b45e887cb381..a33dcb0ec843 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequest.java @@ -1,55 +1,78 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * Request message for UpdateWorkstation.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ -public final class UpdateWorkstationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateWorkstationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.UpdateWorkstationRequest) UpdateWorkstationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateWorkstationRequest.newBuilder() to construct. private UpdateWorkstationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateWorkstationRequest() { - } + + private UpdateWorkstationRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateWorkstationRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } public static final int WORKSTATION_FIELD_NUMBER = 1; private com.google.cloud.workstations.v1beta.Workstation workstation_; /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ @java.lang.Override @@ -57,38 +80,55 @@ public boolean hasWorkstation() { return workstation_ != null; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -96,12 +136,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -109,12 +153,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,12 +171,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; private boolean validateOnly_ = false; /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -140,6 +190,8 @@ public boolean getValidateOnly() { public static final int ALLOW_MISSING_FIELD_NUMBER = 4; private boolean allowMissing_ = false; /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -147,6 +199,7 @@ public boolean getValidateOnly() {
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -155,6 +208,7 @@ public boolean getAllowMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -166,8 +220,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 (workstation_ != null) { output.writeMessage(1, getWorkstation()); } @@ -190,20 +243,16 @@ public int getSerializedSize() { size = 0; if (workstation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkstation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWorkstation()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); } if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -213,27 +262,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.workstations.v1beta.UpdateWorkstationRequest)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other = + (com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) obj; if (hasWorkstation() != other.hasWorkstation()) return false; if (hasWorkstation()) { - if (!getWorkstation() - .equals(other.getWorkstation())) return false; + if (!getWorkstation().equals(other.getWorkstation())) 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 (getValidateOnly() - != other.getValidateOnly()) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,142 +300,145 @@ public int hashCode() { hash = (53 * hash) + getUpdateMask().hashCode(); } hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest 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.workstations.v1beta.UpdateWorkstationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest 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 message for UpdateWorkstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.UpdateWorkstationRequest} */ - 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.workstations.v1beta.UpdateWorkstationRequest) com.google.cloud.workstations.v1beta.UpdateWorkstationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,13 +459,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance(); } @@ -431,23 +481,24 @@ public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest build() { @java.lang.Override public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest buildPartial() { - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result = + new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.UpdateWorkstationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.workstation_ = workstationBuilder_ == null - ? workstation_ - : workstationBuilder_.build(); + result.workstation_ = + workstationBuilder_ == null ? workstation_ : workstationBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.validateOnly_ = validateOnly_; @@ -461,38 +512,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.UpdateWorkstatio 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.workstations.v1beta.UpdateWorkstationRequest) { - return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest)other); + return mergeFrom((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) other); } else { super.mergeFrom(other); return this; @@ -500,7 +552,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest other) { - if (other == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance()) + return this; if (other.hasWorkstation()) { mergeWorkstation(other.getWorkstation()); } @@ -539,36 +593,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWorkstationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - allowMissing_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getWorkstationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -578,43 +633,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.workstations.v1beta.Workstation workstation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> workstationBuilder_; + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + workstationBuilder_; /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ public boolean hasWorkstation() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ public com.google.cloud.workstations.v1beta.Workstation getWorkstation() { if (workstationBuilder_ == null) { - return workstation_ == null ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } else { return workstationBuilder_.getMessage(); } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { @@ -630,11 +705,15 @@ public Builder setWorkstation(com.google.cloud.workstations.v1beta.Workstation v return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWorkstation( com.google.cloud.workstations.v1beta.Workstation.Builder builderForValue) { @@ -648,17 +727,22 @@ public Builder setWorkstation( return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation value) { if (workstationBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - workstation_ != null && - workstation_ != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && workstation_ != null + && workstation_ + != com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) { getWorkstationBuilder().mergeFrom(value); } else { workstation_ = value; @@ -671,11 +755,15 @@ public Builder mergeWorkstation(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWorkstation() { bitField0_ = (bitField0_ & ~0x00000001); @@ -688,11 +776,15 @@ public Builder clearWorkstation() { return this; } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBuilder() { bitField0_ |= 0x00000001; @@ -700,36 +792,48 @@ public com.google.cloud.workstations.v1beta.Workstation.Builder getWorkstationBu return getWorkstationFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder() { if (workstationBuilder_ != null) { return workstationBuilder_.getMessageOrBuilder(); } else { - return workstation_ == null ? - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() : workstation_; + return workstation_ == null + ? com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance() + : workstation_; } } /** + * + * *
      * Required. Workstation to update.
      * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder> + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder> getWorkstationFieldBuilder() { if (workstationBuilder_ == null) { - workstationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.Workstation, com.google.cloud.workstations.v1beta.Workstation.Builder, com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( - getWorkstation(), - getParentForChildren(), - isClean()); + workstationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.Workstation, + com.google.cloud.workstations.v1beta.Workstation.Builder, + com.google.cloud.workstations.v1beta.WorkstationOrBuilder>( + getWorkstation(), getParentForChildren(), isClean()); workstation_ = null; } return workstationBuilder_; @@ -737,42 +841,58 @@ public com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationO 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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -788,15 +908,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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(); } else { @@ -807,18 +929,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -831,12 +956,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -849,12 +977,15 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -862,51 +993,64 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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. Mask specifying which fields in the workstation configuration
      * should be updated.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.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_; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -914,12 +1058,15 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ @@ -931,12 +1078,15 @@ public Builder setValidateOnly(boolean value) { return this; } /** + * + * *
      * Optional. If set, validate the request and preview the review, but do not
      * actually apply it.
      * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -946,8 +1096,10 @@ public Builder clearValidateOnly() { return this; } - private boolean allowMissing_ ; + private boolean allowMissing_; /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -955,6 +1107,7 @@ public Builder clearValidateOnly() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ @java.lang.Override @@ -962,6 +1115,8 @@ public boolean getAllowMissing() { return allowMissing_; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -969,6 +1124,7 @@ public boolean getAllowMissing() {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMissing to set. * @return This builder for chaining. */ @@ -980,6 +1136,8 @@ public Builder setAllowMissing(boolean value) { return this; } /** + * + * *
      * Optional. If set and the workstation configuration is not found, a new
      * workstation configuration is created. In this situation, update_mask
@@ -987,6 +1145,7 @@ public Builder setAllowMissing(boolean value) {
      * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMissing() { @@ -995,9 +1154,9 @@ public Builder clearAllowMissing() { 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); } @@ -1007,12 +1166,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.UpdateWorkstationRequest) - private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.UpdateWorkstationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.UpdateWorkstationRequest(); } @@ -1021,27 +1181,27 @@ public static com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateWorkstationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateWorkstationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1056,6 +1216,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.UpdateWorkstationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java index 0fa558166866..265fa8d839f7 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/UpdateWorkstationRequestOrBuilder.java @@ -1,81 +1,127 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface UpdateWorkstationRequestOrBuilder extends +public interface UpdateWorkstationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.UpdateWorkstationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the workstation field is set. */ boolean hasWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The workstation. */ com.google.cloud.workstations.v1beta.Workstation getWorkstation(); /** + * + * *
    * Required. Workstation to update.
    * 
* - * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.workstations.v1beta.Workstation workstation = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.workstations.v1beta.WorkstationOrBuilder getWorkstationOrBuilder(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask specifying which fields in the workstation configuration
    * should be updated.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Optional. If set, validate the request and preview the review, but do not
    * actually apply it.
    * 
* * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. If set and the workstation configuration is not found, a new
    * workstation configuration is created. In this situation, update_mask
@@ -83,6 +129,7 @@ public interface UpdateWorkstationRequestOrBuilder extends
    * 
* * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMissing. */ boolean getAllowMissing(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java similarity index 65% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java index 429b1b836fef..44af4fea91f2 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/Workstation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * A single instance of a developer workstation with its own persistent storage.
  * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ -public final class Workstation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Workstation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.Workstation) WorkstationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Workstation.newBuilder() to construct. private Workstation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Workstation() { name_ = ""; displayName_ = ""; @@ -30,20 +48,18 @@ private Workstation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Workstation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -52,28 +68,33 @@ protected com.google.protobuf.MapField internalGetMapField( case 12: return internalGetEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, + com.google.cloud.workstations.v1beta.Workstation.Builder.class); } /** + * + * *
    * Whether a workstation is running and ready to receive user requests.
    * 
* * Protobuf enum {@code google.cloud.workstations.v1beta.Workstation.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Do not use.
      * 
@@ -82,6 +103,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -91,6 +114,8 @@ public enum State
      */
     STATE_STARTING(1),
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -99,6 +124,8 @@ public enum State */ STATE_RUNNING(2), /** + * + * *
      * The workstation is being stopped.
      * 
@@ -107,6 +134,8 @@ public enum State */ STATE_STOPPING(3), /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -119,6 +148,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Do not use.
      * 
@@ -127,6 +158,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The workstation is not yet ready to accept requests from users but will
      * be soon.
@@ -136,6 +169,8 @@ public enum State
      */
     public static final int STATE_STARTING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The workstation is ready to accept requests from users.
      * 
@@ -144,6 +179,8 @@ public enum State */ public static final int STATE_RUNNING_VALUE = 2; /** + * + * *
      * The workstation is being stopped.
      * 
@@ -152,6 +189,8 @@ public enum State */ public static final int STATE_STOPPING_VALUE = 3; /** + * + * *
      * The workstation is stopped and will not be able to receive requests until
      * it is started.
@@ -161,7 +200,6 @@ public enum State
      */
     public static final int STATE_STOPPED_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -186,51 +224,53 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return STATE_STARTING;
-        case 2: return STATE_RUNNING;
-        case 3: return STATE_STOPPING;
-        case 4: return STATE_STOPPED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return STATE_STARTING;
+        case 2:
+          return STATE_RUNNING;
+        case 3:
+          return STATE_STOPPING;
+        case 4:
+          return STATE_STOPPED;
+        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<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.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 State findValueByNumber(int number) {
+            return State.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.workstations.v1beta.Workstation.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State 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;
@@ -248,14 +288,18 @@ private State(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Full name of this workstation.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -264,29 +308,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; } } /** + * + * *
    * Full name of this workstation.
    * 
* * 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 { @@ -295,14 +339,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -311,29 +359,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; } } /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -342,14 +390,18 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -358,29 +410,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -391,12 +443,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -405,94 +460,106 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -500,32 +567,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 13; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -536,20 +605,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -564,6 +634,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -574,17 +646,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -595,11 +669,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -609,11 +683,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -621,11 +699,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -633,11 +715,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -647,11 +732,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -659,11 +748,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -671,11 +764,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -685,12 +781,16 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -698,12 +798,16 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -711,12 +815,15 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -726,11 +833,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -738,11 +849,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -750,11 +865,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -762,9 +880,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -772,6 +893,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -780,14 +902,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -795,16 +918,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -815,33 +937,51 @@ public java.lang.String getEtag() { public static final int STATE_FIELD_NUMBER = 10; private int state_ = 0; /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1beta.Workstation.State getState() { + com.google.cloud.workstations.v1beta.Workstation.State result = + com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED + : result; } public static final int HOST_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -851,6 +991,7 @@ public java.lang.String getEtag() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ @java.lang.Override @@ -859,14 +1000,15 @@ public java.lang.String getHost() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } } /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -876,16 +1018,15 @@ public java.lang.String getHost() {
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -894,32 +1035,34 @@ public java.lang.String getHost() { } public static final int ENV_FIELD_NUMBER = 12; + private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -928,20 +1071,21 @@ public int getEnvCount() {
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsEnv(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsEnv(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetEnv().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getEnvMap()} instead.
-   */
+  /** Use {@link #getEnvMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getEnv() {
     return getEnvMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -954,6 +1098,8 @@ public java.util.Map getEnvMap() {
     return internalGetEnv().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -962,17 +1108,19 @@ public java.util.Map getEnvMap() {
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getEnvOrDefault(
+  public /* nullable */ java.lang.String getEnvOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetEnv().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetEnv().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -981,11 +1129,11 @@ java.lang.String getEnvOrDefault(
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getEnvOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetEnv().getMap();
+  public java.lang.String getEnvOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetEnv().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -993,6 +1141,7 @@ public java.lang.String getEnvOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1004,8 +1153,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_);
     }
@@ -1018,12 +1166,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (reconciling_ != false) {
       output.writeBool(4, reconciling_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetAnnotations(),
-        AnnotationsDefaultEntryHolder.defaultEntry,
-        5);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5);
     if (createTime_ != null) {
       output.writeMessage(6, getCreateTime());
     }
@@ -1036,24 +1180,17 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_);
     }
-    if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
+    if (state_
+        != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(10, state_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 11, host_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetEnv(),
-        EnvDefaultEntryHolder.defaultEntry,
-        12);
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        13);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 12);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 13);
     if (startTime_ != null) {
       output.writeMessage(14, getStartTime());
     }
@@ -1076,64 +1213,59 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_);
     }
     if (reconciling_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(4, reconciling_);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetAnnotations().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, annotations__);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetAnnotations().getMap().entrySet()) {
+      com.google.protobuf.MapEntry annotations__ =
+          AnnotationsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
     }
     if (updateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime());
     }
     if (deleteTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getDeleteTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_);
     }
-    if (state_ != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(10, state_);
+    if (state_
+        != com.google.cloud.workstations.v1beta.Workstation.State.STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, host_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetEnv().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(12, env__);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(13, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetEnv().getMap().entrySet()) {
+      com.google.protobuf.MapEntry env__ =
+          EnvDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, env__);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, labels__);
     }
     if (startTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(14, getStartTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getStartTime());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1143,52 +1275,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.workstations.v1beta.Workstation)) {
       return super.equals(obj);
     }
-    com.google.cloud.workstations.v1beta.Workstation other = (com.google.cloud.workstations.v1beta.Workstation) obj;
-
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDisplayName()
-        .equals(other.getDisplayName())) return false;
-    if (!getUid()
-        .equals(other.getUid())) return false;
-    if (getReconciling()
-        != other.getReconciling()) return false;
-    if (!internalGetAnnotations().equals(
-        other.internalGetAnnotations())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    com.google.cloud.workstations.v1beta.Workstation other =
+        (com.google.cloud.workstations.v1beta.Workstation) obj;
+
+    if (!getName().equals(other.getName())) return false;
+    if (!getDisplayName().equals(other.getDisplayName())) return false;
+    if (!getUid().equals(other.getUid())) return false;
+    if (getReconciling() != other.getReconciling()) return false;
+    if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) return false;
     }
     if (hasUpdateTime() != other.hasUpdateTime()) return false;
     if (hasUpdateTime()) {
-      if (!getUpdateTime()
-          .equals(other.getUpdateTime())) return false;
+      if (!getUpdateTime().equals(other.getUpdateTime())) 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 (hasDeleteTime() != other.hasDeleteTime()) return false;
     if (hasDeleteTime()) {
-      if (!getDeleteTime()
-          .equals(other.getDeleteTime())) return false;
+      if (!getDeleteTime().equals(other.getDeleteTime())) return false;
     }
-    if (!getEtag()
-        .equals(other.getEtag())) return false;
+    if (!getEtag().equals(other.getEtag())) return false;
     if (state_ != other.state_) return false;
-    if (!getHost()
-        .equals(other.getHost())) return false;
-    if (!internalGetEnv().equals(
-        other.internalGetEnv())) return false;
+    if (!getHost().equals(other.getHost())) return false;
+    if (!internalGetEnv().equals(other.internalGetEnv())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1207,8 +1327,7 @@ public int hashCode() {
     hash = (37 * hash) + UID_FIELD_NUMBER;
     hash = (53 * hash) + getUid().hashCode();
     hash = (37 * hash) + RECONCILING_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getReconciling());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling());
     if (!internalGetAnnotations().getMap().isEmpty()) {
       hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
       hash = (53 * hash) + internalGetAnnotations().hashCode();
@@ -1248,117 +1367,121 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.workstations.v1beta.Workstation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.workstations.v1beta.Workstation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.workstations.v1beta.Workstation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.workstations.v1beta.Workstation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation 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.workstations.v1beta.Workstation 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 single instance of a developer workstation with its own persistent storage.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.Workstation} */ - 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.workstations.v1beta.Workstation) com.google.cloud.workstations.v1beta.WorkstationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetAnnotations(); @@ -1367,13 +1490,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 12: return internalGetEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableAnnotations(); @@ -1382,28 +1504,27 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 12: return internalGetMutableEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.Workstation.class, com.google.cloud.workstations.v1beta.Workstation.Builder.class); + com.google.cloud.workstations.v1beta.Workstation.class, + com.google.cloud.workstations.v1beta.Workstation.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.Workstation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1442,9 +1563,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; } @java.lang.Override @@ -1463,8 +1584,11 @@ public com.google.cloud.workstations.v1beta.Workstation build() { @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation buildPartial() { - com.google.cloud.workstations.v1beta.Workstation result = new com.google.cloud.workstations.v1beta.Workstation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.Workstation result = + new com.google.cloud.workstations.v1beta.Workstation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1492,24 +1616,16 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.etag_ = etag_; @@ -1530,38 +1646,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.Workstation resu 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.workstations.v1beta.Workstation) { - return mergeFrom((com.google.cloud.workstations.v1beta.Workstation)other); + return mergeFrom((com.google.cloud.workstations.v1beta.Workstation) other); } else { super.mergeFrom(other); return this; @@ -1569,7 +1686,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) { - if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) return this; + if (other == com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1588,11 +1706,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) if (other.getReconciling() != false) { setReconciling(other.getReconciling()); } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); bitField0_ |= 0x00000010; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000020; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); @@ -1619,8 +1735,7 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.Workstation other) bitField0_ |= 0x00001000; onChanged(); } - internalGetMutableEnv().mergeFrom( - other.internalGetEnv()); + internalGetMutableEnv().mergeFrom(other.internalGetEnv()); bitField0_ |= 0x00002000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1648,102 +1763,112 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reconciling_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableAnnotations().getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 80: { - state_ = input.readEnum(); - bitField0_ |= 0x00000800; - break; - } // case 80 - case 90: { - host_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 90 - case 98: { - com.google.protobuf.MapEntry - env__ = input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put( - env__.getKey(), env__.getValue()); - bitField0_ |= 0x00002000; - break; - } // case 98 - case 106: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 106 - case 114: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 114 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reconciling_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 66 + case 74: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 80 + case 90: + { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 90 + case 98: + { + com.google.protobuf.MapEntry env__ = + input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 106 + case 114: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1753,22 +1878,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Full name of this workstation.
      * 
* * 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; @@ -1777,20 +1905,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation.
      * 
* * 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 { @@ -1798,28 +1927,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this workstation.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1829,17 +1965,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this workstation.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1849,18 +1989,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1869,20 +2011,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1890,28 +2033,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1921,17 +2071,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. Human-readable name for this workstation.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -1941,18 +2095,20 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1961,20 +2117,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1982,28 +2139,35 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -2013,17 +2177,21 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -2031,14 +2199,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -2046,12 +2217,15 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -2063,12 +2237,15 @@ public Builder setReconciling(boolean value) { return this; } /** + * + * *
      * Output only. Indicates whether this workstation is currently being updated
      * to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -2078,8 +2255,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -2088,11 +2265,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -2101,153 +2279,168 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2256,10 +2449,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2270,20 +2466,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2298,6 +2495,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2308,17 +2507,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2329,23 +2530,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2355,23 +2558,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2381,17 +2583,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -2401,49 +2606,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2459,14 +2681,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2477,17 +2702,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2500,11 +2729,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2517,11 +2750,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -2529,36 +2766,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when this workstation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2566,39 +2815,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2614,14 +2882,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2632,17 +2903,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2655,11 +2930,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -2672,11 +2951,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -2684,36 +2967,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when this workstation was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -2721,26 +3016,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2751,12 +3059,16 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2772,15 +3084,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -2791,18 +3106,22 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -2815,12 +3134,16 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -2833,12 +3156,16 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { bitField0_ |= 0x00000100; @@ -2846,38 +3173,48 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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. Time when this workstation was most recently successfully
      * started, regardless of the workstation's initial state.
      * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2885,39 +3222,58 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2933,14 +3289,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -2951,17 +3310,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -2974,11 +3337,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -2991,11 +3358,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000200; @@ -3003,36 +3374,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this workstation was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3040,6 +3423,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3047,13 +3432,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -3062,6 +3447,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3069,15 +3456,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -3085,6 +3471,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3092,18 +3480,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3111,6 +3503,7 @@ public Builder setEtag(
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -3120,6 +3513,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -3127,12 +3522,14 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000400; @@ -3142,22 +3539,33 @@ public Builder setEtagBytes( private int state_ = 0; /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -3168,24 +3576,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.workstations.v1beta.Workstation.State getState() { - com.google.cloud.workstations.v1beta.Workstation.State result = com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); - return result == null ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED : result; + com.google.cloud.workstations.v1beta.Workstation.State result = + com.google.cloud.workstations.v1beta.Workstation.State.forNumber(state_); + return result == null + ? com.google.cloud.workstations.v1beta.Workstation.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -3199,11 +3620,16 @@ public Builder setState(com.google.cloud.workstations.v1beta.Workstation.State v return this; } /** + * + * *
      * Output only. Current state of the workstation.
      * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -3215,6 +3641,8 @@ public Builder clearState() { private java.lang.Object host_ = ""; /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3224,13 +3652,13 @@ public Builder clearState() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; @@ -3239,6 +3667,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3248,15 +3678,14 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { @@ -3264,6 +3693,8 @@ public java.lang.String getHost() { } } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3273,18 +3704,22 @@ public java.lang.String getHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHost(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } host_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3294,6 +3729,7 @@ public Builder setHost(
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearHost() { @@ -3303,6 +3739,8 @@ public Builder clearHost() { return this; } /** + * + * *
      * Output only. Host to which clients can send HTTPS traffic that will be
      * received by the workstation. Authorized traffic will be received to the
@@ -3312,12 +3750,14 @@ public Builder clearHost() {
      * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00001000; @@ -3325,21 +3765,19 @@ public Builder setHostBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField( - EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -3348,10 +3786,13 @@ public Builder setHostBytes( onChanged(); return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3360,20 +3801,21 @@ public int getEnvCount() {
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsEnv(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsEnv(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetEnv().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getEnvMap()} instead.
-     */
+    /** Use {@link #getEnvMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getEnv() {
       return getEnvMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3386,6 +3828,8 @@ public java.util.Map getEnvMap() {
       return internalGetEnv().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3394,17 +3838,19 @@ public java.util.Map getEnvMap() {
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getEnvOrDefault(
+    public /* nullable */ java.lang.String getEnvOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetEnv().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetEnv().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3413,23 +3859,25 @@ java.lang.String getEnvOrDefault(
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getEnvOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetEnv().getMap();
+    public java.lang.String getEnvOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetEnv().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearEnv() {
       bitField0_ = (bitField0_ & ~0x00002000);
-      internalGetMutableEnv().getMutableMap()
-          .clear();
+      internalGetMutableEnv().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3437,23 +3885,22 @@ public Builder clearEnv() {
      *
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeEnv(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableEnv().getMutableMap()
-          .remove(key);
+    public Builder removeEnv(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableEnv().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableEnv() {
+    public java.util.Map getMutableEnv() {
       bitField0_ |= 0x00002000;
       return internalGetMutableEnv().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3461,17 +3908,20 @@ public Builder removeEnv(
      *
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putEnv(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableEnv().getMutableMap()
-          .put(key, value);
+    public Builder putEnv(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableEnv().getMutableMap().put(key, value);
       bitField0_ |= 0x00002000;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Environment variables passed to the workstation container's
      * entrypoint.
@@ -3479,16 +3929,14 @@ public Builder putEnv(
      *
      * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllEnv(
-        java.util.Map values) {
-      internalGetMutableEnv().getMutableMap()
-          .putAll(values);
+    public Builder putAllEnv(java.util.Map values) {
+      internalGetMutableEnv().getMutableMap().putAll(values);
       bitField0_ |= 0x00002000;
       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);
     }
 
@@ -3498,12 +3946,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.Workstation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.Workstation)
   private static final com.google.cloud.workstations.v1beta.Workstation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.Workstation();
   }
@@ -3512,27 +3960,27 @@ public static com.google.cloud.workstations.v1beta.Workstation getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Workstation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Workstation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3547,6 +3995,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.workstations.v1beta.Workstation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
similarity index 68%
rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
index f9fa57f21d55..90a9ee9fc5d4 100644
--- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
+++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationCluster.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/workstations/v1beta/workstations.proto
 
 package com.google.cloud.workstations.v1beta;
 
 /**
+ *
+ *
  * 
  * A workstation cluster resource in the Cloud Workstations API.
  *
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
  */
-public final class WorkstationCluster extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationCluster extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster)
     WorkstationClusterOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationCluster.newBuilder() to construct.
   private WorkstationCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationCluster() {
     name_ = "";
     displayName_ = "";
@@ -35,53 +53,59 @@ private WorkstationCluster() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new WorkstationCluster();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 15:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationCluster.class,
+            com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
   }
 
-  public interface PrivateClusterConfigOrBuilder extends
+  public interface PrivateClusterConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -91,10 +115,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ java.lang.String getClusterHostname(); /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -104,12 +131,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - com.google.protobuf.ByteString - getClusterHostnameBytes(); + com.google.protobuf.ByteString getClusterHostnameBytes(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -119,10 +148,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ java.lang.String getServiceAttachmentUri(); /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -132,12 +164,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ - com.google.protobuf.ByteString - getServiceAttachmentUriBytes(); + com.google.protobuf.ByteString getServiceAttachmentUriBytes(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -145,11 +179,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedProjects. */ - java.util.List - getAllowedProjectsList(); + java.util.List getAllowedProjectsList(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -157,10 +193,13 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedProjects. */ int getAllowedProjectsCount(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -168,11 +207,14 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ java.lang.String getAllowedProjects(int index); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -180,63 +222,70 @@ public interface PrivateClusterConfigOrBuilder extends
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - com.google.protobuf.ByteString - getAllowedProjectsBytes(int index); + com.google.protobuf.ByteString getAllowedProjectsBytes(int index); } /** + * + * *
    * Configuration options for private workstation clusters.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - public static final class PrivateClusterConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PrivateClusterConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) PrivateClusterConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateClusterConfig.newBuilder() to construct. private PrivateClusterConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrivateClusterConfig() { clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrivateClusterConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + .class); } public static final int ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER = 1; private boolean enablePrivateEndpoint_ = false; /** + * + * *
      * Immutable. Whether Workstations endpoint is private.
      * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -245,9 +294,12 @@ public boolean getEnablePrivateEndpoint() { } public static final int CLUSTER_HOSTNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object clusterHostname_ = ""; /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -257,6 +309,7 @@ public boolean getEnablePrivateEndpoint() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ @java.lang.Override @@ -265,14 +318,15 @@ public java.lang.String getClusterHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; } } /** + * + * *
      * Output only. Hostname for the workstation cluster. This field will be
      * populated only when private endpoint is enabled. To access workstations
@@ -282,16 +336,15 @@ public java.lang.String getClusterHostname() {
      * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -300,9 +353,12 @@ public java.lang.String getClusterHostname() { } public static final int SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -312,6 +368,7 @@ public java.lang.String getClusterHostname() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAttachmentUri. */ @java.lang.Override @@ -320,14 +377,15 @@ public java.lang.String getServiceAttachmentUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; } } /** + * + * *
      * Output only. Service attachment URI for the workstation cluster. The
      * service attachemnt is created when private endpoint is enabled. To access
@@ -337,16 +395,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAttachmentUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -355,10 +412,13 @@ public java.lang.String getServiceAttachmentUri() { } public static final int ALLOWED_PROJECTS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -366,13 +426,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { return allowedProjects_; } /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -380,12 +442,15 @@ public java.lang.String getServiceAttachmentUri() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -393,6 +458,7 @@ public int getAllowedProjectsCount() {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -400,6 +466,8 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
      * Optional. Additional projects that are allowed to attach to the
      * workstation cluster's service attachment. By default, the workstation
@@ -407,15 +475,16 @@ public java.lang.String getAllowedProjects(int index) {
      * 
* * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -427,8 +496,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 (enablePrivateEndpoint_ != false) { output.writeBool(1, enablePrivateEndpoint_); } @@ -451,8 +519,7 @@ public int getSerializedSize() { size = 0; if (enablePrivateEndpoint_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enablePrivateEndpoint_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enablePrivateEndpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterHostname_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clusterHostname_); @@ -476,21 +543,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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other = + (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) obj; - if (getEnablePrivateEndpoint() - != other.getEnablePrivateEndpoint()) return false; - if (!getClusterHostname() - .equals(other.getClusterHostname())) return false; - if (!getServiceAttachmentUri() - .equals(other.getServiceAttachmentUri())) return false; - if (!getAllowedProjectsList() - .equals(other.getAllowedProjectsList())) return false; + if (getEnablePrivateEndpoint() != other.getEnablePrivateEndpoint()) return false; + if (!getClusterHostname().equals(other.getClusterHostname())) return false; + if (!getServiceAttachmentUri().equals(other.getServiceAttachmentUri())) return false; + if (!getAllowedProjectsList().equals(other.getAllowedProjectsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -503,8 +569,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_PRIVATE_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnablePrivateEndpoint()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateEndpoint()); hash = (37 * hash) + CLUSTER_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getClusterHostname().hashCode(); hash = (37 * hash) + SERVICE_ATTACHMENT_URI_FIELD_NUMBER; @@ -518,90 +583,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig 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 @@ -611,39 +687,44 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration options for private workstation clusters.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig} */ - 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.class, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -651,25 +732,27 @@ public Builder clear() { enablePrivateEndpoint_ = false; clusterHostname_ = ""; serviceAttachmentUri_ = ""; - allowedProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig build() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -677,14 +760,19 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result = + new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enablePrivateEndpoint_ = enablePrivateEndpoint_; @@ -705,46 +793,55 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust 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.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) return this; if (other.getEnablePrivateEndpoint() != false) { setEnablePrivateEndpoint(other.getEnablePrivateEndpoint()); } @@ -794,33 +891,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enablePrivateEndpoint_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - clusterHostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - serviceAttachmentUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureAllowedProjectsIsMutable(); - allowedProjects_.add(s); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enablePrivateEndpoint_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + clusterHostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + serviceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedProjectsIsMutable(); + allowedProjects_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -830,15 +932,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enablePrivateEndpoint_ ; + private boolean enablePrivateEndpoint_; /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The enablePrivateEndpoint. */ @java.lang.Override @@ -846,11 +952,14 @@ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The enablePrivateEndpoint to set. * @return This builder for chaining. */ @@ -862,11 +971,14 @@ public Builder setEnablePrivateEndpoint(boolean value) { return this; } /** + * + * *
        * Immutable. Whether Workstations endpoint is private.
        * 
* * bool enable_private_endpoint = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -878,6 +990,8 @@ public Builder clearEnablePrivateEndpoint() { private java.lang.Object clusterHostname_ = ""; /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -887,13 +1001,13 @@ public Builder clearEnablePrivateEndpoint() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterHostname. */ public java.lang.String getClusterHostname() { java.lang.Object ref = clusterHostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterHostname_ = s; return s; @@ -902,6 +1016,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -911,15 +1027,14 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for clusterHostname. */ - public com.google.protobuf.ByteString - getClusterHostnameBytes() { + public com.google.protobuf.ByteString getClusterHostnameBytes() { java.lang.Object ref = clusterHostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterHostname_ = b; return b; } else { @@ -927,6 +1042,8 @@ public java.lang.String getClusterHostname() { } } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -936,18 +1053,22 @@ public java.lang.String getClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clusterHostname_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -957,6 +1078,7 @@ public Builder setClusterHostname(
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterHostname() { @@ -966,6 +1088,8 @@ public Builder clearClusterHostname() { return this; } /** + * + * *
        * Output only. Hostname for the workstation cluster. This field will be
        * populated only when private endpoint is enabled. To access workstations
@@ -975,12 +1099,14 @@ public Builder clearClusterHostname() {
        * 
* * string cluster_hostname = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for clusterHostname to set. * @return This builder for chaining. */ - public Builder setClusterHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClusterHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clusterHostname_ = value; bitField0_ |= 0x00000002; @@ -990,6 +1116,8 @@ public Builder setClusterHostnameBytes( private java.lang.Object serviceAttachmentUri_ = ""; /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -998,14 +1126,15 @@ public Builder setClusterHostnameBytes(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The serviceAttachmentUri. */ public java.lang.String getServiceAttachmentUri() { java.lang.Object ref = serviceAttachmentUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAttachmentUri_ = s; return s; @@ -1014,6 +1143,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1022,16 +1153,16 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for serviceAttachmentUri. */ - public com.google.protobuf.ByteString - getServiceAttachmentUriBytes() { + public com.google.protobuf.ByteString getServiceAttachmentUriBytes() { java.lang.Object ref = serviceAttachmentUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAttachmentUri_ = b; return b; } else { @@ -1039,6 +1170,8 @@ public java.lang.String getServiceAttachmentUri() { } } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1047,19 +1180,24 @@ public java.lang.String getServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1068,7 +1206,9 @@ public Builder setServiceAttachmentUri(
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearServiceAttachmentUri() { @@ -1078,6 +1218,8 @@ public Builder clearServiceAttachmentUri() { return this; } /** + * + * *
        * Output only. Service attachment URI for the workstation cluster. The
        * service attachemnt is created when private endpoint is enabled. To access
@@ -1086,13 +1228,16 @@ public Builder clearServiceAttachmentUri() {
        * Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
        * 
* - * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string service_attachment_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for serviceAttachmentUri to set. * @return This builder for chaining. */ - public Builder setServiceAttachmentUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAttachmentUri_ = value; bitField0_ |= 0x00000004; @@ -1102,6 +1247,7 @@ public Builder setServiceAttachmentUriBytes( private com.google.protobuf.LazyStringArrayList allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureAllowedProjectsIsMutable() { if (!allowedProjects_.isModifiable()) { allowedProjects_ = new com.google.protobuf.LazyStringArrayList(allowedProjects_); @@ -1109,41 +1255,52 @@ private void ensureAllowedProjectsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the allowedProjects. */ - public com.google.protobuf.ProtocolStringList - getAllowedProjectsList() { + public com.google.protobuf.ProtocolStringList getAllowedProjectsList() { allowedProjects_.makeImmutable(); return allowedProjects_; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of allowedProjects. */ public int getAllowedProjectsCount() { return allowedProjects_.size(); } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The allowedProjects at the given index. */ @@ -1151,35 +1308,43 @@ public java.lang.String getAllowedProjects(int index) { return allowedProjects_.get(index); } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the allowedProjects at the given index. */ - public com.google.protobuf.ByteString - getAllowedProjectsBytes(int index) { + public com.google.protobuf.ByteString getAllowedProjectsBytes(int index) { return allowedProjects_.getByteString(index); } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The allowedProjects to set. * @return This builder for chaining. */ - public Builder setAllowedProjects( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setAllowedProjects(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.set(index, value); bitField0_ |= 0x00000008; @@ -1187,19 +1352,24 @@ public Builder setAllowedProjects( return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjects( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjects(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); bitField0_ |= 0x00000008; @@ -1207,56 +1377,67 @@ public Builder addAllowedProjects( return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllAllowedProjects( - java.lang.Iterable values) { + public Builder addAllAllowedProjects(java.lang.Iterable values) { ensureAllowedProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowedProjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedProjects_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAllowedProjects() { - allowedProjects_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + allowedProjects_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
        * Optional. Additional projects that are allowed to attach to the
        * workstation cluster's service attachment. By default, the workstation
        * cluster's project and the VPC host project (if different) are allowed.
        * 
* - * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string allowed_projects = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the allowedProjects to add. * @return This builder for chaining. */ - public Builder addAllowedProjectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addAllowedProjectsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureAllowedProjectsIsMutable(); allowedProjects_.add(value); @@ -1264,6 +1445,7 @@ public Builder addAllowedProjectsBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1276,41 +1458,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationCluster + .PrivateClusterConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateClusterConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateClusterConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1322,21 +1509,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -1345,29 +1536,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; } } /** + * + * *
    * Full name of this workstation cluster.
    * 
* * 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 { @@ -1376,14 +1567,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -1392,29 +1587,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; } } /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1423,15 +1618,19 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -1440,30 +1639,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1474,12 +1673,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -1488,94 +1690,106 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1583,32 +1797,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 15; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1619,20 +1835,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1647,6 +1864,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1657,17 +1876,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -1678,11 +1899,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1692,11 +1913,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1704,11 +1929,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1716,11 +1945,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1730,11 +1962,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1742,11 +1978,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1754,11 +1994,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1768,11 +2011,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1780,11 +2027,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -1792,11 +2043,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1804,9 +2058,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -1814,6 +2071,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -1822,14 +2080,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -1837,16 +2096,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -1855,15 +2113,19 @@ public java.lang.String getEtag() { } public static final int NETWORK_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object network_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ @java.lang.Override @@ -1872,30 +2134,30 @@ public java.lang.String getNetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -1904,9 +2166,12 @@ public java.lang.String getNetwork() { } public static final int SUBNETWORK_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object subnetwork_ = ""; /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -1914,6 +2179,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ @java.lang.Override @@ -1922,14 +2188,15 @@ public java.lang.String getSubnetwork() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; } } /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -1937,16 +2204,15 @@ public java.lang.String getSubnetwork() {
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -1955,9 +2221,12 @@ public java.lang.String getSubnetwork() { } public static final int CONTROL_PLANE_IP_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private volatile java.lang.Object controlPlaneIp_ = ""; /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -1966,6 +2235,7 @@ public java.lang.String getSubnetwork() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The controlPlaneIp. */ @java.lang.Override @@ -1974,14 +2244,15 @@ public java.lang.String getControlPlaneIp() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; } } /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -1990,16 +2261,15 @@ public java.lang.String getControlPlaneIp() {
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for controlPlaneIp. */ @java.lang.Override - public com.google.protobuf.ByteString - getControlPlaneIpBytes() { + public com.google.protobuf.ByteString getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -2008,13 +2278,19 @@ public java.lang.String getControlPlaneIp() { } public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 12; - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privateClusterConfig field is set. */ @java.lang.Override @@ -2022,32 +2298,51 @@ public boolean hasPrivateClusterConfig() { return privateClusterConfig_ != null; } /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateClusterConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } public static final int DEGRADED_FIELD_NUMBER = 13; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -2056,6 +2351,7 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -2064,72 +2360,87 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2141,8 +2452,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_); } @@ -2155,12 +2465,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -2188,12 +2494,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(14, conditions_.get(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 15); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 15); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, controlPlaneIp_); } @@ -2216,30 +2518,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); @@ -2251,26 +2549,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, subnetwork_); } if (privateClusterConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getPrivateClusterConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPrivateClusterConfig()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, conditions_.get(i)); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, conditions_.get(i)); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(controlPlaneIp_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, controlPlaneIp_); @@ -2283,57 +2579,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.workstations.v1beta.WorkstationCluster)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationCluster other = (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationCluster other = + (com.google.cloud.workstations.v1beta.WorkstationCluster) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnetwork() - .equals(other.getSubnetwork())) return false; - if (!getControlPlaneIp() - .equals(other.getControlPlaneIp())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (!getControlPlaneIp().equals(other.getControlPlaneIp())) return false; if (hasPrivateClusterConfig() != other.hasPrivateClusterConfig()) return false; if (hasPrivateClusterConfig()) { - if (!getPrivateClusterConfig() - .equals(other.getPrivateClusterConfig())) return false; + if (!getPrivateClusterConfig().equals(other.getPrivateClusterConfig())) return false; } - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2352,8 +2633,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -2387,8 +2667,7 @@ public int hashCode() { hash = (53 * hash) + getPrivateClusterConfig().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); @@ -2399,98 +2678,104 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster 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.workstations.v1beta.WorkstationCluster prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationCluster 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 workstation cluster resource in the Cloud Workstations API.
    *
@@ -2500,59 +2785,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationCluster}
    */
-  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.workstations.v1beta.WorkstationCluster)
       com.google.cloud.workstations.v1beta.WorkstationClusterOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 15:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 15:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationCluster.class, com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationCluster.class,
+              com.google.cloud.workstations.v1beta.WorkstationCluster.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationCluster.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2599,9 +2881,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor;
     }
 
     @java.lang.Override
@@ -2620,14 +2902,18 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationCluster buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationCluster result = new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
+      com.google.cloud.workstations.v1beta.WorkstationCluster result =
+          new com.google.cloud.workstations.v1beta.WorkstationCluster(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationCluster result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1beta.WorkstationCluster result) {
       if (conditionsBuilder_ == null) {
         if (((bitField0_ & 0x00008000) != 0)) {
           conditions_ = java.util.Collections.unmodifiableList(conditions_);
@@ -2662,19 +2948,13 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
@@ -2689,9 +2969,10 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
         result.controlPlaneIp_ = controlPlaneIp_;
       }
       if (((from_bitField0_ & 0x00002000) != 0)) {
-        result.privateClusterConfig_ = privateClusterConfigBuilder_ == null
-            ? privateClusterConfig_
-            : privateClusterConfigBuilder_.build();
+        result.privateClusterConfig_ =
+            privateClusterConfigBuilder_ == null
+                ? privateClusterConfig_
+                : privateClusterConfigBuilder_.build();
       }
       if (((from_bitField0_ & 0x00004000) != 0)) {
         result.degraded_ = degraded_;
@@ -2702,38 +2983,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationClust
     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.workstations.v1beta.WorkstationCluster) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster)other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationCluster) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2741,7 +3023,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -2760,11 +3043,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -2819,9 +3100,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationCluster
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00008000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -2853,116 +3135,128 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              network_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              subnetwork_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getPrivateClusterConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00002000;
-              break;
-            } // case 98
-            case 104: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00004000;
-              break;
-            } // case 104
-            case 114: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 114
-            case 122: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 122
-            case 130: {
-              controlPlaneIp_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 130
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                network_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                subnetwork_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(
+                    getPrivateClusterConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00002000;
+                break;
+              } // case 98
+            case 104:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00004000;
+                break;
+              } // case 104
+            case 114:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 114
+            case 122:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 122
+            case 130:
+              {
+                controlPlaneIp_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 130
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2972,22 +3266,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this workstation cluster.
      * 
* * 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; @@ -2996,20 +3293,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * 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 { @@ -3017,28 +3315,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3048,17 +3353,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this workstation cluster.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3068,18 +3377,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -3088,20 +3399,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -3109,28 +3421,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3140,17 +3459,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. Human-readable name for this workstation cluster.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -3160,19 +3483,21 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -3181,21 +3506,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -3203,30 +3529,37 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -3236,18 +3569,22 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * cluster.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -3255,14 +3592,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -3270,12 +3610,15 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -3287,12 +3630,15 @@ public Builder setReconciling(boolean value) { return this; } /** + * + * *
      * Output only. Indicates whether this workstation cluster is currently being
      * updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -3302,8 +3648,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -3312,11 +3658,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -3325,153 +3672,168 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3480,10 +3842,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3494,20 +3859,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3522,6 +3888,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3532,17 +3900,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3553,23 +3923,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3579,23 +3951,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3605,17 +3976,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -3625,49 +3999,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3683,14 +4074,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3701,17 +4095,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3724,11 +4122,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3741,11 +4143,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -3753,36 +4159,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when this workstation cluster was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3790,39 +4208,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3838,14 +4275,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3856,17 +4296,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3879,11 +4323,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -3896,11 +4344,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -3908,36 +4360,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when this workstation cluster was most recently updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -3945,39 +4409,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3993,14 +4476,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -4011,17 +4497,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -4034,11 +4524,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4051,11 +4545,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -4063,36 +4561,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this workstation cluster was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -4100,6 +4610,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4107,13 +4619,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -4122,6 +4634,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4129,15 +4643,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -4145,6 +4658,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4152,18 +4667,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4171,6 +4690,7 @@ public Builder setEtag(
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -4180,6 +4700,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -4187,12 +4709,14 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -4202,19 +4726,21 @@ public Builder setEtagBytes( private java.lang.Object network_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); network_ = s; return s; @@ -4223,21 +4749,22 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); network_ = b; return b; } else { @@ -4245,30 +4772,37 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } network_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4278,18 +4812,22 @@ public Builder clearNetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine network in which instances associated
      * with this workstation cluster will be created.
      * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); network_ = value; bitField0_ |= 0x00000400; @@ -4299,6 +4837,8 @@ public Builder setNetworkBytes( private java.lang.Object subnetwork_ = ""; /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4306,13 +4846,13 @@ public Builder setNetworkBytes(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetwork_ = s; return s; @@ -4321,6 +4861,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4328,15 +4870,14 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - public com.google.protobuf.ByteString - getSubnetworkBytes() { + public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnetwork_ = b; return b; } else { @@ -4344,6 +4885,8 @@ public java.lang.String getSubnetwork() { } } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4351,18 +4894,22 @@ public java.lang.String getSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetwork( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subnetwork_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4370,6 +4917,7 @@ public Builder setSubnetwork(
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -4379,6 +4927,8 @@ public Builder clearSubnetwork() { return this; } /** + * + * *
      * Immutable. Name of the Compute Engine subnetwork in which instances
      * associated with this workstation cluster will be created. Must be part of
@@ -4386,12 +4936,14 @@ public Builder clearSubnetwork() {
      * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for subnetwork to set. * @return This builder for chaining. */ - public Builder setSubnetworkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subnetwork_ = value; bitField0_ |= 0x00000800; @@ -4401,6 +4953,8 @@ public Builder setSubnetworkBytes( private java.lang.Object controlPlaneIp_ = ""; /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4409,13 +4963,13 @@ public Builder setSubnetworkBytes(
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The controlPlaneIp. */ public java.lang.String getControlPlaneIp() { java.lang.Object ref = controlPlaneIp_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); controlPlaneIp_ = s; return s; @@ -4424,6 +4978,8 @@ public java.lang.String getControlPlaneIp() { } } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4432,15 +4988,14 @@ public java.lang.String getControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for controlPlaneIp. */ - public com.google.protobuf.ByteString - getControlPlaneIpBytes() { + public com.google.protobuf.ByteString getControlPlaneIpBytes() { java.lang.Object ref = controlPlaneIp_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); controlPlaneIp_ = b; return b; } else { @@ -4448,6 +5003,8 @@ public java.lang.String getControlPlaneIp() { } } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4456,18 +5013,22 @@ public java.lang.String getControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIp( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setControlPlaneIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } controlPlaneIp_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4476,6 +5037,7 @@ public Builder setControlPlaneIp(
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearControlPlaneIp() { @@ -4485,6 +5047,8 @@ public Builder clearControlPlaneIp() { return this; } /** + * + * *
      * Output only. The private IP address of the control plane for this
      * workstation cluster. Workstation VMs need access to this IP address to work
@@ -4493,12 +5057,14 @@ public Builder clearControlPlaneIp() {
      * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for controlPlaneIp to set. * @return This builder for chaining. */ - public Builder setControlPlaneIpBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setControlPlaneIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); controlPlaneIp_ = value; bitField0_ |= 0x00001000; @@ -4506,43 +5072,66 @@ public Builder setControlPlaneIpBytes( return this; } - private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig privateClusterConfig_; + private com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + privateClusterConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> privateClusterConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> + privateClusterConfigBuilder_; /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privateClusterConfig field is set. */ public boolean hasPrivateClusterConfig() { return ((bitField0_ & 0x00002000) != 0); } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateClusterConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig() { if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } else { return privateClusterConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder setPrivateClusterConfig( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4556,14 +5145,19 @@ public Builder setPrivateClusterConfig(com.google.cloud.workstations.v1beta.Work return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPrivateClusterConfig( - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + builderForValue) { if (privateClusterConfigBuilder_ == null) { privateClusterConfig_ = builderForValue.build(); } else { @@ -4574,17 +5168,24 @@ public Builder setPrivateClusterConfig( return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { + public Builder mergePrivateClusterConfig( + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig value) { if (privateClusterConfigBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) && - privateClusterConfig_ != null && - privateClusterConfig_ != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00002000) != 0) + && privateClusterConfig_ != null + && privateClusterConfig_ + != com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance()) { getPrivateClusterConfigBuilder().mergeFrom(value); } else { privateClusterConfig_ = value; @@ -4597,11 +5198,15 @@ public Builder mergePrivateClusterConfig(com.google.cloud.workstations.v1beta.Wo return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPrivateClusterConfig() { bitField0_ = (bitField0_ & ~0x00002000); @@ -4614,55 +5219,78 @@ public Builder clearPrivateClusterConfig() { return this; } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder + getPrivateClusterConfigBuilder() { bitField0_ |= 0x00002000; onChanged(); return getPrivateClusterConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder() { if (privateClusterConfigBuilder_ != null) { return privateClusterConfigBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.getDefaultInstance() : privateClusterConfig_; + return privateClusterConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .getDefaultInstance() + : privateClusterConfig_; } } /** + * + * *
      * Optional. Configuration for private workstation cluster.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder> getPrivateClusterConfigFieldBuilder() { if (privateClusterConfigBuilder_ == null) { - privateClusterConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), - getParentForChildren(), - isClean()); + privateClusterConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig, + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + .Builder, + com.google.cloud.workstations.v1beta.WorkstationCluster + .PrivateClusterConfigOrBuilder>( + getPrivateClusterConfig(), getParentForChildren(), isClean()); privateClusterConfig_ = null; } return privateClusterConfigBuilder_; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -4671,6 +5299,7 @@ public com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterCon
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -4678,6 +5307,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -4686,6 +5317,7 @@ public boolean getDegraded() {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ @@ -4697,6 +5329,8 @@ public Builder setDegraded(boolean value) { return this; } /** + * + * *
      * Output only. Whether this workstation cluster is in degraded mode, in which
      * case it may require user action to restore full functionality. Details can
@@ -4705,6 +5339,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -4714,25 +5349,30 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00008000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00008000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -4742,12 +5382,16 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -4757,12 +5401,16 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -4772,15 +5420,18 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4794,15 +5445,18 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -4813,12 +5467,16 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -4834,15 +5492,18 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4856,15 +5517,18 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -4875,15 +5539,18 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -4894,19 +5561,21 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -4914,12 +5583,16 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -4932,12 +5605,16 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -4950,42 +5627,52 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -4993,59 +5680,69 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the workstation cluster's current
      * state.
      * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00008000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } + @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); } @@ -5055,12 +5752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationCluster) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationCluster) private static final com.google.cloud.workstations.v1beta.WorkstationCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationCluster(); } @@ -5069,27 +5766,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationCluster getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5104,6 +5801,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java similarity index 74% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java index 7c01a7d12a94..c7e7c23f0aec 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationClusterOrBuilder.java @@ -1,140 +1,185 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationClusterOrBuilder extends +public interface WorkstationClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this workstation cluster.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Human-readable name for this workstation cluster.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * cluster.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this workstation cluster is currently being
    * updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAnnotationsCount(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -146,6 +191,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -155,15 +202,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -173,9 +218,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -186,11 +232,13 @@ boolean containsLabels(
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -200,91 +248,125 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this workstation cluster was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this workstation cluster was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -292,10 +374,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -303,34 +388,41 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine network in which instances associated
    * with this workstation cluster will be created.
    * 
* * string network = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -338,10 +430,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The subnetwork. */ java.lang.String getSubnetwork(); /** + * + * *
    * Immutable. Name of the Compute Engine subnetwork in which instances
    * associated with this workstation cluster will be created. Must be part of
@@ -349,12 +444,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string subnetwork = 11 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for subnetwork. */ - com.google.protobuf.ByteString - getSubnetworkBytes(); + com.google.protobuf.ByteString getSubnetworkBytes(); /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -363,10 +460,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The controlPlaneIp. */ java.lang.String getControlPlaneIp(); /** + * + * *
    * Output only. The private IP address of the control plane for this
    * workstation cluster. Workstation VMs need access to this IP address to work
@@ -375,39 +475,57 @@ java.lang.String getLabelsOrThrow(
    * 
* * string control_plane_ip = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for controlPlaneIp. */ - com.google.protobuf.ByteString - getControlPlaneIpBytes(); + com.google.protobuf.ByteString getControlPlaneIpBytes(); /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The privateClusterConfig. */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig getPrivateClusterConfig(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig + getPrivateClusterConfig(); /** + * + * *
    * Optional. Configuration for private workstation cluster.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfig private_cluster_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationCluster.PrivateClusterConfigOrBuilder + getPrivateClusterConfigOrBuilder(); /** + * + * *
    * Output only. Whether this workstation cluster is in degraded mode, in which
    * case it may require user action to restore full functionality. Details can
@@ -416,56 +534,69 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool degraded = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the workstation cluster's current
    * state.
    * 
* - * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); } diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java similarity index 67% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java index 02c8ba71c5ff..80c7afb97143 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; /** + * + * *
  * A workstation configuration resource in the Cloud Workstations API.
  *
@@ -18,15 +35,16 @@
  *
  * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
  */
-public final class WorkstationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class WorkstationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig)
     WorkstationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use WorkstationConfig.newBuilder() to construct.
   private WorkstationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private WorkstationConfig() {
     name_ = "";
     displayName_ = "";
@@ -35,122 +53,140 @@ private WorkstationConfig() {
     persistentDirectories_ = java.util.Collections.emptyList();
     ephemeralDirectories_ = java.util.Collections.emptyList();
     readinessChecks_ = java.util.Collections.emptyList();
-    replicaZones_ =
-        com.google.protobuf.LazyStringArrayList.emptyList();
+    replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
     conditions_ = 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 WorkstationConfig();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 5:
         return internalGetAnnotations();
       case 18:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+    return com.google.cloud.workstations.v1beta.WorkstationsProto
+        .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+            com.google.cloud.workstations.v1beta.WorkstationConfig.class,
+            com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
   }
 
-  public interface HostOrBuilder extends
+  public interface HostOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ boolean hasGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance(); /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder(); com.google.cloud.workstations.v1beta.WorkstationConfig.Host.ConfigCase getConfigCase(); } /** + * + * *
    * Runtime host for a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - public static final class Host extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Host extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host) HostOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Host.newBuilder() to construct. private Host(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Host() { - } + + private Host() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Host(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } - public interface GceInstanceOrBuilder extends + public interface GceInstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -160,10 +196,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -173,12 +212,14 @@ public interface GceInstanceOrBuilder extends
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -200,10 +241,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -225,12 +269,14 @@ public interface GceInstanceOrBuilder extends
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -239,12 +285,15 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - java.util.List - getServiceAccountScopesList(); + java.util.List getServiceAccountScopesList(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -253,11 +302,15 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ int getServiceAccountScopesCount(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -266,12 +319,16 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ java.lang.String getServiceAccountScopes(int index); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -280,14 +337,17 @@ public interface GceInstanceOrBuilder extends
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index); + com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -299,11 +359,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -315,10 +377,13 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -330,11 +395,14 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -346,13 +414,15 @@ public interface GceInstanceOrBuilder extends
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -360,22 +430,28 @@ public interface GceInstanceOrBuilder extends
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The poolSize. */ int getPoolSize(); /** + * + * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pooledInstances. */ int getPooledInstances(); /** + * + * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -386,12 +462,16 @@ public interface GceInstanceOrBuilder extends
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disablePublicIpAddresses. */ boolean getDisablePublicIpAddresses(); /** + * + * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -429,252 +509,343 @@ public interface GceInstanceOrBuilder extends
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableNestedVirtualization. */ boolean getEnableNestedVirtualization(); /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ boolean hasConfidentialInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig(); /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder(); /** + * + * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ int getBootDiskSizeGb(); /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> getAcceleratorsList(); /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getAccelerators(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + getAccelerators(int index); /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAcceleratorsCount(); /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder> getAcceleratorsOrBuilderList(); /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder getAcceleratorsOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder + getAcceleratorsOrBuilder(int index); } /** + * + * *
      * A runtime using a Compute Engine instance.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - public static final class GceInstance extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceInstance extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) GceInstanceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceInstance.newBuilder() to construct. private GceInstance(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceInstance() { machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); accelerators_ = 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 GceInstance(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + .class); } - public interface GceShieldedInstanceConfigOrBuilder extends + public interface GceShieldedInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** + * + * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ boolean getEnableVtpm(); /** + * + * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** + * + * *
        * A set of Compute Engine Shielded instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - public static final class GceShieldedInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceShieldedInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) GceShieldedInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceShieldedInstanceConfig.newBuilder() to construct. - private GceShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceShieldedInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceShieldedInstanceConfig() { - } + + private GceShieldedInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceShieldedInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1; private boolean enableSecureBoot_ = false; /** + * + * *
          * Optional. Whether the instance has Secure Boot enabled.
          * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -685,11 +856,14 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_ = false; /** + * + * *
          * Optional. Whether the instance has the vTPM enabled.
          * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ @java.lang.Override @@ -700,11 +874,15 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_ = false; /** + * + * *
          * Optional. Whether the instance has integrity monitoring enabled.
          * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -713,6 +891,7 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -725,7 +904,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 (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -745,16 +924,15 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableIntegrityMonitoring_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -764,19 +942,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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() - != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() - != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -789,103 +972,131 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableIntegrityMonitoring()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + 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 @@ -895,39 +1106,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Shielded instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -939,19 +1157,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -959,14 +1184,25 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.G } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableSecureBoot_ = enableSecureBoot_; @@ -983,46 +1219,60 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) return this; if (other.getEnableSecureBoot() != false) { setEnableSecureBoot(other.getEnableSecureBoot()); } @@ -1058,27 +1308,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableSecureBoot_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - enableVtpm_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - enableIntegrityMonitoring_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableSecureBoot_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableVtpm_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + enableIntegrityMonitoring_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1088,15 +1342,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableSecureBoot_ ; + private boolean enableSecureBoot_; /** + * + * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -1104,11 +1362,14 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ @@ -1120,11 +1381,14 @@ public Builder setEnableSecureBoot(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has Secure Boot enabled.
            * 
* * bool enable_secure_boot = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { @@ -1134,13 +1398,16 @@ public Builder clearEnableSecureBoot() { return this; } - private boolean enableVtpm_ ; + private boolean enableVtpm_; /** + * + * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableVtpm. */ @java.lang.Override @@ -1148,11 +1415,14 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** + * + * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableVtpm to set. * @return This builder for chaining. */ @@ -1164,11 +1434,14 @@ public Builder setEnableVtpm(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has the vTPM enabled.
            * 
* * bool enable_vtpm = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableVtpm() { @@ -1178,13 +1451,17 @@ public Builder clearEnableVtpm() { return this; } - private boolean enableIntegrityMonitoring_ ; + private boolean enableIntegrityMonitoring_; /** + * + * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -1192,11 +1469,15 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** + * + * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ @@ -1208,11 +1489,15 @@ public Builder setEnableIntegrityMonitoring(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has integrity monitoring enabled.
            * 
* - * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_integrity_monitoring = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { @@ -1221,6 +1506,7 @@ public Builder clearEnableIntegrityMonitoring() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1233,41 +1519,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1279,73 +1572,91 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface GceConfidentialInstanceConfigOrBuilder extends + public interface GceConfidentialInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableConfidentialCompute. */ boolean getEnableConfidentialCompute(); } /** + * + * *
        * A set of Compute Engine Confidential VM instance options.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - public static final class GceConfidentialInstanceConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceConfidentialInstanceConfig + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) GceConfidentialInstanceConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceConfidentialInstanceConfig.newBuilder() to construct. - private GceConfidentialInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GceConfidentialInstanceConfig( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GceConfidentialInstanceConfig() { - } + + private GceConfidentialInstanceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceConfidentialInstanceConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; /** + * + * *
          * Optional. Whether the instance has confidential compute enabled.
          * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1354,6 +1665,7 @@ public boolean getEnableConfidentialCompute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1366,7 +1678,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 (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } @@ -1380,8 +1692,9 @@ public int getSerializedSize() { size = 0; if (enableConfidentialCompute_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableConfidentialCompute_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, enableConfidentialCompute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1391,15 +1704,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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + obj; - if (getEnableConfidentialCompute() - != other.getEnableConfidentialCompute()) return false; + if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1412,97 +1732,127 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableConfidentialCompute()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + 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 @@ -1512,39 +1862,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * A set of Compute Engine Confidential VM instance options.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1554,19 +1911,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1574,14 +1938,25 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.G } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; @@ -1592,46 +1967,60 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) return this; if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } @@ -1661,17 +2050,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableConfidentialCompute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableConfidentialCompute_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1681,15 +2072,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableConfidentialCompute_ ; + private boolean enableConfidentialCompute_; /** + * + * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableConfidentialCompute. */ @java.lang.Override @@ -1697,11 +2093,15 @@ public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } /** + * + * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ @@ -1713,11 +2113,15 @@ public Builder setEnableConfidentialCompute(boolean value) { return this; } /** + * + * *
            * Optional. Whether the instance has confidential compute enabled.
            * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableConfidentialCompute() { @@ -1726,6 +2130,7 @@ public Builder clearEnableConfidentialCompute() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1738,41 +2143,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceConfidentialInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceConfidentialInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1784,17 +2196,21 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AcceleratorOrBuilder extends + public interface AcceleratorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) com.google.protobuf.MessageOrBuilder { /** + * + * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -1802,10 +2218,13 @@ public interface AcceleratorOrBuilder extends
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The type. */ java.lang.String getType(); /** + * + * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -1813,65 +2232,78 @@ public interface AcceleratorOrBuilder extends
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); /** + * + * *
          * Optional. Number of accelerator cards exposed to the instance.
          * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count. */ int getCount(); } /** + * + * *
        * An accelerator card attached to the instance.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} */ - public static final class Accelerator extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Accelerator extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) AcceleratorOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Accelerator.newBuilder() to construct. private Accelerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Accelerator() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Accelerator(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object type_ = ""; /** + * + * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -1879,6 +2311,7 @@ protected java.lang.Object newInstance(
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The type. */ @java.lang.Override @@ -1887,14 +2320,15 @@ public java.lang.String getType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; } } /** + * + * *
          * Optional. Type of accelerator resource to attach to the instance, for
          * example,
@@ -1902,16 +2336,15 @@ public java.lang.String getType() {
          * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for type. */ @java.lang.Override - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -1922,11 +2355,14 @@ public java.lang.String getType() { public static final int COUNT_FIELD_NUMBER = 2; private int count_ = 0; /** + * + * *
          * Optional. Number of accelerator cards exposed to the instance.
          * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count. */ @java.lang.Override @@ -1935,6 +2371,7 @@ public int getCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1947,7 +2384,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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -1967,8 +2404,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (count_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, count_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, count_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1978,17 +2414,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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator) + obj; - if (!getType() - .equals(other.getType())) return false; - if (getCount() - != other.getCount()) return false; + if (!getType().equals(other.getType())) return false; + if (getCount() != other.getCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2009,90 +2450,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + 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 @@ -2102,39 +2571,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
          * An accelerator card attached to the instance.
          * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2145,19 +2621,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2165,14 +2645,22 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.A } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.type_ = type_; @@ -2186,46 +2674,59 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; bitField0_ |= 0x00000001; @@ -2260,22 +2761,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - count_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + count_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2285,10 +2789,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object type_ = ""; /** + * + * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2296,13 +2803,13 @@ public Builder mergeFrom(
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); type_ = s; return s; @@ -2311,6 +2818,8 @@ public java.lang.String getType() { } } /** + * + * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2318,15 +2827,14 @@ public java.lang.String getType() {
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for type. */ - public com.google.protobuf.ByteString - getTypeBytes() { + public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); type_ = b; return b; } else { @@ -2334,6 +2842,8 @@ public java.lang.String getType() { } } /** + * + * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2341,18 +2851,22 @@ public java.lang.String getType() {
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } type_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2360,6 +2874,7 @@ public Builder setType(
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearType() { @@ -2369,6 +2884,8 @@ public Builder clearType() { return this; } /** + * + * *
            * Optional. Type of accelerator resource to attach to the instance, for
            * example,
@@ -2376,12 +2893,14 @@ public Builder clearType() {
            * 
* * string type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); type_ = value; bitField0_ |= 0x00000001; @@ -2389,13 +2908,16 @@ public Builder setTypeBytes( return this; } - private int count_ ; + private int count_; /** + * + * *
            * Optional. Number of accelerator cards exposed to the instance.
            * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count. */ @java.lang.Override @@ -2403,11 +2925,14 @@ public int getCount() { return count_; } /** + * + * *
            * Optional. Number of accelerator cards exposed to the instance.
            * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The count to set. * @return This builder for chaining. */ @@ -2419,11 +2944,14 @@ public Builder setCount(int value) { return this; } /** + * + * *
            * Optional. Number of accelerator cards exposed to the instance.
            * 
* * int32 count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCount() { @@ -2432,6 +2960,7 @@ public Builder clearCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2444,41 +2973,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Accelerator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Accelerator parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2490,16 +3026,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int MACHINE_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object machineType_ = ""; /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -2509,6 +3048,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.A
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ @java.lang.Override @@ -2517,14 +3057,15 @@ public java.lang.String getMachineType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; } } /** + * + * *
        * Optional. The type of machine to use for VM instances—for example,
        * `"e2-standard-4"`. For more information about machine types that
@@ -2534,16 +3075,15 @@ public java.lang.String getMachineType() {
        * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -2552,9 +3092,12 @@ public java.lang.String getMachineType() { } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAccount_ = ""; /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -2576,6 +3119,7 @@ public java.lang.String getMachineType() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ @java.lang.Override @@ -2584,14 +3128,15 @@ public java.lang.String getServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; } } /** + * + * *
        * Optional. The email address of the service account for Cloud
        * Workstations VMs created with this configuration. When specified, be
@@ -2613,16 +3158,15 @@ public java.lang.String getServiceAccount() {
        * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -2631,10 +3175,13 @@ public java.lang.String getServiceAccount() { } public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -2643,14 +3190,17 @@ public java.lang.String getServiceAccount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { return serviceAccountScopes_; } /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -2659,13 +3209,17 @@ public java.lang.String getServiceAccount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -2674,7 +3228,9 @@ public int getServiceAccountScopesCount() {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -2682,6 +3238,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
        * Optional. Scopes to grant to the
        * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -2690,20 +3248,24 @@ public java.lang.String getServiceAccountScopes(int index) {
        * `iam.serviceAccounts.actAs` on the service account.
        * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } public static final int TAGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2715,13 +3277,15 @@ public java.lang.String getServiceAccountScopes(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2733,12 +3297,15 @@ public java.lang.String getServiceAccountScopes(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2750,6 +3317,7 @@ public int getTagsCount() {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -2757,6 +3325,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
        * Optional. Network tags to add to the Compute Engine VMs backing the
        * workstations. This option applies
@@ -2768,17 +3338,19 @@ public java.lang.String getTags(int index) {
        * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int POOL_SIZE_FIELD_NUMBER = 5; private int poolSize_ = 0; /** + * + * *
        * Optional. The number of VMs that the system should keep idle so that
        * new workstations can be started quickly for new users. Defaults to `0`
@@ -2786,6 +3358,7 @@ public java.lang.String getTags(int index) {
        * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The poolSize. */ @java.lang.Override @@ -2796,12 +3369,15 @@ public int getPoolSize() { public static final int POOLED_INSTANCES_FIELD_NUMBER = 12; private int pooledInstances_ = 0; /** + * + * *
        * Output only. Number of instances currently available in the pool for
        * faster workstation startup.
        * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pooledInstances. */ @java.lang.Override @@ -2812,6 +3388,8 @@ public int getPooledInstances() { public static final int DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER = 6; private boolean disablePublicIpAddresses_ = false; /** + * + * *
        * Optional. When set to true, disables public IP addresses for VMs. If
        * you disable public IP addresses, you must set up Private Google Access
@@ -2822,7 +3400,9 @@ public int getPooledInstances() {
        * Defaults to false (VMs have public IP addresses).
        * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -2833,6 +3413,8 @@ public boolean getDisablePublicIpAddresses() { public static final int ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER = 7; private boolean enableNestedVirtualization_ = false; /** + * + * *
        * Optional. Whether to enable nested virtualization on Cloud Workstations
        * VMs created under this workstation configuration.
@@ -2870,7 +3452,9 @@ public boolean getDisablePublicIpAddresses() {
        * image.
        * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableNestedVirtualization. */ @java.lang.Override @@ -2879,13 +3463,20 @@ public boolean getEnableNestedVirtualization() { } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 8; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -2893,37 +3484,63 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
        * Optional. A set of Compute Engine Shielded instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } public static final int CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ @java.lang.Override @@ -2931,38 +3548,60 @@ public boolean hasConfidentialInstanceConfig() { return confidentialInstanceConfig_ != null; } /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } /** + * + * *
        * Optional. A set of Compute Engine Confidential VM instance options.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 9; private int bootDiskSizeGb_ = 0; /** + * + * *
        * Optional. The size of the boot disk for the VM in gigabytes (GB).
        * The minimum boot disk size is `30` GB. Defaults to `50` GB.
        * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -2971,72 +3610,103 @@ public int getBootDiskSizeGb() { } public static final int ACCELERATORS_FIELD_NUMBER = 11; + @SuppressWarnings("serial") - private java.util.List accelerators_; + private java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> + accelerators_; /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getAcceleratorsList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> + getAcceleratorsList() { return accelerators_; } /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder> getAcceleratorsOrBuilderList() { return accelerators_; } /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getAcceleratorsCount() { return accelerators_.size(); } /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getAccelerators(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + getAccelerators(int index) { return accelerators_.get(index); } /** + * + * *
        * Optional. A list of the type and count of accelerator cards attached to
        * the instance.
        * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder getAcceleratorsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder + getAcceleratorsOrBuilder(int index) { return accelerators_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3048,8 +3718,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(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, machineType_); } @@ -3057,7 +3726,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountScopes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 3, serviceAccountScopes_.getRaw(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tags_.getRaw(i)); @@ -3118,36 +3788,35 @@ public int getSerializedSize() { size += 1 * getTagsList().size(); } if (poolSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, poolSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, poolSize_); } if (disablePublicIpAddresses_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, disablePublicIpAddresses_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(6, disablePublicIpAddresses_); } if (enableNestedVirtualization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, enableNestedVirtualization_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableNestedVirtualization_); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getShieldedInstanceConfig()); } if (bootDiskSizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, bootDiskSizeGb_); } if (confidentialInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getConfidentialInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getConfidentialInstanceConfig()); } for (int i = 0; i < accelerators_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, accelerators_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(11, accelerators_.get(i)); } if (pooledInstances_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(12, pooledInstances_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, pooledInstances_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3157,43 +3826,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.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; - - if (!getMachineType() - .equals(other.getMachineType())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList() - .equals(other.getServiceAccountScopesList())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (getPoolSize() - != other.getPoolSize()) return false; - if (getPooledInstances() - != other.getPooledInstances()) return false; - if (getDisablePublicIpAddresses() - != other.getDisablePublicIpAddresses()) return false; - if (getEnableNestedVirtualization() - != other.getEnableNestedVirtualization()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) obj; + + if (!getMachineType().equals(other.getMachineType())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) + return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (getPoolSize() != other.getPoolSize()) return false; + if (getPooledInstances() != other.getPooledInstances()) return false; + if (getDisablePublicIpAddresses() != other.getDisablePublicIpAddresses()) return false; + if (getEnableNestedVirtualization() != other.getEnableNestedVirtualization()) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (hasConfidentialInstanceConfig() != other.hasConfidentialInstanceConfig()) return false; if (hasConfidentialInstanceConfig()) { - if (!getConfidentialInstanceConfig() - .equals(other.getConfidentialInstanceConfig())) return false; + if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) + return false; } - if (getBootDiskSizeGb() - != other.getBootDiskSizeGb()) return false; - if (!getAcceleratorsList() - .equals(other.getAcceleratorsList())) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; + if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3222,11 +3883,11 @@ public int hashCode() { hash = (37 * hash) + POOLED_INSTANCES_FIELD_NUMBER; hash = (53 * hash) + getPooledInstances(); hash = (37 * hash) + DISABLE_PUBLIC_IP_ADDRESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisablePublicIpAddresses()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePublicIpAddresses()); hash = (37 * hash) + ENABLE_NESTED_VIRTUALIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableNestedVirtualization()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNestedVirtualization()); if (hasShieldedInstanceConfig()) { hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); @@ -3246,90 +3907,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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.workstations.v1beta.WorkstationConfig.Host.GceInstance + 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.workstations.v1beta.WorkstationConfig.Host.GceInstance prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance 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 @@ -3339,49 +4013,51 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A runtime using a Compute Engine instance.
        * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance} */ - 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.workstations.v1beta.WorkstationConfig.Host.GceInstance) com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; machineType_ = ""; serviceAccount_ = ""; - serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); poolSize_ = 0; pooledInstances_ = 0; disablePublicIpAddresses_ = false; @@ -3408,19 +4084,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3428,15 +4107,20 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance b } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartialRepeatedFields( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { if (acceleratorsBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0)) { accelerators_ = java.util.Collections.unmodifiableList(accelerators_); @@ -3448,7 +4132,8 @@ private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.Wor } } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.machineType_ = machineType_; @@ -3477,14 +4162,16 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi result.enableNestedVirtualization_ = enableNestedVirtualization_; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_ == null - ? shieldedInstanceConfig_ - : shieldedInstanceConfigBuilder_.build(); + result.shieldedInstanceConfig_ = + shieldedInstanceConfigBuilder_ == null + ? shieldedInstanceConfig_ + : shieldedInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { - result.confidentialInstanceConfig_ = confidentialInstanceConfigBuilder_ == null - ? confidentialInstanceConfig_ - : confidentialInstanceConfigBuilder_.build(); + result.confidentialInstanceConfig_ = + confidentialInstanceConfigBuilder_ == null + ? confidentialInstanceConfig_ + : confidentialInstanceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.bootDiskSizeGb_ = bootDiskSizeGb_; @@ -3495,46 +4182,54 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.Host.GceInstance) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance)other); + if (other + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) return this; if (!other.getMachineType().isEmpty()) { machineType_ = other.machineType_; bitField0_ |= 0x00000001; @@ -3604,9 +4299,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig. acceleratorsBuilder_ = null; accelerators_ = other.accelerators_; bitField0_ = (bitField0_ & ~0x00000800); - acceleratorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAcceleratorsFieldBuilder() : null; + acceleratorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAcceleratorsFieldBuilder() + : null; } else { acceleratorsBuilder_.addAllMessages(other.accelerators_); } @@ -3638,86 +4334,101 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - machineType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(s); - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 40: { - poolSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - disablePublicIpAddresses_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 56: { - enableNestedVirtualization_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 72: { - bootDiskSizeGb_ = input.readInt32(); - bitField0_ |= 0x00000400; - break; - } // case 72 - case 82: { - input.readMessage( - getConfidentialInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator m = - input.readMessage( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.parser(), - extensionRegistry); - if (acceleratorsBuilder_ == null) { - ensureAcceleratorsIsMutable(); - accelerators_.add(m); - } else { - acceleratorsBuilder_.addMessage(m); - } - break; - } // case 90 - case 96: { - pooledInstances_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 96 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + machineType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountScopesIsMutable(); + serviceAccountScopes_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 40: + { + poolSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + disablePublicIpAddresses_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 56: + { + enableNestedVirtualization_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 56 + case 66: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 72: + { + bootDiskSizeGb_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 72 + case 82: + { + input.readMessage( + getConfidentialInstanceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator + m = + input.readMessage( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host + .GceInstance.Accelerator.parser(), + extensionRegistry); + if (acceleratorsBuilder_ == null) { + ensureAcceleratorsIsMutable(); + accelerators_.add(m); + } else { + acceleratorsBuilder_.addMessage(m); + } + break; + } // case 90 + case 96: + { + pooledInstances_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3727,10 +4438,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object machineType_ = ""; /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3740,13 +4454,13 @@ public Builder mergeFrom(
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); machineType_ = s; return s; @@ -3755,6 +4469,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3764,15 +4480,14 @@ public java.lang.String getMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); machineType_ = b; return b; } else { @@ -3780,6 +4495,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3789,18 +4506,22 @@ public java.lang.String getMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMachineType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } machineType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3810,6 +4531,7 @@ public Builder setMachineType(
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMachineType() { @@ -3819,6 +4541,8 @@ public Builder clearMachineType() { return this; } /** + * + * *
          * Optional. The type of machine to use for VM instances—for example,
          * `"e2-standard-4"`. For more information about machine types that
@@ -3828,12 +4552,14 @@ public Builder clearMachineType() {
          * 
* * string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); machineType_ = value; bitField0_ |= 0x00000001; @@ -3843,6 +4569,8 @@ public Builder setMachineTypeBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3864,13 +4592,13 @@ public Builder setMachineTypeBytes(
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccount_ = s; return s; @@ -3879,6 +4607,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3900,15 +4630,14 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccount_ = b; return b; } else { @@ -3916,6 +4645,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3937,18 +4668,22 @@ public java.lang.String getServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -3970,6 +4705,7 @@ public Builder setServiceAccount(
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -3979,6 +4715,8 @@ public Builder clearServiceAccount() { return this; } /** + * + * *
          * Optional. The email address of the service account for Cloud
          * Workstations VMs created with this configuration. When specified, be
@@ -4000,12 +4738,14 @@ public Builder clearServiceAccount() {
          * 
* * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccount_ = value; bitField0_ |= 0x00000002; @@ -4015,13 +4755,17 @@ public Builder setServiceAccountBytes( private com.google.protobuf.LazyStringArrayList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureServiceAccountScopesIsMutable() { if (!serviceAccountScopes_.isModifiable()) { - serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); + serviceAccountScopes_ = + new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); } bitField0_ |= 0x00000004; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4030,15 +4774,19 @@ private void ensureServiceAccountScopesIsMutable() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { serviceAccountScopes_.makeImmutable(); return serviceAccountScopes_; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4047,13 +4795,18 @@ private void ensureServiceAccountScopesIsMutable() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4062,7 +4815,10 @@ public int getServiceAccountScopesCount() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -4070,6 +4826,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4078,15 +4836,19 @@ public java.lang.String getServiceAccountScopes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4095,14 +4857,18 @@ public java.lang.String getServiceAccountScopes(int index) {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The serviceAccountScopes to set. * @return This builder for chaining. */ - public Builder setServiceAccountScopes( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); bitField0_ |= 0x00000004; @@ -4110,6 +4876,8 @@ public Builder setServiceAccountScopes( return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4118,13 +4886,17 @@ public Builder setServiceAccountScopes(
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopes( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceAccountScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); bitField0_ |= 0x00000004; @@ -4132,6 +4904,8 @@ public Builder addServiceAccountScopes( return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4140,20 +4914,23 @@ public Builder addServiceAccountScopes(
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountScopes( - java.lang.Iterable values) { + public Builder addAllServiceAccountScopes(java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceAccountScopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4162,17 +4939,22 @@ public Builder addAllServiceAccountScopes(
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearServiceAccountScopes() { - serviceAccountScopes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
          * Optional. Scopes to grant to the
          * [service_account][google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.service_account].
@@ -4181,13 +4963,17 @@ public Builder clearServiceAccountScopes() {
          * `iam.serviceAccounts.actAs` on the service account.
          * 
* - * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string service_account_scopes = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); @@ -4198,6 +4984,7 @@ public Builder addServiceAccountScopesBytes( private com.google.protobuf.LazyStringArrayList tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureTagsIsMutable() { if (!tags_.isModifiable()) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); @@ -4205,6 +4992,8 @@ private void ensureTagsIsMutable() { bitField0_ |= 0x00000008; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4216,14 +5005,16 @@ private void ensureTagsIsMutable() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { tags_.makeImmutable(); return tags_; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4235,12 +5026,15 @@ private void ensureTagsIsMutable() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4252,6 +5046,7 @@ public int getTagsCount() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -4259,6 +5054,8 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4270,14 +5067,16 @@ public java.lang.String getTags(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4289,13 +5088,15 @@ public java.lang.String getTags(int index) {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.set(index, value); bitField0_ |= 0x00000008; @@ -4303,6 +5104,8 @@ public Builder setTags( return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4314,12 +5117,14 @@ public Builder setTags(
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureTagsIsMutable(); tags_.add(value); bitField0_ |= 0x00000008; @@ -4327,6 +5132,8 @@ public Builder addTags( return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4338,19 +5145,20 @@ public Builder addTags(
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4362,16 +5170,19 @@ public Builder addAllTags(
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTags() { - tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; onChanged(); return this; } /** + * + * *
          * Optional. Network tags to add to the Compute Engine VMs backing the
          * workstations. This option applies
@@ -4383,12 +5194,14 @@ public Builder clearTags() {
          * 
* * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); @@ -4397,8 +5210,10 @@ public Builder addTagsBytes( return this; } - private int poolSize_ ; + private int poolSize_; /** + * + * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -4406,6 +5221,7 @@ public Builder addTagsBytes(
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The poolSize. */ @java.lang.Override @@ -4413,6 +5229,8 @@ public int getPoolSize() { return poolSize_; } /** + * + * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -4420,6 +5238,7 @@ public int getPoolSize() {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The poolSize to set. * @return This builder for chaining. */ @@ -4431,6 +5250,8 @@ public Builder setPoolSize(int value) { return this; } /** + * + * *
          * Optional. The number of VMs that the system should keep idle so that
          * new workstations can be started quickly for new users. Defaults to `0`
@@ -4438,6 +5259,7 @@ public Builder setPoolSize(int value) {
          * 
* * int32 pool_size = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPoolSize() { @@ -4447,14 +5269,17 @@ public Builder clearPoolSize() { return this; } - private int pooledInstances_ ; + private int pooledInstances_; /** + * + * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The pooledInstances. */ @java.lang.Override @@ -4462,12 +5287,15 @@ public int getPooledInstances() { return pooledInstances_; } /** + * + * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The pooledInstances to set. * @return This builder for chaining. */ @@ -4479,12 +5307,15 @@ public Builder setPooledInstances(int value) { return this; } /** + * + * *
          * Output only. Number of instances currently available in the pool for
          * faster workstation startup.
          * 
* * int32 pooled_instances = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPooledInstances() { @@ -4494,8 +5325,10 @@ public Builder clearPooledInstances() { return this; } - private boolean disablePublicIpAddresses_ ; + private boolean disablePublicIpAddresses_; /** + * + * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -4506,7 +5339,9 @@ public Builder clearPooledInstances() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The disablePublicIpAddresses. */ @java.lang.Override @@ -4514,6 +5349,8 @@ public boolean getDisablePublicIpAddresses() { return disablePublicIpAddresses_; } /** + * + * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -4524,7 +5361,9 @@ public boolean getDisablePublicIpAddresses() {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The disablePublicIpAddresses to set. * @return This builder for chaining. */ @@ -4536,6 +5375,8 @@ public Builder setDisablePublicIpAddresses(boolean value) { return this; } /** + * + * *
          * Optional. When set to true, disables public IP addresses for VMs. If
          * you disable public IP addresses, you must set up Private Google Access
@@ -4546,7 +5387,9 @@ public Builder setDisablePublicIpAddresses(boolean value) {
          * Defaults to false (VMs have public IP addresses).
          * 
* - * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * bool disable_public_ip_addresses = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearDisablePublicIpAddresses() { @@ -4556,8 +5399,10 @@ public Builder clearDisablePublicIpAddresses() { return this; } - private boolean enableNestedVirtualization_ ; + private boolean enableNestedVirtualization_; /** + * + * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -4595,7 +5440,9 @@ public Builder clearDisablePublicIpAddresses() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enableNestedVirtualization. */ @java.lang.Override @@ -4603,6 +5450,8 @@ public boolean getEnableNestedVirtualization() { return enableNestedVirtualization_; } /** + * + * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -4640,7 +5489,9 @@ public boolean getEnableNestedVirtualization() {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enableNestedVirtualization to set. * @return This builder for chaining. */ @@ -4652,6 +5503,8 @@ public Builder setEnableNestedVirtualization(boolean value) { return this; } /** + * + * *
          * Optional. Whether to enable nested virtualization on Cloud Workstations
          * VMs created under this workstation configuration.
@@ -4689,7 +5542,9 @@ public Builder setEnableNestedVirtualization(boolean value) {
          * image.
          * 
* - * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable_nested_virtualization = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearEnableNestedVirtualization() { @@ -4699,43 +5554,73 @@ public Builder clearEnableNestedVirtualization() { return this; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shieldedInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig getShieldedInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4749,14 +5634,20 @@ public Builder setShieldedInstanceConfig(com.google.cloud.workstations.v1beta.Wo return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setShieldedInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + builderForValue) { if (shieldedInstanceConfigBuilder_ == null) { shieldedInstanceConfig_ = builderForValue.build(); } else { @@ -4767,17 +5658,26 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig + value) { if (shieldedInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - shieldedInstanceConfig_ != null && - shieldedInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && shieldedInstanceConfig_ != null + && shieldedInstanceConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance()) { getShieldedInstanceConfigBuilder().mergeFrom(value); } else { shieldedInstanceConfig_ = value; @@ -4790,11 +5690,15 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.workstations.v1beta. return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearShieldedInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000100); @@ -4807,90 +5711,147 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { bitField0_ |= 0x00000100; onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
          * Optional. A set of Compute Engine Shielded instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig shielded_instance_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidentialInstanceConfig_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + confidentialInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> confidentialInstanceConfigBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> + confidentialInstanceConfigBuilder_; /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the confidentialInstanceConfig field is set. */ public boolean hasConfidentialInstanceConfig() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The confidentialInstanceConfig. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig getConfidentialInstanceConfig() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + getConfidentialInstanceConfig() { if (confidentialInstanceConfigBuilder_ == null) { - return confidentialInstanceConfig_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } else { return confidentialInstanceConfigBuilder_.getMessage(); } } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder setConfidentialInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4904,14 +5865,20 @@ public Builder setConfidentialInstanceConfig(com.google.cloud.workstations.v1bet return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConfidentialInstanceConfig( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + builderForValue) { if (confidentialInstanceConfigBuilder_ == null) { confidentialInstanceConfig_ = builderForValue.build(); } else { @@ -4922,17 +5889,26 @@ public Builder setConfidentialInstanceConfig( return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig value) { + public Builder mergeConfidentialInstanceConfig( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig + value) { if (confidentialInstanceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - confidentialInstanceConfig_ != null && - confidentialInstanceConfig_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && confidentialInstanceConfig_ != null + && confidentialInstanceConfig_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance()) { getConfidentialInstanceConfigBuilder().mergeFrom(value); } else { confidentialInstanceConfig_ = value; @@ -4945,11 +5921,15 @@ public Builder mergeConfidentialInstanceConfig(com.google.cloud.workstations.v1b return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConfidentialInstanceConfig() { bitField0_ = (bitField0_ & ~0x00000200); @@ -4962,61 +5942,91 @@ public Builder clearConfidentialInstanceConfig() { return this; } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder getConfidentialInstanceConfigBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder + getConfidentialInstanceConfigBuilder() { bitField0_ |= 0x00000200; onChanged(); return getConfidentialInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder + getConfidentialInstanceConfigOrBuilder() { if (confidentialInstanceConfigBuilder_ != null) { return confidentialInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return confidentialInstanceConfig_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.getDefaultInstance() : confidentialInstanceConfig_; + return confidentialInstanceConfig_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.getDefaultInstance() + : confidentialInstanceConfig_; } } /** + * + * *
          * Optional. A set of Compute Engine Confidential VM instance options.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig confidential_instance_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder> getConfidentialInstanceConfigFieldBuilder() { if (confidentialInstanceConfigBuilder_ == null) { - confidentialInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfigOrBuilder>( - getConfidentialInstanceConfig(), - getParentForChildren(), - isClean()); + confidentialInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfig.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .GceConfidentialInstanceConfigOrBuilder>( + getConfidentialInstanceConfig(), getParentForChildren(), isClean()); confidentialInstanceConfig_ = null; } return confidentialInstanceConfigBuilder_; } - private int bootDiskSizeGb_ ; + private int bootDiskSizeGb_; /** + * + * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -5024,12 +6034,15 @@ public int getBootDiskSizeGb() { return bootDiskSizeGb_; } /** + * + * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ @@ -5041,12 +6054,15 @@ public Builder setBootDiskSizeGb(int value) { return this; } /** + * + * *
          * Optional. The size of the boot disk for the VM in gigabytes (GB).
          * The minimum boot disk size is `30` GB. Defaults to `50` GB.
          * 
* * int32 boot_disk_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { @@ -5056,27 +6072,43 @@ public Builder clearBootDiskSizeGb() { return this; } - private java.util.List accelerators_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> + accelerators_ = java.util.Collections.emptyList(); + private void ensureAcceleratorsIsMutable() { if (!((bitField0_ & 0x00000800) != 0)) { - accelerators_ = new java.util.ArrayList(accelerators_); + accelerators_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator>(accelerators_); bitField0_ |= 0x00000800; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder> acceleratorsBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder> + acceleratorsBuilder_; /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getAcceleratorsList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator> + getAcceleratorsList() { if (acceleratorsBuilder_ == null) { return java.util.Collections.unmodifiableList(accelerators_); } else { @@ -5084,12 +6116,16 @@ public java.util.List * Optional. A list of the type and count of accelerator cards attached to * the instance. *
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getAcceleratorsCount() { if (acceleratorsBuilder_ == null) { @@ -5099,14 +6135,19 @@ public int getAcceleratorsCount() { } } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator getAccelerators(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + getAccelerators(int index) { if (acceleratorsBuilder_ == null) { return accelerators_.get(index); } else { @@ -5114,15 +6155,21 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.A } } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccelerators( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5136,15 +6183,22 @@ public Builder setAccelerators( return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAccelerators( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder + builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.set(index, builderForValue.build()); @@ -5155,14 +6209,20 @@ public Builder setAccelerators( return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addAccelerators(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator value) { + public Builder addAccelerators( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5176,15 +6236,21 @@ public Builder addAccelerators(com.google.cloud.workstations.v1beta.WorkstationC return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + value) { if (acceleratorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5198,15 +6264,21 @@ public Builder addAccelerators( return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder + builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(builderForValue.build()); @@ -5217,15 +6289,22 @@ public Builder addAccelerators( return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAccelerators( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder + builderForValue) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); accelerators_.add(index, builderForValue.build()); @@ -5236,19 +6315,26 @@ public Builder addAccelerators( return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllAccelerators( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator> + values) { if (acceleratorsBuilder_ == null) { ensureAcceleratorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accelerators_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accelerators_); onChanged(); } else { acceleratorsBuilder_.addAllMessages(values); @@ -5256,12 +6342,16 @@ public Builder addAllAccelerators( return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { @@ -5274,12 +6364,16 @@ public Builder clearAccelerators() { return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeAccelerators(int index) { if (acceleratorsBuilder_ == null) { @@ -5292,42 +6386,60 @@ public Builder removeAccelerators(int index) { return this; } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder getAcceleratorsBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder + getAcceleratorsBuilder(int index) { return getAcceleratorsFieldBuilder().getBuilder(index); } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder getAcceleratorsOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder + getAcceleratorsOrBuilder(int index) { if (acceleratorsBuilder_ == null) { - return accelerators_.get(index); } else { + return accelerators_.get(index); + } else { return acceleratorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAcceleratorsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder> + getAcceleratorsOrBuilderList() { if (acceleratorsBuilder_ != null) { return acceleratorsBuilder_.getMessageOrBuilderList(); } else { @@ -5335,48 +6447,81 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.A } } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder addAcceleratorsBuilder() { - return getAcceleratorsFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder + addAcceleratorsBuilder() { + return getAcceleratorsFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.getDefaultInstance()); } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder addAcceleratorsBuilder( - int index) { - return getAcceleratorsFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder + addAcceleratorsBuilder(int index) { + return getAcceleratorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.getDefaultInstance()); } /** + * + * *
          * Optional. A list of the type and count of accelerator cards attached to
          * the instance.
          * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator accelerators = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getAcceleratorsBuilderList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder> + getAcceleratorsBuilderList() { return getAcceleratorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator + .Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder> getAcceleratorsFieldBuilder() { if (acceleratorsBuilder_ == null) { - acceleratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Accelerator.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.AcceleratorOrBuilder>( + acceleratorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .Accelerator.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .AcceleratorOrBuilder>( accelerators_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), @@ -5385,6 +6530,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.A } return acceleratorsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5397,41 +6543,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceInstance parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceInstance parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5443,21 +6593,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int configCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object config_; + public enum ConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_INSTANCE(1), CONFIG_NOT_SET(0); private final int value; + private ConfigCase(int value) { this.value = value; } @@ -5473,29 +6627,35 @@ public static ConfigCase valueOf(int value) { public static ConfigCase forNumber(int value) { switch (value) { - case 1: return GCE_INSTANCE; - case 0: return CONFIG_NOT_SET; - default: return null; + case 1: + return GCE_INSTANCE; + case 0: + return CONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public static final int GCE_INSTANCE_FIELD_NUMBER = 1; /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -5503,36 +6663,48 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getGceInstance() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } /** + * + * *
      * Specifies a Compute Engine instance as the host.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5544,10 +6716,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 (configCase_ == 1) { - output.writeMessage(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + output.writeMessage( + 1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } getUnknownFields().writeTo(output); } @@ -5559,8 +6731,10 @@ public int getSerializedSize() { size = 0; if (configCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5570,18 +6744,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.workstations.v1beta.WorkstationConfig.Host)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host) obj; if (!getConfigCase().equals(other.getConfigCase())) return false; switch (configCase_) { case 1: - if (!getGceInstance() - .equals(other.getGceInstance())) return false; + if (!getGceInstance().equals(other.getGceInstance())) return false; break; case 0: default: @@ -5611,89 +6785,94 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host 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.workstations.v1beta.WorkstationConfig.Host prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host 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 @@ -5703,39 +6882,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Runtime host for a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Host} */ - 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.workstations.v1beta.WorkstationConfig.Host) com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder.class); } // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Host.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -5749,13 +6930,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host + getDefaultInstanceForType() { return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance(); } @@ -5770,22 +6952,26 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host build() { @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host result) { result.configCase_ = configCase_; result.config_ = this.config_; - if (configCase_ == 1 && - gceInstanceBuilder_ != null) { + if (configCase_ == 1 && gceInstanceBuilder_ != null) { result.config_ = gceInstanceBuilder_.build(); } } @@ -5794,38 +6980,41 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.WorkstationConfig.Host) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host)other); + return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Host) other); } else { super.mergeFrom(other); return this; @@ -5833,15 +7022,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Host other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) return this; + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) + return this; switch (other.getConfigCase()) { - case GCE_INSTANCE: { - mergeGceInstance(other.getGceInstance()); - break; - } - case CONFIG_NOT_SET: { - break; - } + case GCE_INSTANCE: + { + mergeGceInstance(other.getGceInstance()); + break; + } + case CONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -5869,19 +7062,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getGceInstanceFieldBuilder().getBuilder(), - extensionRegistry); - configCase_ = 1; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getGceInstanceFieldBuilder().getBuilder(), extensionRegistry); + configCase_ = 1; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -5891,12 +7084,12 @@ public Builder mergeFrom( } // finally return this; } + private int configCase_ = 0; private java.lang.Object config_; - public ConfigCase - getConfigCase() { - return ConfigCase.forNumber( - configCase_); + + public ConfigCase getConfigCase() { + return ConfigCase.forNumber(configCase_); } public Builder clearConfig() { @@ -5909,13 +7102,21 @@ public Builder clearConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> gceInstanceBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> + gceInstanceBuilder_; /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return Whether the gceInstance field is set. */ @java.lang.Override @@ -5923,35 +7124,49 @@ public boolean hasGceInstance() { return configCase_ == 1; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * * @return The gceInstance. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance getGceInstance() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + getGceInstance() { if (gceInstanceBuilder_ == null) { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) + config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } else { if (configCase_ == 1) { return gceInstanceBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder setGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder setGceInstance( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5965,14 +7180,19 @@ public Builder setGceInstance(com.google.cloud.workstations.v1beta.WorkstationCo return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder setGceInstance( - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + builderForValue) { if (gceInstanceBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -5983,18 +7203,29 @@ public Builder setGceInstance( return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public Builder mergeGceInstance(com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { + public Builder mergeGceInstance( + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance value) { if (gceInstanceBuilder_ == null) { - if (configCase_ == 1 && - config_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance()) { - config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_) - .mergeFrom(value).buildPartial(); + if (configCase_ == 1 + && config_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance()) { + config_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.newBuilder( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) + config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -6010,11 +7241,15 @@ public Builder mergeGceInstance(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ public Builder clearGceInstance() { if (gceInstanceBuilder_ == null) { @@ -6033,49 +7268,72 @@ public Builder clearGceInstance() { return this; } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder getGceInstanceBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder + getGceInstanceBuilder() { return getGceInstanceFieldBuilder().getBuilder(); } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder getGceInstanceOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder + getGceInstanceOrBuilder() { if ((configCase_ == 1) && (gceInstanceBuilder_ != null)) { return gceInstanceBuilder_.getMessageOrBuilder(); } else { if (configCase_ == 1) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) + config_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); } } /** + * + * *
        * Specifies a Compute Engine instance as the host.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance gce_instance = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder> getGceInstanceFieldBuilder() { if (gceInstanceBuilder_ == null) { if (!(configCase_ == 1)) { - config_ = com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.getDefaultInstance(); - } - gceInstanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( + config_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance + .getDefaultInstance(); + } + gceInstanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOrBuilder>( (com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstance) config_, getParentForChildren(), isClean()); @@ -6085,6 +7343,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.GceInstanceOr onChanged(); return gceInstanceBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6097,12 +7356,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Host) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Host + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Host(); } @@ -6111,27 +7371,28 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Host parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Host parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6146,107 +7407,139 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PersistentDirectoryOrBuilder extends + public interface PersistentDirectoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd(); /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder(); /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.DirectoryTypeCase getDirectoryTypeCase(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.DirectoryTypeCase + getDirectoryTypeCase(); } /** + * + * *
    * A directory to persist across workstation sessions.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - public static final class PersistentDirectory extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PersistentDirectory extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) PersistentDirectoryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PersistentDirectory.newBuilder() to construct. private PersistentDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PersistentDirectory() { mountPath_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PersistentDirectory(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + .class); } - public interface GceRegionalPersistentDiskOrBuilder extends + public interface GceRegionalPersistentDiskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -6261,11 +7554,14 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sizeGb. */ int getSizeGb(); /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6275,10 +7571,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The fsType. */ java.lang.String getFsType(); /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6288,12 +7587,14 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for fsType. */ - com.google.protobuf.ByteString - getFsTypeBytes(); + com.google.protobuf.ByteString getFsTypeBytes(); /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6301,10 +7602,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ java.lang.String getDiskType(); /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6312,12 +7616,14 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ - com.google.protobuf.ByteString - getDiskTypeBytes(); + com.google.protobuf.ByteString getDiskTypeBytes(); /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6328,10 +7634,13 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6342,35 +7651,49 @@ public interface GceRegionalPersistentDiskOrBuilder extends
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString - getSourceSnapshotBytes(); + com.google.protobuf.ByteString getSourceSnapshotBytes(); /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ int getReclaimPolicyValue(); /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reclaimPolicy. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine regional persistent
      * disk. The
@@ -6384,17 +7707,20 @@ public interface GceRegionalPersistentDiskOrBuilder extends
      * directory.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - public static final class GceRegionalPersistentDisk extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GceRegionalPersistentDisk + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) GceRegionalPersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GceRegionalPersistentDisk.newBuilder() to construct. private GceRegionalPersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GceRegionalPersistentDisk() { fsType_ = ""; diskType_ = ""; @@ -6404,35 +7730,42 @@ private GceRegionalPersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GceRegionalPersistentDisk(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } /** + * + * *
        * Value representing what should happen to the disk after the workstation
        * is deleted.
        * 
* - * Protobuf enum {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} + * Protobuf enum {@code + * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy} */ - public enum ReclaimPolicy - implements com.google.protobuf.ProtocolMessageEnum { + public enum ReclaimPolicy implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
          * Do not use.
          * 
@@ -6441,6 +7774,8 @@ public enum ReclaimPolicy */ RECLAIM_POLICY_UNSPECIFIED(0), /** + * + * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -6449,6 +7784,8 @@ public enum ReclaimPolicy */ DELETE(1), /** + * + * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -6461,6 +7798,8 @@ public enum ReclaimPolicy
         ;
 
         /**
+         *
+         *
          * 
          * Do not use.
          * 
@@ -6469,6 +7808,8 @@ public enum ReclaimPolicy */ public static final int RECLAIM_POLICY_UNSPECIFIED_VALUE = 0; /** + * + * *
          * Delete the persistent disk when deleting the workstation.
          * 
@@ -6477,6 +7818,8 @@ public enum ReclaimPolicy */ public static final int DELETE_VALUE = 1; /** + * + * *
          * Keep the persistent disk when deleting the workstation.
          * An administrator must manually delete the disk.
@@ -6486,7 +7829,6 @@ public enum ReclaimPolicy
          */
         public static final int RETAIN_VALUE = 2;
 
-
         public final int getNumber() {
           if (this == UNRECOGNIZED) {
             throw new java.lang.IllegalArgumentException(
@@ -6511,10 +7853,14 @@ public static ReclaimPolicy valueOf(int value) {
          */
         public static ReclaimPolicy forNumber(int value) {
           switch (value) {
-            case 0: return RECLAIM_POLICY_UNSPECIFIED;
-            case 1: return DELETE;
-            case 2: return RETAIN;
-            default: return null;
+            case 0:
+              return RECLAIM_POLICY_UNSPECIFIED;
+            case 1:
+              return DELETE;
+            case 2:
+              return RETAIN;
+            default:
+              return null;
           }
         }
 
@@ -6522,29 +7868,32 @@ public static ReclaimPolicy forNumber(int value) {
             internalGetValueMap() {
           return internalValueMap;
         }
-        private static final com.google.protobuf.Internal.EnumLiteMap<
-            ReclaimPolicy> internalValueMap =
-              new com.google.protobuf.Internal.EnumLiteMap() {
-                public ReclaimPolicy findValueByNumber(int number) {
-                  return ReclaimPolicy.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 ReclaimPolicy findValueByNumber(int number) {
+                    return ReclaimPolicy.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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDescriptor().getEnumTypes().get(0);
+
+        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+          return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory
+              .GceRegionalPersistentDisk.getDescriptor()
+              .getEnumTypes()
+              .get(0);
         }
 
         private static final ReclaimPolicy[] VALUES = values();
@@ -6553,7 +7902,7 @@ public static ReclaimPolicy valueOf(
             com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
           if (desc.getType() != getDescriptor()) {
             throw new java.lang.IllegalArgumentException(
-              "EnumValueDescriptor is not for this type.");
+                "EnumValueDescriptor is not for this type.");
           }
           if (desc.getIndex() == -1) {
             return UNRECOGNIZED;
@@ -6573,6 +7922,8 @@ private ReclaimPolicy(int value) {
       public static final int SIZE_GB_FIELD_NUMBER = 1;
       private int sizeGb_ = 0;
       /**
+       *
+       *
        * 
        * Optional. The GB capacity of a persistent home directory for each
        * workstation created with this configuration. Must be empty if
@@ -6587,6 +7938,7 @@ private ReclaimPolicy(int value) {
        * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sizeGb. */ @java.lang.Override @@ -6595,9 +7947,12 @@ public int getSizeGb() { } public static final int FS_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object fsType_ = ""; /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6607,6 +7962,7 @@ public int getSizeGb() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The fsType. */ @java.lang.Override @@ -6615,14 +7971,15 @@ public java.lang.String getFsType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; } } /** + * + * *
        * Optional. Type of file system that the disk should be formatted with.
        * The workstation image must support this file system type. Must be empty
@@ -6632,16 +7989,15 @@ public java.lang.String getFsType() {
        * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for fsType. */ @java.lang.Override - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -6650,9 +8006,12 @@ public java.lang.String getFsType() { } public static final int DISK_TYPE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6660,6 +8019,7 @@ public java.lang.String getFsType() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ @java.lang.Override @@ -6668,14 +8028,15 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** + * + * *
        * Optional. The [type of the persistent
        * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -6683,16 +8044,15 @@ public java.lang.String getDiskType() {
        * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -6701,9 +8061,12 @@ public java.lang.String getDiskType() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6714,6 +8077,7 @@ public java.lang.String getDiskType() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ @java.lang.Override @@ -6722,14 +8086,15 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. If
        * set,
@@ -6740,16 +8105,15 @@ public java.lang.String getSourceSnapshot() {
        * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -6760,34 +8124,56 @@ public java.lang.String getSourceSnapshot() { public static final int RECLAIM_POLICY_FIELD_NUMBER = 4; private int reclaimPolicy_ = 0; /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
        * Optional. Whether the persistent disk should be deleted when the
        * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
        * Defaults to `DELETE`.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reclaimPolicy. */ - @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6799,8 +8185,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 (sizeGb_ != 0) { output.writeInt32(1, sizeGb_); } @@ -6810,7 +8195,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { + if (reclaimPolicy_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { output.writeEnum(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { @@ -6826,8 +8214,7 @@ public int getSerializedSize() { size = 0; if (sizeGb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, sizeGb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fsType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); @@ -6835,9 +8222,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, diskType_); } - if (reclaimPolicy_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, reclaimPolicy_); + if (reclaimPolicy_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.RECLAIM_POLICY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reclaimPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, sourceSnapshot_); @@ -6850,21 +8239,25 @@ 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) obj; - - if (getSizeGb() - != other.getSizeGb()) return false; - if (!getFsType() - .equals(other.getFsType())) return false; - if (!getDiskType() - .equals(other.getDiskType())) return false; - if (!getSourceSnapshot() - .equals(other.getSourceSnapshot())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + obj; + + if (getSizeGb() != other.getSizeGb()) return false; + if (!getFsType().equals(other.getFsType())) return false; + if (!getDiskType().equals(other.getDiskType())) return false; + if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; if (reclaimPolicy_ != other.reclaimPolicy_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6892,90 +8285,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + 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 @@ -6985,6 +8405,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine regional persistent
        * disk. The
@@ -6998,35 +8420,40 @@ protected Builder newBuilderForType(
        * directory.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk} */ - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -7040,19 +8467,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -7060,14 +8494,25 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.sizeGb_ = sizeGb_; @@ -7090,46 +8535,60 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) return this; if (other.getSizeGb() != 0) { setSizeGb(other.getSizeGb()); } @@ -7177,37 +8636,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - sizeGb_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - fsType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - reclaimPolicy_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + sizeGb_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + fsType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + reclaimPolicy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7217,10 +8682,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int sizeGb_ ; + private int sizeGb_; /** + * + * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -7235,6 +8703,7 @@ public Builder mergeFrom(
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sizeGb. */ @java.lang.Override @@ -7242,6 +8711,8 @@ public int getSizeGb() { return sizeGb_; } /** + * + * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -7256,6 +8727,7 @@ public int getSizeGb() {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sizeGb to set. * @return This builder for chaining. */ @@ -7267,6 +8739,8 @@ public Builder setSizeGb(int value) { return this; } /** + * + * *
          * Optional. The GB capacity of a persistent home directory for each
          * workstation created with this configuration. Must be empty if
@@ -7281,6 +8755,7 @@ public Builder setSizeGb(int value) {
          * 
* * int32 size_gb = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSizeGb() { @@ -7292,6 +8767,8 @@ public Builder clearSizeGb() { private java.lang.Object fsType_ = ""; /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7301,13 +8778,13 @@ public Builder clearSizeGb() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The fsType. */ public java.lang.String getFsType() { java.lang.Object ref = fsType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fsType_ = s; return s; @@ -7316,6 +8793,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7325,15 +8804,14 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for fsType. */ - public com.google.protobuf.ByteString - getFsTypeBytes() { + public com.google.protobuf.ByteString getFsTypeBytes() { java.lang.Object ref = fsType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fsType_ = b; return b; } else { @@ -7341,6 +8819,8 @@ public java.lang.String getFsType() { } } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7350,18 +8830,22 @@ public java.lang.String getFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The fsType to set. * @return This builder for chaining. */ - public Builder setFsType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fsType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7371,6 +8855,7 @@ public Builder setFsType(
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFsType() { @@ -7380,6 +8865,8 @@ public Builder clearFsType() { return this; } /** + * + * *
          * Optional. Type of file system that the disk should be formatted with.
          * The workstation image must support this file system type. Must be empty
@@ -7389,12 +8876,14 @@ public Builder clearFsType() {
          * 
* * string fs_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for fsType to set. * @return This builder for chaining. */ - public Builder setFsTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFsTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fsType_ = value; bitField0_ |= 0x00000002; @@ -7404,6 +8893,8 @@ public Builder setFsTypeBytes( private java.lang.Object diskType_ = ""; /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7411,13 +8902,13 @@ public Builder setFsTypeBytes(
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -7426,6 +8917,8 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7433,15 +8926,14 @@ public java.lang.String getDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -7449,6 +8941,8 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7456,18 +8950,22 @@ public java.lang.String getDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } diskType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7475,6 +8973,7 @@ public Builder setDiskType(
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -7484,6 +8983,8 @@ public Builder clearDiskType() { return this; } /** + * + * *
          * Optional. The [type of the persistent
          * disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
@@ -7491,12 +8992,14 @@ public Builder clearDiskType() {
          * 
* * string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000004; @@ -7506,6 +9009,8 @@ public Builder setDiskTypeBytes( private java.lang.Object sourceSnapshot_ = ""; /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7516,13 +9021,13 @@ public Builder setDiskTypeBytes(
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -7531,6 +9036,8 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7541,15 +9048,14 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -7557,6 +9063,8 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7567,18 +9075,22 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceSnapshot_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7589,6 +9101,7 @@ public Builder setSourceSnapshot(
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -7598,6 +9111,8 @@ public Builder clearSourceSnapshot() { return this; } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. If
          * set,
@@ -7608,12 +9123,14 @@ public Builder clearSourceSnapshot() {
          * 
* * string source_snapshot = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000008; @@ -7623,26 +9140,37 @@ public Builder setSourceSnapshotBytes( private int reclaimPolicy_ = 0; /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for reclaimPolicy. */ - @java.lang.Override public int getReclaimPolicyValue() { + @java.lang.Override + public int getReclaimPolicyValue() { return reclaimPolicy_; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for reclaimPolicy to set. * @return This builder for chaining. */ @@ -7653,32 +9181,54 @@ public Builder setReclaimPolicyValue(int value) { return this; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reclaimPolicy. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy getReclaimPolicy() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy result = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); - return result == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED : result; + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + getReclaimPolicy() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + result = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.forNumber(reclaimPolicy_); + return result == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy.UNRECOGNIZED + : result; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The reclaimPolicy to set. * @return This builder for chaining. */ - public Builder setReclaimPolicy(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy value) { + public Builder setReclaimPolicy( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.ReclaimPolicy + value) { if (value == null) { throw new NullPointerException(); } @@ -7688,13 +9238,18 @@ public Builder setReclaimPolicy(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
          * Optional. Whether the persistent disk should be deleted when the
          * workstation is deleted. Valid values are `DELETE` and `RETAIN`.
          * Defaults to `DELETE`.
          * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.ReclaimPolicy reclaim_policy = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearReclaimPolicy() { @@ -7703,6 +9258,7 @@ public Builder clearReclaimPolicy() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7715,41 +9271,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig + .PersistentDirectory.GceRegionalPersistentDisk + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GceRegionalPersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GceRegionalPersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7761,21 +9324,26 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int directoryTypeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object directoryType_; + public enum DirectoryTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(2), DIRECTORYTYPE_NOT_SET(0); private final int value; + private DirectoryTypeCase(int value) { this.value = value; } @@ -7791,29 +9359,36 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 2: return GCE_PD; - case 0: return DIRECTORYTYPE_NOT_SET; - default: return null; + case 2: + return GCE_PD; + case 0: + return DIRECTORYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public static final int GCE_PD_FIELD_NUMBER = 2; /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -7821,44 +9396,67 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } /** + * + * *
      * A PersistentDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mountPath. */ @java.lang.Override @@ -7867,29 +9465,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
      * Optional. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -7898,6 +9496,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7909,13 +9508,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + output.writeMessage( + 2, + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } getUnknownFields().writeTo(output); } @@ -7930,8 +9532,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7941,20 +9547,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.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) obj; - if (!getMountPath() - .equals(other.getMountPath())) return false; + if (!getMountPath().equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 2: - if (!getGcePd() - .equals(other.getGcePd())) return false; + if (!getGcePd().equals(other.getGcePd())) return false; break; case 0: default: @@ -7985,90 +9591,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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.workstations.v1beta.WorkstationConfig.PersistentDirectory + 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.workstations.v1beta.WorkstationConfig.PersistentDirectory prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory 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 @@ -8078,39 +9695,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A directory to persist across workstation sessions.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory} */ - 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.workstations.v1beta.WorkstationConfig.PersistentDirectory) com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -8125,19 +9746,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -8145,26 +9769,31 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.mountPath_ = mountPath_; } } - private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { + private void buildPartialOneofs( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory result) { result.directoryTypeCase_ = directoryTypeCase_; result.directoryType_ = this.directoryType_; - if (directoryTypeCase_ == 2 && - gcePdBuilder_ != null) { + if (directoryTypeCase_ == 2 && gcePdBuilder_ != null) { result.directoryType_ = gcePdBuilder_.build(); } } @@ -8173,59 +9802,69 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1beta.Workstation 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.workstations.v1beta.WorkstationConfig.PersistentDirectory) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory)other); + if (other + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance()) return this; if (!other.getMountPath().isEmpty()) { mountPath_ = other.mountPath_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDirectoryTypeCase()) { - case GCE_PD: { - mergeGcePd(other.getGcePd()); - break; - } - case DIRECTORYTYPE_NOT_SET: { - break; - } + case GCE_PD: + { + mergeGcePd(other.getGcePd()); + break; + } + case DIRECTORYTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -8253,24 +9892,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - mountPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - input.readMessage( - getGcePdFieldBuilder().getBuilder(), - extensionRegistry); - directoryTypeCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + mountPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry); + directoryTypeCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8280,12 +9920,12 @@ public Builder mergeFrom( } // finally return this; } + private int directoryTypeCase_ = 0; private java.lang.Object directoryType_; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public Builder clearDirectoryType() { @@ -8298,13 +9938,24 @@ public Builder clearDirectoryType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> gcePdBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> + gcePdBuilder_; /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -8312,35 +9963,53 @@ public boolean hasGcePd() { return directoryTypeCase_ == 2; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 2) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** - *
+       *
+       *
+       * 
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder setGcePd( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -8354,14 +10023,20 @@ public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.P return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -8372,18 +10047,33 @@ public Builder setGcePd( return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk value) { + public Builder mergeGcePd( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk + value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 2 && - directoryType_ != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance()) { - directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_) - .mergeFrom(value).buildPartial(); + if (directoryTypeCase_ == 2 + && directoryType_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance()) { + directoryType_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.newBuilder( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_) + .mergeFrom(value) + .buildPartial(); } else { directoryType_ = value; } @@ -8399,11 +10089,15 @@ public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -8422,50 +10116,84 @@ public Builder clearGcePd() { return this; } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder getGcePdBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder + getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder + getGcePdOrBuilder() { if ((directoryTypeCase_ == 2) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 2) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); } } /** + * + * *
        * A PersistentDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk gce_pd = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 2)) { - directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.getDefaultInstance(); - } - gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk) directoryType_, + directoryType_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .GceRegionalPersistentDisk) + directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -8477,18 +10205,20 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector private java.lang.Object mountPath_ = ""; /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -8497,20 +10227,21 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -8518,28 +10249,35 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -8549,23 +10287,28 @@ public Builder clearMountPath() { return this; } /** + * + * *
        * Optional. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8578,41 +10321,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersistentDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersistentDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8624,66 +10371,92 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface EphemeralDirectoryOrBuilder extends + public interface EphemeralDirectoryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * * @return Whether the gcePd field is set. */ boolean hasGcePd(); /** + * + * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * * @return The gcePd. */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getGcePd(); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk + getGcePd(); /** + * + * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder getGcePdOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDiskOrBuilder + getGcePdOrBuilder(); /** + * + * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ java.lang.String getMountPath(); /** + * + * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mountPath. */ - com.google.protobuf.ByteString - getMountPathBytes(); + com.google.protobuf.ByteString getMountPathBytes(); - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.DirectoryTypeCase getDirectoryTypeCase(); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.DirectoryTypeCase + getDirectoryTypeCase(); } /** + * + * *
    * An ephemeral directory which won't persist across workstation sessions. It
    * is freshly created on every workstation start operation.
@@ -8691,64 +10464,75 @@ public interface EphemeralDirectoryOrBuilder extends
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory}
    */
-  public static final class EphemeralDirectory extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class EphemeralDirectory extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory)
       EphemeralDirectoryOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use EphemeralDirectory.newBuilder() to construct.
     private EphemeralDirectory(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private EphemeralDirectory() {
       mountPath_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new EphemeralDirectory();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class,
+              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder
+                  .class);
     }
 
-    public interface GcePersistentDiskOrBuilder extends
+    public interface GcePersistentDiskOrBuilder
+        extends
         // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk)
         com.google.protobuf.MessageOrBuilder {
 
       /**
+       *
+       *
        * 
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ java.lang.String getDiskType(); /** + * + * *
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ - com.google.protobuf.ByteString - getDiskTypeBytes(); + com.google.protobuf.ByteString getDiskTypeBytes(); /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -8760,10 +10544,13 @@ public interface GcePersistentDiskOrBuilder extends
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ java.lang.String getSourceSnapshot(); /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -8775,12 +10562,14 @@ public interface GcePersistentDiskOrBuilder extends
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ - com.google.protobuf.ByteString - getSourceSnapshotBytes(); + com.google.protobuf.ByteString getSourceSnapshotBytes(); /** + * + * *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -8792,10 +10581,13 @@ public interface GcePersistentDiskOrBuilder extends
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceImage. */ java.lang.String getSourceImage(); /** + * + * *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -8807,12 +10599,14 @@ public interface GcePersistentDiskOrBuilder extends
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceImage. */ - com.google.protobuf.ByteString - getSourceImageBytes(); + com.google.protobuf.ByteString getSourceImageBytes(); /** + * + * *
        * Optional. Whether the disk is read only. If true, the disk may be
        * shared by multiple VMs and
@@ -8821,26 +10615,31 @@ public interface GcePersistentDiskOrBuilder extends
        * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The readOnly. */ boolean getReadOnly(); } /** + * + * *
      * An EphemeralDirectory is backed by a Compute Engine persistent disk.
      * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} */ - public static final class GcePersistentDisk extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GcePersistentDisk extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) GcePersistentDiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcePersistentDisk.newBuilder() to construct. private GcePersistentDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcePersistentDisk() { diskType_ = ""; sourceSnapshot_ = ""; @@ -8849,33 +10648,40 @@ private GcePersistentDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcePersistentDisk(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.Builder.class); } public static final int DISK_TYPE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object diskType_ = ""; /** + * + * *
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ @java.lang.Override @@ -8884,29 +10690,29 @@ public java.lang.String getDiskType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; } } /** + * + * *
        * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
        * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -8915,9 +10721,12 @@ public java.lang.String getDiskType() { } public static final int SOURCE_SNAPSHOT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object sourceSnapshot_ = ""; /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -8929,6 +10738,7 @@ public java.lang.String getDiskType() {
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ @java.lang.Override @@ -8937,14 +10747,15 @@ public java.lang.String getSourceSnapshot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; } } /** + * + * *
        * Optional. Name of the snapshot to use as the source for the disk. Must
        * be empty if
@@ -8956,16 +10767,15 @@ public java.lang.String getSourceSnapshot() {
        * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -8974,9 +10784,12 @@ public java.lang.String getSourceSnapshot() { } public static final int SOURCE_IMAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object sourceImage_ = ""; /** + * + * *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -8988,6 +10801,7 @@ public java.lang.String getSourceSnapshot() {
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceImage. */ @java.lang.Override @@ -8996,14 +10810,15 @@ public java.lang.String getSourceImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceImage_ = s; return s; } } /** + * + * *
        * Optional. Name of the disk image to use as the source for the disk.
        * Must be empty if
@@ -9015,16 +10830,15 @@ public java.lang.String getSourceImage() {
        * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceImageBytes() { + public com.google.protobuf.ByteString getSourceImageBytes() { java.lang.Object ref = sourceImage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceImage_ = b; return b; } else { @@ -9035,6 +10849,8 @@ public java.lang.String getSourceImage() { public static final int READ_ONLY_FIELD_NUMBER = 4; private boolean readOnly_ = false; /** + * + * *
        * Optional. Whether the disk is read only. If true, the disk may be
        * shared by multiple VMs and
@@ -9043,6 +10859,7 @@ public java.lang.String getSourceImage() {
        * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The readOnly. */ @java.lang.Override @@ -9051,6 +10868,7 @@ public boolean getReadOnly() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9062,8 +10880,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(diskType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, diskType_); } @@ -9095,8 +10912,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceImage_); } if (readOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, readOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, readOnly_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9106,21 +10922,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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk other = (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk + other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + obj; - if (!getDiskType() - .equals(other.getDiskType())) return false; - if (!getSourceSnapshot() - .equals(other.getSourceSnapshot())) return false; - if (!getSourceImage() - .equals(other.getSourceImage())) return false; - if (getReadOnly() - != other.getReadOnly()) return false; + if (!getDiskType().equals(other.getDiskType())) return false; + if (!getSourceSnapshot().equals(other.getSourceSnapshot())) return false; + if (!getSourceImage().equals(other.getSourceImage())) return false; + if (getReadOnly() != other.getReadOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9139,97 +10958,123 @@ public int hashCode() { hash = (37 * hash) + SOURCE_IMAGE_FIELD_NUMBER; hash = (53 * hash) + getSourceImage().hashCode(); hash = (37 * hash) + READ_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReadOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + 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 @@ -9239,39 +11084,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * An EphemeralDirectory is backed by a Compute Engine persistent disk.
        * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk} */ - 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -9284,19 +11136,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk result = buildPartial(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + build() { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -9304,14 +11163,25 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk result = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.diskType_ = diskType_; @@ -9331,46 +11201,60 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance()) return this; if (!other.getDiskType().isEmpty()) { diskType_ = other.diskType_; bitField0_ |= 0x00000001; @@ -9415,32 +11299,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - diskType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceSnapshot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - sourceImage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - readOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + diskType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceSnapshot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sourceImage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + readOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9450,22 +11339,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object diskType_ = ""; /** + * + * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); diskType_ = s; return s; @@ -9474,20 +11366,21 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskType. */ - public com.google.protobuf.ByteString - getDiskTypeBytes() { + public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); diskType_ = b; return b; } else { @@ -9495,28 +11388,35 @@ public java.lang.String getDiskType() { } } /** + * + * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } diskType_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDiskType() { @@ -9526,17 +11426,21 @@ public Builder clearDiskType() { return this; } /** + * + * *
          * Optional. Type of the disk to use. Defaults to `"pd-standard"`.
          * 
* * string disk_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for diskType to set. * @return This builder for chaining. */ - public Builder setDiskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); diskType_ = value; bitField0_ |= 0x00000001; @@ -9546,6 +11450,8 @@ public Builder setDiskTypeBytes( private java.lang.Object sourceSnapshot_ = ""; /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -9557,13 +11463,13 @@ public Builder setDiskTypeBytes(
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceSnapshot. */ public java.lang.String getSourceSnapshot() { java.lang.Object ref = sourceSnapshot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceSnapshot_ = s; return s; @@ -9572,6 +11478,8 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -9583,15 +11491,14 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceSnapshot. */ - public com.google.protobuf.ByteString - getSourceSnapshotBytes() { + public com.google.protobuf.ByteString getSourceSnapshotBytes() { java.lang.Object ref = sourceSnapshot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceSnapshot_ = b; return b; } else { @@ -9599,6 +11506,8 @@ public java.lang.String getSourceSnapshot() { } } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -9610,18 +11519,22 @@ public java.lang.String getSourceSnapshot() {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceSnapshot_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -9633,6 +11546,7 @@ public Builder setSourceSnapshot(
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceSnapshot() { @@ -9642,6 +11556,8 @@ public Builder clearSourceSnapshot() { return this; } /** + * + * *
          * Optional. Name of the snapshot to use as the source for the disk. Must
          * be empty if
@@ -9653,12 +11569,14 @@ public Builder clearSourceSnapshot() {
          * 
* * string source_snapshot = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceSnapshot to set. * @return This builder for chaining. */ - public Builder setSourceSnapshotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceSnapshotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceSnapshot_ = value; bitField0_ |= 0x00000002; @@ -9668,6 +11586,8 @@ public Builder setSourceSnapshotBytes( private java.lang.Object sourceImage_ = ""; /** + * + * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -9679,13 +11599,13 @@ public Builder setSourceSnapshotBytes(
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The sourceImage. */ public java.lang.String getSourceImage() { java.lang.Object ref = sourceImage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceImage_ = s; return s; @@ -9694,6 +11614,8 @@ public java.lang.String getSourceImage() { } } /** + * + * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -9705,15 +11627,14 @@ public java.lang.String getSourceImage() {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for sourceImage. */ - public com.google.protobuf.ByteString - getSourceImageBytes() { + public com.google.protobuf.ByteString getSourceImageBytes() { java.lang.Object ref = sourceImage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceImage_ = b; return b; } else { @@ -9721,6 +11642,8 @@ public java.lang.String getSourceImage() { } } /** + * + * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -9732,18 +11655,22 @@ public java.lang.String getSourceImage() {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The sourceImage to set. * @return This builder for chaining. */ - public Builder setSourceImage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceImage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -9755,6 +11682,7 @@ public Builder setSourceImage(
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSourceImage() { @@ -9764,6 +11692,8 @@ public Builder clearSourceImage() { return this; } /** + * + * *
          * Optional. Name of the disk image to use as the source for the disk.
          * Must be empty if
@@ -9775,12 +11705,14 @@ public Builder clearSourceImage() {
          * 
* * string source_image = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for sourceImage to set. * @return This builder for chaining. */ - public Builder setSourceImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceImage_ = value; bitField0_ |= 0x00000004; @@ -9788,8 +11720,10 @@ public Builder setSourceImageBytes( return this; } - private boolean readOnly_ ; + private boolean readOnly_; /** + * + * *
          * Optional. Whether the disk is read only. If true, the disk may be
          * shared by multiple VMs and
@@ -9798,6 +11732,7 @@ public Builder setSourceImageBytes(
          * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The readOnly. */ @java.lang.Override @@ -9805,6 +11740,8 @@ public boolean getReadOnly() { return readOnly_; } /** + * + * *
          * Optional. Whether the disk is read only. If true, the disk may be
          * shared by multiple VMs and
@@ -9813,6 +11750,7 @@ public boolean getReadOnly() {
          * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The readOnly to set. * @return This builder for chaining. */ @@ -9824,6 +11762,8 @@ public Builder setReadOnly(boolean value) { return this; } /** + * + * *
          * Optional. Whether the disk is read only. If true, the disk may be
          * shared by multiple VMs and
@@ -9832,6 +11772,7 @@ public Builder setReadOnly(boolean value) {
          * 
* * bool read_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReadOnly() { @@ -9840,6 +11781,7 @@ public Builder clearReadOnly() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9852,41 +11794,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcePersistentDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcePersistentDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9898,21 +11847,26 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int directoryTypeCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object directoryType_; + public enum DirectoryTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCE_PD(3), DIRECTORYTYPE_NOT_SET(0); private final int value; + private DirectoryTypeCase(int value) { this.value = value; } @@ -9928,29 +11882,36 @@ public static DirectoryTypeCase valueOf(int value) { public static DirectoryTypeCase forNumber(int value) { switch (value) { - case 3: return GCE_PD; - case 0: return DIRECTORYTYPE_NOT_SET; - default: return null; + case 3: + return GCE_PD; + case 0: + return DIRECTORYTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DirectoryTypeCase - getDirectoryTypeCase() { - return DirectoryTypeCase.forNumber( - directoryTypeCase_); + public DirectoryTypeCase getDirectoryTypeCase() { + return DirectoryTypeCase.forNumber(directoryTypeCase_); } public static final int GCE_PD_FIELD_NUMBER = 3; /** + * + * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -9958,44 +11919,67 @@ public boolean hasGcePd() { return directoryTypeCase_ == 3; } /** + * + * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + getGcePd() { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance(); } /** + * + * *
      * An EphemeralDirectory backed by a Compute Engine persistent disk.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDiskOrBuilder + getGcePdOrBuilder() { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance(); } public static final int MOUNT_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object mountPath_ = ""; /** + * + * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ @java.lang.Override @@ -10004,29 +11988,29 @@ public java.lang.String getMountPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; } } /** + * + * *
      * Required. Location of this directory in the running workstation.
      * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mountPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -10035,6 +12019,7 @@ public java.lang.String getMountPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10046,13 +12031,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mountPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mountPath_); } if (directoryTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_); + output.writeMessage( + 3, + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_); } getUnknownFields().writeTo(output); } @@ -10067,8 +12055,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mountPath_); } if (directoryTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10078,20 +12070,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.workstations.v1beta.WorkstationConfig.EphemeralDirectory)) { + if (!(obj + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other = (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) obj; - if (!getMountPath() - .equals(other.getMountPath())) return false; + if (!getMountPath().equals(other.getMountPath())) return false; if (!getDirectoryTypeCase().equals(other.getDirectoryTypeCase())) return false; switch (directoryTypeCase_) { case 3: - if (!getGcePd() - .equals(other.getGcePd())) return false; + if (!getGcePd().equals(other.getGcePd())) return false; break; case 0: default: @@ -10122,90 +12114,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory + 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.workstations.v1beta.WorkstationConfig.EphemeralDirectory prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory 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 @@ -10215,6 +12218,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An ephemeral directory which won't persist across workstation sessions. It
      * is freshly created on every workstation start operation.
@@ -10222,33 +12227,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory}
      */
-    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.workstations.v1beta.WorkstationConfig.EphemeralDirectory)
         com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.workstations.v1beta.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
+        return com.google.cloud.workstations.v1beta.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder.class);
+                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.class,
+                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -10263,19 +12270,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.workstations.v1beta.WorkstationsProto
+            .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getDefaultInstanceForType() {
-        return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance();
+      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+          getDefaultInstanceForType() {
+        return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory build() {
-        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result = buildPartial();
+        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -10283,26 +12293,31 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
       }
 
       @java.lang.Override
-      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory buildPartial() {
-        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+          buildPartial() {
+        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result =
+            new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
+      private void buildPartial0(
+          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.mountPath_ = mountPath_;
         }
       }
 
-      private void buildPartialOneofs(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
+      private void buildPartialOneofs(
+          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory result) {
         result.directoryTypeCase_ = directoryTypeCase_;
         result.directoryType_ = this.directoryType_;
-        if (directoryTypeCase_ == 3 &&
-            gcePdBuilder_ != null) {
+        if (directoryTypeCase_ == 3 && gcePdBuilder_ != null) {
           result.directoryType_ = gcePdBuilder_.build();
         }
       }
@@ -10311,59 +12326,69 @@ private void buildPartialOneofs(com.google.cloud.workstations.v1beta.Workstation
       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.workstations.v1beta.WorkstationConfig.EphemeralDirectory) {
-          return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory)other);
+        if (other
+            instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) {
+          return mergeFrom(
+              (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other) {
-        if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory other) {
+        if (other
+            == com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+                .getDefaultInstance()) return this;
         if (!other.getMountPath().isEmpty()) {
           mountPath_ = other.mountPath_;
           bitField0_ |= 0x00000002;
           onChanged();
         }
         switch (other.getDirectoryTypeCase()) {
-          case GCE_PD: {
-            mergeGcePd(other.getGcePd());
-            break;
-          }
-          case DIRECTORYTYPE_NOT_SET: {
-            break;
-          }
+          case GCE_PD:
+            {
+              mergeGcePd(other.getGcePd());
+              break;
+            }
+          case DIRECTORYTYPE_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -10391,24 +12416,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                mountPath_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 10
-              case 26: {
-                input.readMessage(
-                    getGcePdFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                directoryTypeCase_ = 3;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  mountPath_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 10
+              case 26:
+                {
+                  input.readMessage(getGcePdFieldBuilder().getBuilder(), extensionRegistry);
+                  directoryTypeCase_ = 3;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -10418,12 +12444,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int directoryTypeCase_ = 0;
       private java.lang.Object directoryType_;
-      public DirectoryTypeCase
-          getDirectoryTypeCase() {
-        return DirectoryTypeCase.forNumber(
-            directoryTypeCase_);
+
+      public DirectoryTypeCase getDirectoryTypeCase() {
+        return DirectoryTypeCase.forNumber(directoryTypeCase_);
       }
 
       public Builder clearDirectoryType() {
@@ -10436,13 +12462,24 @@ public Builder clearDirectoryType() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder> gcePdBuilder_;
+              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+                  .GcePersistentDisk,
+              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+                  .GcePersistentDisk.Builder,
+              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+                  .GcePersistentDiskOrBuilder>
+          gcePdBuilder_;
       /**
+       *
+       *
        * 
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * * @return Whether the gcePd field is set. */ @java.lang.Override @@ -10450,35 +12487,53 @@ public boolean hasGcePd() { return directoryTypeCase_ == 3; } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * * @return The gcePd. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk getGcePd() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + getGcePd() { if (gcePdBuilder_ == null) { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance(); } else { if (directoryTypeCase_ == 3) { return gcePdBuilder_.getMessage(); } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance(); } } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ - public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk value) { + public Builder setGcePd( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + value) { if (gcePdBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10492,14 +12547,20 @@ public Builder setGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.E return this; } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ public Builder setGcePd( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.Builder + builderForValue) { if (gcePdBuilder_ == null) { directoryType_ = builderForValue.build(); onChanged(); @@ -10510,18 +12571,33 @@ public Builder setGcePd( return this; } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ - public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk value) { + public Builder mergeGcePd( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk + value) { if (gcePdBuilder_ == null) { - if (directoryTypeCase_ == 3 && - directoryType_ != com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance()) { - directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.newBuilder((com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_) - .mergeFrom(value).buildPartial(); + if (directoryTypeCase_ == 3 + && directoryType_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance()) { + directoryType_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.newBuilder( + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_) + .mergeFrom(value) + .buildPartial(); } else { directoryType_ = value; } @@ -10537,11 +12613,15 @@ public Builder mergeGcePd(com.google.cloud.workstations.v1beta.WorkstationConfig return this; } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ public Builder clearGcePd() { if (gcePdBuilder_ == null) { @@ -10560,50 +12640,84 @@ public Builder clearGcePd() { return this; } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder getGcePdBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.Builder + getGcePdBuilder() { return getGcePdFieldBuilder().getBuilder(); } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder getGcePdOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDiskOrBuilder + getGcePdOrBuilder() { if ((directoryTypeCase_ == 3) && (gcePdBuilder_ != null)) { return gcePdBuilder_.getMessageOrBuilder(); } else { if (directoryTypeCase_ == 3) { - return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_; + return (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_; } - return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); + return com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance(); } } /** + * + * *
        * An EphemeralDirectory backed by a Compute Engine persistent disk.
        * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk gce_pd = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDiskOrBuilder> getGcePdFieldBuilder() { if (gcePdBuilder_ == null) { if (!(directoryTypeCase_ == 3)) { - directoryType_ = com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.getDefaultInstance(); - } - gcePdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDiskOrBuilder>( - (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.GcePersistentDisk) directoryType_, + directoryType_ = + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.getDefaultInstance(); + } + gcePdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDiskOrBuilder>( + (com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .GcePersistentDisk) + directoryType_, getParentForChildren(), isClean()); directoryType_ = null; @@ -10615,18 +12729,20 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory private java.lang.Object mountPath_ = ""; /** + * + * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The mountPath. */ public java.lang.String getMountPath() { java.lang.Object ref = mountPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); mountPath_ = s; return s; @@ -10635,20 +12751,21 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for mountPath. */ - public com.google.protobuf.ByteString - getMountPathBytes() { + public com.google.protobuf.ByteString getMountPathBytes() { java.lang.Object ref = mountPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); mountPath_ = b; return b; } else { @@ -10656,28 +12773,35 @@ public java.lang.String getMountPath() { } } /** + * + * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The mountPath to set. * @return This builder for chaining. */ - public Builder setMountPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMountPath() { @@ -10687,23 +12811,28 @@ public Builder clearMountPath() { return this; } /** + * + * *
        * Required. Location of this directory in the running workstation.
        * 
* * string mount_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for mountPath to set. * @return This builder for chaining. */ - public Builder setMountPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMountPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); mountPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10716,41 +12845,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EphemeralDirectory parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EphemeralDirectory parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10762,17 +12895,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ContainerOrBuilder extends + public interface ContainerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.Container) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -10789,10 +12925,13 @@ public interface ContainerOrBuilder extends
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The image. */ java.lang.String getImage(); /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -10809,98 +12948,120 @@ public interface ContainerOrBuilder extends
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for image. */ - com.google.protobuf.ByteString - getImageBytes(); + com.google.protobuf.ByteString getImageBytes(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the command. */ - java.util.List - getCommandList(); + java.util.List getCommandList(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of command. */ int getCommandCount(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The command at the given index. */ java.lang.String getCommand(int index); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - com.google.protobuf.ByteString - getCommandBytes(int index); + com.google.protobuf.ByteString getCommandBytes(int index); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - java.util.List - getArgsList(); + java.util.List getArgsList(); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ int getArgsCount(); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ java.lang.String getArgs(int index); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - com.google.protobuf.ByteString - getArgsBytes(int index); + com.google.protobuf.ByteString getArgsBytes(int index); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -10909,30 +13070,31 @@ public interface ContainerOrBuilder extends */ int getEnvCount(); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsEnv( - java.lang.String key); - /** - * Use {@link #getEnvMap()} instead. - */ + boolean containsEnv(java.lang.String key); + /** Use {@link #getEnvMap()} instead. */ @java.lang.Deprecated - java.util.Map - getEnv(); + java.util.Map getEnv(); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getEnvMap(); + java.util.Map getEnvMap(); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -10940,112 +13102,125 @@ boolean containsEnv( * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ -java.lang.String getEnvOrDefault( + java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getEnvOrThrow( - java.lang.String key); + java.lang.String getEnvOrThrow(java.lang.String key); /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The workingDir. */ java.lang.String getWorkingDir(); /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for workingDir. */ - com.google.protobuf.ByteString - getWorkingDirBytes(); + com.google.protobuf.ByteString getWorkingDirBytes(); /** + * + * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The runAsUser. */ int getRunAsUser(); } /** + * + * *
    * A Docker container.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - public static final class Container extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Container extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.Container) ContainerOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Container.newBuilder() to construct. private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Container() { image_ = ""; - command_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = com.google.protobuf.LazyStringArrayList.emptyList(); workingDir_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Container(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } public static final int IMAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object image_ = ""; /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -11062,6 +13237,7 @@ protected com.google.protobuf.MapField internalGetMapField(
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The image. */ @java.lang.Override @@ -11070,14 +13246,15 @@ public java.lang.String getImage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; } } /** + * + * *
      * Optional. A Docker container image that defines a custom environment.
      *
@@ -11094,16 +13271,15 @@ public java.lang.String getImage() {
      * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for image. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -11112,41 +13288,50 @@ public java.lang.String getImage() { } public static final int COMMAND_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { return command_; } /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -11154,53 +13339,64 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
      * Optional. If set, overrides the default ENTRYPOINT specified by the
      * image.
      * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { return args_; } /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -11208,46 +13404,50 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
      * Optional. Arguments passed to the entrypoint.
      * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } public static final int ENV_FIELD_NUMBER = 4; + private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -11255,20 +13455,21 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -11280,6 +13481,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -11287,17 +13490,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Environment variables passed to the container's entrypoint.
      * 
@@ -11305,11 +13510,11 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -11317,14 +13522,18 @@ public java.lang.String getEnvOrThrow( } public static final int WORKING_DIR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object workingDir_ = ""; /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The workingDir. */ @java.lang.Override @@ -11333,29 +13542,29 @@ public java.lang.String getWorkingDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; } } /** + * + * *
      * Optional. If set, overrides the default DIR specified by the image.
      * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for workingDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -11366,12 +13575,15 @@ public java.lang.String getWorkingDir() { public static final int RUN_AS_USER_FIELD_NUMBER = 6; private int runAsUser_ = 0; /** + * + * *
      * Optional. If set, overrides the USER specified in the image with the
      * given uid.
      * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The runAsUser. */ @java.lang.Override @@ -11380,6 +13592,7 @@ public int getRunAsUser() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11391,8 +13604,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(image_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); } @@ -11402,12 +13614,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < args_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetEnv(), - EnvDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, workingDir_); } @@ -11442,22 +13650,21 @@ public int getSerializedSize() { size += dataSize; size += 1 * getArgsList().size(); } - for (java.util.Map.Entry entry - : internalGetEnv().getMap().entrySet()) { - com.google.protobuf.MapEntry - env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, env__); + for (java.util.Map.Entry entry : + internalGetEnv().getMap().entrySet()) { + com.google.protobuf.MapEntry env__ = + EnvDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, env__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workingDir_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, workingDir_); } if (runAsUser_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, runAsUser_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, runAsUser_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11467,25 +13674,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.workstations.v1beta.WorkstationConfig.Container)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (!internalGetEnv().equals( - other.internalGetEnv())) return false; - if (!getWorkingDir() - .equals(other.getWorkingDir())) return false; - if (getRunAsUser() - != other.getRunAsUser()) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) obj; + + if (!getImage().equals(other.getImage())) return false; + if (!getCommandList().equals(other.getCommandList())) return false; + if (!getArgsList().equals(other.getArgsList())) return false; + if (!internalGetEnv().equals(other.internalGetEnv())) return false; + if (!getWorkingDir().equals(other.getWorkingDir())) return false; + if (getRunAsUser() != other.getRunAsUser()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11521,89 +13723,95 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container + 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container 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.workstations.v1beta.WorkstationConfig.Container prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container 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 @@ -11613,70 +13821,69 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A Docker container.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.Container} */ - 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.workstations.v1beta.WorkstationConfig.Container) com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableEnv(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder.class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.Container.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.Container.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; image_ = ""; - command_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - args_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + args_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableEnv().clear(); workingDir_ = ""; runAsUser_ = 0; @@ -11684,14 +13891,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.Container + .getDefaultInstance(); } @java.lang.Override @@ -11705,13 +13914,17 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container build() @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.WorkstationConfig.Container result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.image_ = image_; @@ -11740,46 +13953,53 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.Container) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.Container)other); + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.Container) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.Container + .getDefaultInstance()) return this; if (!other.getImage().isEmpty()) { image_ = other.image_; bitField0_ |= 0x00000001; @@ -11805,8 +14025,7 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig. } onChanged(); } - internalGetMutableEnv().mergeFrom( - other.internalGetEnv()); + internalGetMutableEnv().mergeFrom(other.internalGetEnv()); bitField0_ |= 0x00000008; if (!other.getWorkingDir().isEmpty()) { workingDir_ = other.workingDir_; @@ -11842,48 +14061,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - image_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureCommandIsMutable(); - command_.add(s); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureArgsIsMutable(); - args_.add(s); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - env__ = input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put( - env__.getKey(), env__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - workingDir_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - runAsUser_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + image_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCommandIsMutable(); + command_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureArgsIsMutable(); + args_.add(s); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry env__ = + input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + workingDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + runAsUser_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11893,10 +14118,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object image_ = ""; /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -11913,13 +14141,13 @@ public Builder mergeFrom(
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The image. */ public java.lang.String getImage() { java.lang.Object ref = image_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); image_ = s; return s; @@ -11928,6 +14156,8 @@ public java.lang.String getImage() { } } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -11944,15 +14174,14 @@ public java.lang.String getImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for image. */ - public com.google.protobuf.ByteString - getImageBytes() { + public com.google.protobuf.ByteString getImageBytes() { java.lang.Object ref = image_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); image_ = b; return b; } else { @@ -11960,6 +14189,8 @@ public java.lang.String getImage() { } } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -11976,18 +14207,22 @@ public java.lang.String getImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The image to set. * @return This builder for chaining. */ - public Builder setImage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } image_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -12004,6 +14239,7 @@ public Builder setImage(
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearImage() { @@ -12013,6 +14249,8 @@ public Builder clearImage() { return this; } /** + * + * *
        * Optional. A Docker container image that defines a custom environment.
        *
@@ -12029,12 +14267,14 @@ public Builder clearImage() {
        * 
* * string image = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for image to set. * @return This builder for chaining. */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); image_ = value; bitField0_ |= 0x00000001; @@ -12044,6 +14284,7 @@ public Builder setImageBytes( private com.google.protobuf.LazyStringArrayList command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureCommandIsMutable() { if (!command_.isModifiable()) { command_ = new com.google.protobuf.LazyStringArrayList(command_); @@ -12051,38 +14292,46 @@ private void ensureCommandIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the command. */ - public com.google.protobuf.ProtocolStringList - getCommandList() { + public com.google.protobuf.ProtocolStringList getCommandList() { command_.makeImmutable(); return command_; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of command. */ public int getCommandCount() { return command_.size(); } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The command at the given index. */ @@ -12090,33 +14339,39 @@ public java.lang.String getCommand(int index) { return command_.get(index); } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the command at the given index. */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { + public com.google.protobuf.ByteString getCommandBytes(int index) { return command_.getByteString(index); } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The command to set. * @return This builder for chaining. */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCommand(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.set(index, value); bitField0_ |= 0x00000002; @@ -12124,18 +14379,22 @@ public Builder setCommand( return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The command to add. * @return This builder for chaining. */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommand(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureCommandIsMutable(); command_.add(value); bitField0_ |= 0x00000002; @@ -12143,53 +14402,61 @@ public Builder addCommand( return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The command to add. * @return This builder for chaining. */ - public Builder addAllCommand( - java.lang.Iterable values) { + public Builder addAllCommand(java.lang.Iterable values) { ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, command_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCommand() { - command_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + command_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
        * Optional. If set, overrides the default ENTRYPOINT specified by the
        * image.
        * 
* * repeated string command = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the command to add. * @return This builder for chaining. */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addCommandBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureCommandIsMutable(); command_.add(value); @@ -12200,6 +14467,7 @@ public Builder addCommandBytes( private com.google.protobuf.LazyStringArrayList args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureArgsIsMutable() { if (!args_.isModifiable()) { args_ = new com.google.protobuf.LazyStringArrayList(args_); @@ -12207,35 +14475,43 @@ private void ensureArgsIsMutable() { bitField0_ |= 0x00000004; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the args. */ - public com.google.protobuf.ProtocolStringList - getArgsList() { + public com.google.protobuf.ProtocolStringList getArgsList() { args_.makeImmutable(); return args_; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of args. */ public int getArgsCount() { return args_.size(); } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The args at the given index. */ @@ -12243,31 +14519,37 @@ public java.lang.String getArgs(int index) { return args_.get(index); } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the args at the given index. */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { + public com.google.protobuf.ByteString getArgsBytes(int index) { return args_.getByteString(index); } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The args to set. * @return This builder for chaining. */ - public Builder setArgs( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setArgs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.set(index, value); bitField0_ |= 0x00000004; @@ -12275,17 +14557,21 @@ public Builder setArgs( return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The args to add. * @return This builder for chaining. */ - public Builder addArgs( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureArgsIsMutable(); args_.add(value); bitField0_ |= 0x00000004; @@ -12293,50 +14579,58 @@ public Builder addArgs( return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The args to add. * @return This builder for chaining. */ - public Builder addAllArgs( - java.lang.Iterable values) { + public Builder addAllArgs(java.lang.Iterable values) { ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, args_); bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearArgs() { - args_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + args_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } /** + * + * *
        * Optional. Arguments passed to the entrypoint.
        * 
* * repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the args to add. * @return This builder for chaining. */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addArgsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureArgsIsMutable(); args_.add(value); @@ -12345,21 +14639,19 @@ public Builder addArgsBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + private com.google.protobuf.MapField internalGetMutableEnv() { if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField( - EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -12368,10 +14660,13 @@ public Builder addArgsBytes( onChanged(); return env_; } + public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -12379,20 +14674,21 @@ public int getEnvCount() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public boolean containsEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetEnv().getMap().containsKey(key); } - /** - * Use {@link #getEnvMap()} instead. - */ + /** Use {@link #getEnvMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnv() { return getEnvMap(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -12404,6 +14700,8 @@ public java.util.Map getEnvMap() { return internalGetEnv().getMap(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -12411,17 +14709,19 @@ public java.util.Map getEnvMap() { * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public /* nullable */ -java.lang.String getEnvOrDefault( + public /* nullable */ java.lang.String getEnvOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
@@ -12429,91 +14729,95 @@ java.lang.String getEnvOrDefault( * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getEnvOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetEnv().getMap(); + public java.lang.String getEnvOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetEnv().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearEnv() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableEnv().getMutableMap() - .clear(); + internalGetMutableEnv().getMutableMap().clear(); return this; } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeEnv( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableEnv().getMutableMap() - .remove(key); + public Builder removeEnv(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnv().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableEnv() { + public java.util.Map getMutableEnv() { bitField0_ |= 0x00000008; return internalGetMutableEnv().getMutableMap(); } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putEnv( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableEnv().getMutableMap() - .put(key, value); + public Builder putEnv(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableEnv().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
        * Optional. Environment variables passed to the container's entrypoint.
        * 
* * map<string, string> env = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllEnv( - java.util.Map values) { - internalGetMutableEnv().getMutableMap() - .putAll(values); + public Builder putAllEnv(java.util.Map values) { + internalGetMutableEnv().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object workingDir_ = ""; /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The workingDir. */ public java.lang.String getWorkingDir() { java.lang.Object ref = workingDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workingDir_ = s; return s; @@ -12522,20 +14826,21 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for workingDir. */ - public com.google.protobuf.ByteString - getWorkingDirBytes() { + public com.google.protobuf.ByteString getWorkingDirBytes() { java.lang.Object ref = workingDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workingDir_ = b; return b; } else { @@ -12543,28 +14848,35 @@ public java.lang.String getWorkingDir() { } } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDir( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } workingDir_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearWorkingDir() { @@ -12574,17 +14886,21 @@ public Builder clearWorkingDir() { return this; } /** + * + * *
        * Optional. If set, overrides the default DIR specified by the image.
        * 
* * string working_dir = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for workingDir to set. * @return This builder for chaining. */ - public Builder setWorkingDirBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWorkingDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); workingDir_ = value; bitField0_ |= 0x00000010; @@ -12592,14 +14908,17 @@ public Builder setWorkingDirBytes( return this; } - private int runAsUser_ ; + private int runAsUser_; /** + * + * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The runAsUser. */ @java.lang.Override @@ -12607,12 +14926,15 @@ public int getRunAsUser() { return runAsUser_; } /** + * + * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The runAsUser to set. * @return This builder for chaining. */ @@ -12624,12 +14946,15 @@ public Builder setRunAsUser(int value) { return this; } /** + * + * *
        * Optional. If set, overrides the USER specified in the image with the
        * given uid.
        * 
* * int32 run_as_user = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRunAsUser() { @@ -12638,6 +14963,7 @@ public Builder clearRunAsUser() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12650,41 +14976,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.Container) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.Container + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.Container(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.Container + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Container parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12696,17 +15025,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CustomerEncryptionKeyOrBuilder extends + public interface CustomerEncryptionKeyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -12714,10 +15046,13 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -12725,12 +15060,14 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -12742,10 +15079,13 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyServiceAccount. */ java.lang.String getKmsKeyServiceAccount(); /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -12757,12 +15097,14 @@ public interface CustomerEncryptionKeyOrBuilder extends
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyServiceAccount. */ - com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes(); + com.google.protobuf.ByteString getKmsKeyServiceAccountBytes(); } /** + * + * *
    * A customer-managed encryption key (CMEK) for the Compute Engine
    * resources of the associated workstation configuration. Specify the name of
@@ -12774,15 +15116,16 @@ public interface CustomerEncryptionKeyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey}
    */
-  public static final class CustomerEncryptionKey extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class CustomerEncryptionKey extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)
       CustomerEncryptionKeyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use CustomerEncryptionKey.newBuilder() to construct.
     private CustomerEncryptionKey(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private CustomerEncryptionKey() {
       kmsKey_ = "";
       kmsKeyServiceAccount_ = "";
@@ -12790,28 +15133,33 @@ private CustomerEncryptionKey() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new CustomerEncryptionKey();
     }
 
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class,
+              com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder
+                  .class);
     }
 
     public static final int KMS_KEY_FIELD_NUMBER = 1;
+
     @SuppressWarnings("serial")
     private volatile java.lang.Object kmsKey_ = "";
     /**
+     *
+     *
      * 
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -12819,6 +15167,7 @@ protected java.lang.Object newInstance(
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKey. */ @java.lang.Override @@ -12827,14 +15176,15 @@ public java.lang.String getKmsKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; } } /** + * + * *
      * Immutable. The name of the Google Cloud KMS encryption key. For example,
      * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -12842,16 +15192,15 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -12860,9 +15209,12 @@ public java.lang.String getKmsKey() { } public static final int KMS_KEY_SERVICE_ACCOUNT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -12874,6 +15226,7 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyServiceAccount. */ @java.lang.Override @@ -12882,14 +15235,15 @@ public java.lang.String getKmsKeyServiceAccount() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; } } /** + * + * *
      * Immutable. The service account to use with the specified
      * KMS key. We recommend that you use a separate service account
@@ -12901,16 +15255,15 @@ public java.lang.String getKmsKeyServiceAccount() {
      * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyServiceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -12919,6 +15272,7 @@ public java.lang.String getKmsKeyServiceAccount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12930,8 +15284,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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -12961,17 +15314,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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { + if (!(obj + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) obj; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; - if (!getKmsKeyServiceAccount() - .equals(other.getKmsKeyServiceAccount())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKeyServiceAccount().equals(other.getKmsKeyServiceAccount())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12992,90 +15346,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey 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 @@ -13085,6 +15450,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A customer-managed encryption key (CMEK) for the Compute Engine
      * resources of the associated workstation configuration. Specify the name of
@@ -13094,35 +15461,38 @@ protected Builder newBuilderForType(
      * practices](https://cloud.google.com/kms/docs/separation-of-duties).
      * 
* - * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} + * Protobuf type {@code + * google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey} */ - 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -13133,19 +15503,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -13153,14 +15526,19 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + buildPartial() { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.kmsKey_ = kmsKey_; @@ -13174,46 +15552,55 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey)other); + if (other + instanceof + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance()) return this; if (!other.getKmsKey().isEmpty()) { kmsKey_ = other.kmsKey_; bitField0_ |= 0x00000001; @@ -13250,22 +15637,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - kmsKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - kmsKeyServiceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + kmsKeyServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -13275,10 +15665,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object kmsKey_ = ""; /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -13286,13 +15679,13 @@ public Builder mergeFrom(
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKey_ = s; return s; @@ -13301,6 +15694,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -13308,15 +15703,14 @@ public java.lang.String getKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKey_ = b; return b; } else { @@ -13324,6 +15718,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -13331,18 +15727,22 @@ public java.lang.String getKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -13350,6 +15750,7 @@ public Builder setKmsKey(
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearKmsKey() { @@ -13359,6 +15760,8 @@ public Builder clearKmsKey() { return this; } /** + * + * *
        * Immutable. The name of the Google Cloud KMS encryption key. For example,
        * `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
@@ -13366,12 +15769,14 @@ public Builder clearKmsKey() {
        * 
* * string kms_key = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKey_ = value; bitField0_ |= 0x00000001; @@ -13381,6 +15786,8 @@ public Builder setKmsKeyBytes( private java.lang.Object kmsKeyServiceAccount_ = ""; /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -13392,13 +15799,13 @@ public Builder setKmsKeyBytes(
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The kmsKeyServiceAccount. */ public java.lang.String getKmsKeyServiceAccount() { java.lang.Object ref = kmsKeyServiceAccount_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyServiceAccount_ = s; return s; @@ -13407,6 +15814,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -13418,15 +15827,14 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for kmsKeyServiceAccount. */ - public com.google.protobuf.ByteString - getKmsKeyServiceAccountBytes() { + public com.google.protobuf.ByteString getKmsKeyServiceAccountBytes() { java.lang.Object ref = kmsKeyServiceAccount_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyServiceAccount_ = b; return b; } else { @@ -13434,6 +15842,8 @@ public java.lang.String getKmsKeyServiceAccount() { } } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -13445,18 +15855,22 @@ public java.lang.String getKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -13468,6 +15882,7 @@ public Builder setKmsKeyServiceAccount(
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearKmsKeyServiceAccount() { @@ -13477,6 +15892,8 @@ public Builder clearKmsKeyServiceAccount() { return this; } /** + * + * *
        * Immutable. The service account to use with the specified
        * KMS key. We recommend that you use a separate service account
@@ -13488,18 +15905,21 @@ public Builder clearKmsKeyServiceAccount() {
        * 
* * string kms_key_service_account = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for kmsKeyServiceAccount to set. * @return This builder for chaining. */ - public Builder setKmsKeyServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyServiceAccount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13512,41 +15932,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig + .CustomerEncryptionKey + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomerEncryptionKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerEncryptionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13558,95 +15983,112 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ReadinessCheckOrBuilder extends + public interface ReadinessCheckOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The port. */ int getPort(); } /** + * + * *
    * A readiness check to be performed on a workstation.
    * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} */ - public static final class ReadinessCheck extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReadinessCheck extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) ReadinessCheckOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadinessCheck.newBuilder() to construct. private ReadinessCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadinessCheck() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadinessCheck(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ @java.lang.Override @@ -13655,29 +16097,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
      * Optional. Path to which the request should be sent.
      * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -13688,11 +16130,14 @@ public java.lang.String getPath() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** + * + * *
      * Optional. Port to which the request should be sent.
      * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The port. */ @java.lang.Override @@ -13701,6 +16146,7 @@ public int getPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13712,8 +16158,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(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -13733,8 +16178,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13744,17 +16188,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.workstations.v1beta.WorkstationConfig.ReadinessCheck)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other = (com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) obj; + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other = + (com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) obj; - if (!getPath() - .equals(other.getPath())) return false; - if (getPort() - != other.getPort()) return false; + if (!getPath().equals(other.getPath())) return false; + if (getPort() != other.getPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13776,89 +16219,95 @@ public int hashCode() { } public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck + 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.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck 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.workstations.v1beta.WorkstationConfig.ReadinessCheck prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck 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 @@ -13868,39 +16317,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A readiness check to be performed on a workstation.
      * 
* * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck} */ - 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.workstations.v1beta.WorkstationConfig.ReadinessCheck) com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder.class); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.class, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder + .class); } - // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -13911,19 +16364,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { - return com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance(); + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + getDefaultInstanceForType() { + return com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck build() { - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = buildPartial(); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -13932,13 +16388,17 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck bui @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck buildPartial() { - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result = + new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result) { + private void buildPartial0( + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; @@ -13952,46 +16412,54 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi 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.workstations.v1beta.WorkstationConfig.ReadinessCheck) { - return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck)other); + if (other + instanceof com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) { + return mergeFrom( + (com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other) { - if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck other) { + if (other + == com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + .getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -14026,22 +16494,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14051,22 +16522,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object path_ = ""; /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -14075,20 +16549,21 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -14096,28 +16571,35 @@ public java.lang.String getPath() { } } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPath() { @@ -14127,17 +16609,21 @@ public Builder clearPath() { return this; } /** + * + * *
        * Optional. Path to which the request should be sent.
        * 
* * string path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -14145,13 +16631,16 @@ public Builder setPathBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The port. */ @java.lang.Override @@ -14159,11 +16648,14 @@ public int getPort() { return port_; } /** + * + * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The port to set. * @return This builder for chaining. */ @@ -14175,11 +16667,14 @@ public Builder setPort(int value) { return this; } /** + * + * *
        * Optional. Port to which the request should be sent.
        * 
* * int32 port = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -14188,6 +16683,7 @@ public Builder clearPort() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14200,41 +16696,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck) - private static final com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck DEFAULT_INSTANCE; + private static final com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(); + DEFAULT_INSTANCE = + new com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck(); } - public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getDefaultInstance() { + public static com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadinessCheck parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadinessCheck parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14246,21 +16746,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getDefaultInstanceForType() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -14269,29 +16773,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; } } /** + * + * *
    * Full name of this workstation configuration.
    * 
* * 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 { @@ -14300,14 +16804,18 @@ public java.lang.String getName() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ @java.lang.Override @@ -14316,29 +16824,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; } } /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -14347,15 +16855,19 @@ public java.lang.String getDisplayName() { } public static final int UID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object uid_ = ""; /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -14364,30 +16876,30 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -14398,12 +16910,15 @@ public java.lang.String getUid() { public static final int RECONCILING_FIELD_NUMBER = 4; private boolean reconciling_ = false; /** + * + * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -14412,94 +16927,106 @@ public boolean getReconciling() { } public static final int ANNOTATIONS_FIELD_NUMBER = 5; + private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField - internalGetAnnotations() { + internalGetAnnotations() { if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); } return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -14507,32 +17034,34 @@ public java.lang.String getAnnotationsOrThrow( } public static final int LABELS_FIELD_NUMBER = 18; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.workstations.v1beta.WorkstationsProto + .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -14543,20 +17072,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -14571,6 +17101,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -14581,17 +17113,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -14602,11 +17136,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -14616,11 +17150,15 @@ public java.lang.String getLabelsOrThrow(
   public static final int CREATE_TIME_FIELD_NUMBER = 6;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -14628,11 +17166,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -14640,11 +17182,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -14654,12 +17199,16 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -14667,12 +17216,16 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -14680,12 +17233,15 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -14695,11 +17251,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -14707,11 +17267,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -14719,11 +17283,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -14731,9 +17298,12 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } public static final int ETAG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private volatile java.lang.Object etag_ = ""; /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -14741,6 +17311,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ @java.lang.Override @@ -14749,14 +17320,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -14764,16 +17336,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -14784,6 +17355,8 @@ public java.lang.String getEtag() { public static final int IDLE_TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Duration idleTimeout_; /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -14796,7 +17369,9 @@ public java.lang.String getEtag() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleTimeout field is set. */ @java.lang.Override @@ -14804,6 +17379,8 @@ public boolean hasIdleTimeout() { return idleTimeout_ != null; } /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -14816,7 +17393,9 @@ public boolean hasIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleTimeout. */ @java.lang.Override @@ -14824,6 +17403,8 @@ public com.google.protobuf.Duration getIdleTimeout() { return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; } /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -14836,7 +17417,8 @@ public com.google.protobuf.Duration getIdleTimeout() {
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { @@ -14846,6 +17428,8 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { public static final int RUNNING_TIMEOUT_FIELD_NUMBER = 11; private com.google.protobuf.Duration runningTimeout_; /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -14871,7 +17455,9 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runningTimeout field is set. */ @java.lang.Override @@ -14879,6 +17465,8 @@ public boolean hasRunningTimeout() { return runningTimeout_ != null; } /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -14904,14 +17492,20 @@ public boolean hasRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runningTimeout. */ @java.lang.Override public com.google.protobuf.Duration getRunningTimeout() { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -14937,21 +17531,29 @@ public com.google.protobuf.Duration getRunningTimeout() {
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } public static final int HOST_FIELD_NUMBER = 12; private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_; /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the host field is set. */ @java.lang.Override @@ -14959,165 +17561,235 @@ public boolean hasHost() { return host_ != null; } /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The host. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { - return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder() { - return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } public static final int PERSISTENT_DIRECTORIES_FIELD_NUMBER = 13; + @SuppressWarnings("serial") - private java.util.List persistentDirectories_; + private java.util.List + persistentDirectories_; /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getPersistentDirectoriesList() { + public java.util.List + getPersistentDirectoriesList() { return persistentDirectories_; } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList() { return persistentDirectories_; } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getPersistentDirectoriesCount() { return persistentDirectories_.size(); } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { return persistentDirectories_.get(index); } /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { return persistentDirectories_.get(index); } public static final int EPHEMERAL_DIRECTORIES_FIELD_NUMBER = 22; + @SuppressWarnings("serial") - private java.util.List ephemeralDirectories_; + private java.util.List + ephemeralDirectories_; /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getEphemeralDirectoriesList() { + public java.util.List + getEphemeralDirectoriesList() { return ephemeralDirectories_; } /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> getEphemeralDirectoriesOrBuilderList() { return ephemeralDirectories_; } /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getEphemeralDirectoriesCount() { return ephemeralDirectories_.size(); } /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + getEphemeralDirectories(int index) { return ephemeralDirectories_.get(index); } /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder getEphemeralDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder + getEphemeralDirectoriesOrBuilder(int index) { return ephemeralDirectories_.get(index); } public static final int CONTAINER_FIELD_NUMBER = 14; private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the container field is set. */ @java.lang.Override @@ -15125,34 +17797,51 @@ public boolean hasContainer() { return container_ != null; } /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The container. */ @java.lang.Override public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { - return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() + : container_; } /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { - return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder + getContainerOrBuilder() { + return container_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() + : container_; } public static final int ENCRYPTION_KEY_FIELD_NUMBER = 17; - private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + encryptionKey_; /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -15174,7 +17863,10 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the encryptionKey field is set. */ @java.lang.Override @@ -15182,6 +17874,8 @@ public boolean hasEncryptionKey() { return encryptionKey_ != null; } /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -15203,14 +17897,23 @@ public boolean hasEncryptionKey() {
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The encryptionKey. */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -15232,89 +17935,123 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { - return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } public static final int READINESS_CHECKS_FIELD_NUMBER = 19; + @SuppressWarnings("serial") - private java.util.List readinessChecks_; + private java.util.List + readinessChecks_; /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getReadinessChecksList() { + public java.util.List + getReadinessChecksList() { return readinessChecks_; } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksOrBuilderList() { return readinessChecks_; } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getReadinessChecksCount() { return readinessChecks_.size(); } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks( + int index) { return readinessChecks_.get(index); } /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder + getReadinessChecksOrBuilder(int index) { return readinessChecks_.get(index); } public static final int REPLICA_ZONES_FIELD_NUMBER = 23; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -15325,14 +18062,18 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBu
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList - getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { return replicaZones_; } /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -15343,13 +18084,18 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBu
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -15360,7 +18106,10 @@ public int getReplicaZonesCount() {
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -15368,6 +18117,8 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -15378,18 +18129,22 @@ public java.lang.String getReplicaZones(int index) {
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString - getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } public static final int DEGRADED_FIELD_NUMBER = 15; private boolean degraded_ = false; /** + * + * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -15398,6 +18153,7 @@ public java.lang.String getReplicaZones(int index) {
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -15406,69 +18162,85 @@ public boolean getDegraded() { } public static final int CONDITIONS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private java.util.List conditions_; /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConditionsList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { return conditions_; } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConditionsCount() { return conditions_.size(); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.rpc.Status getConditions(int index) { return conditions_.get(index); } /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { return conditions_.get(index); } public static final int ENABLE_AUDIT_AGENT_FIELD_NUMBER = 20; private boolean enableAuditAgent_ = false; /** + * + * *
    * Optional. Whether to enable Linux `auditd` logging on the workstation. When
    * enabled, a service account must also be specified that has
@@ -15478,6 +18250,7 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(
    * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableAuditAgent. */ @java.lang.Override @@ -15486,6 +18259,7 @@ public boolean getEnableAuditAgent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15497,8 +18271,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_); } @@ -15511,12 +18284,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (reconciling_ != false) { output.writeBool(4, reconciling_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); if (createTime_ != null) { output.writeMessage(6, getCreateTime()); } @@ -15553,12 +18322,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (encryptionKey_ != null) { output.writeMessage(17, getEncryptionKey()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 18); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 18); for (int i = 0; i < readinessChecks_.size(); i++) { output.writeMessage(19, readinessChecks_.get(i)); } @@ -15590,87 +18355,76 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); } if (reconciling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, reconciling_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reconciling_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (idleTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getIdleTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getIdleTimeout()); } if (runningTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getRunningTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getRunningTimeout()); } if (host_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getHost()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getHost()); } for (int i = 0; i < persistentDirectories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, persistentDirectories_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, persistentDirectories_.get(i)); } if (container_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getContainer()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getContainer()); } if (degraded_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, degraded_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, degraded_); } for (int i = 0; i < conditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, conditions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, conditions_.get(i)); } if (encryptionKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getEncryptionKey()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getEncryptionKey()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, labels__); } for (int i = 0; i < readinessChecks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, readinessChecks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, readinessChecks_.get(i)); } if (enableAuditAgent_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, enableAuditAgent_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, enableAuditAgent_); } for (int i = 0; i < ephemeralDirectories_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, ephemeralDirectories_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, ephemeralDirectories_.get(i)); } { int dataSize = 0; @@ -15688,81 +18442,60 @@ 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.workstations.v1beta.WorkstationConfig)) { return super.equals(obj); } - com.google.cloud.workstations.v1beta.WorkstationConfig other = (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (getReconciling() - != other.getReconciling()) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + com.google.cloud.workstations.v1beta.WorkstationConfig other = + (com.google.cloud.workstations.v1beta.WorkstationConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (getReconciling() != other.getReconciling()) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (hasIdleTimeout() != other.hasIdleTimeout()) return false; if (hasIdleTimeout()) { - if (!getIdleTimeout() - .equals(other.getIdleTimeout())) return false; + if (!getIdleTimeout().equals(other.getIdleTimeout())) return false; } if (hasRunningTimeout() != other.hasRunningTimeout()) return false; if (hasRunningTimeout()) { - if (!getRunningTimeout() - .equals(other.getRunningTimeout())) return false; + if (!getRunningTimeout().equals(other.getRunningTimeout())) return false; } if (hasHost() != other.hasHost()) return false; if (hasHost()) { - if (!getHost() - .equals(other.getHost())) return false; + if (!getHost().equals(other.getHost())) return false; } - if (!getPersistentDirectoriesList() - .equals(other.getPersistentDirectoriesList())) return false; - if (!getEphemeralDirectoriesList() - .equals(other.getEphemeralDirectoriesList())) return false; + if (!getPersistentDirectoriesList().equals(other.getPersistentDirectoriesList())) return false; + if (!getEphemeralDirectoriesList().equals(other.getEphemeralDirectoriesList())) return false; if (hasContainer() != other.hasContainer()) return false; if (hasContainer()) { - if (!getContainer() - .equals(other.getContainer())) return false; + if (!getContainer().equals(other.getContainer())) return false; } if (hasEncryptionKey() != other.hasEncryptionKey()) return false; if (hasEncryptionKey()) { - if (!getEncryptionKey() - .equals(other.getEncryptionKey())) return false; - } - if (!getReadinessChecksList() - .equals(other.getReadinessChecksList())) return false; - if (!getReplicaZonesList() - .equals(other.getReplicaZonesList())) return false; - if (getDegraded() - != other.getDegraded()) return false; - if (!getConditionsList() - .equals(other.getConditionsList())) return false; - if (getEnableAuditAgent() - != other.getEnableAuditAgent()) return false; + if (!getEncryptionKey().equals(other.getEncryptionKey())) return false; + } + if (!getReadinessChecksList().equals(other.getReadinessChecksList())) return false; + if (!getReplicaZonesList().equals(other.getReplicaZonesList())) return false; + if (getDegraded() != other.getDegraded()) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (getEnableAuditAgent() != other.getEnableAuditAgent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15781,8 +18514,7 @@ public int hashCode() { hash = (37 * hash) + UID_FIELD_NUMBER; hash = (53 * hash) + getUid().hashCode(); hash = (37 * hash) + RECONCILING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReconciling()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); if (!internalGetAnnotations().getMap().isEmpty()) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetAnnotations().hashCode(); @@ -15842,113 +18574,117 @@ public int hashCode() { hash = (53 * hash) + getReplicaZonesList().hashCode(); } hash = (37 * hash) + DEGRADED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDegraded()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDegraded()); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } hash = (37 * hash) + ENABLE_AUDIT_AGENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableAuditAgent()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAuditAgent()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.workstations.v1beta.WorkstationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig 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.workstations.v1beta.WorkstationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig 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 workstation configuration resource in the Cloud Workstations API.
    *
@@ -15963,59 +18699,56 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.workstations.v1beta.WorkstationConfig}
    */
-  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.workstations.v1beta.WorkstationConfig)
       com.google.cloud.workstations.v1beta.WorkstationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 5:
           return internalGetAnnotations();
         case 18:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 5:
           return internalGetMutableAnnotations();
         case 18:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.workstations.v1beta.WorkstationConfig.class, com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
+              com.google.cloud.workstations.v1beta.WorkstationConfig.class,
+              com.google.cloud.workstations.v1beta.WorkstationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.workstations.v1beta.WorkstationConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -16088,8 +18821,7 @@ public Builder clear() {
         readinessChecksBuilder_.clear();
       }
       bitField0_ = (bitField0_ & ~0x00020000);
-      replicaZones_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList();
       degraded_ = false;
       if (conditionsBuilder_ == null) {
         conditions_ = java.util.Collections.emptyList();
@@ -16103,9 +18835,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.workstations.v1beta.WorkstationsProto.internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.workstations.v1beta.WorkstationsProto
+          .internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -16124,14 +18856,18 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.workstations.v1beta.WorkstationConfig buildPartial() {
-      com.google.cloud.workstations.v1beta.WorkstationConfig result = new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
+      com.google.cloud.workstations.v1beta.WorkstationConfig result =
+          new com.google.cloud.workstations.v1beta.WorkstationConfig(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.workstations.v1beta.WorkstationConfig result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.workstations.v1beta.WorkstationConfig result) {
       if (persistentDirectoriesBuilder_ == null) {
         if (((bitField0_ & 0x00002000) != 0)) {
           persistentDirectories_ = java.util.Collections.unmodifiableList(persistentDirectories_);
@@ -16193,47 +18929,34 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
         result.labels_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.deleteTime_ = deleteTimeBuilder_ == null
-            ? deleteTime_
-            : deleteTimeBuilder_.build();
+        result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
         result.etag_ = etag_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.idleTimeout_ = idleTimeoutBuilder_ == null
-            ? idleTimeout_
-            : idleTimeoutBuilder_.build();
+        result.idleTimeout_ =
+            idleTimeoutBuilder_ == null ? idleTimeout_ : idleTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.runningTimeout_ = runningTimeoutBuilder_ == null
-            ? runningTimeout_
-            : runningTimeoutBuilder_.build();
+        result.runningTimeout_ =
+            runningTimeoutBuilder_ == null ? runningTimeout_ : runningTimeoutBuilder_.build();
       }
       if (((from_bitField0_ & 0x00001000) != 0)) {
-        result.host_ = hostBuilder_ == null
-            ? host_
-            : hostBuilder_.build();
+        result.host_ = hostBuilder_ == null ? host_ : hostBuilder_.build();
       }
       if (((from_bitField0_ & 0x00008000) != 0)) {
-        result.container_ = containerBuilder_ == null
-            ? container_
-            : containerBuilder_.build();
+        result.container_ = containerBuilder_ == null ? container_ : containerBuilder_.build();
       }
       if (((from_bitField0_ & 0x00010000) != 0)) {
-        result.encryptionKey_ = encryptionKeyBuilder_ == null
-            ? encryptionKey_
-            : encryptionKeyBuilder_.build();
+        result.encryptionKey_ =
+            encryptionKeyBuilder_ == null ? encryptionKey_ : encryptionKeyBuilder_.build();
       }
       if (((from_bitField0_ & 0x00040000) != 0)) {
         replicaZones_.makeImmutable();
@@ -16251,38 +18974,39 @@ private void buildPartial0(com.google.cloud.workstations.v1beta.WorkstationConfi
     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.workstations.v1beta.WorkstationConfig) {
-        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig)other);
+        return mergeFrom((com.google.cloud.workstations.v1beta.WorkstationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -16290,7 +19014,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig other) {
-      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -16309,11 +19034,9 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
       if (other.getReconciling() != false) {
         setReconciling(other.getReconciling());
       }
-      internalGetMutableAnnotations().mergeFrom(
-          other.internalGetAnnotations());
+      internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
       bitField0_ |= 0x00000010;
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000020;
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
@@ -16356,9 +19079,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             persistentDirectoriesBuilder_ = null;
             persistentDirectories_ = other.persistentDirectories_;
             bitField0_ = (bitField0_ & ~0x00002000);
-            persistentDirectoriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPersistentDirectoriesFieldBuilder() : null;
+            persistentDirectoriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPersistentDirectoriesFieldBuilder()
+                    : null;
           } else {
             persistentDirectoriesBuilder_.addAllMessages(other.persistentDirectories_);
           }
@@ -16382,9 +19106,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             ephemeralDirectoriesBuilder_ = null;
             ephemeralDirectories_ = other.ephemeralDirectories_;
             bitField0_ = (bitField0_ & ~0x00004000);
-            ephemeralDirectoriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEphemeralDirectoriesFieldBuilder() : null;
+            ephemeralDirectoriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEphemeralDirectoriesFieldBuilder()
+                    : null;
           } else {
             ephemeralDirectoriesBuilder_.addAllMessages(other.ephemeralDirectories_);
           }
@@ -16414,9 +19139,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             readinessChecksBuilder_ = null;
             readinessChecks_ = other.readinessChecks_;
             bitField0_ = (bitField0_ & ~0x00020000);
-            readinessChecksBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getReadinessChecksFieldBuilder() : null;
+            readinessChecksBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getReadinessChecksFieldBuilder()
+                    : null;
           } else {
             readinessChecksBuilder_.addAllMessages(other.readinessChecks_);
           }
@@ -16453,9 +19179,10 @@ public Builder mergeFrom(com.google.cloud.workstations.v1beta.WorkstationConfig
             conditionsBuilder_ = null;
             conditions_ = other.conditions_;
             bitField0_ = (bitField0_ & ~0x00100000);
-            conditionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConditionsFieldBuilder() : null;
+            conditionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConditionsFieldBuilder()
+                    : null;
           } else {
             conditionsBuilder_.addAllMessages(other.conditions_);
           }
@@ -16490,179 +19217,191 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              reconciling_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              annotations__ = input.readMessage(
-                  AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableAnnotations().getMutableMap().put(
-                  annotations__.getKey(), annotations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getDeleteTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              etag_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getIdleTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 90: {
-              input.readMessage(
-                  getRunningTimeoutFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 90
-            case 98: {
-              input.readMessage(
-                  getHostFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00001000;
-              break;
-            } // case 98
-            case 106: {
-              com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
-                  input.readMessage(
-                      com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.parser(),
-                      extensionRegistry);
-              if (persistentDirectoriesBuilder_ == null) {
-                ensurePersistentDirectoriesIsMutable();
-                persistentDirectories_.add(m);
-              } else {
-                persistentDirectoriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getContainerFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00008000;
-              break;
-            } // case 114
-            case 120: {
-              degraded_ = input.readBool();
-              bitField0_ |= 0x00080000;
-              break;
-            } // case 120
-            case 130: {
-              com.google.rpc.Status m =
-                  input.readMessage(
-                      com.google.rpc.Status.parser(),
-                      extensionRegistry);
-              if (conditionsBuilder_ == null) {
-                ensureConditionsIsMutable();
-                conditions_.add(m);
-              } else {
-                conditionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 130
-            case 138: {
-              input.readMessage(
-                  getEncryptionKeyFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00010000;
-              break;
-            } // case 138
-            case 146: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 146
-            case 154: {
-              com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck m =
-                  input.readMessage(
-                      com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.parser(),
-                      extensionRegistry);
-              if (readinessChecksBuilder_ == null) {
-                ensureReadinessChecksIsMutable();
-                readinessChecks_.add(m);
-              } else {
-                readinessChecksBuilder_.addMessage(m);
-              }
-              break;
-            } // case 154
-            case 160: {
-              enableAuditAgent_ = input.readBool();
-              bitField0_ |= 0x00200000;
-              break;
-            } // case 160
-            case 178: {
-              com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory m =
-                  input.readMessage(
-                      com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.parser(),
-                      extensionRegistry);
-              if (ephemeralDirectoriesBuilder_ == null) {
-                ensureEphemeralDirectoriesIsMutable();
-                ephemeralDirectories_.add(m);
-              } else {
-                ephemeralDirectoriesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 178
-            case 186: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureReplicaZonesIsMutable();
-              replicaZones_.add(s);
-              break;
-            } // case 186
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                reconciling_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry annotations__ =
+                    input.readMessage(
+                        AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableAnnotations()
+                    .getMutableMap()
+                    .put(annotations__.getKey(), annotations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                etag_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getIdleTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 90:
+              {
+                input.readMessage(getRunningTimeoutFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 90
+            case 98:
+              {
+                input.readMessage(getHostFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00001000;
+                break;
+              } // case 98
+            case 106:
+              {
+                com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory m =
+                    input.readMessage(
+                        com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory
+                            .parser(),
+                        extensionRegistry);
+                if (persistentDirectoriesBuilder_ == null) {
+                  ensurePersistentDirectoriesIsMutable();
+                  persistentDirectories_.add(m);
+                } else {
+                  persistentDirectoriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getContainerFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00008000;
+                break;
+              } // case 114
+            case 120:
+              {
+                degraded_ = input.readBool();
+                bitField0_ |= 0x00080000;
+                break;
+              } // case 120
+            case 130:
+              {
+                com.google.rpc.Status m =
+                    input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+                if (conditionsBuilder_ == null) {
+                  ensureConditionsIsMutable();
+                  conditions_.add(m);
+                } else {
+                  conditionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 130
+            case 138:
+              {
+                input.readMessage(getEncryptionKeyFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00010000;
+                break;
+              } // case 138
+            case 146:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 146
+            case 154:
+              {
+                com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck m =
+                    input.readMessage(
+                        com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck
+                            .parser(),
+                        extensionRegistry);
+                if (readinessChecksBuilder_ == null) {
+                  ensureReadinessChecksIsMutable();
+                  readinessChecks_.add(m);
+                } else {
+                  readinessChecksBuilder_.addMessage(m);
+                }
+                break;
+              } // case 154
+            case 160:
+              {
+                enableAuditAgent_ = input.readBool();
+                bitField0_ |= 0x00200000;
+                break;
+              } // case 160
+            case 178:
+              {
+                com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory m =
+                    input.readMessage(
+                        com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory
+                            .parser(),
+                        extensionRegistry);
+                if (ephemeralDirectoriesBuilder_ == null) {
+                  ensureEphemeralDirectoriesIsMutable();
+                  ephemeralDirectories_.add(m);
+                } else {
+                  ephemeralDirectoriesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 178
+            case 186:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureReplicaZonesIsMutable();
+                replicaZones_.add(s);
+                break;
+              } // case 186
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -16672,22 +19411,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Full name of this workstation configuration.
      * 
* * 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; @@ -16696,20 +19438,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * 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 { @@ -16717,28 +19460,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -16748,17 +19498,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Full name of this workstation configuration.
      * 
* * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -16768,18 +19522,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -16788,20 +19544,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -16809,28 +19566,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -16840,17 +19604,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Optional. Human-readable name for this workstation configuration.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; @@ -16860,19 +19628,21 @@ public Builder setDisplayNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -16881,21 +19651,22 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -16903,30 +19674,37 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -16936,18 +19714,22 @@ public Builder clearUid() { return this; } /** + * + * *
      * Output only. A system-assigned unique identifier for this workstation
      * configuration.
      * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000004; @@ -16955,14 +19737,17 @@ public Builder setUidBytes( return this; } - private boolean reconciling_ ; + private boolean reconciling_; /** + * + * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ @java.lang.Override @@ -16970,12 +19755,15 @@ public boolean getReconciling() { return reconciling_; } /** + * + * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The reconciling to set. * @return This builder for chaining. */ @@ -16987,12 +19775,15 @@ public Builder setReconciling(boolean value) { return this; } /** + * + * *
      * Output only. Indicates whether this workstation configuration is currently
      * being updated to match its intended state.
      * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearReconciling() { @@ -17002,8 +19793,8 @@ public Builder clearReconciling() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; + private com.google.protobuf.MapField annotations_; + private com.google.protobuf.MapField internalGetAnnotations() { if (annotations_ == null) { @@ -17012,11 +19803,12 @@ public Builder clearReconciling() { } return annotations_; } + private com.google.protobuf.MapField internalGetMutableAnnotations() { if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); @@ -17025,153 +19817,168 @@ public Builder clearReconciling() { onChanged(); return annotations_; } + public int getAnnotationsCount() { return internalGetAnnotations().getMap().size(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotations().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationsMap()} instead. - */ + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getAnnotations() { return getAnnotationsMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getAnnotationsMap() { return internalGetAnnotations().getMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getAnnotationsOrDefault( + public /* nullable */ java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearAnnotations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableAnnotations().getMutableMap() - .clear(); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { + public java.util.Map getMutableAnnotations() { bitField0_ |= 0x00000010; return internalGetMutableAnnotations().getMutableMap(); } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Optional. Client-specified annotations.
      * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -17180,10 +19987,13 @@ public Builder putAllAnnotations( onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17194,20 +20004,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17222,6 +20033,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17232,17 +20045,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17253,23 +20068,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000020);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17279,23 +20096,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000020;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17305,17 +20121,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000020;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional.
      * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -17325,49 +20144,66 @@ public Builder putLabels(
      *
      * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000020;
       return this;
     }
 
     private com.google.protobuf.Timestamp createTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        createTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -17383,14 +20219,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -17401,17 +20240,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -17424,11 +20267,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000040); @@ -17441,11 +20288,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000040; @@ -17453,36 +20304,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time when this workstation configuration was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -17490,42 +20353,61 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -17541,15 +20423,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -17560,18 +20445,22 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -17584,12 +20473,16 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000080); @@ -17602,12 +20495,16 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000080; @@ -17615,38 +20512,50 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time when this workstation configuration was most recently
      * updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -17654,39 +20563,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -17702,14 +20630,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); } else { @@ -17720,17 +20651,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getDeleteTimeBuilder().mergeFrom(value); } else { deleteTime_ = value; @@ -17743,11 +20678,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { bitField0_ = (bitField0_ & ~0x00000100); @@ -17760,11 +20699,15 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { bitField0_ |= 0x00000100; @@ -17772,36 +20715,48 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. Time when this workstation configuration was soft-deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -17809,6 +20764,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object etag_ = ""; /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -17816,13 +20773,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -17831,6 +20788,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -17838,15 +20797,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -17854,6 +20812,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -17861,18 +20821,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } etag_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -17880,6 +20844,7 @@ public Builder setEtag(
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEtag() { @@ -17889,6 +20854,8 @@ public Builder clearEtag() { return this; } /** + * + * *
      * Optional. Checksum computed by the server. May be sent on update and delete
      * requests to make sure that the client has an up-to-date value before
@@ -17896,12 +20863,14 @@ public Builder clearEtag() {
      * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); etag_ = value; bitField0_ |= 0x00000200; @@ -17911,8 +20880,13 @@ public Builder setEtagBytes( private com.google.protobuf.Duration idleTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> idleTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + idleTimeoutBuilder_; /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -17925,13 +20899,17 @@ public Builder setEtagBytes(
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleTimeout field is set. */ public boolean hasIdleTimeout() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -17944,17 +20922,23 @@ public boolean hasIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleTimeout. */ public com.google.protobuf.Duration getIdleTimeout() { if (idleTimeoutBuilder_ == null) { - return idleTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + return idleTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleTimeout_; } else { return idleTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -17967,7 +20951,8 @@ public com.google.protobuf.Duration getIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { @@ -17983,6 +20968,8 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -17995,10 +20982,10 @@ public Builder setIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIdleTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setIdleTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (idleTimeoutBuilder_ == null) { idleTimeout_ = builderForValue.build(); } else { @@ -18009,6 +20996,8 @@ public Builder setIdleTimeout( return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -18021,13 +21010,14 @@ public Builder setIdleTimeout(
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { if (idleTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - idleTimeout_ != null && - idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && idleTimeout_ != null + && idleTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getIdleTimeoutBuilder().mergeFrom(value); } else { idleTimeout_ = value; @@ -18040,6 +21030,8 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -18052,7 +21044,8 @@ public Builder mergeIdleTimeout(com.google.protobuf.Duration value) {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearIdleTimeout() { bitField0_ = (bitField0_ & ~0x00000400); @@ -18065,6 +21058,8 @@ public Builder clearIdleTimeout() { return this; } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -18077,7 +21072,8 @@ public Builder clearIdleTimeout() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { bitField0_ |= 0x00000400; @@ -18085,6 +21081,8 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() { return getIdleTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -18097,17 +21095,21 @@ public com.google.protobuf.Duration.Builder getIdleTimeoutBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { if (idleTimeoutBuilder_ != null) { return idleTimeoutBuilder_.getMessageOrBuilder(); } else { - return idleTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : idleTimeout_; + return idleTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : idleTimeout_; } } /** + * + * *
      * Optional. Number of seconds to wait before automatically stopping a
      * workstation after it last received user traffic.
@@ -18120,17 +21122,21 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * The default is `"1200s"` (20 minutes).
      * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getIdleTimeoutFieldBuilder() { if (idleTimeoutBuilder_ == null) { - idleTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getIdleTimeout(), - getParentForChildren(), - isClean()); + idleTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getIdleTimeout(), getParentForChildren(), isClean()); idleTimeout_ = null; } return idleTimeoutBuilder_; @@ -18138,8 +21144,13 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() { private com.google.protobuf.Duration runningTimeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> runningTimeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + runningTimeoutBuilder_; /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18165,13 +21176,18 @@ public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runningTimeout field is set. */ public boolean hasRunningTimeout() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18197,17 +21213,24 @@ public boolean hasRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runningTimeout. */ public com.google.protobuf.Duration getRunningTimeout() { if (runningTimeoutBuilder_ == null) { - return runningTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } else { return runningTimeoutBuilder_.getMessage(); } } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18233,7 +21256,9 @@ public com.google.protobuf.Duration getRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { @@ -18249,6 +21274,8 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18274,10 +21301,11 @@ public Builder setRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRunningTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setRunningTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (runningTimeoutBuilder_ == null) { runningTimeout_ = builderForValue.build(); } else { @@ -18288,6 +21316,8 @@ public Builder setRunningTimeout( return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18313,13 +21343,15 @@ public Builder setRunningTimeout(
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { if (runningTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - runningTimeout_ != null && - runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && runningTimeout_ != null + && runningTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getRunningTimeoutBuilder().mergeFrom(value); } else { runningTimeout_ = value; @@ -18332,6 +21364,8 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18357,7 +21391,9 @@ public Builder mergeRunningTimeout(com.google.protobuf.Duration value) {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearRunningTimeout() { bitField0_ = (bitField0_ & ~0x00000800); @@ -18370,6 +21406,8 @@ public Builder clearRunningTimeout() { return this; } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18395,7 +21433,9 @@ public Builder clearRunningTimeout() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { bitField0_ |= 0x00000800; @@ -18403,6 +21443,8 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() { return getRunningTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18428,17 +21470,22 @@ public com.google.protobuf.Duration.Builder getRunningTimeoutBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { if (runningTimeoutBuilder_ != null) { return runningTimeoutBuilder_.getMessageOrBuilder(); } else { - return runningTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : runningTimeout_; + return runningTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : runningTimeout_; } } /** + * + * *
      * Optional. Number of seconds that a workstation can run until it is
      * automatically shut down. We recommend that workstations be shut down daily
@@ -18464,17 +21511,22 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() {
      * discouraged because you incur costs and will not pick up security updates.
      * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getRunningTimeoutFieldBuilder() { if (runningTimeoutBuilder_ == null) { - runningTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getRunningTimeout(), - getParentForChildren(), - isClean()); + runningTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRunningTimeout(), getParentForChildren(), isClean()); runningTimeout_ = null; } return runningTimeoutBuilder_; @@ -18482,39 +21534,58 @@ public com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder() { private com.google.cloud.workstations.v1beta.WorkstationConfig.Host host_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> hostBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> + hostBuilder_; /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the host field is set. */ public boolean hasHost() { return ((bitField0_ & 0x00001000) != 0); } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The host. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost() { if (hostBuilder_ == null) { - return host_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } else { return hostBuilder_.getMessage(); } } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Host value) { if (hostBuilder_ == null) { @@ -18530,11 +21601,15 @@ public Builder setHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Ho return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHost( com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder builderForValue) { @@ -18548,17 +21623,23 @@ public Builder setHost( return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig.Host value) { if (hostBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && - host_ != null && - host_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance()) { + if (((bitField0_ & 0x00001000) != 0) + && host_ != null + && host_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Host + .getDefaultInstance()) { getHostBuilder().mergeFrom(value); } else { host_ = value; @@ -18571,11 +21652,15 @@ public Builder mergeHost(com.google.cloud.workstations.v1beta.WorkstationConfig. return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00001000); @@ -18588,11 +21673,15 @@ public Builder clearHost() { return this; } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder getHostBuilder() { bitField0_ |= 0x00001000; @@ -18600,61 +21689,87 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder getHo return getHostFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder() { if (hostBuilder_ != null) { return hostBuilder_.getMessageOrBuilder(); } else { - return host_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() : host_; + return host_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Host.getDefaultInstance() + : host_; } } /** + * + * *
      * Optional. Runtime host for the workstation.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder> getHostFieldBuilder() { if (hostBuilder_ == null) { - hostBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Host, com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( - getHost(), - getParentForChildren(), - isClean()); + hostBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Host, + com.google.cloud.workstations.v1beta.WorkstationConfig.Host.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder>( + getHost(), getParentForChildren(), isClean()); host_ = null; } return hostBuilder_; } - private java.util.List persistentDirectories_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> + persistentDirectories_ = java.util.Collections.emptyList(); + private void ensurePersistentDirectoriesIsMutable() { if (!((bitField0_ & 0x00002000) != 0)) { - persistentDirectories_ = new java.util.ArrayList(persistentDirectories_); + persistentDirectories_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory>( + persistentDirectories_); bitField0_ |= 0x00002000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> persistentDirectoriesBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + persistentDirectoriesBuilder_; /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getPersistentDirectoriesList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> + getPersistentDirectoriesList() { if (persistentDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(persistentDirectories_); } else { @@ -18662,11 +21777,15 @@ public java.util.List * Optional. Directories to persist across workstation sessions. *
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getPersistentDirectoriesCount() { if (persistentDirectoriesBuilder_ == null) { @@ -18676,13 +21795,18 @@ public int getPersistentDirectoriesCount() { } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { return persistentDirectories_.get(index); } else { @@ -18690,14 +21814,19 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18711,14 +21840,20 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.set(index, builderForValue.build()); @@ -18729,13 +21864,18 @@ public Builder setPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addPersistentDirectories(com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + public Builder addPersistentDirectories( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18749,14 +21889,19 @@ public Builder addPersistentDirectories(com.google.cloud.workstations.v1beta.Wor return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory value) { if (persistentDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -18770,14 +21915,19 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPersistentDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(builderForValue.build()); @@ -18788,14 +21938,20 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addPersistentDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + builderForValue) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); persistentDirectories_.add(index, builderForValue.build()); @@ -18806,18 +21962,24 @@ public Builder addPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllPersistentDirectories( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory> + values) { if (persistentDirectoriesBuilder_ == null) { ensurePersistentDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, persistentDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, persistentDirectories_); onChanged(); } else { persistentDirectoriesBuilder_.addAllMessages(values); @@ -18825,11 +21987,15 @@ public Builder addAllPersistentDirectories( return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearPersistentDirectories() { if (persistentDirectoriesBuilder_ == null) { @@ -18842,11 +22008,15 @@ public Builder clearPersistentDirectories() { return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removePersistentDirectories(int index) { if (persistentDirectoriesBuilder_ == null) { @@ -18859,39 +22029,54 @@ public Builder removePersistentDirectories(int index) { return this; } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder getPersistentDirectoriesBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + getPersistentDirectoriesBuilder(int index) { return getPersistentDirectoriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index) { if (persistentDirectoriesBuilder_ == null) { - return persistentDirectories_.get(index); } else { + return persistentDirectories_.get(index); + } else { return persistentDirectoriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPersistentDirectoriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + getPersistentDirectoriesOrBuilderList() { if (persistentDirectoriesBuilder_ != null) { return persistentDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -18899,45 +22084,71 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector } } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder() { - return getPersistentDirectoriesFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder() { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder addPersistentDirectoriesBuilder( - int index) { - return getPersistentDirectoriesFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder + addPersistentDirectoriesBuilder(int index) { + return getPersistentDirectoriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + .getDefaultInstance()); } /** + * + * *
      * Optional. Directories to persist across workstation sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getPersistentDirectoriesBuilderList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder> + getPersistentDirectoriesBuilderList() { return getPersistentDirectoriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesFieldBuilder() { if (persistentDirectoriesBuilder_ == null) { - persistentDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder>( + persistentDirectoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig + .PersistentDirectoryOrBuilder>( persistentDirectories_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), @@ -18947,27 +22158,40 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirector return persistentDirectoriesBuilder_; } - private java.util.List ephemeralDirectories_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory> + ephemeralDirectories_ = java.util.Collections.emptyList(); + private void ensureEphemeralDirectoriesIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { - ephemeralDirectories_ = new java.util.ArrayList(ephemeralDirectories_); + ephemeralDirectories_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory>( + ephemeralDirectories_); bitField0_ |= 0x00004000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> ephemeralDirectoriesBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> + ephemeralDirectoriesBuilder_; /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getEphemeralDirectoriesList() { + public java.util.List + getEphemeralDirectoriesList() { if (ephemeralDirectoriesBuilder_ == null) { return java.util.Collections.unmodifiableList(ephemeralDirectories_); } else { @@ -18975,12 +22199,16 @@ public java.util.List * Optional. Ephemeral directories which won't persist across workstation * sessions. *
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getEphemeralDirectoriesCount() { if (ephemeralDirectoriesBuilder_ == null) { @@ -18990,14 +22218,19 @@ public int getEphemeralDirectoriesCount() { } } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + getEphemeralDirectories(int index) { if (ephemeralDirectoriesBuilder_ == null) { return ephemeralDirectories_.get(index); } else { @@ -19005,15 +22238,20 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory } } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEphemeralDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { if (ephemeralDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19027,15 +22265,21 @@ public Builder setEphemeralDirectories( return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEphemeralDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder + builderForValue) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); ephemeralDirectories_.set(index, builderForValue.build()); @@ -19046,14 +22290,19 @@ public Builder setEphemeralDirectories( return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addEphemeralDirectories(com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { + public Builder addEphemeralDirectories( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { if (ephemeralDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19067,15 +22316,20 @@ public Builder addEphemeralDirectories(com.google.cloud.workstations.v1beta.Work return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEphemeralDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory value) { if (ephemeralDirectoriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19089,15 +22343,20 @@ public Builder addEphemeralDirectories( return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEphemeralDirectories( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder + builderForValue) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); ephemeralDirectories_.add(builderForValue.build()); @@ -19108,15 +22367,21 @@ public Builder addEphemeralDirectories( return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addEphemeralDirectories( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder + builderForValue) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); ephemeralDirectories_.add(index, builderForValue.build()); @@ -19127,19 +22392,24 @@ public Builder addEphemeralDirectories( return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllEphemeralDirectories( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory> + values) { if (ephemeralDirectoriesBuilder_ == null) { ensureEphemeralDirectoriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ephemeralDirectories_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ephemeralDirectories_); onChanged(); } else { ephemeralDirectoriesBuilder_.addAllMessages(values); @@ -19147,12 +22417,16 @@ public Builder addAllEphemeralDirectories( return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEphemeralDirectories() { if (ephemeralDirectoriesBuilder_ == null) { @@ -19165,12 +22439,16 @@ public Builder clearEphemeralDirectories() { return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeEphemeralDirectories(int index) { if (ephemeralDirectoriesBuilder_ == null) { @@ -19183,42 +22461,57 @@ public Builder removeEphemeralDirectories(int index) { return this; } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder getEphemeralDirectoriesBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder + getEphemeralDirectoriesBuilder(int index) { return getEphemeralDirectoriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder getEphemeralDirectoriesOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder + getEphemeralDirectoriesOrBuilder(int index) { if (ephemeralDirectoriesBuilder_ == null) { - return ephemeralDirectories_.get(index); } else { + return ephemeralDirectories_.get(index); + } else { return ephemeralDirectoriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getEphemeralDirectoriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> + getEphemeralDirectoriesOrBuilderList() { if (ephemeralDirectoriesBuilder_ != null) { return ephemeralDirectoriesBuilder_.getMessageOrBuilderList(); } else { @@ -19226,48 +22519,73 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory } } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder addEphemeralDirectoriesBuilder() { - return getEphemeralDirectoriesFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder + addEphemeralDirectoriesBuilder() { + return getEphemeralDirectoriesFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .getDefaultInstance()); } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder addEphemeralDirectoriesBuilder( - int index) { - return getEphemeralDirectoriesFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder + addEphemeralDirectoriesBuilder(int index) { + return getEphemeralDirectoriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory + .getDefaultInstance()); } /** + * + * *
      * Optional. Ephemeral directories which won't persist across workstation
      * sessions.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getEphemeralDirectoriesBuilderList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder> + getEphemeralDirectoriesBuilderList() { return getEphemeralDirectoriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> getEphemeralDirectoriesFieldBuilder() { if (ephemeralDirectoriesBuilder_ == null) { - ephemeralDirectoriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder>( + ephemeralDirectoriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder>( ephemeralDirectories_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), @@ -19279,44 +22597,64 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory private com.google.cloud.workstations.v1beta.WorkstationConfig.Container container_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> containerBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> + containerBuilder_; /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the container field is set. */ public boolean hasContainer() { return ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The container. */ public com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer() { if (containerBuilder_ == null) { - return container_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() + : container_; } else { return containerBuilder_.getMessage(); } } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { + public Builder setContainer( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { if (containerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19330,12 +22668,16 @@ public Builder setContainer(com.google.cloud.workstations.v1beta.WorkstationConf return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setContainer( com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder builderForValue) { @@ -19349,18 +22691,25 @@ public Builder setContainer( return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeContainer(com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { + public Builder mergeContainer( + com.google.cloud.workstations.v1beta.WorkstationConfig.Container value) { if (containerBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - container_ != null && - container_ != com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && container_ != null + && container_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.Container + .getDefaultInstance()) { getContainerBuilder().mergeFrom(value); } else { container_ = value; @@ -19373,12 +22722,16 @@ public Builder mergeContainer(com.google.cloud.workstations.v1beta.WorkstationCo return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearContainer() { bitField0_ = (bitField0_ & ~0x00008000); @@ -19391,60 +22744,84 @@ public Builder clearContainer() { return this; } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder getContainerBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder + getContainerBuilder() { bitField0_ |= 0x00008000; onChanged(); return getContainerFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder + getContainerOrBuilder() { if (containerBuilder_ != null) { return containerBuilder_.getMessageOrBuilder(); } else { - return container_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() : container_; + return container_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.Container.getDefaultInstance() + : container_; } } /** + * + * *
      * Optional. Container that runs upon startup for each workstation using this
      * workstation configuration.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder> getContainerFieldBuilder() { if (containerBuilder_ == null) { - containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.Container, com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>( - getContainer(), - getParentForChildren(), - isClean()); + containerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.Container, + com.google.cloud.workstations.v1beta.WorkstationConfig.Container.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder>( + getContainer(), getParentForChildren(), isClean()); container_ = null; } return containerBuilder_; } - private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryptionKey_; + private com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + encryptionKey_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> encryptionKeyBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + encryptionKeyBuilder_; /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19466,13 +22843,18 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the encryptionKey field is set. */ public boolean hasEncryptionKey() { return ((bitField0_ & 0x00010000) != 0); } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19494,17 +22876,26 @@ public boolean hasEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The encryptionKey. */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + getEncryptionKey() { if (encryptionKeyBuilder_ == null) { - return encryptionKey_ == null ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } else { return encryptionKeyBuilder_.getMessage(); } } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19526,9 +22917,12 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder setEncryptionKey( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19542,6 +22936,8 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.Workstation return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19563,10 +22959,13 @@ public Builder setEncryptionKey(com.google.cloud.workstations.v1beta.Workstation
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder setEncryptionKey( - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder + builderForValue) { if (encryptionKeyBuilder_ == null) { encryptionKey_ = builderForValue.build(); } else { @@ -19577,6 +22976,8 @@ public Builder setEncryptionKey( return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19598,13 +22999,18 @@ public Builder setEncryptionKey(
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { + public Builder mergeEncryptionKey( + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey value) { if (encryptionKeyBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - encryptionKey_ != null && - encryptionKey_ != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) + && encryptionKey_ != null + && encryptionKey_ + != com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance()) { getEncryptionKeyBuilder().mergeFrom(value); } else { encryptionKey_ = value; @@ -19617,6 +23023,8 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.Workstati return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19638,7 +23046,9 @@ public Builder mergeEncryptionKey(com.google.cloud.workstations.v1beta.Workstati
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ public Builder clearEncryptionKey() { bitField0_ = (bitField0_ & ~0x00010000); @@ -19651,6 +23061,8 @@ public Builder clearEncryptionKey() { return this; } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19672,14 +23084,19 @@ public Builder clearEncryptionKey() {
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder getEncryptionKeyBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder + getEncryptionKeyBuilder() { bitField0_ |= 0x00010000; onChanged(); return getEncryptionKeyFieldBuilder().getBuilder(); } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19701,17 +23118,24 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder() { + public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder() { if (encryptionKeyBuilder_ != null) { return encryptionKeyBuilder_.getMessageOrBuilder(); } else { - return encryptionKey_ == null ? - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.getDefaultInstance() : encryptionKey_; + return encryptionKey_ == null + ? com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .getDefaultInstance() + : encryptionKey_; } } /** + * + * *
      * Immutable. Encrypts resources of this workstation configuration using a
      * customer-managed encryption key (CMEK).
@@ -19733,44 +23157,63 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryption
      * Immutable after the workstation configuration is created.
      * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder> getEncryptionKeyFieldBuilder() { if (encryptionKeyBuilder_ == null) { - encryptionKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder>( - getEncryptionKey(), - getParentForChildren(), - isClean()); + encryptionKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey, + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey + .Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig + .CustomerEncryptionKeyOrBuilder>( + getEncryptionKey(), getParentForChildren(), isClean()); encryptionKey_ = null; } return encryptionKeyBuilder_; } - private java.util.List readinessChecks_ = - java.util.Collections.emptyList(); + private java.util.List + readinessChecks_ = java.util.Collections.emptyList(); + private void ensureReadinessChecksIsMutable() { if (!((bitField0_ & 0x00020000) != 0)) { - readinessChecks_ = new java.util.ArrayList(readinessChecks_); + readinessChecks_ = + new java.util.ArrayList< + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck>( + readinessChecks_); bitField0_ |= 0x00020000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> readinessChecksBuilder_; + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> + readinessChecksBuilder_; /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getReadinessChecksList() { + public java.util.List + getReadinessChecksList() { if (readinessChecksBuilder_ == null) { return java.util.Collections.unmodifiableList(readinessChecks_); } else { @@ -19778,13 +23221,17 @@ public java.util.List * Optional. Readiness checks to perform when starting a workstation using * this workstation configuration. Mark a workstation as running only after * all specified readiness checks return 200 status codes. *
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getReadinessChecksCount() { if (readinessChecksBuilder_ == null) { @@ -19794,15 +23241,20 @@ public int getReadinessChecksCount() { } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks(int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks( + int index) { if (readinessChecksBuilder_ == null) { return readinessChecks_.get(index); } else { @@ -19810,13 +23262,17 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck get } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadinessChecks( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { @@ -19833,16 +23289,22 @@ public Builder setReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadinessChecks( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder + builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.set(index, builderForValue.build()); @@ -19853,15 +23315,20 @@ public Builder setReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addReadinessChecks(com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { + public Builder addReadinessChecks( + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { if (readinessChecksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -19875,13 +23342,17 @@ public Builder addReadinessChecks(com.google.cloud.workstations.v1beta.Workstati return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReadinessChecks( int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck value) { @@ -19898,16 +23369,21 @@ public Builder addReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReadinessChecks( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder builderForValue) { + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder + builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.add(builderForValue.build()); @@ -19918,16 +23394,22 @@ public Builder addReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addReadinessChecks( - int index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder builderForValue) { + int index, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder + builderForValue) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); readinessChecks_.add(index, builderForValue.build()); @@ -19938,20 +23420,25 @@ public Builder addReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllReadinessChecks( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck> + values) { if (readinessChecksBuilder_ == null) { ensureReadinessChecksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, readinessChecks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readinessChecks_); onChanged(); } else { readinessChecksBuilder_.addAllMessages(values); @@ -19959,13 +23446,17 @@ public Builder addAllReadinessChecks( return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadinessChecks() { if (readinessChecksBuilder_ == null) { @@ -19978,13 +23469,17 @@ public Builder clearReadinessChecks() { return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeReadinessChecks(int index) { if (readinessChecksBuilder_ == null) { @@ -19997,45 +23492,60 @@ public Builder removeReadinessChecks(int index) { return this; } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder getReadinessChecksBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder + getReadinessChecksBuilder(int index) { return getReadinessChecksFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( - int index) { + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder + getReadinessChecksOrBuilder(int index) { if (readinessChecksBuilder_ == null) { - return readinessChecks_.get(index); } else { + return readinessChecks_.get(index); + } else { return readinessChecksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReadinessChecksOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> + getReadinessChecksOrBuilderList() { if (readinessChecksBuilder_ != null) { return readinessChecksBuilder_.getMessageOrBuilderList(); } else { @@ -20043,51 +23553,76 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBu } } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder() { - return getReadinessChecksFieldBuilder().addBuilder( - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder + addReadinessChecksBuilder() { + return getReadinessChecksFieldBuilder() + .addBuilder( + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + .getDefaultInstance()); } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder addReadinessChecksBuilder( - int index) { - return getReadinessChecksFieldBuilder().addBuilder( - index, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.getDefaultInstance()); + public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder + addReadinessChecksBuilder(int index) { + return getReadinessChecksFieldBuilder() + .addBuilder( + index, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck + .getDefaultInstance()); } /** + * + * *
      * Optional. Readiness checks to perform when starting a workstation using
      * this workstation configuration. Mark a workstation as running only after
      * all specified readiness checks return 200 status codes.
      * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getReadinessChecksBuilderList() { + public java.util.List< + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder> + getReadinessChecksBuilderList() { return getReadinessChecksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksFieldBuilder() { if (readinessChecksBuilder_ == null) { - readinessChecksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder>( + readinessChecksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Builder, + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder>( readinessChecks_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), @@ -20099,6 +23634,7 @@ public com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck.Bui private com.google.protobuf.LazyStringArrayList replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureReplicaZonesIsMutable() { if (!replicaZones_.isModifiable()) { replicaZones_ = new com.google.protobuf.LazyStringArrayList(replicaZones_); @@ -20106,6 +23642,8 @@ private void ensureReplicaZonesIsMutable() { bitField0_ |= 0x00040000; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20116,15 +23654,19 @@ private void ensureReplicaZonesIsMutable() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return A list containing the replicaZones. */ - public com.google.protobuf.ProtocolStringList - getReplicaZonesList() { + public com.google.protobuf.ProtocolStringList getReplicaZonesList() { replicaZones_.makeImmutable(); return replicaZones_; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20135,13 +23677,18 @@ private void ensureReplicaZonesIsMutable() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The count of replicaZones. */ public int getReplicaZonesCount() { return replicaZones_.size(); } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20152,7 +23699,10 @@ public int getReplicaZonesCount() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the element to return. * @return The replicaZones at the given index. */ @@ -20160,6 +23710,8 @@ public java.lang.String getReplicaZones(int index) { return replicaZones_.get(index); } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20170,15 +23722,19 @@ public java.lang.String getReplicaZones(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - public com.google.protobuf.ByteString - getReplicaZonesBytes(int index) { + public com.google.protobuf.ByteString getReplicaZonesBytes(int index) { return replicaZones_.getByteString(index); } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20189,14 +23745,18 @@ public java.lang.String getReplicaZones(int index) {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index to set the value at. * @param value The replicaZones to set. * @return This builder for chaining. */ - public Builder setReplicaZones( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplicaZones(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureReplicaZonesIsMutable(); replicaZones_.set(index, value); bitField0_ |= 0x00040000; @@ -20204,6 +23764,8 @@ public Builder setReplicaZones( return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20214,13 +23776,17 @@ public Builder setReplicaZones(
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZones( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addReplicaZones(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureReplicaZonesIsMutable(); replicaZones_.add(value); bitField0_ |= 0x00040000; @@ -20228,6 +23794,8 @@ public Builder addReplicaZones( return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20238,20 +23806,23 @@ public Builder addReplicaZones(
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param values The replicaZones to add. * @return This builder for chaining. */ - public Builder addAllReplicaZones( - java.lang.Iterable values) { + public Builder addAllReplicaZones(java.lang.Iterable values) { ensureReplicaZonesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, replicaZones_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicaZones_); bitField0_ |= 0x00040000; onChanged(); return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20262,17 +23833,22 @@ public Builder addAllReplicaZones(
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearReplicaZones() { - replicaZones_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00040000);; + replicaZones_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + ; onChanged(); return this; } /** + * + * *
      * Optional. Immutable. Specifies the zones used to replicate the VM and disk
      * resources within the region. If set, exactly two zones within the
@@ -20283,13 +23859,17 @@ public Builder clearReplicaZones() {
      * Immutable after the workstation configuration is created.
      * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes of the replicaZones to add. * @return This builder for chaining. */ - public Builder addReplicaZonesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addReplicaZonesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureReplicaZonesIsMutable(); replicaZones_.add(value); @@ -20298,8 +23878,10 @@ public Builder addReplicaZonesBytes( return this; } - private boolean degraded_ ; + private boolean degraded_; /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -20308,6 +23890,7 @@ public Builder addReplicaZonesBytes(
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ @java.lang.Override @@ -20315,6 +23898,8 @@ public boolean getDegraded() { return degraded_; } /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -20323,6 +23908,7 @@ public boolean getDegraded() {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The degraded to set. * @return This builder for chaining. */ @@ -20334,6 +23920,8 @@ public Builder setDegraded(boolean value) { return this; } /** + * + * *
      * Output only. Whether this resource is degraded, in which case it may
      * require user action to restore full functionality. See also the
@@ -20342,6 +23930,7 @@ public Builder setDegraded(boolean value) {
      * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDegraded() { @@ -20351,24 +23940,29 @@ public Builder clearDegraded() { return this; } - private java.util.List conditions_ = - java.util.Collections.emptyList(); + private java.util.List conditions_ = java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00100000) != 0)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00100000; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> conditionsBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + conditionsBuilder_; /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { @@ -20378,11 +23972,15 @@ public java.util.List getConditionsList() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConditionsCount() { if (conditionsBuilder_ == null) { @@ -20392,11 +23990,15 @@ public int getConditionsCount() { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status getConditions(int index) { if (conditionsBuilder_ == null) { @@ -20406,14 +24008,17 @@ public com.google.rpc.Status getConditions(int index) { } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status value) { + public Builder setConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -20427,14 +24032,17 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder setConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); @@ -20445,11 +24053,15 @@ public Builder setConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConditions(com.google.rpc.Status value) { if (conditionsBuilder_ == null) { @@ -20465,14 +24077,17 @@ public Builder addConditions(com.google.rpc.Status value) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status value) { + public Builder addConditions(int index, com.google.rpc.Status value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -20486,14 +24101,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); @@ -20504,14 +24122,17 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addConditions( - int index, com.google.rpc.Status.Builder builderForValue) { + public Builder addConditions(int index, com.google.rpc.Status.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); @@ -20522,18 +24143,20 @@ public Builder addConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllConditions( - java.lang.Iterable values) { + public Builder addAllConditions(java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conditions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); @@ -20541,11 +24164,15 @@ public Builder addAllConditions( return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConditions() { if (conditionsBuilder_ == null) { @@ -20558,11 +24185,15 @@ public Builder clearConditions() { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { @@ -20575,39 +24206,49 @@ public Builder removeConditions(int index) { return this; } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder getConditionsBuilder( - int index) { + public com.google.rpc.Status.Builder getConditionsBuilder(int index) { return getConditionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index) { + public com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index) { if (conditionsBuilder_ == null) { - return conditions_.get(index); } else { + return conditions_.get(index); + } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsOrBuilderList() { + public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { @@ -20615,56 +24256,68 @@ public com.google.rpc.StatusOrBuilder getConditionsOrBuilder( } } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.rpc.Status.Builder addConditionsBuilder() { - return getConditionsFieldBuilder().addBuilder( - com.google.rpc.Status.getDefaultInstance()); + return getConditionsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.rpc.Status.Builder addConditionsBuilder( - int index) { - return getConditionsFieldBuilder().addBuilder( - index, com.google.rpc.Status.getDefaultInstance()); + public com.google.rpc.Status.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); } /** + * + * *
      * Output only. Status conditions describing the current resource state.
      * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConditionsBuilderList() { + public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { - conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - conditions_, - ((bitField0_ & 0x00100000) != 0), - getParentForChildren(), - isClean()); + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + conditions_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } - private boolean enableAuditAgent_ ; + private boolean enableAuditAgent_; /** + * + * *
      * Optional. Whether to enable Linux `auditd` logging on the workstation. When
      * enabled, a service account must also be specified that has
@@ -20674,6 +24327,7 @@ public com.google.rpc.Status.Builder addConditionsBuilder(
      * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableAuditAgent. */ @java.lang.Override @@ -20681,6 +24335,8 @@ public boolean getEnableAuditAgent() { return enableAuditAgent_; } /** + * + * *
      * Optional. Whether to enable Linux `auditd` logging on the workstation. When
      * enabled, a service account must also be specified that has
@@ -20690,6 +24346,7 @@ public boolean getEnableAuditAgent() {
      * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The enableAuditAgent to set. * @return This builder for chaining. */ @@ -20701,6 +24358,8 @@ public Builder setEnableAuditAgent(boolean value) { return this; } /** + * + * *
      * Optional. Whether to enable Linux `auditd` logging on the workstation. When
      * enabled, a service account must also be specified that has
@@ -20710,6 +24369,7 @@ public Builder setEnableAuditAgent(boolean value) {
      * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearEnableAuditAgent() { @@ -20718,9 +24378,9 @@ public Builder clearEnableAuditAgent() { 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); } @@ -20730,12 +24390,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.workstations.v1beta.WorkstationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.workstations.v1beta.WorkstationConfig) private static final com.google.cloud.workstations.v1beta.WorkstationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.workstations.v1beta.WorkstationConfig(); } @@ -20744,27 +24404,27 @@ public static com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkstationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WorkstationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -20779,6 +24439,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.workstations.v1beta.WorkstationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java similarity index 73% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java index e6ce097e464c..61e9f33aa87f 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationConfigOrBuilder.java @@ -1,140 +1,185 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationConfigOrBuilder extends +public interface WorkstationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.WorkstationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this workstation configuration.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Human-readable name for this workstation configuration.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation
    * configuration.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this workstation configuration is currently
    * being updated to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAnnotationsCount(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -146,6 +191,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -155,15 +202,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -173,9 +218,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -186,11 +232,13 @@ boolean containsLabels(
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -200,94 +248,128 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 18 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this workstation configuration was most recently
    * updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this workstation configuration was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -295,10 +377,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -306,12 +391,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -324,11 +411,15 @@ java.lang.String getLabelsOrThrow(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the idleTimeout field is set. */ boolean hasIdleTimeout(); /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -341,11 +432,15 @@ java.lang.String getLabelsOrThrow(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The idleTimeout. */ com.google.protobuf.Duration getIdleTimeout(); /** + * + * *
    * Optional. Number of seconds to wait before automatically stopping a
    * workstation after it last received user traffic.
@@ -358,11 +453,14 @@ java.lang.String getLabelsOrThrow(
    * The default is `"1200s"` (20 minutes).
    * 
* - * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration idle_timeout = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder(); /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -388,11 +486,15 @@ java.lang.String getLabelsOrThrow(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the runningTimeout field is set. */ boolean hasRunningTimeout(); /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -418,11 +520,15 @@ java.lang.String getLabelsOrThrow(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The runningTimeout. */ com.google.protobuf.Duration getRunningTimeout(); /** + * + * *
    * Optional. Number of seconds that a workstation can run until it is
    * automatically shut down. We recommend that workstations be shut down daily
@@ -448,161 +554,238 @@ java.lang.String getLabelsOrThrow(
    * discouraged because you incur costs and will not pick up security updates.
    * 
* - * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration running_timeout = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getRunningTimeoutOrBuilder(); /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the host field is set. */ boolean hasHost(); /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The host. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Host getHost(); /** + * + * *
    * Optional. Runtime host for the workstation.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Host host = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.workstations.v1beta.WorkstationConfig.HostOrBuilder getHostOrBuilder(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getPersistentDirectoriesList(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory getPersistentDirectories(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory + getPersistentDirectories(int index); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getPersistentDirectoriesCount(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder> getPersistentDirectoriesOrBuilderList(); /** + * + * *
    * Optional. Directories to persist across workstation sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectory persistent_directories = 13 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder getPersistentDirectoriesOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.PersistentDirectoryOrBuilder + getPersistentDirectoriesOrBuilder(int index); /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getEphemeralDirectoriesList(); /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory getEphemeralDirectories( + int index); /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getEphemeralDirectoriesCount(); /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder> getEphemeralDirectoriesOrBuilderList(); /** + * + * *
    * Optional. Ephemeral directories which won't persist across workstation
    * sessions.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectory ephemeral_directories = 22 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder getEphemeralDirectoriesOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuilder + getEphemeralDirectoriesOrBuilder(int index); /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the container field is set. */ boolean hasContainer(); /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The container. */ com.google.cloud.workstations.v1beta.WorkstationConfig.Container getContainer(); /** + * + * *
    * Optional. Container that runs upon startup for each workstation using this
    * workstation configuration.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.Container container = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.workstations.v1beta.WorkstationConfig.ContainerOrBuilder getContainerOrBuilder(); /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -624,11 +807,16 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuild
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the encryptionKey field is set. */ boolean hasEncryptionKey(); /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -650,11 +838,16 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuild
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The encryptionKey. */ com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey getEncryptionKey(); /** + * + * *
    * Immutable. Encrypts resources of this workstation configuration using a
    * customer-managed encryption key (CMEK).
@@ -676,65 +869,92 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.EphemeralDirectoryOrBuild
    * Immutable after the workstation configuration is created.
    * 
* - * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKey encryption_key = 17 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder getEncryptionKeyOrBuilder(); + com.google.cloud.workstations.v1beta.WorkstationConfig.CustomerEncryptionKeyOrBuilder + getEncryptionKeyOrBuilder(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getReadinessChecksList(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks(int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck getReadinessChecks( + int index); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getReadinessChecksCount(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder> getReadinessChecksOrBuilderList(); /** + * + * *
    * Optional. Readiness checks to perform when starting a workstation using
    * this workstation configuration. Mark a workstation as running only after
    * all specified readiness checks return 200 status codes.
    * 
* - * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheck readiness_checks = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder getReadinessChecksOrBuilder( - int index); + com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder + getReadinessChecksOrBuilder(int index); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -745,12 +965,16 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder g
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return A list containing the replicaZones. */ - java.util.List - getReplicaZonesList(); + java.util.List getReplicaZonesList(); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -761,11 +985,16 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder g
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The count of replicaZones. */ int getReplicaZonesCount(); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -776,12 +1005,17 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder g
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the element to return. * @return The replicaZones at the given index. */ java.lang.String getReplicaZones(int index); /** + * + * *
    * Optional. Immutable. Specifies the zones used to replicate the VM and disk
    * resources within the region. If set, exactly two zones within the
@@ -792,14 +1026,18 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder g
    * Immutable after the workstation configuration is created.
    * 
* - * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * repeated string replica_zones = 23 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param index The index of the value to return. * @return The bytes of the replicaZones at the given index. */ - com.google.protobuf.ByteString - getReplicaZonesBytes(int index); + com.google.protobuf.ByteString getReplicaZonesBytes(int index); /** + * + * *
    * Output only. Whether this resource is degraded, in which case it may
    * require user action to restore full functionality. See also the
@@ -808,55 +1046,70 @@ com.google.cloud.workstations.v1beta.WorkstationConfig.ReadinessCheckOrBuilder g
    * 
* * bool degraded = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The degraded. */ boolean getDegraded(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsList(); + java.util.List getConditionsList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.rpc.Status getConditions(int index); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConditionsCount(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConditionsOrBuilderList(); + java.util.List getConditionsOrBuilderList(); /** + * + * *
    * Output only. Status conditions describing the current resource state.
    * 
* - * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.rpc.Status conditions = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.rpc.StatusOrBuilder getConditionsOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getConditionsOrBuilder(int index); /** + * + * *
    * Optional. Whether to enable Linux `auditd` logging on the workstation. When
    * enabled, a service account must also be specified that has
@@ -866,6 +1119,7 @@ com.google.rpc.StatusOrBuilder getConditionsOrBuilder(
    * 
* * bool enable_audit_agent = 20 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The enableAuditAgent. */ boolean getEnableAuditAgent(); diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java similarity index 100% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationName.java diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java similarity index 75% rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java index 1f1acb95fc0d..bc51b54ff883 100644 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java +++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationOrBuilder.java @@ -1,138 +1,183 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/workstations/v1beta/workstations.proto package com.google.cloud.workstations.v1beta; -public interface WorkstationOrBuilder extends +public interface WorkstationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.Workstation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Full name of this workstation.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Full name of this workstation.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Optional. Human-readable name for this workstation.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. A system-assigned unique identifier for this workstation.
    * 
* * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. Indicates whether this workstation is currently being updated
    * to match its intended state.
    * 
* * bool reconciling = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The reconciling. */ boolean getReconciling(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getAnnotationsCount(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getAnnotations(); + java.util.Map getAnnotations(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getAnnotationsMap(); + java.util.Map getAnnotationsMap(); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getAnnotationsOrDefault( + java.lang.String getAnnotationsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Client-specified annotations.
    * 
* - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getAnnotationsOrThrow( - java.lang.String key); + java.lang.String getAnnotationsOrThrow(java.lang.String key); /** + * + * *
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -144,6 +189,8 @@ java.lang.String getAnnotationsOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -153,15 +200,13 @@ java.lang.String getAnnotationsOrThrow(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -171,9 +216,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -184,11 +230,13 @@ boolean containsLabels(
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional.
    * [Labels](https://cloud.google.com/workstations/docs/label-resources) that
@@ -198,121 +246,166 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 13 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when this workstation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time when this workstation was most recently updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Time when this workstation was most recently successfully
    * started, regardless of the workstation's initial state.
    * 
* - * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. Time when this workstation was soft-deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -320,10 +413,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Optional. Checksum computed by the server. May be sent on update and delete
    * requests to make sure that the client has an up-to-date value before
@@ -331,31 +427,43 @@ java.lang.String getLabelsOrThrow(
    * 
* * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the workstation.
    * 
* - * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.workstations.v1beta.Workstation.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.workstations.v1beta.Workstation.State getState(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -365,10 +473,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Output only. Host to which clients can send HTTPS traffic that will be
    * received by the workstation. Authorized traffic will be received to the
@@ -378,12 +489,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string host = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); /** + * + * *
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -393,6 +506,8 @@ java.lang.String getLabelsOrThrow(
    */
   int getEnvCount();
   /**
+   *
+   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -400,15 +515,13 @@ java.lang.String getLabelsOrThrow(
    *
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsEnv(
-      java.lang.String key);
-  /**
-   * Use {@link #getEnvMap()} instead.
-   */
+  boolean containsEnv(java.lang.String key);
+  /** Use {@link #getEnvMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getEnv();
+  java.util.Map getEnv();
   /**
+   *
+   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -416,9 +529,10 @@ boolean containsEnv(
    *
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getEnvMap();
+  java.util.Map getEnvMap();
   /**
+   *
+   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -427,11 +541,13 @@ boolean containsEnv(
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getEnvOrDefault(
+  java.lang.String getEnvOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. Environment variables passed to the workstation container's
    * entrypoint.
@@ -439,6 +555,5 @@ java.lang.String getEnvOrDefault(
    *
    * map<string, string> env = 12 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getEnvOrThrow(
-      java.lang.String key);
+  java.lang.String getEnvOrThrow(java.lang.String key);
 }
diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java
new file mode 100644
index 000000000000..5fcab32ba512
--- /dev/null
+++ b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java
@@ -0,0 +1,1227 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/workstations/v1beta/workstations.proto
+
+package com.google.cloud.workstations.v1beta;
+
+public final class WorkstationsProto {
+  private WorkstationsProto() {}
+
+  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_workstations_v1beta_WorkstationCluster_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_Workstation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n3google/cloud/workstations/v1beta/works"
+          + "tations.proto\022 google.cloud.workstations"
+          + ".v1beta\032\034google/api/annotations.proto\032\027g"
+          + "oogle/api/client.proto\032\037google/api/field"
+          + "_behavior.proto\032\031google/api/resource.pro"
+          + "to\032#google/longrunning/operations.proto\032"
+          + "\036google/protobuf/duration.proto\032 google/"
+          + "protobuf/field_mask.proto\032\037google/protob"
+          + "uf/timestamp.proto\032\027google/rpc/status.pr"
+          + "oto\"\246\t\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t"
+          + "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001("
+          + "\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022`\n\013an"
+          + "notations\030\005 \003(\0132E.google.cloud.workstati"
+          + "ons.v1beta.WorkstationCluster.Annotation"
+          + "sEntryB\004\342A\001\001\022V\n\006labels\030\017 \003(\0132@.google.cl"
+          + "oud.workstations.v1beta.WorkstationClust"
+          + "er.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 \001("
+          + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013u"
+          + "pdate_time\030\007 \001(\0132\032.google.protobuf.Times"
+          + "tampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google"
+          + ".protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB"
+          + "\004\342A\001\001\022\025\n\007network\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwo"
+          + "rk\030\013 \001(\tB\004\342A\001\005\022\036\n\020control_plane_ip\030\020 \001(\t"
+          + "B\004\342A\001\003\022o\n\026private_cluster_config\030\014 \001(\0132I"
+          + ".google.cloud.workstations.v1beta.Workst"
+          + "ationCluster.PrivateClusterConfigB\004\342A\001\001\022"
+          + "\026\n\010degraded\030\r \001(\010B\004\342A\001\003\022,\n\nconditions\030\016 "
+          + "\003(\0132\022.google.rpc.StatusB\004\342A\001\003\032\243\001\n\024Privat"
+          + "eClusterConfig\022%\n\027enable_private_endpoin"
+          + "t\030\001 \001(\010B\004\342A\001\005\022\036\n\020cluster_hostname\030\002 \001(\tB"
+          + "\004\342A\001\003\022$\n\026service_attachment_uri\030\003 \001(\tB\004\342"
+          + "A\001\003\022\036\n\020allowed_projects\030\004 \003(\tB\004\342A\001\001\0322\n\020A"
+          + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
+          + "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
+          + "alue\030\002 \001(\t:\0028\001:\263\001\352A\257\001\n.workstations.goog"
+          + "leapis.com/WorkstationCluster\022Qprojects/"
+          + "{project}/locations/{location}/workstati"
+          + "onClusters/{workstation_cluster}*\023workst"
+          + "ationClusters2\022workstationClusterR\001\001\"\375\036\n"
+          + "\021WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014disp"
+          + "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022"
+          + "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022_\n\013annotation"
+          + "s\030\005 \003(\0132D.google.cloud.workstations.v1be"
+          + "ta.WorkstationConfig.AnnotationsEntryB\004\342"
+          + "A\001\001\022U\n\006labels\030\022 \003(\0132?.google.cloud.works"
+          + "tations.v1beta.WorkstationConfig.LabelsE"
+          + "ntryB\004\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google"
+          + ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time"
+          + "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003"
+          + "\0225\n\013delete_time\030\010 \001(\0132\032.google.protobuf."
+          + "TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\0225\n\014i"
+          + "dle_timeout\030\n \001(\0132\031.google.protobuf.Dura"
+          + "tionB\004\342A\001\001\0228\n\017running_timeout\030\013 \001(\0132\031.go"
+          + "ogle.protobuf.DurationB\004\342A\001\001\022L\n\004host\030\014 \001"
+          + "(\01328.google.cloud.workstations.v1beta.Wo"
+          + "rkstationConfig.HostB\004\342A\001\001\022m\n\026persistent"
+          + "_directories\030\r \003(\0132G.google.cloud.workst"
+          + "ations.v1beta.WorkstationConfig.Persiste"
+          + "ntDirectoryB\004\342A\001\001\022k\n\025ephemeral_directori"
+          + "es\030\026 \003(\0132F.google.cloud.workstations.v1b"
+          + "eta.WorkstationConfig.EphemeralDirectory"
+          + "B\004\342A\001\001\022V\n\tcontainer\030\016 \001(\0132=.google.cloud"
+          + ".workstations.v1beta.WorkstationConfig.C"
+          + "ontainerB\004\342A\001\001\022g\n\016encryption_key\030\021 \001(\0132I"
+          + ".google.cloud.workstations.v1beta.Workst"
+          + "ationConfig.CustomerEncryptionKeyB\004\342A\001\005\022"
+          + "b\n\020readiness_checks\030\023 \003(\0132B.google.cloud"
+          + ".workstations.v1beta.WorkstationConfig.R"
+          + "eadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030\027 \003"
+          + "(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\ncon"
+          + "ditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A\001\003\022"
+          + " \n\022enable_audit_agent\030\024 \001(\010B\004\342A\001\001\032\266\010\n\004Ho"
+          + "st\022\\\n\014gce_instance\030\001 \001(\0132D.google.cloud."
+          + "workstations.v1beta.WorkstationConfig.Ho"
+          + "st.GceInstanceH\000\032\305\007\n\013GceInstance\022\032\n\014mach"
+          + "ine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_account\030"
+          + "\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scopes\030\003 "
+          + "\003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpool_si"
+          + "ze\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030\014 \001(\005"
+          + "B\004\342A\001\003\022)\n\033disable_public_ip_addresses\030\006 "
+          + "\001(\010B\004\342A\001\001\022*\n\034enable_nested_virtualizatio"
+          + "n\030\007 \001(\010B\004\342A\001\001\022\206\001\n\030shielded_instance_conf"
+          + "ig\030\010 \001(\0132^.google.cloud.workstations.v1b"
+          + "eta.WorkstationConfig.Host.GceInstance.G"
+          + "ceShieldedInstanceConfigB\004\342A\001\001\022\216\001\n\034confi"
+          + "dential_instance_config\030\n \001(\0132b.google.c"
+          + "loud.workstations.v1beta.WorkstationConf"
+          + "ig.Host.GceInstance.GceConfidentialInsta"
+          + "nceConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001"
+          + "(\005B\004\342A\001\001\022l\n\014accelerators\030\013 \003(\0132P.google."
+          + "cloud.workstations.v1beta.WorkstationCon"
+          + "fig.Host.GceInstance.AcceleratorB\004\342A\001\001\032\203"
+          + "\001\n\031GceShieldedInstanceConfig\022 \n\022enable_s"
+          + "ecure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_vtpm\030\002 "
+          + "\001(\010B\004\342A\001\001\022)\n\033enable_integrity_monitoring"
+          + "\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialInstanceC"
+          + "onfig\022)\n\033enable_confidential_compute\030\001 \001"
+          + "(\010B\004\342A\001\001\0326\n\013Accelerator\022\022\n\004type\030\001 \001(\tB\004\342"
+          + "A\001\001\022\023\n\005count\030\002 \001(\005B\004\342A\001\001B\010\n\006config\032\223\004\n\023P"
+          + "ersistentDirectory\022s\n\006gce_pd\030\002 \001(\0132a.goo"
+          + "gle.cloud.workstations.v1beta.Workstatio"
+          + "nConfig.PersistentDirectory.GceRegionalP"
+          + "ersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001"
+          + "\001\032\332\002\n\031GceRegionalPersistentDisk\022\025\n\007size_"
+          + "gb\030\001 \001(\005B\004\342A\001\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n"
+          + "\tdisk_type\030\003 \001(\tB\004\342A\001\001\022\035\n\017source_snapsho"
+          + "t\030\005 \001(\tB\004\342A\001\001\022\215\001\n\016reclaim_policy\030\004 \001(\0162o"
+          + ".google.cloud.workstations.v1beta.Workst"
+          + "ationConfig.PersistentDirectory.GceRegio"
+          + "nalPersistentDisk.ReclaimPolicyB\004\342A\001\001\"G\n"
+          + "\rReclaimPolicy\022\036\n\032RECLAIM_POLICY_UNSPECI"
+          + "FIED\020\000\022\n\n\006DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016direct"
+          + "ory_type\032\257\002\n\022EphemeralDirectory\022j\n\006gce_p"
+          + "d\030\003 \001(\0132X.google.cloud.workstations.v1be"
+          + "ta.WorkstationConfig.EphemeralDirectory."
+          + "GcePersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB"
+          + "\004\342A\001\002\032\200\001\n\021GcePersistentDisk\022\027\n\tdisk_type"
+          + "\030\001 \001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\002 \001(\tB\004\342"
+          + "A\001\001\022\032\n\014source_image\030\003 \001(\tB\004\342A\001\001\022\027\n\tread_"
+          + "only\030\004 \001(\010B\004\342A\001\001B\020\n\016directory_type\032\210\002\n\tC"
+          + "ontainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command"
+          + "\030\002 \003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022Y\n\003env\030"
+          + "\004 \003(\0132F.google.cloud.workstations.v1beta"
+          + ".WorkstationConfig.Container.EnvEntryB\004\342"
+          + "A\001\001\022\031\n\013working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as"
+          + "_user\030\006 \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001"
+          + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032U\n\025CustomerEncrypt"
+          + "ionKey\022\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key"
+          + "_service_account\030\002 \001(\tB\004\342A\001\005\0328\n\016Readines"
+          + "sCheck\022\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005"
+          + "B\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022"
+          + "\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key"
+          + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workst"
+          + "ations.googleapis.com/WorkstationConfig\022"
+          + "yprojects/{project}/locations/{location}"
+          + "/workstationClusters/{workstation_cluste"
+          + "r}/workstationConfigs/{workstation_confi"
+          + "g}*\022workstationConfigs2\021workstationConfi"
+          + "gR\001\001\"\213\t\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014di"
+          + "splay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001"
+          + "\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022Y\n\013annotati"
+          + "ons\030\005 \003(\0132>.google.cloud.workstations.v1"
+          + "beta.Workstation.AnnotationsEntryB\004\342A\001\001\022"
+          + "O\n\006labels\030\r \003(\01329.google.cloud.workstati"
+          + "ons.v1beta.Workstation.LabelsEntryB\004\342A\001\001"
+          + "\0225\n\013create_time\030\006 \001(\0132\032.google.protobuf."
+          + "TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\0132\032.g"
+          + "oogle.protobuf.TimestampB\004\342A\001\003\0224\n\nstart_"
+          + "time\030\016 \001(\0132\032.google.protobuf.TimestampB\004"
+          + "\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google.proto"
+          + "buf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022"
+          + "H\n\005state\030\n \001(\01623.google.cloud.workstatio"
+          + "ns.v1beta.Workstation.StateB\004\342A\001\003\022\022\n\004hos"
+          + "t\030\013 \001(\tB\004\342A\001\003\022I\n\003env\030\014 \003(\01326.google.clou"
+          + "d.workstations.v1beta.Workstation.EnvEnt"
+          + "ryB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001("
+          + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003k"
+          + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032*\n\010EnvEntry\022"
+          + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"l\n\005State"
+          + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\022\n\016STATE_STARTIN"
+          + "G\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n\016STATE_STOPPING"
+          + "\020\003\022\021\n\rSTATE_STOPPED\020\004:\342\001\352A\336\001\n\'workstatio"
+          + "ns.googleapis.com/Workstation\022\224\001projects"
+          + "/{project}/locations/{location}/workstat"
+          + "ionClusters/{workstation_cluster}/workst"
+          + "ationConfigs/{workstation_config}/workst"
+          + "ations/{workstation}*\014workstations2\013work"
+          + "stationR\001\001\"e\n\034GetWorkstationClusterReque"
+          + "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.workstations."
+          + "googleapis.com/WorkstationCluster\"\234\001\n\036Li"
+          + "stWorkstationClustersRequest\022G\n\006parent\030\001"
+          + " \001(\tB7\342A\001\002\372A0\022.workstations.googleapis.c"
+          + "om/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005"
+          + "B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\243\001\n\037Lis"
+          + "tWorkstationClustersResponse\022R\n\024workstat"
+          + "ion_clusters\030\001 \003(\01324.google.cloud.workst"
+          + "ations.v1beta.WorkstationCluster\022\027\n\017next"
+          + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206"
+          + "\002\n\037CreateWorkstationClusterRequest\022G\n\006pa"
+          + "rent\030\001 \001(\tB7\342A\001\002\372A0\022.workstations.google"
+          + "apis.com/WorkstationCluster\022$\n\026workstati"
+          + "on_cluster_id\030\002 \001(\tB\004\342A\001\002\022W\n\023workstation"
+          + "_cluster\030\003 \001(\01324.google.cloud.workstatio"
+          + "ns.v1beta.WorkstationClusterB\004\342A\001\002\022\033\n\rva"
+          + "lidate_only\030\004 \001(\010B\004\342A\001\001\"\353\001\n\037UpdateWorkst"
+          + "ationClusterRequest\022W\n\023workstation_clust"
+          + "er\030\001 \001(\01324.google.cloud.workstations.v1b"
+          + "eta.WorkstationClusterB\004\342A\001\002\0225\n\013update_m"
+          + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342"
+          + "A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallo"
+          + "w_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037DeleteWorkstat"
+          + "ionClusterRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0"
+          + "\n.workstations.googleapis.com/Workstatio"
+          + "nCluster\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n"
+          + "\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"c"
+          + "\n\033GetWorkstationConfigRequest\022D\n\004name\030\001 "
+          + "\001(\tB6\342A\001\002\372A/\n-workstations.googleapis.co"
+          + "m/WorkstationConfig\"\233\001\n\035ListWorkstationC"
+          + "onfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n."
+          + "workstations.googleapis.com/WorkstationC"
+          + "luster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_"
+          + "token\030\003 \001(\tB\004\342A\001\001\"\240\001\n\036ListWorkstationCon"
+          + "figsResponse\022P\n\023workstation_configs\030\001 \003("
+          + "\01323.google.cloud.workstations.v1beta.Wor"
+          + "kstationConfig\022\027\n\017next_page_token\030\002 \001(\t\022"
+          + "\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsableWorks"
+          + "tationConfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A"
+          + "\001\002\372A0\n.workstations.googleapis.com/Works"
+          + "tationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030"
+          + "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\246\001\n$ListUsableW"
+          + "orkstationConfigsResponse\022P\n\023workstation"
+          + "_configs\030\001 \003(\01323.google.cloud.workstatio"
+          + "ns.v1beta.WorkstationConfig\022\027\n\017next_page"
+          + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\002\n\036Cr"
+          + "eateWorkstationConfigRequest\022G\n\006parent\030\001"
+          + " \001(\tB7\342A\001\002\372A0\n.workstations.googleapis.c"
+          + "om/WorkstationCluster\022#\n\025workstation_con"
+          + "fig_id\030\002 \001(\tB\004\342A\001\002\022U\n\022workstation_config"
+          + "\030\003 \001(\01323.google.cloud.workstations.v1bet"
+          + "a.WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_on"
+          + "ly\030\004 \001(\010B\004\342A\001\001\"\350\001\n\036UpdateWorkstationConf"
+          + "igRequest\022U\n\022workstation_config\030\001 \001(\01323."
+          + "google.cloud.workstations.v1beta.Worksta"
+          + "tionConfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032."
+          + "google.protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalid"
+          + "ate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 "
+          + "\001(\010B\004\342A\001\001\"\254\001\n\036DeleteWorkstationConfigReq"
+          + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstation"
+          + "s.googleapis.com/WorkstationConfig\022\033\n\rva"
+          + "lidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342"
+          + "A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstati"
+          + "onRequest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workst"
+          + "ations.googleapis.com/Workstation\"\224\001\n\027Li"
+          + "stWorkstationsRequest\022F\n\006parent\030\001 \001(\tB6\342"
+          + "A\001\002\372A/\n-workstations.googleapis.com/Work"
+          + "stationConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030"
+          + "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\231\001\n\030ListWorksta"
+          + "tionsResponse\022C\n\014workstations\030\001 \003(\0132-.go"
+          + "ogle.cloud.workstations.v1beta.Workstati"
+          + "on\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unr"
+          + "eachable\030\003 \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorks"
+          + "tationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n"
+          + "-workstations.googleapis.com/Workstation"
+          + "Config\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_"
+          + "token\030\003 \001(\tB\004\342A\001\001\"\223\001\n\036ListUsableWorkstat"
+          + "ionsResponse\022C\n\014workstations\030\001 \003(\0132-.goo"
+          + "gle.cloud.workstations.v1beta.Workstatio"
+          + "n\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl"
+          + "e\030\003 \003(\t\"\347\001\n\030CreateWorkstationRequest\022F\n\006"
+          + "parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog"
+          + "leapis.com/WorkstationConfig\022\034\n\016workstat"
+          + "ion_id\030\002 \001(\tB\004\342A\001\002\022H\n\013workstation\030\003 \001(\0132"
+          + "-.google.cloud.workstations.v1beta.Works"
+          + "tationB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001"
+          + "\001\"\325\001\n\030UpdateWorkstationRequest\022H\n\013workst"
+          + "ation\030\001 \001(\0132-.google.cloud.workstations."
+          + "v1beta.WorkstationB\004\342A\001\002\0225\n\013update_mask\030"
+          + "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022"
+          + "\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_mi"
+          + "ssing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030DeleteWorkstationR"
+          + "equest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstati"
+          + "ons.googleapis.com/Workstation\022\033\n\rvalida"
+          + "te_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\""
+          + "\212\001\n\027StartWorkstationRequest\022>\n\004name\030\001 \001("
+          + "\tB0\342A\001\002\372A)\n\'workstations.googleapis.com/"
+          + "Workstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001"
+          + "\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211\001\n\026StopWorkstation"
+          + "Request\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstat"
+          + "ions.googleapis.com/Workstation\022\033\n\rvalid"
+          + "ate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001"
+          + "\"\316\001\n\032GenerateAccessTokenRequest\0221\n\013expir"
+          + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp"
+          + "H\000\022(\n\003ttl\030\003 \001(\0132\031.google.protobuf.Durati"
+          + "onH\000\022E\n\013workstation\030\001 \001(\tB0\342A\001\002\372A)\n\'work"
+          + "stations.googleapis.com/WorkstationB\014\n\ne"
+          + "xpiration\"d\n\033GenerateAccessTokenResponse"
+          + "\022\024\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 "
+          + "\001(\0132\032.google.protobuf.Timestamp\"\207\002\n\021Oper"
+          + "ationMetadata\0225\n\013create_time\030\001 \001(\0132\032.goo"
+          + "gle.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time"
+          + "\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003"
+          + "\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A"
+          + "\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n\026requ"
+          + "ested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_ve"
+          + "rsion\030\007 \001(\tB\004\342A\001\0032\337+\n\014Workstations\022\331\001\n\025G"
+          + "etWorkstationCluster\022>.google.cloud.work"
+          + "stations.v1beta.GetWorkstationClusterReq"
+          + "uest\0324.google.cloud.workstations.v1beta."
+          + "WorkstationCluster\"J\332A\004name\202\323\344\223\002=\022;/v1be"
+          + "ta/{name=projects/*/locations/*/workstat"
+          + "ionClusters/*}\022\354\001\n\027ListWorkstationCluste"
+          + "rs\022@.google.cloud.workstations.v1beta.Li"
+          + "stWorkstationClustersRequest\032A.google.cl"
+          + "oud.workstations.v1beta.ListWorkstationC"
+          + "lustersResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1bet"
+          + "a/{parent=projects/*/locations/*}/workst"
+          + "ationClusters\022\265\002\n\030CreateWorkstationClust"
+          + "er\022A.google.cloud.workstations.v1beta.Cr"
+          + "eateWorkstationClusterRequest\032\035.google.l"
+          + "ongrunning.Operation\"\266\001\312A\'\n\022WorkstationC"
+          + "luster\022\021OperationMetadata\332A1parent,works"
+          + "tation_cluster,workstation_cluster_id\202\323\344"
+          + "\223\002R\";/v1beta/{parent=projects/*/location"
+          + "s/*}/workstationClusters:\023workstation_cl"
+          + "uster\022\267\002\n\030UpdateWorkstationCluster\022A.goo"
+          + "gle.cloud.workstations.v1beta.UpdateWork"
+          + "stationClusterRequest\032\035.google.longrunni"
+          + "ng.Operation\"\270\001\312A\'\n\022WorkstationCluster\022\021"
+          + "OperationMetadata\332A\037workstation_cluster,"
+          + "update_mask\202\323\344\223\002f2O/v1beta/{workstation_"
+          + "cluster.name=projects/*/locations/*/work"
+          + "stationClusters/*}:\023workstation_cluster\022"
+          + "\362\001\n\030DeleteWorkstationCluster\022A.google.cl"
+          + "oud.workstations.v1beta.DeleteWorkstatio"
+          + "nClusterRequest\032\035.google.longrunning.Ope"
+          + "ration\"t\312A\'\n\022WorkstationCluster\022\021Operati"
+          + "onMetadata\332A\004name\202\323\344\223\002=*;/v1beta/{name=p"
+          + "rojects/*/locations/*/workstationCluster"
+          + "s/*}\022\353\001\n\024GetWorkstationConfig\022=.google.c"
+          + "loud.workstations.v1beta.GetWorkstationC"
+          + "onfigRequest\0323.google.cloud.workstations"
+          + ".v1beta.WorkstationConfig\"_\332A\004name\202\323\344\223\002R"
+          + "\022P/v1beta/{name=projects/*/locations/*/w"
+          + "orkstationClusters/*/workstationConfigs/"
+          + "*}\022\376\001\n\026ListWorkstationConfigs\022?.google.c"
+          + "loud.workstations.v1beta.ListWorkstation"
+          + "ConfigsRequest\032@.google.cloud.workstatio"
+          + "ns.v1beta.ListWorkstationConfigsResponse"
+          + "\"a\332A\006parent\202\323\344\223\002R\022P/v1beta/{parent=proje"
+          + "cts/*/locations/*/workstationClusters/*}"
+          + "/workstationConfigs\022\233\002\n\034ListUsableWorkst"
+          + "ationConfigs\022E.google.cloud.workstations"
+          + ".v1beta.ListUsableWorkstationConfigsRequ"
+          + "est\032F.google.cloud.workstations.v1beta.L"
+          + "istUsableWorkstationConfigsResponse\"l\332A\006"
+          + "parent\202\323\344\223\002]\022[/v1beta/{parent=projects/*"
+          + "/locations/*/workstationClusters/*}/work"
+          + "stationConfigs:listUsable\022\304\002\n\027CreateWork"
+          + "stationConfig\022@.google.cloud.workstation"
+          + "s.v1beta.CreateWorkstationConfigRequest\032"
+          + "\035.google.longrunning.Operation\"\307\001\312A&\n\021Wo"
+          + "rkstationConfig\022\021OperationMetadata\332A/par"
+          + "ent,workstation_config,workstation_confi"
+          + "g_id\202\323\344\223\002f\"P/v1beta/{parent=projects/*/l"
+          + "ocations/*/workstationClusters/*}/workst"
+          + "ationConfigs:\022workstation_config\022\306\002\n\027Upd"
+          + "ateWorkstationConfig\022@.google.cloud.work"
+          + "stations.v1beta.UpdateWorkstationConfigR"
+          + "equest\032\035.google.longrunning.Operation\"\311\001"
+          + "\312A&\n\021WorkstationConfig\022\021OperationMetadat"
+          + "a\332A\036workstation_config,update_mask\202\323\344\223\002y"
+          + "2c/v1beta/{workstation_config.name=proje"
+          + "cts/*/locations/*/workstationClusters/*/"
+          + "workstationConfigs/*}:\022workstation_confi"
+          + "g\022\205\002\n\027DeleteWorkstationConfig\022@.google.c"
+          + "loud.workstations.v1beta.DeleteWorkstati"
+          + "onConfigRequest\032\035.google.longrunning.Ope"
+          + "ration\"\210\001\312A&\n\021WorkstationConfig\022\021Operati"
+          + "onMetadata\332A\004name\202\323\344\223\002R*P/v1beta/{name=p"
+          + "rojects/*/locations/*/workstationCluster"
+          + "s/*/workstationConfigs/*}\022\350\001\n\016GetWorksta"
+          + "tion\0227.google.cloud.workstations.v1beta."
+          + "GetWorkstationRequest\032-.google.cloud.wor"
+          + "kstations.v1beta.Workstation\"n\332A\004name\202\323\344"
+          + "\223\002a\022_/v1beta/{name=projects/*/locations/"
+          + "*/workstationClusters/*/workstationConfi"
+          + "gs/*/workstations/*}\022\373\001\n\020ListWorkstation"
+          + "s\0229.google.cloud.workstations.v1beta.Lis"
+          + "tWorkstationsRequest\032:.google.cloud.work"
+          + "stations.v1beta.ListWorkstationsResponse"
+          + "\"p\332A\006parent\202\323\344\223\002a\022_/v1beta/{parent=proje"
+          + "cts/*/locations/*/workstationClusters/*/"
+          + "workstationConfigs/*}/workstations\022\230\002\n\026L"
+          + "istUsableWorkstations\022?.google.cloud.wor"
+          + "kstations.v1beta.ListUsableWorkstationsR"
+          + "equest\032@.google.cloud.workstations.v1bet"
+          + "a.ListUsableWorkstationsResponse\"{\332A\006par"
+          + "ent\202\323\344\223\002l\022j/v1beta/{parent=projects/*/lo"
+          + "cations/*/workstationClusters/*/workstat"
+          + "ionConfigs/*}/workstations:listUsable\022\254\002"
+          + "\n\021CreateWorkstation\022:.google.cloud.works"
+          + "tations.v1beta.CreateWorkstationRequest\032"
+          + "\035.google.longrunning.Operation\"\273\001\312A \n\013Wo"
+          + "rkstation\022\021OperationMetadata\332A!parent,wo"
+          + "rkstation,workstation_id\202\323\344\223\002n\"_/v1beta/"
+          + "{parent=projects/*/locations/*/workstati"
+          + "onClusters/*/workstationConfigs/*}/works"
+          + "tations:\013workstation\022\256\002\n\021UpdateWorkstati"
+          + "on\022:.google.cloud.workstations.v1beta.Up"
+          + "dateWorkstationRequest\032\035.google.longrunn"
+          + "ing.Operation\"\275\001\312A \n\013Workstation\022\021Operat"
+          + "ionMetadata\332A\027workstation,update_mask\202\323\344"
+          + "\223\002z2k/v1beta/{workstation.name=projects/"
+          + "*/locations/*/workstationClusters/*/work"
+          + "stationConfigs/*/workstations/*}:\013workst"
+          + "ation\022\202\002\n\021DeleteWorkstation\022:.google.clo"
+          + "ud.workstations.v1beta.DeleteWorkstation"
+          + "Request\032\035.google.longrunning.Operation\"\221"
+          + "\001\312A \n\013Workstation\022\021OperationMetadata\332A\004n"
+          + "ame\202\323\344\223\002a*_/v1beta/{name=projects/*/loca",
+      "tions/*/workstationClusters/*/workstatio"
+          + "nConfigs/*/workstations/*}\022\211\002\n\020StartWork"
+          + "station\0229.google.cloud.workstations.v1be"
+          + "ta.StartWorkstationRequest\032\035.google.long"
+          + "running.Operation\"\232\001\312A \n\013Workstation\022\021Op"
+          + "erationMetadata\332A\004name\202\323\344\223\002j\"e/v1beta/{n"
+          + "ame=projects/*/locations/*/workstationCl"
+          + "usters/*/workstationConfigs/*/workstatio"
+          + "ns/*}:start:\001*\022\206\002\n\017StopWorkstation\0228.goo"
+          + "gle.cloud.workstations.v1beta.StopWorkst"
+          + "ationRequest\032\035.google.longrunning.Operat"
+          + "ion\"\231\001\312A \n\013Workstation\022\021OperationMetadat"
+          + "a\332A\004name\202\323\344\223\002i\"d/v1beta/{name=projects/*"
+          + "/locations/*/workstationClusters/*/works"
+          + "tationConfigs/*/workstations/*}:stop:\001*\022"
+          + "\250\002\n\023GenerateAccessToken\022<.google.cloud.w"
+          + "orkstations.v1beta.GenerateAccessTokenRe"
+          + "quest\032=.google.cloud.workstations.v1beta"
+          + ".GenerateAccessTokenResponse\"\223\001\332A\013workst"
+          + "ation\202\323\344\223\002\177\"z/v1beta/{workstation=projec"
+          + "ts/*/locations/*/workstationClusters/*/w"
+          + "orkstationConfigs/*/workstations/*}:gene"
+          + "rateAccessToken:\001*\032O\312A\033workstations.goog"
+          + "leapis.com\322A.https://www.googleapis.com/"
+          + "auth/cloud-platformB\205\001\n$com.google.cloud"
+          + ".workstations.v1betaB\021WorkstationsProtoP"
+          + "\001ZHcloud.google.com/go/workstations/apiv"
+          + "1beta/workstationspb;workstationspbb\006pro"
+          + "to3"
+    };
+    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.longrunning.OperationsProto.getDescriptor(),
+              com.google.protobuf.DurationProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+              com.google.rpc.StatusProto.getDescriptor(),
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "Uid",
+              "Reconciling",
+              "Annotations",
+              "Labels",
+              "CreateTime",
+              "UpdateTime",
+              "DeleteTime",
+              "Etag",
+              "Network",
+              "Subnetwork",
+              "ControlPlaneIp",
+              "PrivateClusterConfig",
+              "Degraded",
+              "Conditions",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor,
+            new java.lang.String[] {
+              "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor
+            .getNestedTypes()
+            .get(2);
+    internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "Uid",
+              "Reconciling",
+              "Annotations",
+              "Labels",
+              "CreateTime",
+              "UpdateTime",
+              "DeleteTime",
+              "Etag",
+              "IdleTimeout",
+              "RunningTimeout",
+              "Host",
+              "PersistentDirectories",
+              "EphemeralDirectories",
+              "Container",
+              "EncryptionKey",
+              "ReadinessChecks",
+              "ReplicaZones",
+              "Degraded",
+              "Conditions",
+              "EnableAuditAgent",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor,
+            new java.lang.String[] {
+              "GceInstance", "Config",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor,
+            new java.lang.String[] {
+              "MachineType",
+              "ServiceAccount",
+              "ServiceAccountScopes",
+              "Tags",
+              "PoolSize",
+              "PooledInstances",
+              "DisablePublicIpAddresses",
+              "EnableNestedVirtualization",
+              "ShieldedInstanceConfig",
+              "ConfidentialInstanceConfig",
+              "BootDiskSizeGb",
+              "Accelerators",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor,
+            new java.lang.String[] {
+              "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor,
+            new java.lang.String[] {
+              "EnableConfidentialCompute",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor
+            .getNestedTypes()
+            .get(2);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor,
+            new java.lang.String[] {
+              "Type", "Count",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor,
+            new java.lang.String[] {
+              "GcePd", "MountPath", "DirectoryType",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor,
+            new java.lang.String[] {
+              "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(2);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor,
+            new java.lang.String[] {
+              "GcePd", "MountPath", "DirectoryType",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor,
+            new java.lang.String[] {
+              "DiskType", "SourceSnapshot", "SourceImage", "ReadOnly",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(3);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor,
+            new java.lang.String[] {
+              "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(4);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor,
+            new java.lang.String[] {
+              "KmsKey", "KmsKeyServiceAccount",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(5);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor,
+            new java.lang.String[] {
+              "Path", "Port",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(6);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor
+            .getNestedTypes()
+            .get(7);
+    internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_Workstation_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_Workstation_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "DisplayName",
+              "Uid",
+              "Reconciling",
+              "Annotations",
+              "Labels",
+              "CreateTime",
+              "UpdateTime",
+              "StartTime",
+              "DeleteTime",
+              "Etag",
+              "State",
+              "Host",
+              "Env",
+            });
+    internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_Workstation_descriptor
+            .getNestedTypes()
+            .get(0);
+    internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_Workstation_descriptor
+            .getNestedTypes()
+            .get(1);
+    internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor =
+        internal_static_google_cloud_workstations_v1beta_Workstation_descriptor
+            .getNestedTypes()
+            .get(2);
+    internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor,
+            new java.lang.String[] {
+              "WorkstationClusters", "NextPageToken", "Unreachable",
+            });
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly",
+            });
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor,
+            new java.lang.String[] {
+              "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing",
+            });
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "ValidateOnly", "Etag", "Force",
+            });
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor,
+            new java.lang.String[] {
+              "WorkstationConfigs", "NextPageToken", "Unreachable",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor,
+            new java.lang.String[] {
+              "WorkstationConfigs", "NextPageToken", "Unreachable",
+            });
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(14);
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly",
+            });
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(15);
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor,
+            new java.lang.String[] {
+              "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing",
+            });
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor =
+        getDescriptor().getMessageTypes().get(16);
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "ValidateOnly", "Etag", "Force",
+            });
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(17);
+    internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(18);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(19);
+    internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor,
+            new java.lang.String[] {
+              "Workstations", "NextPageToken", "Unreachable",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor =
+        getDescriptor().getMessageTypes().get(20);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor =
+        getDescriptor().getMessageTypes().get(21);
+    internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor,
+            new java.lang.String[] {
+              "Workstations", "NextPageToken", "Unreachable",
+            });
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(22);
+    internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "WorkstationId", "Workstation", "ValidateOnly",
+            });
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(23);
+    internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor,
+            new java.lang.String[] {
+              "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing",
+            });
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(24);
+    internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "ValidateOnly", "Etag",
+            });
+    internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(25);
+    internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "ValidateOnly", "Etag",
+            });
+    internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor =
+        getDescriptor().getMessageTypes().get(26);
+    internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor,
+            new java.lang.String[] {
+              "Name", "ValidateOnly", "Etag",
+            });
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor =
+        getDescriptor().getMessageTypes().get(27);
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor,
+            new java.lang.String[] {
+              "ExpireTime", "Ttl", "Workstation", "Expiration",
+            });
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor =
+        getDescriptor().getMessageTypes().get(28);
+    internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor,
+            new java.lang.String[] {
+              "AccessToken", "ExpireTime",
+            });
+    internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor =
+        getDescriptor().getMessageTypes().get(29);
+    internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor,
+            new java.lang.String[] {
+              "CreateTime",
+              "EndTime",
+              "Target",
+              "Verb",
+              "StatusMessage",
+              "RequestedCancellation",
+              "ApiVersion",
+            });
+    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.resource);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    registry.add(com.google.longrunning.OperationsProto.operationInfo);
+    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.longrunning.OperationsProto.getDescriptor();
+    com.google.protobuf.DurationProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+    com.google.rpc.StatusProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto b/java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto
rename to java-workstations/proto-google-cloud-workstations-v1beta/src/main/proto/google/cloud/workstations/v1beta/workstations.proto
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/AsyncCreateWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessToken.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/AsyncGetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getiampolicy/SyncGetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/AsyncGetWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClusters.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/AsyncListWorkstationsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/AsyncSetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/setiampolicy/SyncSetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/AsyncStartWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/AsyncStopWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/AsyncTestIamPermissions.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/testiampermissions/SyncTestIamPermissions.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
diff --git a/owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/stub/workstationsstubsettings/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetCredentialsProvider1.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/AsyncCreateWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationStringWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstation/SyncCreateWorkstationWorkstationconfignameWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/AsyncCreateWorkstationClusterLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterLocationnameWorkstationclusterString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationcluster/SyncCreateWorkstationClusterStringWorkstationclusterString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/AsyncCreateWorkstationConfigLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigStringWorkstationconfigString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/createworkstationconfig/SyncCreateWorkstationConfigWorkstationclusternameWorkstationconfigString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/AsyncDeleteWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstation/SyncDeleteWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/AsyncDeleteWorkstationClusterLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationcluster/SyncDeleteWorkstationClusterWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/AsyncDeleteWorkstationConfigLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/deleteworkstationconfig/SyncDeleteWorkstationConfigWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/AsyncGenerateAccessToken.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessToken.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/generateaccesstoken/SyncGenerateAccessTokenWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/AsyncGetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getiampolicy/SyncGetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/AsyncGetWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstation/SyncGetWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/AsyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationcluster/SyncGetWorkstationClusterWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/AsyncGetWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/getworkstationconfig/SyncGetWorkstationConfigWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/AsyncListUsableWorkstationConfigsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstationconfigs/SyncListUsableWorkstationConfigsWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/AsyncListUsableWorkstationsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listusableworkstations/SyncListUsableWorkstationsWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClusters.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/AsyncListWorkstationClustersPaged.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClusters.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersLocationname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationclusters/SyncListWorkstationClustersString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/AsyncListWorkstationConfigsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigs.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstationconfigs/SyncListWorkstationConfigsWorkstationclustername.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/AsyncListWorkstationsPaged.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstations.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/listworkstations/SyncListWorkstationsWorkstationconfigname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/AsyncSetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/setiampolicy/SyncSetIamPolicy.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/AsyncStartWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/startworkstation/SyncStartWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/AsyncStopWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationString.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/stopworkstation/SyncStopWorkstationWorkstationname.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/AsyncTestIamPermissions.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/testiampermissions/SyncTestIamPermissions.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/AsyncUpdateWorkstationLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstation.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstation/SyncUpdateWorkstationWorkstationFieldmask.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/AsyncUpdateWorkstationClusterLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationCluster.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationcluster/SyncUpdateWorkstationClusterWorkstationclusterFieldmask.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/AsyncUpdateWorkstationConfigLRO.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfig.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstations/updateworkstationconfig/SyncUpdateWorkstationConfigWorkstationconfigFieldmask.java
diff --git a/owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java b/java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
similarity index 100%
rename from owl-bot-staging/java-workstations/v1beta/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
rename to java-workstations/samples/snippets/generated/com/google/cloud/workstations/v1beta/workstationssettings/getworkstationcluster/SyncGetWorkstationCluster.java
diff --git a/owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java b/owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
deleted file mode 100644
index 6c967d8ed696..000000000000
--- a/owl-bot-staging/java-websecurityscanner/v1/grpc-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerGrpc.java
+++ /dev/null
@@ -1,1371 +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 java.lang.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 interface AsyncService { - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default void deleteScanConfig(com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void startScanRun(com.google.cloud.websecurityscanner.v1.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listCrawledUrls(com.google.cloud.websecurityscanner.v1.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listFindingTypeStats(com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service WebSecurityScanner. - *
-   * 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, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return WebSecurityScannerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.DeleteScanConfigRequest, - com.google.protobuf.Empty>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingsResponse>( - service, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse>( - service, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - - 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 java.lang.String methodName; - - WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/CrawledUrlProto.java deleted file mode 100644 index 08e4edd2a0b5..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\205\002\n&com" + - ".google.cloud.websecurityscanner.v1B\017Cra" + - "wledUrlProtoP\001ZVcloud.google.com/go/webs" + - "ecurityscanner/apiv1/websecurityscannerp" + - "b;websecurityscannerpb\252\002\"Google.Cloud.We" + - "bSecurityScanner.V1\312\002\"Google\\Cloud\\WebSe" + - "curityScanner\\V1\352\002%Google::Cloud::WebSec" + - "urityScanner::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java deleted file mode 100644 index 601f9721494c..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingAddonProto.java +++ /dev/null @@ -1,160 +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; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_websecurityscanner_v1_Xxe_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\017\"\251" + - "\001\n\003Xxe\022\025\n\rpayload_value\030\001 \001(\t\022J\n\020payload" + - "_location\030\002 \001(\01620.google.cloud.websecuri" + - "tyscanner.v1.Xxe.Location\"?\n\010Location\022\030\n" + - "\024LOCATION_UNSPECIFIED\020\000\022\031\n\025COMPLETE_REQU" + - "EST_BODY\020\001B\207\002\n&com.google.cloud.websecur" + - "ityscanner.v1B\021FindingAddonProtoP\001ZVclou" + - "d.google.com/go/websecurityscanner/apiv1" + - "/websecurityscannerpb;websecurityscanner" + - "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" + - "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" + - "oogle::Cloud::WebSecurityScanner::V1b\006pr" + - "oto3" - }; - 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", }); - internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_websecurityscanner_v1_Xxe_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_websecurityscanner_v1_Xxe_descriptor, - new java.lang.String[] { "PayloadValue", "PayloadLocation", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java deleted file mode 100644 index 0621a1ce6000..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingProto.java +++ /dev/null @@ -1,94 +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\"\356\007\n\007Finding\022\014\n\004name\030\001 \001(\t\022\024\n\014finding_" + - "type\030\002 \001(\t\022L\n\010severity\030\021 \001(\01624.google.cl" + - "oud.websecurityscanner.v1.Finding.Severi" + - "tyB\004\342A\001\003\022\023\n\013http_method\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\020reproduction_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\0226\n\004form\030\020 \001(\0132(.google.cloud.w" + - "ebsecurityscanner.v1.Form\022M\n\020outdated_li" + - "brary\030\013 \001(\01323.google.cloud.websecuritysc" + - "anner.v1.OutdatedLibrary\022Q\n\022violating_re" + - "source\030\014 \001(\01325.google.cloud.websecuritys" + - "canner.v1.ViolatingResource\022Q\n\022vulnerabl" + - "e_headers\030\017 \001(\01325.google.cloud.websecuri" + - "tyscanner.v1.VulnerableHeaders\022W\n\025vulner" + - "able_parameters\030\r \001(\01328.google.cloud.web" + - "securityscanner.v1.VulnerableParameters\022" + - "4\n\003xss\030\016 \001(\0132\'.google.cloud.websecuritys" + - "canner.v1.Xss\022:\n\003xxe\030\022 \001(\0132\'.google.clou" + - "d.websecurityscanner.v1.XxeB\004\342A\001\003\"Q\n\010Sev" + - "erity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITI" + - "CAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004:\204\001\352" + - "A\200\001\n)websecurityscanner.googleapis.com/F" + - "inding\022Sprojects/{project}/scanConfigs/{" + - "scan_config}/scanRuns/{scan_run}/finding" + - "s/{finding}B\202\002\n&com.google.cloud.websecu" + - "rityscanner.v1B\014FindingProtoP\001ZVcloud.go" + - "ogle.com/go/websecurityscanner/apiv1/web" + - "securityscannerpb;websecurityscannerpb\252\002" + - "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + - "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + - "e::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.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", "Xxe", }); - 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/FindingTypeStatsProto.java deleted file mode 100644 index e1c40642deb0..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\213\002\n&com.google.cloud.websecurityscann" + - "er.v1B\025FindingTypeStatsProtoP\001ZVcloud.go" + - "ogle.com/go/websecurityscanner/apiv1/web" + - "securityscannerpb;websecurityscannerpb\252\002" + - "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + - "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + - "e::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigErrorProto.java deleted file mode 100644 index 20338780ce3b..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\212\002\n&com.google.cloud.websec" + - "urityscanner.v1B\024ScanConfigErrorProtoP\001Z" + - "Vcloud.google.com/go/websecurityscanner/" + - "apiv1/websecurityscannerpb;websecuritysc" + - "annerpb\252\002\"Google.Cloud.WebSecurityScanne" + - "r.V1\312\002\"Google\\Cloud\\WebSecurityScanner\\V" + - "1\352\002%Google::Cloud::WebSecurityScanner::V" + - "1b\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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java deleted file mode 100644 index c3a7b9c87eae..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanConfigProto.java +++ /dev/null @@ -1,175 +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\"\305\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" + - "\022!\n\031ignore_http_status_errors\030\017 \001(\010\032\330\005\n\016" + - "Authentication\022i\n\016google_account\030\001 \001(\0132K" + - ".google.cloud.websecurityscanner.v1.Scan" + - "Config.Authentication.GoogleAccountB\002\030\001H" + - "\000\022e\n\016custom_account\030\002 \001(\0132K.google.cloud" + - ".websecurityscanner.v1.ScanConfig.Authen" + - "tication.CustomAccountH\000\022e\n\016iap_credenti" + - "al\030\004 \001(\0132K.google.cloud.websecurityscann" + - "er.v1.ScanConfig.Authentication.IapCrede" + - "ntialH\000\0327\n\rGoogleAccount\022\020\n\010username\030\001 \001" + - "(\t\022\020\n\010password\030\002 \001(\t:\002\030\001\032F\n\rCustomAccoun" + - "t\022\020\n\010username\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022\021\n" + - "\tlogin_url\030\003 \001(\t\032\371\001\n\rIapCredential\022\216\001\n\035i" + - "ap_test_service_account_info\030\001 \001(\0132e.goo" + - "gle.cloud.websecurityscanner.v1.ScanConf" + - "ig.Authentication.IapCredential.IapTestS" + - "erviceAccountInfoH\000\032D\n\031IapTestServiceAcc" + - "ountInfo\022\'\n\031target_audience_client_id\030\001 " + - "\001(\tB\004\342A\001\002B\021\n\017iap_credentialsB\020\n\016authenti" + - "cation\032]\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + - "\0132\032.google.protobuf.Timestamp\022\036\n\026interva" + - "l_duration_days\030\002 \001(\005\"`\n\tUserAgent\022\032\n\026US" + - "ER_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\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECIFIED\020\000" + - "\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToSecurit" + - "yCommandCenter\0221\n-EXPORT_TO_SECURITY_COM" + - "MAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABLED\020\001\022\014" + - "\n\010DISABLED\020\002B\205\002\n&com.google.cloud.websec" + - "urityscanner.v1B\017ScanConfigProtoP\001ZVclou" + - "d.google.com/go/websecurityscanner/apiv1" + - "/websecurityscannerpb;websecurityscanner" + - "pb\252\002\"Google.Cloud.WebSecurityScanner.V1\312" + - "\002\"Google\\Cloud\\WebSecurityScanner\\V1\352\002%G" + - "oogle::Cloud::WebSecurityScanner::V1b\006pr" + - "oto3" - }; - 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", "IgnoreHttpStatusErrors", }); - 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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunErrorTraceProto.java deleted file mode 100644 index 18233f0d16a3..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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" + - "\214\002\n&com.google.cloud.websecurityscanner." + - "v1B\026ScanRunErrorTraceProtoP\001ZVcloud.goog" + - "le.com/go/websecurityscanner/apiv1/webse" + - "curityscannerpb;websecurityscannerpb\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.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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunLogProto.java deleted file mode 100644 index 029b640d67b7..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\205\002\n&com.google.cloud.websecurit" + - "yscanner.v1B\017ScanRunLogProtoP\001ZVcloud.go" + - "ogle.com/go/websecurityscanner/apiv1/web" + - "securityscannerpb;websecurityscannerpb\252\002" + - "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + - "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + - "e::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunProto.java deleted file mode 100644 index 31e6d066651b..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\202\002\n&com.google.cloud.websecu" + - "rityscanner.v1B\014ScanRunProtoP\001ZVcloud.go" + - "ogle.com/go/websecurityscanner/apiv1/web" + - "securityscannerpb;websecurityscannerpb\252\002" + - "\"Google.Cloud.WebSecurityScanner.V1\312\002\"Go" + - "ogle\\Cloud\\WebSecurityScanner\\V1\352\002%Googl" + - "e::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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java deleted file mode 100644 index 667c96e5de3e..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/ScanRunWarningTraceProto.java +++ /dev/null @@ -1,62 +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\"\225\002\n\023ScanRunWarning" + - "Trace\022J\n\004code\030\001 \001(\0162<.google.cloud.webse" + - "curityscanner.v1.ScanRunWarningTrace.Cod" + - "e\"\261\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\004\022*\n&NO_STARTING_URL_FOU" + - "ND_FOR_MANAGED_SCAN\020\005B\216\002\n&com.google.clo" + - "ud.websecurityscanner.v1B\030ScanRunWarning" + - "TraceProtoP\001ZVcloud.google.com/go/websec" + - "urityscanner/apiv1/websecurityscannerpb;" + - "websecurityscannerpb\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_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/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java b/owl-bot-staging/java-websecurityscanner/v1/proto-google-cloud-websecurityscanner-v1/src/main/java/com/google/cloud/websecurityscanner/v1/WebSecurityScannerProto.java deleted file mode 100644 index 9d0ed3f1a9c7..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\032\027google/api/client.proto\0324goog" + - "le/cloud/websecurityscanner/v1/crawled_u" + - "rl.proto\0320google/cloud/websecurityscanne" + - "r/v1/finding.proto\032;google/cloud/websecu" + - "rityscanner/v1/finding_type_stats.proto\032" + - "4google/cloud/websecurityscanner/v1/scan" + - "_config.proto\0321google/cloud/websecuritys" + - "canner/v1/scan_run.proto\032\033google/protobu" + - "f/empty.proto\032 google/protobuf/field_mas" + - "k.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 java.lang.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 interface AsyncService { - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default void deleteScanConfig(com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void startScanRun(com.google.cloud.websecurityscanner.v1alpha.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listCrawledUrls(com.google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listFindingTypeStats(com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service WebSecurityScanner. - *
-   * 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, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return WebSecurityScannerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.DeleteScanConfigRequest, - com.google.protobuf.Empty>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingsResponse>( - service, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse>( - service, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - - 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 java.lang.String methodName; - - WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CrawledUrlProto.java deleted file mode 100644 index 1a8437d58a99..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\235\001\n+com.google.cloud.websecurityscann" + - "er.v1alphaB\017CrawledUrlProtoP\001Z[cloud.goo" + - "gle.com/go/websecurityscanner/apiv1alpha" + - "/websecurityscannerpb;websecurityscanner" + - "pbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/CreateScanConfigRequestOrBuilder.java deleted file mode 100644 index 42ad6f50df13..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 19772138df5f..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingAddonProto.java deleted file mode 100644 index 29db98b24e3d..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\237\001\n+com.goo" + - "gle.cloud.websecurityscanner.v1alphaB\021Fi" + - "ndingAddonProtoP\001Z[cloud.google.com/go/w" + - "ebsecurityscanner/apiv1alpha/websecurity" + - "scannerpb;websecurityscannerpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java deleted file mode 100644 index a46ac0fd8286..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingProto.java +++ /dev/null @@ -1,92 +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\232\001\n" + - "+com.google.cloud.websecurityscanner.v1a" + - "lphaB\014FindingProtoP\001Z[cloud.google.com/g" + - "o/websecurityscanner/apiv1alpha/websecur" + - "ityscannerpb;websecurityscannerpbb\006proto" + - "3" - }; - 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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/FindingTypeStatsProto.java deleted file mode 100644 index 167bdd57a8ca..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\243\001\n+com.google.cloud.websecuri" + - "tyscanner.v1alphaB\025FindingTypeStatsProto" + - "P\001Z[cloud.google.com/go/websecurityscann" + - "er/apiv1alpha/websecurityscannerpb;webse" + - "curityscannerpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetFindingRequestOrBuilder.java deleted file mode 100644 index 171e163667b9..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 90b3a5d63dfc..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/GetScanRunRequestOrBuilder.java deleted file mode 100644 index 7daa852d1986..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index 0ee100794975..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ListFindingTypeStatsResponseOrBuilder.java deleted file mode 100644 index c9d44f1c087d..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanConfigProto.java deleted file mode 100644 index 276717d3822e..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\"\265\n\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032" + - "\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 " + - "\001(\005\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Z\n\016auth" + - "entication\030\005 \001(\0132B.google.cloud.websecur" + - "ityscanner.v1alpha.ScanConfig.Authentica" + - "tion\022Q\n\nuser_agent\030\006 \001(\0162=.google.cloud." + - "websecurityscanner.v1alpha.ScanConfig.Us" + - "erAgent\022\032\n\022blacklist_patterns\030\007 \003(\t\022N\n\010s" + - "chedule\030\010 \001(\0132<.google.cloud.websecurity" + - "scanner.v1alpha.ScanConfig.Schedule\022\\\n\020t" + - "arget_platforms\030\t \003(\0162B.google.cloud.web" + - "securityscanner.v1alpha.ScanConfig.Targe" + - "tPlatform\022D\n\nlatest_run\030\013 \001(\01320.google.c" + - "loud.websecurityscanner.v1alpha.ScanRun\032" + - "\227\003\n\016Authentication\022j\n\016google_account\030\001 \001" + - "(\0132P.google.cloud.websecurityscanner.v1a" + - "lpha.ScanConfig.Authentication.GoogleAcc" + - "ountH\000\022j\n\016custom_account\030\002 \001(\0132P.google." + - "cloud.websecurityscanner.v1alpha.ScanCon" + - "fig.Authentication.CustomAccountH\000\032@\n\rGo" + - "ogleAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010p" + - "assword\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n" + - "\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB" + - "\005\342A\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authe" + - "ntication\032c\n\010Schedule\0221\n\rschedule_time\030\001" + - " \001(\0132\032.google.protobuf.Timestamp\022$\n\026inte" + - "rval_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAg" + - "ent\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROM" + - "E_LINUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_" + - "IPHONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLA" + - "TFORM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007C" + - "OMPUTE\020\002:_\352A\\\n,websecurityscanner.google" + - "apis.com/ScanConfig\022,projects/{project}/" + - "scanConfigs/{scan_config}B\235\001\n+com.google" + - ".cloud.websecurityscanner.v1alphaB\017ScanC" + - "onfigProtoP\001Z[cloud.google.com/go/websec" + - "urityscanner/apiv1alpha/websecurityscann" + - "erpb;websecurityscannerpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/ScanRunProto.java deleted file mode 100644 index 00fecbcea94a..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\232\001\n+com.google.cloud.websecurity" + - "scanner.v1alphaB\014ScanRunProtoP\001Z[cloud.g" + - "oogle.com/go/websecurityscanner/apiv1alp" + - "ha/websecurityscannerpb;websecurityscann" + - "erpbb\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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StartScanRunRequestOrBuilder.java deleted file mode 100644 index c678b425a19f..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/StopScanRunRequestOrBuilder.java deleted file mode 100644 index 20f3af5ab04a..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java b/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java deleted file mode 100644 index c63d213c4401..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1alpha/proto-google-cloud-websecurityscanner-v1alpha/src/main/java/com/google/cloud/websecurityscanner/v1alpha/WebSecurityScannerProto.java +++ /dev/null @@ -1,409 +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\"\257\001\n\027CreateScanCon" + - "figRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+clo" + - "udresourcemanager.googleapis.com/Project" + - "\022N\n\013scan_config\030\002 \001(\01323.google.cloud.web" + - "securityscanner.v1alpha.ScanConfigB\004\342A\001\002" + - "\"^\n\027DeleteScanConfigRequest\022C\n\004name\030\001 \001(" + - "\tB5\342A\001\002\372A.\n,websecurityscanner.googleapi" + - "s.com/ScanConfig\"[\n\024GetScanConfigRequest" + - "\022C\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscan" + - "ner.googleapis.com/ScanConfig\"\205\001\n\026ListSc" + - "anConfigsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A" + - "-\n+cloudresourcemanager.googleapis.com/P" + - "roject\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + - "\003 \001(\005\"\240\001\n\027UpdateScanConfigRequest\022N\n\013sca" + - "n_config\030\002 \001(\01323.google.cloud.websecurit" + - "yscanner.v1alpha.ScanConfigB\004\342A\001\002\0225\n\013upd" + - "ate_mask\030\003 \001(\0132\032.google.protobuf.FieldMa" + - "skB\004\342A\001\002\"}\n\027ListScanConfigsResponse\022I\n\014s" + - "can_configs\030\001 \003(\01323.google.cloud.websecu" + - "rityscanner.v1alpha.ScanConfig\022\027\n\017next_p" + - "age_token\030\002 \001(\t\"Z\n\023StartScanRunRequest\022C" + - "\n\004name\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanne" + - "r.googleapis.com/ScanConfig\"U\n\021GetScanRu" + - "nRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecu" + - "rityscanner.googleapis.com/ScanRun\"\203\001\n\023L" + - "istScanRunsRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\002" + - "\372A.\n,websecurityscanner.googleapis.com/S" + - "canConfig\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_si" + - "ze\030\003 \001(\005\"t\n\024ListScanRunsResponse\022C\n\tscan" + - "_runs\030\001 \003(\01320.google.cloud.websecuritysc" + - "anner.v1alpha.ScanRun\022\027\n\017next_page_token" + - "\030\002 \001(\t\"V\n\022StopScanRunRequest\022@\n\004name\030\001 \001" + - "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" + - "is.com/ScanRun\"\203\001\n\026ListCrawledUrlsReques" + - "t\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)websecuritys" + - "canner.googleapis.com/ScanRun\022\022\n\npage_to" + - "ken\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"}\n\027ListCraw" + - "ledUrlsResponse\022I\n\014crawled_urls\030\001 \003(\01323." + - "google.cloud.websecurityscanner.v1alpha." + - "CrawledUrl\022\027\n\017next_page_token\030\002 \001(\t\"U\n\021G" + - "etFindingRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + - ")websecurityscanner.googleapis.com/Findi" + - "ng\"\226\001\n\023ListFindingsRequest\022B\n\006parent\030\001 \001" + - "(\tB2\342A\001\002\372A+\n)websecurityscanner.googleap" + - "is.com/ScanRun\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\n" + - "page_token\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\"s\n\024L" + - "istFindingsResponse\022B\n\010findings\030\001 \003(\01320." + - "google.cloud.websecurityscanner.v1alpha." + - "Finding\022\027\n\017next_page_token\030\002 \001(\t\"a\n\033List" + - "FindingTypeStatsRequest\022B\n\006parent\030\001 \001(\tB" + - "2\342A\001\002\372A+\n)websecurityscanner.googleapis." + - "com/ScanRun\"u\n\034ListFindingTypeStatsRespo" + - "nse\022U\n\022finding_type_stats\030\001 \003(\01329.google" + - ".cloud.websecurityscanner.v1alpha.Findin" + - "gTypeStats2\264\026\n\022WebSecurityScanner\022\335\001\n\020Cr" + - "eateScanConfig\022@.google.cloud.websecurit" + - "yscanner.v1alpha.CreateScanConfigRequest" + - "\0323.google.cloud.websecurityscanner.v1alp" + - "ha.ScanConfig\"R\332A\022parent,scan_config\202\323\344\223" + - "\0027\"(/v1alpha/{parent=projects/*}/scanCon" + - "figs:\013scan_config\022\245\001\n\020DeleteScanConfig\022@" + - ".google.cloud.websecurityscanner.v1alpha" + - ".DeleteScanConfigRequest\032\026.google.protob" + - "uf.Empty\"7\332A\004name\202\323\344\223\002**(/v1alpha/{name=" + - "projects/*/scanConfigs/*}\022\274\001\n\rGetScanCon" + - "fig\022=.google.cloud.websecurityscanner.v1" + - "alpha.GetScanConfigRequest\0323.google.clou" + - "d.websecurityscanner.v1alpha.ScanConfig\"" + - "7\332A\004name\202\323\344\223\002*\022(/v1alpha/{name=projects/" + - "*/scanConfigs/*}\022\317\001\n\017ListScanConfigs\022?.g" + - "oogle.cloud.websecurityscanner.v1alpha.L" + - "istScanConfigsRequest\032@.google.cloud.web" + - "securityscanner.v1alpha.ListScanConfigsR" + - "esponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/{pare" + - "nt=projects/*}/scanConfigs\022\356\001\n\020UpdateSca" + - "nConfig\022@.google.cloud.websecurityscanne" + - "r.v1alpha.UpdateScanConfigRequest\0323.goog" + - "le.cloud.websecurityscanner.v1alpha.Scan" + - "Config\"c\332A\027scan_config,update_mask\202\323\344\223\002C" + - "24/v1alpha/{scan_config.name=projects/*/" + - "scanConfigs/*}:\013scan_config\022\300\001\n\014StartSca" + - "nRun\022<.google.cloud.websecurityscanner.v" + - "1alpha.StartScanRunRequest\0320.google.clou" + - "d.websecurityscanner.v1alpha.ScanRun\"@\332A" + - "\004name\202\323\344\223\0023\"./v1alpha/{name=projects/*/s" + - "canConfigs/*}:start:\001*\022\276\001\n\nGetScanRun\022:." + - "google.cloud.websecurityscanner.v1alpha." + - "GetScanRunRequest\0320.google.cloud.websecu" + - "rityscanner.v1alpha.ScanRun\"B\332A\004name\202\323\344\223" + - "\0025\0223/v1alpha/{name=projects/*/scanConfig" + - "s/*/scanRuns/*}\022\321\001\n\014ListScanRuns\022<.googl" + - "e.cloud.websecurityscanner.v1alpha.ListS" + - "canRunsRequest\032=.google.cloud.websecurit" + - "yscanner.v1alpha.ListScanRunsResponse\"D\332" + - "A\006parent\202\323\344\223\0025\0223/v1alpha/{parent=project" + - "s/*/scanConfigs/*}/scanRuns\022\310\001\n\013StopScan" + - "Run\022;.google.cloud.websecurityscanner.v1" + - "alpha.StopScanRunRequest\0320.google.cloud." + - "websecurityscanner.v1alpha.ScanRun\"J\332A\004n" + - "ame\202\323\344\223\002=\"8/v1alpha/{name=projects/*/sca" + - "nConfigs/*/scanRuns/*}:stop:\001*\022\350\001\n\017ListC" + - "rawledUrls\022?.google.cloud.websecuritysca" + - "nner.v1alpha.ListCrawledUrlsRequest\032@.go" + - "ogle.cloud.websecurityscanner.v1alpha.Li" + - "stCrawledUrlsResponse\"R\332A\006parent\202\323\344\223\002C\022A" + - "/v1alpha/{parent=projects/*/scanConfigs/" + - "*/scanRuns/*}/crawledUrls\022\311\001\n\nGetFinding" + - "\022:.google.cloud.websecurityscanner.v1alp" + - "ha.GetFindingRequest\0320.google.cloud.webs" + - "ecurityscanner.v1alpha.Finding\"M\332A\004name\202" + - "\323\344\223\002@\022>/v1alpha/{name=projects/*/scanCon" + - "figs/*/scanRuns/*/findings/*}\022\343\001\n\014ListFi" + - "ndings\022<.google.cloud.websecurityscanner" + - ".v1alpha.ListFindingsRequest\032=.google.cl" + - "oud.websecurityscanner.v1alpha.ListFindi" + - "ngsResponse\"V\332A\rparent,filter\202\323\344\223\002@\022>/v1" + - "alpha/{parent=projects/*/scanConfigs/*/s" + - "canRuns/*}/findings\022\374\001\n\024ListFindingTypeS" + - "tats\022D.google.cloud.websecurityscanner.v" + - "1alpha.ListFindingTypeStatsRequest\032E.goo" + - "gle.cloud.websecurityscanner.v1alpha.Lis" + - "tFindingTypeStatsResponse\"W\332A\006parent\202\323\344\223" + - "\002H\022F/v1alpha/{parent=projects/*/scanConf" + - "igs/*/scanRuns/*}/findingTypeStats\032U\312A!w" + - "ebsecurityscanner.googleapis.com\322A.https" + - "://www.googleapis.com/auth/cloud-platfor" + - "mB\245\001\n+com.google.cloud.websecurityscanne" + - "r.v1alphaB\027WebSecurityScannerProtoP\001Z[cl" + - "oud.google.com/go/websecurityscanner/api" + - "v1alpha/websecurityscannerpb;websecurity" + - "scannerpbb\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/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java b/owl-bot-staging/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java deleted file mode 100644 index 37d866218acb..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1beta/grpc-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerGrpc.java +++ /dev/null @@ -1,1371 +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 java.lang.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 interface AsyncService { - - /** - *
-     * Creates a new ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default void deleteScanConfig(com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScanConfigMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanConfig.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void startScanRun(com.google.cloud.websecurityscanner.v1beta.StartScanRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartScanRunMethod(), responseObserver); - } - - /** - *
-     * Gets a ScanRun.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listCrawledUrls(com.google.cloud.websecurityscanner.v1beta.ListCrawledUrlsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCrawledUrlsMethod(), responseObserver); - } - - /** - *
-     * Gets a Finding.
-     * 
- */ - default 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.
-     * 
- */ - default 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.
-     * 
- */ - default void listFindingTypeStats(com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFindingTypeStatsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service WebSecurityScanner. - *
-   * 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, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return WebSecurityScannerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service WebSecurityScanner. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service WebSecurityScanner. - *
-   * 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); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service WebSecurityScanner. - *
-   * 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - 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>( - service, METHODID_CREATE_SCAN_CONFIG))) - .addMethod( - getDeleteScanConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.DeleteScanConfigRequest, - com.google.protobuf.Empty>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, 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>( - service, METHODID_GET_FINDING))) - .addMethod( - getListFindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingsResponse>( - service, METHODID_LIST_FINDINGS))) - .addMethod( - getListFindingTypeStatsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsRequest, - com.google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse>( - service, METHODID_LIST_FINDING_TYPE_STATS))) - .build(); - } - - 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 java.lang.String methodName; - - WebSecurityScannerMethodDescriptorSupplier(java.lang.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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CrawledUrlProto.java deleted file mode 100644 index a4bb367d4a57..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\231\002\n*com.google.cloud.websecurityscanner" + - ".v1betaB\017CrawledUrlProtoP\001ZZcloud.google" + - ".com/go/websecurityscanner/apiv1beta/web" + - "securityscannerpb;websecurityscannerpb\252\002" + - "&Google.Cloud.WebSecurityScanner.V1Beta\312" + - "\002&Google\\Cloud\\WebSecurityScanner\\V1beta" + - "\352\002)Google::Cloud::WebSecurityScanner::V1" + - "betab\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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/CreateScanConfigRequestOrBuilder.java deleted file mode 100644 index b4f98425a0bb..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/DeleteScanConfigRequestOrBuilder.java deleted file mode 100644 index 9f431507d9df..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java deleted file mode 100644 index a7a8dc180cb9..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingAddonProto.java +++ /dev/null @@ -1,135 +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\233\002\n*com.goo" + - "gle.cloud.websecurityscanner.v1betaB\021Fin" + - "dingAddonProtoP\001ZZcloud.google.com/go/we" + - "bsecurityscanner/apiv1beta/websecuritysc" + - "annerpb;websecurityscannerpb\252\002&Google.Cl" + - "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" + - "loud\\WebSecurityScanner\\V1beta\352\002)Google:" + - ":Cloud::WebSecurityScanner::V1betab\006prot" + - "o3" - }; - 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java deleted file mode 100644 index 5a5f3c1643b0..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingProto.java +++ /dev/null @@ -1,87 +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\226\002\n*co" + - "m.google.cloud.websecurityscanner.v1beta" + - "B\014FindingProtoP\001ZZcloud.google.com/go/we" + - "bsecurityscanner/apiv1beta/websecuritysc" + - "annerpb;websecurityscannerpb\252\002&Google.Cl" + - "oud.WebSecurityScanner.V1Beta\312\002&Google\\C" + - "loud\\WebSecurityScanner\\V1beta\352\002)Google:" + - ":Cloud::WebSecurityScanner::V1betab\006prot" + - "o3" - }; - 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/FindingTypeStatsProto.java deleted file mode 100644 index da7760925728..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\237\002\n*com.google.cloud.websecur" + - "ityscanner.v1betaB\025FindingTypeStatsProto" + - "P\001ZZcloud.google.com/go/websecurityscann" + - "er/apiv1beta/websecurityscannerpb;websec" + - "urityscannerpb\252\002&Google.Cloud.WebSecurit" + - "yScanner.V1Beta\312\002&Google\\Cloud\\WebSecuri" + - "tyScanner\\V1beta\352\002)Google::Cloud::WebSec" + - "urityScanner::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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetFindingRequestOrBuilder.java deleted file mode 100644 index 82d82324135d..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanConfigRequestOrBuilder.java deleted file mode 100644 index 51da9ac41830..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/GetScanRunRequestOrBuilder.java deleted file mode 100644 index a24004470523..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ListFindingTypeStatsRequestOrBuilder.java deleted file mode 100644 index dc0b39df7a58..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java deleted file mode 100644 index fde1b52897af..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigErrorProto.java +++ /dev/null @@ -1,94 +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\236\002\n*com.google." + - "cloud.websecurityscanner.v1betaB\024ScanCon" + - "figErrorProtoP\001ZZcloud.google.com/go/web" + - "securityscanner/apiv1beta/websecuritysca" + - "nnerpb;websecurityscannerpb\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[] { - }); - 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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanConfigProto.java deleted file mode 100644 index c46c06b93fb5..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\"\252\r\n\nScanConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014d" + - "isplay_name\030\002 \001(\tB\004\342A\001\002\022\017\n\007max_qps\030\003 \001(\005" + - "\022\033\n\rstarting_urls\030\004 \003(\tB\004\342A\001\002\022Y\n\016authent" + - "ication\030\005 \001(\0132A.google.cloud.websecurity" + - "scanner.v1beta.ScanConfig.Authentication" + - "\022P\n\nuser_agent\030\006 \001(\0162<.google.cloud.webs" + - "ecurityscanner.v1beta.ScanConfig.UserAge" + - "nt\022\032\n\022blacklist_patterns\030\007 \003(\t\022M\n\010schedu" + - "le\030\010 \001(\0132;.google.cloud.websecurityscann" + - "er.v1beta.ScanConfig.Schedule\022[\n\020target_" + - "platforms\030\t \003(\0162A.google.cloud.websecuri" + - "tyscanner.v1beta.ScanConfig.TargetPlatfo" + - "rm\022{\n!export_to_security_command_center\030" + - "\n \001(\0162P.google.cloud.websecurityscanner." + - "v1beta.ScanConfig.ExportToSecurityComman" + - "dCenter\022C\n\nlatest_run\030\013 \001(\0132/.google.clo" + - "ud.websecurityscanner.v1beta.ScanRun\022P\n\n" + - "risk_level\030\014 \001(\0162<.google.cloud.websecur" + - "ityscanner.v1beta.ScanConfig.RiskLevel\032\225" + - "\003\n\016Authentication\022i\n\016google_account\030\001 \001(" + - "\0132O.google.cloud.websecurityscanner.v1be" + - "ta.ScanConfig.Authentication.GoogleAccou" + - "ntH\000\022i\n\016custom_account\030\002 \001(\0132O.google.cl" + - "oud.websecurityscanner.v1beta.ScanConfig" + - ".Authentication.CustomAccountH\000\032@\n\rGoogl" + - "eAccount\022\026\n\010username\030\001 \001(\tB\004\342A\001\002\022\027\n\010pass" + - "word\030\002 \001(\tB\005\342A\002\002\004\032Y\n\rCustomAccount\022\026\n\010us" + - "ername\030\001 \001(\tB\004\342A\001\002\022\027\n\010password\030\002 \001(\tB\005\342A" + - "\002\002\004\022\027\n\tlogin_url\030\003 \001(\tB\004\342A\001\002B\020\n\016authenti" + - "cation\032c\n\010Schedule\0221\n\rschedule_time\030\001 \001(" + - "\0132\032.google.protobuf.Timestamp\022$\n\026interva" + - "l_duration_days\030\002 \001(\005B\004\342A\001\002\"`\n\tUserAgent" + - "\022\032\n\026USER_AGENT_UNSPECIFIED\020\000\022\020\n\014CHROME_L" + - "INUX\020\001\022\022\n\016CHROME_ANDROID\020\002\022\021\n\rSAFARI_IPH" + - "ONE\020\003\"N\n\016TargetPlatform\022\037\n\033TARGET_PLATFO" + - "RM_UNSPECIFIED\020\000\022\016\n\nAPP_ENGINE\020\001\022\013\n\007COMP" + - "UTE\020\002\"<\n\tRiskLevel\022\032\n\026RISK_LEVEL_UNSPECI" + - "FIED\020\000\022\n\n\006NORMAL\020\001\022\007\n\003LOW\020\002\"m\n\035ExportToS" + - "ecurityCommandCenter\0221\n-EXPORT_TO_SECURI" + - "TY_COMMAND_CENTER_UNSPECIFIED\020\000\022\013\n\007ENABL" + - "ED\020\001\022\014\n\010DISABLED\020\002:_\352A\\\n,websecurityscan" + - "ner.googleapis.com/ScanConfig\022,projects/" + - "{project}/scanConfigs/{scan_config}B\231\002\n*" + - "com.google.cloud.websecurityscanner.v1be" + - "taB\017ScanConfigProtoP\001ZZcloud.google.com/" + - "go/websecurityscanner/apiv1beta/websecur" + - "ityscannerpb;websecurityscannerpb\252\002&Goog" + - "le.Cloud.WebSecurityScanner.V1Beta\312\002&Goo" + - "gle\\Cloud\\WebSecurityScanner\\V1beta\352\002)Go" + - "ogle::Cloud::WebSecurityScanner::V1betab" + - "\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.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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunErrorTraceProto.java deleted file mode 100644 index f2567d9ff36a..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\240\002\n*com.google.cloud" + - ".websecurityscanner.v1betaB\026ScanRunError" + - "TraceProtoP\001ZZcloud.google.com/go/websec" + - "urityscanner/apiv1beta/websecurityscanne" + - "rpb;websecurityscannerpb\252\002&Google.Cloud." + - "WebSecurityScanner.V1Beta\312\002&Google\\Cloud" + - "\\WebSecurityScanner\\V1beta\352\002)Google::Clo" + - "ud::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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunProto.java deleted file mode 100644 index 998af3f12479..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\226\002\n*com.google." + - "cloud.websecurityscanner.v1betaB\014ScanRun" + - "ProtoP\001ZZcloud.google.com/go/websecurity" + - "scanner/apiv1beta/websecurityscannerpb;w" + - "ebsecurityscannerpb\252\002&Google.Cloud.WebSe" + - "curityScanner.V1Beta\312\002&Google\\Cloud\\WebS" + - "ecurityScanner\\V1beta\352\002)Google::Cloud::W" + - "ebSecurityScanner::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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/ScanRunWarningTraceProto.java deleted file mode 100644 index 8da484c815d3..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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\242\002\n*com.go" + - "ogle.cloud.websecurityscanner.v1betaB\030Sc" + - "anRunWarningTraceProtoP\001ZZcloud.google.c" + - "om/go/websecurityscanner/apiv1beta/webse" + - "curityscannerpb;websecurityscannerpb\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_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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StartScanRunRequestOrBuilder.java deleted file mode 100644 index ad91dfc00c42..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/StopScanRunRequestOrBuilder.java deleted file mode 100644 index 451ee9bd6f6c..000000000000 --- a/owl-bot-staging/java-websecurityscanner/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/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java b/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java deleted file mode 100644 index e4097a30499d..000000000000 --- a/owl-bot-staging/java-websecurityscanner/v1beta/proto-google-cloud-websecurityscanner-v1beta/src/main/java/com/google/cloud/websecurityscanner/v1beta/WebSecurityScannerProto.java +++ /dev/null @@ -1,411 +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\"\256\001\n\027CreateScanConfigRequ" + - "est\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresou" + - "rcemanager.googleapis.com/Project\022M\n\013sca" + - "n_config\030\002 \001(\01322.google.cloud.websecurit" + - "yscanner.v1beta.ScanConfigB\004\342A\001\002\"^\n\027Dele" + - "teScanConfigRequest\022C\n\004name\030\001 \001(\tB5\342A\001\002\372" + - "A.\n,websecurityscanner.googleapis.com/Sc" + - "anConfig\"[\n\024GetScanConfigRequest\022C\n\004name" + - "\030\001 \001(\tB5\342A\001\002\372A.\n,websecurityscanner.goog" + - "leapis.com/ScanConfig\"\205\001\n\026ListScanConfig" + - "sRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+cloud" + - "resourcemanager.googleapis.com/Project\022\022" + - "\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\"\237\001" + - "\n\027UpdateScanConfigRequest\022M\n\013scan_config" + - "\030\002 \001(\01322.google.cloud.websecurityscanner" + - ".v1beta.ScanConfigB\004\342A\001\002\0225\n\013update_mask\030" + - "\003 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"" + - "|\n\027ListScanConfigsResponse\022H\n\014scan_confi" + - "gs\030\001 \003(\01322.google.cloud.websecurityscann" + - "er.v1beta.ScanConfig\022\027\n\017next_page_token\030" + - "\002 \001(\t\"Z\n\023StartScanRunRequest\022C\n\004name\030\001 \001" + - "(\tB5\342A\001\002\372A.\n,websecurityscanner.googleap" + - "is.com/ScanConfig\"U\n\021GetScanRunRequest\022@" + - "\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanne" + - "r.googleapis.com/ScanRun\"\203\001\n\023ListScanRun" + - "sRequest\022E\n\006parent\030\001 \001(\tB5\342A\001\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\"s" + - "\n\024ListScanRunsResponse\022B\n\tscan_runs\030\001 \003(" + - "\0132/.google.cloud.websecurityscanner.v1be" + - "ta.ScanRun\022\027\n\017next_page_token\030\002 \001(\t\"V\n\022S" + - "topScanRunRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+" + - "\n)websecurityscanner.googleapis.com/Scan" + - "Run\"\203\001\n\026ListCrawledUrlsRequest\022B\n\006parent" + - "\030\001 \001(\tB2\342A\001\002\372A+\n)websecurityscanner.goog" + - "leapis.com/ScanRun\022\022\n\npage_token\030\002 \001(\t\022\021" + - "\n\tpage_size\030\003 \001(\005\"|\n\027ListCrawledUrlsResp" + - "onse\022H\n\014crawled_urls\030\001 \003(\01322.google.clou" + - "d.websecurityscanner.v1beta.CrawledUrl\022\027" + - "\n\017next_page_token\030\002 \001(\t\"U\n\021GetFindingReq" + - "uest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)websecurity" + - "scanner.googleapis.com/Finding\"\226\001\n\023ListF" + - "indingsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n" + - ")websecurityscanner.googleapis.com/ScanR" + - "un\022\024\n\006filter\030\002 \001(\tB\004\342A\001\002\022\022\n\npage_token\030\003" + - " \001(\t\022\021\n\tpage_size\030\004 \001(\005\"r\n\024ListFindingsR" + - "esponse\022A\n\010findings\030\001 \003(\0132/.google.cloud" + - ".websecurityscanner.v1beta.Finding\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"a\n\033ListFindingTypeSt" + - "atsRequest\022B\n\006parent\030\001 \001(\tB2\342A\001\002\372A+\n)web" + - "securityscanner.googleapis.com/ScanRun\"t" + - "\n\034ListFindingTypeStatsResponse\022T\n\022findin" + - "g_type_stats\030\001 \003(\01328.google.cloud.websec" + - "urityscanner.v1beta.FindingTypeStats2\216\026\n" + - "\022WebSecurityScanner\022\332\001\n\020CreateScanConfig" + - "\022?.google.cloud.websecurityscanner.v1bet" + - "a.CreateScanConfigRequest\0322.google.cloud" + - ".websecurityscanner.v1beta.ScanConfig\"Q\332" + - "A\022parent,scan_config\202\323\344\223\0026\"\'/v1beta/{par" + - "ent=projects/*}/scanConfigs:\013scan_config" + - "\022\243\001\n\020DeleteScanConfig\022?.google.cloud.web" + - "securityscanner.v1beta.DeleteScanConfigR" + - "equest\032\026.google.protobuf.Empty\"6\332A\004name\202" + - "\323\344\223\002)*\'/v1beta/{name=projects/*/scanConf" + - "igs/*}\022\271\001\n\rGetScanConfig\022<.google.cloud." + - "websecurityscanner.v1beta.GetScanConfigR" + - "equest\0322.google.cloud.websecurityscanner" + - ".v1beta.ScanConfig\"6\332A\004name\202\323\344\223\002)\022\'/v1be" + - "ta/{name=projects/*/scanConfigs/*}\022\314\001\n\017L" + - "istScanConfigs\022>.google.cloud.websecurit" + - "yscanner.v1beta.ListScanConfigsRequest\032?" + - ".google.cloud.websecurityscanner.v1beta." + - "ListScanConfigsResponse\"8\332A\006parent\202\323\344\223\002)" + - "\022\'/v1beta/{parent=projects/*}/scanConfig" + - "s\022\353\001\n\020UpdateScanConfig\022?.google.cloud.we" + - "bsecurityscanner.v1beta.UpdateScanConfig" + - "Request\0322.google.cloud.websecurityscanne" + - "r.v1beta.ScanConfig\"b\332A\027scan_config,upda" + - "te_mask\202\323\344\223\002B23/v1beta/{scan_config.name" + - "=projects/*/scanConfigs/*}:\013scan_config\022" + - "\275\001\n\014StartScanRun\022;.google.cloud.websecur" + - "ityscanner.v1beta.StartScanRunRequest\032/." + - "google.cloud.websecurityscanner.v1beta.S" + - "canRun\"?\332A\004name\202\323\344\223\0022\"-/v1beta/{name=pro" + - "jects/*/scanConfigs/*}:start:\001*\022\273\001\n\nGetS" + - "canRun\0229.google.cloud.websecurityscanner" + - ".v1beta.GetScanRunRequest\032/.google.cloud" + - ".websecurityscanner.v1beta.ScanRun\"A\332A\004n" + - "ame\202\323\344\223\0024\0222/v1beta/{name=projects/*/scan" + - "Configs/*/scanRuns/*}\022\316\001\n\014ListScanRuns\022;" + - ".google.cloud.websecurityscanner.v1beta." + - "ListScanRunsRequest\032<.google.cloud.webse" + - "curityscanner.v1beta.ListScanRunsRespons" + - "e\"C\332A\006parent\202\323\344\223\0024\0222/v1beta/{parent=proj" + - "ects/*/scanConfigs/*}/scanRuns\022\305\001\n\013StopS" + - "canRun\022:.google.cloud.websecurityscanner" + - ".v1beta.StopScanRunRequest\032/.google.clou" + - "d.websecurityscanner.v1beta.ScanRun\"I\332A\004" + - "name\202\323\344\223\002<\"7/v1beta/{name=projects/*/sca" + - "nConfigs/*/scanRuns/*}:stop:\001*\022\345\001\n\017ListC" + - "rawledUrls\022>.google.cloud.websecuritysca" + - "nner.v1beta.ListCrawledUrlsRequest\032?.goo" + - "gle.cloud.websecurityscanner.v1beta.List" + - "CrawledUrlsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v" + - "1beta/{parent=projects/*/scanConfigs/*/s" + - "canRuns/*}/crawledUrls\022\306\001\n\nGetFinding\0229." + - "google.cloud.websecurityscanner.v1beta.G" + - "etFindingRequest\032/.google.cloud.websecur" + - "ityscanner.v1beta.Finding\"L\332A\004name\202\323\344\223\002?" + - "\022=/v1beta/{name=projects/*/scanConfigs/*" + - "/scanRuns/*/findings/*}\022\340\001\n\014ListFindings" + - "\022;.google.cloud.websecurityscanner.v1bet" + - "a.ListFindingsRequest\032<.google.cloud.web" + - "securityscanner.v1beta.ListFindingsRespo" + - "nse\"U\332A\rparent,filter\202\323\344\223\002?\022=/v1beta/{pa" + - "rent=projects/*/scanConfigs/*/scanRuns/*" + - "}/findings\022\371\001\n\024ListFindingTypeStats\022C.go" + - "ogle.cloud.websecurityscanner.v1beta.Lis" + - "tFindingTypeStatsRequest\032D.google.cloud." + - "websecurityscanner.v1beta.ListFindingTyp" + - "eStatsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1beta" + - "/{parent=projects/*/scanConfigs/*/scanRu" + - "ns/*}/findingTypeStats\032U\312A!websecuritysc" + - "anner.googleapis.com\322A.https://www.googl" + - "eapis.com/auth/cloud-platformB\241\002\n*com.go" + - "ogle.cloud.websecurityscanner.v1betaB\027We" + - "bSecurityScannerProtoP\001ZZcloud.google.co" + - "m/go/websecurityscanner/apiv1beta/websec" + - "urityscannerpb;websecurityscannerpb\252\002&Go" + - "ogle.Cloud.WebSecurityScanner.V1Beta\312\002&G" + - "oogle\\Cloud\\WebSecurityScanner\\V1beta\352\002)" + - "Google::Cloud::WebSecurityScanner::V1bet" + - "ab\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/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java b/owl-bot-staging/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java deleted file mode 100644 index ad59682a2bb6..000000000000 --- a/owl-bot-staging/java-workflow-executions/v1/grpc-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsGrpc.java +++ /dev/null @@ -1,599 +0,0 @@ -package com.google.cloud.workflows.executions.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Executions is used to start and manage running instances of
- * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/executions/v1/executions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ExecutionsGrpc { - - private ExecutionsGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.executions.v1.Executions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListExecutionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExecutions", - requestType = com.google.cloud.workflows.executions.v1.ListExecutionsRequest.class, - responseType = com.google.cloud.workflows.executions.v1.ListExecutionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExecutionsMethod() { - io.grpc.MethodDescriptor getListExecutionsMethod; - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - ExecutionsGrpc.getListExecutionsMethod = getListExecutionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.ListExecutionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.ListExecutionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) - .build(); - } - } - } - return getListExecutionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateExecution", - requestType = com.google.cloud.workflows.executions.v1.CreateExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateExecutionMethod() { - io.grpc.MethodDescriptor getCreateExecutionMethod; - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - ExecutionsGrpc.getCreateExecutionMethod = getCreateExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.CreateExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CreateExecution")) - .build(); - } - } - } - return getCreateExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExecution", - requestType = com.google.cloud.workflows.executions.v1.GetExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExecutionMethod() { - io.grpc.MethodDescriptor getGetExecutionMethod; - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - ExecutionsGrpc.getGetExecutionMethod = getGetExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.GetExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) - .build(); - } - } - } - return getGetExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCancelExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelExecution", - requestType = com.google.cloud.workflows.executions.v1.CancelExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCancelExecutionMethod() { - io.grpc.MethodDescriptor getCancelExecutionMethod; - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - ExecutionsGrpc.getCancelExecutionMethod = getCancelExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.CancelExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1.Execution.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CancelExecution")) - .build(); - } - } - } - return getCancelExecutionMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ExecutionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - }; - return ExecutionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ExecutionsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - }; - return ExecutionsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ExecutionsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - }; - return ExecutionsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - default void listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExecutionsMethod(), responseObserver); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - default void createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExecutionMethod(), responseObserver); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - default void getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExecutionMethod(), responseObserver); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - default void cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelExecutionMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public static abstract class ExecutionsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return ExecutionsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsStub - extends io.grpc.stub.AbstractAsyncStub { - private ExecutionsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public void listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public void createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - public void getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - public void cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ExecutionsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.cloud.workflows.executions.v1.ListExecutionsResponse listExecutions(com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExecutionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.cloud.workflows.executions.v1.Execution createExecution(com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateExecutionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1.Execution getExecution(com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExecutionMethod(), getCallOptions(), request); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1.Execution cancelExecution(com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelExecutionMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ExecutionsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listExecutions( - com.google.cloud.workflows.executions.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createExecution( - com.google.cloud.workflows.executions.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getExecution( - com.google.cloud.workflows.executions.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture cancelExecution( - com.google.cloud.workflows.executions.v1.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EXECUTIONS = 0; - private static final int METHODID_CREATE_EXECUTION = 1; - private static final int METHODID_GET_EXECUTION = 2; - private static final int METHODID_CANCEL_EXECUTION = 3; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_LIST_EXECUTIONS: - serviceImpl.listExecutions((com.google.cloud.workflows.executions.v1.ListExecutionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EXECUTION: - serviceImpl.createExecution((com.google.cloud.workflows.executions.v1.CreateExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EXECUTION: - serviceImpl.getExecution((com.google.cloud.workflows.executions.v1.GetExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_EXECUTION: - serviceImpl.cancelExecution((com.google.cloud.workflows.executions.v1.CancelExecutionRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListExecutionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1.ListExecutionsResponse>( - service, METHODID_LIST_EXECUTIONS))) - .addMethod( - getCreateExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution>( - service, METHODID_CREATE_EXECUTION))) - .addMethod( - getGetExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.GetExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution>( - service, METHODID_GET_EXECUTION))) - .addMethod( - getCancelExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1.Execution>( - service, METHODID_CANCEL_EXECUTION))) - .build(); - } - - private static abstract class ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ExecutionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workflows.executions.v1.ExecutionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Executions"); - } - } - - private static final class ExecutionsFileDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier { - ExecutionsFileDescriptorSupplier() {} - } - - private static final class ExecutionsMethodDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) - .addMethod(getListExecutionsMethod()) - .addMethod(getCreateExecutionMethod()) - .addMethod(getGetExecutionMethod()) - .addMethod(getCancelExecutionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java deleted file mode 100644 index 274df6c45434..000000000000 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CancelExecutionRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1/executions.proto - -package com.google.cloud.workflows.executions.v1; - -public interface CancelExecutionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CancelExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the execution to be cancelled.
-   * Format:
-   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the execution to be cancelled.
-   * Format:
-   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
-   * 
- * - * 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/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java deleted file mode 100644 index e519bd4fab18..000000000000 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/CreateExecutionRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1/executions.proto - -package com.google.cloud.workflows.executions.v1; - -public interface CreateExecutionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1.CreateExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Execution to be created.
-   * 
- * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the execution field is set. - */ - boolean hasExecution(); - /** - *
-   * Required. Execution to be created.
-   * 
- * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The execution. - */ - com.google.cloud.workflows.executions.v1.Execution getExecution(); - /** - *
-   * Required. Execution to be created.
-   * 
- * - * .google.cloud.workflows.executions.v1.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.workflows.executions.v1.ExecutionOrBuilder getExecutionOrBuilder(); -} diff --git a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java b/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java deleted file mode 100644 index 5c1a45efb3d2..000000000000 --- a/owl-bot-staging/java-workflow-executions/v1/proto-google-cloud-workflow-executions-v1/src/main/java/com/google/cloud/workflows/executions/v1/ExecutionsProto.java +++ /dev/null @@ -1,318 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1/executions.proto - -package com.google.cloud.workflows.executions.v1; - -public final class ExecutionsProto { - private ExecutionsProto() {} - 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_workflows_executions_v1_Execution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StackTraceElement_Position_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StackTrace_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_Error_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_Status_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_Status_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_Status_Step_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_StateError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_StateError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_Execution_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_ListExecutionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_ListExecutionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_CreateExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_GetExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1_CancelExecutionRequest_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/workflows/executions/v1/e" + - "xecutions.proto\022$google.cloud.workflows." + - "executions.v1\032\034google/api/annotations.pr" + - "oto\032\027google/api/client.proto\032\037google/api" + - "/field_behavior.proto\032\031google/api/resour" + - "ce.proto\032\036google/protobuf/duration.proto" + - "\032\037google/protobuf/timestamp.proto\"\307\016\n\tEx" + - "ecution\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0224\n\nstart_tim" + - "e\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + - "\003\0222\n\010end_time\030\003 \001(\0132\032.google.protobuf.Ti" + - "mestampB\004\342A\001\003\0221\n\010duration\030\014 \001(\0132\031.google" + - ".protobuf.DurationB\004\342A\001\003\022J\n\005state\030\004 \001(\0162" + - "5.google.cloud.workflows.executions.v1.E" + - "xecution.StateB\004\342A\001\003\022\020\n\010argument\030\005 \001(\t\022\024" + - "\n\006result\030\006 \001(\tB\004\342A\001\003\022J\n\005error\030\007 \001(\01325.go" + - "ogle.cloud.workflows.executions.v1.Execu" + - "tion.ErrorB\004\342A\001\003\022\"\n\024workflow_revision_id" + - "\030\010 \001(\tB\004\342A\001\003\022T\n\016call_log_level\030\t \001(\0162<.g" + - "oogle.cloud.workflows.executions.v1.Exec" + - "ution.CallLogLevel\022L\n\006status\030\n \001(\01326.goo" + - "gle.cloud.workflows.executions.v1.Execut" + - "ion.StatusB\004\342A\001\003\022K\n\006labels\030\013 \003(\0132;.googl" + - "e.cloud.workflows.executions.v1.Executio" + - "n.LabelsEntry\022U\n\013state_error\030\r \001(\0132:.goo" + - "gle.cloud.workflows.executions.v1.Execut" + - "ion.StateErrorB\004\342A\001\003\032\312\001\n\021StackTraceEleme" + - "nt\022\014\n\004step\030\001 \001(\t\022\017\n\007routine\030\002 \001(\t\022\\\n\010pos" + - "ition\030\003 \001(\0132J.google.cloud.workflows.exe" + - "cutions.v1.Execution.StackTraceElement.P" + - "osition\0328\n\010Position\022\014\n\004line\030\001 \001(\003\022\016\n\006col" + - "umn\030\002 \001(\003\022\016\n\006length\030\003 \001(\003\032a\n\nStackTrace\022" + - "S\n\010elements\030\001 \003(\0132A.google.cloud.workflo" + - "ws.executions.v1.Execution.StackTraceEle" + - "ment\032z\n\005Error\022\017\n\007payload\030\001 \001(\t\022\017\n\007contex" + - "t\030\002 \001(\t\022O\n\013stack_trace\030\003 \001(\0132:.google.cl" + - "oud.workflows.executions.v1.Execution.St" + - "ackTrace\032\203\001\n\006Status\022R\n\rcurrent_steps\030\001 \003" + - "(\0132;.google.cloud.workflows.executions.v" + - "1.Execution.Status.Step\032%\n\004Step\022\017\n\007routi" + - "ne\030\001 \001(\t\022\014\n\004step\030\002 \001(\t\032\231\001\n\nStateError\022\017\n" + - "\007details\030\001 \001(\t\022M\n\004type\030\002 \001(\0162?.google.cl" + - "oud.workflows.executions.v1.Execution.St" + - "ateError.Type\"+\n\004Type\022\024\n\020TYPE_UNSPECIFIE" + - "D\020\000\022\r\n\tKMS_ERROR\020\001\032-\n\013LabelsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"q\n\005State\022\025\n\021ST" + - "ATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCCEED" + - "ED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004\022\017\n\013UNAVA" + - "ILABLE\020\005\022\n\n\006QUEUED\020\006\"d\n\014CallLogLevel\022\036\n\032" + - "CALL_LOG_LEVEL_UNSPECIFIED\020\000\022\021\n\rLOG_ALL_" + - "CALLS\020\001\022\023\n\017LOG_ERRORS_ONLY\020\002\022\014\n\010LOG_NONE" + - "\020\003:\206\001\352A\202\001\n+workflowexecutions.googleapis" + - ".com/Execution\022Sprojects/{project}/locat" + - "ions/{location}/workflows/{workflow}/exe" + - "cutions/{execution}\"\361\001\n\025ListExecutionsRe" + - "quest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflow" + - "s.googleapis.com/Workflow\022\021\n\tpage_size\030\002" + - " \001(\005\022\022\n\npage_token\030\003 \001(\t\022G\n\004view\030\004 \001(\01623" + - ".google.cloud.workflows.executions.v1.Ex" + - "ecutionViewB\004\342A\001\001\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022" + - "\026\n\010order_by\030\006 \001(\tB\004\342A\001\001\"v\n\026ListExecution" + - "sResponse\022C\n\nexecutions\030\001 \003(\0132/.google.c" + - "loud.workflows.executions.v1.Execution\022\027" + - "\n\017next_page_token\030\002 \001(\t\"\236\001\n\026CreateExecut" + - "ionRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!wor" + - "kflows.googleapis.com/Workflow\022H\n\texecut" + - "ion\030\002 \001(\0132/.google.cloud.workflows.execu" + - "tions.v1.ExecutionB\004\342A\001\002\"\242\001\n\023GetExecutio" + - "nRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflo" + - "wexecutions.googleapis.com/Execution\022G\n\004" + - "view\030\002 \001(\01623.google.cloud.workflows.exec" + - "utions.v1.ExecutionViewB\004\342A\001\001\"\\\n\026CancelE" + - "xecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+" + - "workflowexecutions.googleapis.com/Execut" + - "ion*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW_U" + - "NSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\303\007\n\nEx" + - "ecutions\022\330\001\n\016ListExecutions\022;.google.clo" + - "ud.workflows.executions.v1.ListExecution" + - "sRequest\032<.google.cloud.workflows.execut" + - "ions.v1.ListExecutionsResponse\"K\332A\006paren" + - "t\202\323\344\223\002<\022:/v1/{parent=projects/*/location" + - "s/*/workflows/*}/executions\022\342\001\n\017CreateEx" + - "ecution\022<.google.cloud.workflows.executi" + - "ons.v1.CreateExecutionRequest\032/.google.c" + - "loud.workflows.executions.v1.Execution\"`" + - "\332A\020parent,execution\202\323\344\223\002G\":/v1/{parent=p" + - "rojects/*/locations/*/workflows/*}/execu" + - "tions:\texecution\022\305\001\n\014GetExecution\0229.goog" + - "le.cloud.workflows.executions.v1.GetExec" + - "utionRequest\032/.google.cloud.workflows.ex" + - "ecutions.v1.Execution\"I\332A\004name\202\323\344\223\002<\022:/v" + - "1/{name=projects/*/locations/*/workflows" + - "/*/executions/*}\022\325\001\n\017CancelExecution\022<.g" + - "oogle.cloud.workflows.executions.v1.Canc" + - "elExecutionRequest\032/.google.cloud.workfl" + - "ows.executions.v1.Execution\"S\332A\004name\202\323\344\223" + - "\002F\"A/v1/{name=projects/*/locations/*/wor" + - "kflows/*/executions/*}:cancel:\001*\032U\312A!wor" + - "kflowexecutions.googleapis.com\322A.https:/" + - "/www.googleapis.com/auth/cloud-platformB" + - "\353\001\n(com.google.cloud.workflows.execution" + - "s.v1B\017ExecutionsProtoP\001ZHcloud.google.co" + - "m/go/workflows/executions/apiv1/executio" + - "nspb;executionspb\352Aa\n!workflows.googleap" + - "is.com/Workflow\022 - * Executions is used to start and manage running instances of - * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workflows/executions/v1beta/executions.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ExecutionsGrpc { - - private ExecutionsGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.workflows.executions.v1beta.Executions"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListExecutionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExecutions", - requestType = com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExecutionsMethod() { - io.grpc.MethodDescriptor getListExecutionsMethod; - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getListExecutionsMethod = ExecutionsGrpc.getListExecutionsMethod) == null) { - ExecutionsGrpc.getListExecutionsMethod = getListExecutionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("ListExecutions")) - .build(); - } - } - } - return getListExecutionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateExecution", - requestType = com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateExecutionMethod() { - io.grpc.MethodDescriptor getCreateExecutionMethod; - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCreateExecutionMethod = ExecutionsGrpc.getCreateExecutionMethod) == null) { - ExecutionsGrpc.getCreateExecutionMethod = getCreateExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CreateExecution")) - .build(); - } - } - } - return getCreateExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExecution", - requestType = com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExecutionMethod() { - io.grpc.MethodDescriptor getGetExecutionMethod; - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getGetExecutionMethod = ExecutionsGrpc.getGetExecutionMethod) == null) { - ExecutionsGrpc.getGetExecutionMethod = getGetExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("GetExecution")) - .build(); - } - } - } - return getGetExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCancelExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelExecution", - requestType = com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.class, - responseType = com.google.cloud.workflows.executions.v1beta.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCancelExecutionMethod() { - io.grpc.MethodDescriptor getCancelExecutionMethod; - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - synchronized (ExecutionsGrpc.class) { - if ((getCancelExecutionMethod = ExecutionsGrpc.getCancelExecutionMethod) == null) { - ExecutionsGrpc.getCancelExecutionMethod = getCancelExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workflows.executions.v1beta.Execution.getDefaultInstance())) - .setSchemaDescriptor(new ExecutionsMethodDescriptorSupplier("CancelExecution")) - .build(); - } - } - } - return getCancelExecutionMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ExecutionsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - }; - return ExecutionsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ExecutionsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - }; - return ExecutionsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ExecutionsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ExecutionsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - }; - return ExecutionsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - default void listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExecutionsMethod(), responseObserver); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - default void createExecution(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExecutionMethod(), responseObserver); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - default void getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExecutionMethod(), responseObserver); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - default void cancelExecution(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelExecutionMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public static abstract class ExecutionsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return ExecutionsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsStub - extends io.grpc.stub.AbstractAsyncStub { - private ExecutionsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsStub(channel, callOptions); - } - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public void listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public void createExecution(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - public void getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - public void cancelExecution(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private ExecutionsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse listExecutions(com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExecutionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.Execution createExecution(com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateExecutionMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.Execution getExecution(com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExecutionMethod(), getCallOptions(), request); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.cloud.workflows.executions.v1beta.Execution cancelExecution(com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelExecutionMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Executions. - *
-   * Executions is used to start and manage running instances of
-   * [Workflows][google.cloud.workflows.v1beta.Workflow] called executions.
-   * 
- */ - public static final class ExecutionsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ExecutionsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ExecutionsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ExecutionsFutureStub(channel, callOptions); - } - - /** - *
-     * Returns a list of executions which belong to the workflow with
-     * the given name. The method returns executions of all workflow
-     * revisions. Returned executions are ordered by their start time (newest
-     * first).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listExecutions( - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new execution using the latest revision of the given workflow.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createExecution( - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getExecution( - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); - } - - /** - *
-     * Cancels an execution of the given name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture cancelExecution( - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelExecutionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_EXECUTIONS = 0; - private static final int METHODID_CREATE_EXECUTION = 1; - private static final int METHODID_GET_EXECUTION = 2; - private static final int METHODID_CANCEL_EXECUTION = 3; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_LIST_EXECUTIONS: - serviceImpl.listExecutions((com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EXECUTION: - serviceImpl.createExecution((com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EXECUTION: - serviceImpl.getExecution((com.google.cloud.workflows.executions.v1beta.GetExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_EXECUTION: - serviceImpl.cancelExecution((com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListExecutionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.ListExecutionsRequest, - com.google.cloud.workflows.executions.v1beta.ListExecutionsResponse>( - service, METHODID_LIST_EXECUTIONS))) - .addMethod( - getCreateExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.CreateExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution>( - service, METHODID_CREATE_EXECUTION))) - .addMethod( - getGetExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.GetExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution>( - service, METHODID_GET_EXECUTION))) - .addMethod( - getCancelExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workflows.executions.v1beta.CancelExecutionRequest, - com.google.cloud.workflows.executions.v1beta.Execution>( - service, METHODID_CANCEL_EXECUTION))) - .build(); - } - - private static abstract class ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ExecutionsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workflows.executions.v1beta.ExecutionsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Executions"); - } - } - - private static final class ExecutionsFileDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier { - ExecutionsFileDescriptorSupplier() {} - } - - private static final class ExecutionsMethodDescriptorSupplier - extends ExecutionsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - ExecutionsMethodDescriptorSupplier(java.lang.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 (ExecutionsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ExecutionsFileDescriptorSupplier()) - .addMethod(getListExecutionsMethod()) - .addMethod(getCreateExecutionMethod()) - .addMethod(getGetExecutionMethod()) - .addMethod(getCancelExecutionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java deleted file mode 100644 index aafcee78af00..000000000000 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CancelExecutionRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1beta/executions.proto - -package com.google.cloud.workflows.executions.v1beta; - -public interface CancelExecutionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.CancelExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the execution to be cancelled.
-   * Format:
-   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the execution to be cancelled.
-   * Format:
-   * projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}
-   * 
- * - * 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/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java deleted file mode 100644 index 94408fcf838e..000000000000 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/CreateExecutionRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1beta/executions.proto - -package com.google.cloud.workflows.executions.v1beta; - -public interface CreateExecutionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.executions.v1beta.CreateExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Name of the workflow for which an execution should be created.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * The latest revision of the workflow will be used.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Execution to be created.
-   * 
- * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the execution field is set. - */ - boolean hasExecution(); - /** - *
-   * Required. Execution to be created.
-   * 
- * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The execution. - */ - com.google.cloud.workflows.executions.v1beta.Execution getExecution(); - /** - *
-   * Required. Execution to be created.
-   * 
- * - * .google.cloud.workflows.executions.v1beta.Execution execution = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.workflows.executions.v1beta.ExecutionOrBuilder getExecutionOrBuilder(); -} diff --git a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java b/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java deleted file mode 100644 index def14827cac7..000000000000 --- a/owl-bot-staging/java-workflow-executions/v1beta/proto-google-cloud-workflow-executions-v1beta/src/main/java/com/google/cloud/workflows/executions/v1beta/ExecutionsProto.java +++ /dev/null @@ -1,208 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/executions/v1beta/executions.proto - -package com.google.cloud.workflows.executions.v1beta; - -public final class ExecutionsProto { - private ExecutionsProto() {} - 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_workflows_executions_v1beta_Execution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_Execution_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_Execution_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_ListExecutionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_CreateExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_GetExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_executions_v1beta_CancelExecutionRequest_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/workflows/executions/v1be" + - "ta/executions.proto\022(google.cloud.workfl" + - "ows.executions.v1beta\032\034google/api/annota" + - "tions.proto\032\027google/api/client.proto\032\037go" + - "ogle/api/field_behavior.proto\032\031google/ap" + - "i/resource.proto\032\037google/protobuf/timest" + - "amp.proto\"\377\004\n\tExecution\022\022\n\004name\030\001 \001(\tB\004\342" + - "A\001\003\0224\n\nstart_time\030\002 \001(\0132\032.google.protobu" + - "f.TimestampB\004\342A\001\003\0222\n\010end_time\030\003 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\004\342A\001\003\022N\n\005state\030\004" + - " \001(\01629.google.cloud.workflows.executions" + - ".v1beta.Execution.StateB\004\342A\001\003\022\020\n\010argumen" + - "t\030\005 \001(\t\022\024\n\006result\030\006 \001(\tB\004\342A\001\003\022N\n\005error\030\007" + - " \001(\01329.google.cloud.workflows.executions" + - ".v1beta.Execution.ErrorB\004\342A\001\003\022\"\n\024workflo" + - "w_revision_id\030\010 \001(\tB\004\342A\001\003\032)\n\005Error\022\017\n\007pa" + - "yload\030\001 \001(\t\022\017\n\007context\030\002 \001(\t\"T\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\r\n\tSUCC" + - "EEDED\020\002\022\n\n\006FAILED\020\003\022\r\n\tCANCELLED\020\004:\206\001\352A\202" + - "\001\n+workflowexecutions.googleapis.com/Exe" + - "cution\022Sprojects/{project}/locations/{lo" + - "cation}/workflows/{workflow}/executions/" + - "{execution}\"\307\001\n\025ListExecutionsRequest\022:\n" + - "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows.google" + - "apis.com/Workflow\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + - "page_token\030\003 \001(\t\022K\n\004view\030\004 \001(\01627.google." + - "cloud.workflows.executions.v1beta.Execut" + - "ionViewB\004\342A\001\001\"z\n\026ListExecutionsResponse\022" + - "G\n\nexecutions\030\001 \003(\01323.google.cloud.workf" + - "lows.executions.v1beta.Execution\022\027\n\017next" + - "_page_token\030\002 \001(\t\"\242\001\n\026CreateExecutionReq" + - "uest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!workflows" + - ".googleapis.com/Workflow\022L\n\texecution\030\002 " + - "\001(\01323.google.cloud.workflows.executions." + - "v1beta.ExecutionB\004\342A\001\002\"\246\001\n\023GetExecutionR" + - "equest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+workflowe" + - "xecutions.googleapis.com/Execution\022K\n\004vi" + - "ew\030\002 \001(\01627.google.cloud.workflows.execut" + - "ions.v1beta.ExecutionViewB\004\342A\001\001\"\\\n\026Cance" + - "lExecutionRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-" + - "\n+workflowexecutions.googleapis.com/Exec" + - "ution*D\n\rExecutionView\022\036\n\032EXECUTION_VIEW" + - "_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\0022\363\007\n\n" + - "Executions\022\344\001\n\016ListExecutions\022?.google.c" + - "loud.workflows.executions.v1beta.ListExe" + - "cutionsRequest\032@.google.cloud.workflows." + - "executions.v1beta.ListExecutionsResponse" + - "\"O\332A\006parent\202\323\344\223\002@\022>/v1beta/{parent=proje" + - "cts/*/locations/*/workflows/*}/execution" + - "s\022\356\001\n\017CreateExecution\022@.google.cloud.wor" + - "kflows.executions.v1beta.CreateExecution" + - "Request\0323.google.cloud.workflows.executi" + - "ons.v1beta.Execution\"d\332A\020parent,executio" + - "n\202\323\344\223\002K\">/v1beta/{parent=projects/*/loca" + - "tions/*/workflows/*}/executions:\texecuti" + - "on\022\321\001\n\014GetExecution\022=.google.cloud.workf" + - "lows.executions.v1beta.GetExecutionReque" + - "st\0323.google.cloud.workflows.executions.v" + - "1beta.Execution\"M\332A\004name\202\323\344\223\002@\022>/v1beta/" + - "{name=projects/*/locations/*/workflows/*" + - "/executions/*}\022\341\001\n\017CancelExecution\022@.goo" + - "gle.cloud.workflows.executions.v1beta.Ca" + - "ncelExecutionRequest\0323.google.cloud.work" + - "flows.executions.v1beta.Execution\"W\332A\004na" + - "me\202\323\344\223\002J\"E/v1beta/{name=projects/*/locat" + - "ions/*/workflows/*/executions/*}:cancel:" + - "\001*\032U\312A!workflowexecutions.googleapis.com" + - "\322A.https://www.googleapis.com/auth/cloud" + - "-platformB\363\001\n,com.google.cloud.workflows" + - ".executions.v1betaB\017ExecutionsProtoP\001ZLc" + - "loud.google.com/go/workflows/executions/" + - "apiv1beta/executionspb;executionspb\352Aa\n!" + - "workflows.googleapis.com/Workflow\022 - * Required. Name of the workflow to be deleted. - * Format: projects/{project}/locations/{location}/workflows/{workflow} - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the workflow to be deleted.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * 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/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java b/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java deleted file mode 100644 index 05a183a3c48e..000000000000 --- a/owl-bot-staging/java-workflows/v1/proto-google-cloud-workflows-v1/src/main/java/com/google/cloud/workflows/v1/WorkflowsProto.java +++ /dev/null @@ -1,281 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1/workflows.proto - -package com.google.cloud.workflows.v1; - -public final class WorkflowsProto { - private WorkflowsProto() {} - 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_workflows_v1_Workflow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1_OperationMetadata_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/workflows/v1/workflows.pr" + - "oto\022\031google.cloud.workflows.v1\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032#google/longru" + - "nning/operations.proto\032\033google/protobuf/" + - "empty.proto\032 google/protobuf/field_mask." + - "proto\032\037google/protobuf/timestamp.proto\"\351" + - "\t\n\010Workflow\022\014\n\004name\030\001 \001(\t\022\023\n\013description" + - "\030\002 \001(\t\022>\n\005state\030\003 \001(\0162).google.cloud.wor" + - "kflows.v1.Workflow.StateB\004\342A\001\003\022\031\n\013revisi" + - "on_id\030\004 \001(\tB\004\342A\001\003\0225\n\013create_time\030\005 \001(\0132\032" + - ".google.protobuf.TimestampB\004\342A\001\003\0225\n\013upda" + - "te_time\030\006 \001(\0132\032.google.protobuf.Timestam" + - "pB\004\342A\001\003\022>\n\024revision_create_time\030\007 \001(\0132\032." + - "google.protobuf.TimestampB\004\342A\001\003\022?\n\006label" + - "s\030\010 \003(\0132/.google.cloud.workflows.v1.Work" + - "flow.LabelsEntry\022\027\n\017service_account\030\t \001(" + - "\t\022\031\n\017source_contents\030\n \001(\tH\000\022C\n\017crypto_k" + - "ey_name\030\013 \001(\tB*\342A\001\001\372A#\n!cloudkms.googlea" + - "pis.com/CryptoKey\022I\n\013state_error\030\014 \001(\0132." + - ".google.cloud.workflows.v1.Workflow.Stat" + - "eErrorB\004\342A\001\003\022N\n\016call_log_level\030\r \001(\01620.g" + - "oogle.cloud.workflows.v1.Workflow.CallLo" + - "gLevelB\004\342A\001\001\022Q\n\ruser_env_vars\030\016 \003(\01324.go" + - "ogle.cloud.workflows.v1.Workflow.UserEnv" + - "VarsEntryB\004\342A\001\001\032\215\001\n\nStateError\022\017\n\007detail" + - "s\030\001 \001(\t\022A\n\004type\030\002 \001(\01623.google.cloud.wor" + - "kflows.v1.Workflow.StateError.Type\"+\n\004Ty" + - "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\tKMS_ERROR\020\001\032" + - "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\0322\n\020UserEnvVarsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001\";\n\005State\022\025\n\021STATE_UNS" + - "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\017\n\013UNAVAILABLE\020\002\"" + - "d\n\014CallLogLevel\022\036\n\032CALL_LOG_LEVEL_UNSPEC" + - "IFIED\020\000\022\021\n\rLOG_ALL_CALLS\020\001\022\023\n\017LOG_ERRORS" + - "_ONLY\020\002\022\014\n\010LOG_NONE\020\003:d\352Aa\n!workflows.go" + - "ogleapis.com/Workflow\022\332A\006parent\202\323\344\223\002/\022" + - "-/v1/{parent=projects/*/locations/*}/wor" + - "kflows\022\237\001\n\013GetWorkflow\022-.google.cloud.wo" + - "rkflows.v1.GetWorkflowRequest\032#.google.c" + - "loud.workflows.v1.Workflow\"<\332A\004name\202\323\344\223\002" + - "/\022-/v1/{name=projects/*/locations/*/work" + - "flows/*}\022\340\001\n\016CreateWorkflow\0220.google.clo" + - "ud.workflows.v1.CreateWorkflowRequest\032\035." + - "google.longrunning.Operation\"}\312A\035\n\010Workf" + - "low\022\021OperationMetadata\332A\033parent,workflow" + - ",workflow_id\202\323\344\223\0029\"-/v1/{parent=projects" + - "/*/locations/*}/workflows:\010workflow\022\314\001\n\016" + - "DeleteWorkflow\0220.google.cloud.workflows." + - "v1.DeleteWorkflowRequest\032\035.google.longru" + - "nning.Operation\"i\312A*\n\025google.protobuf.Em" + - "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1" + - "/{name=projects/*/locations/*/workflows/" + - "*}\022\342\001\n\016UpdateWorkflow\0220.google.cloud.wor" + - "kflows.v1.UpdateWorkflowRequest\032\035.google" + - ".longrunning.Operation\"\177\312A\035\n\010Workflow\022\021O" + - "perationMetadata\332A\024workflow,update_mask\202" + - "\323\344\223\002B26/v1/{workflow.name=projects/*/loc" + - "ations/*/workflows/*}:\010workflow\032L\312A\030work" + - "flows.googleapis.com\322A.https://www.googl" + - "eapis.com/auth/cloud-platformB\347\001\n\035com.go" + - "ogle.cloud.workflows.v1B\016WorkflowsProtoP" + - "\001Z;cloud.google.com/go/workflows/apiv1/w" + - "orkflowspb;workflowspb\352Av\n!cloudkms.goog" + - "leapis.com/CryptoKey\022Qprojects/{project}" + - "/locations/{location}/keyRings/{keyRing}" + - "/cryptoKeys/{cryptoKey}b\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_workflows_v1_Workflow_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workflows_v1_Workflow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_descriptor, - new java.lang.String[] { "Name", "Description", "State", "RevisionId", "CreateTime", "UpdateTime", "RevisionCreateTime", "Labels", "ServiceAccount", "SourceContents", "CryptoKeyName", "StateError", "CallLogLevel", "UserEnvVars", "SourceCode", }); - internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor = - internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workflows_v1_Workflow_StateError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_StateError_descriptor, - new java.lang.String[] { "Details", "Type", }); - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor = - internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor = - internal_static_google_cloud_workflows_v1_Workflow_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_Workflow_UserEnvVarsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_ListWorkflowsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_ListWorkflowsResponse_descriptor, - new java.lang.String[] { "Workflows", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_GetWorkflowRequest_descriptor, - new java.lang.String[] { "Name", "RevisionId", }); - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_CreateWorkflowRequest_descriptor, - new java.lang.String[] { "Parent", "Workflow", "WorkflowId", }); - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_DeleteWorkflowRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_UpdateWorkflowRequest_descriptor, - new java.lang.String[] { "Workflow", "UpdateMask", }); - internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workflows_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workflows_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "ApiVersion", }); - 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.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java deleted file mode 100644 index e2ec1e0b13c5..000000000000 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/DeleteWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1beta/workflows.proto - -package com.google.cloud.workflows.v1beta; - -public interface DeleteWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.DeleteWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the workflow to be deleted.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the workflow to be deleted.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * 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/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java deleted file mode 100644 index 06f345fe8456..000000000000 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/GetWorkflowRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1beta/workflows.proto - -package com.google.cloud.workflows.v1beta; - -public interface GetWorkflowRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workflows.v1beta.GetWorkflowRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the workflow which information should be retrieved.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the workflow which information should be retrieved.
-   * Format: projects/{project}/locations/{location}/workflows/{workflow}
-   * 
- * - * 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/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java b/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java deleted file mode 100644 index 18d7cd34f40e..000000000000 --- a/owl-bot-staging/java-workflows/v1beta/proto-google-cloud-workflows-v1beta/src/main/java/com/google/cloud/workflows/v1beta/WorkflowsProto.java +++ /dev/null @@ -1,238 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workflows/v1beta/workflows.proto - -package com.google.cloud.workflows.v1beta; - -public final class WorkflowsProto { - private WorkflowsProto() {} - 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_workflows_v1beta_Workflow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_Workflow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_Workflow_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_ListWorkflowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_ListWorkflowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_GetWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_CreateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_DeleteWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_UpdateWorkflowRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workflows_v1beta_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workflows_v1beta_OperationMetadata_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/workflows/v1beta/workflow" + - "s.proto\022\035google.cloud.workflows.v1beta\032\034" + - "google/api/annotations.proto\032\027google/api" + - "/client.proto\032\037google/api/field_behavior" + - ".proto\032\031google/api/resource.proto\032#googl" + - "e/longrunning/operations.proto\032 google/p" + - "rotobuf/field_mask.proto\032\037google/protobu" + - "f/timestamp.proto\"\203\005\n\010Workflow\022\014\n\004name\030\001" + - " \001(\t\022\023\n\013description\030\002 \001(\t\022B\n\005state\030\003 \001(\016" + - "2-.google.cloud.workflows.v1beta.Workflo" + - "w.StateB\004\342A\001\003\022\031\n\013revision_id\030\004 \001(\tB\004\342A\001\003" + - "\0225\n\013create_time\030\005 \001(\0132\032.google.protobuf." + - "TimestampB\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\004\342A\001\003\022>\n\024revisi" + - "on_create_time\030\007 \001(\0132\032.google.protobuf.T" + - "imestampB\004\342A\001\003\022C\n\006labels\030\010 \003(\01323.google." + - "cloud.workflows.v1beta.Workflow.LabelsEn" + - "try\022\027\n\017service_account\030\t \001(\t\022\031\n\017source_c" + - "ontents\030\n \001(\tH\000\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"*\n\005State\022\025\n\021STATE" + - "_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001:d\352Aa\n!workflo" + - "ws.googleapis.com/Workflow\022 - * Service for interacting with Cloud Workstations. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1/workstations.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkstationsGrpc { - - private WorkstationsGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.workstations.v1.Workstations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", - requestType = com.google.cloud.workstations.v1.GetWorkstationClusterRequest.class, - responseType = com.google.cloud.workstations.v1.WorkstationCluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { - io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.WorkstationCluster.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) - .build(); - } - } - } - return getGetWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", - requestType = com.google.cloud.workstations.v1.ListWorkstationClustersRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { - io.grpc.MethodDescriptor getListWorkstationClustersMethod; - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationClustersResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) - .build(); - } - } - } - return getListWorkstationClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", - requestType = com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) - .build(); - } - } - } - return getCreateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) - .build(); - } - } - } - return getUpdateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) - .build(); - } - } - } - return getDeleteWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", - requestType = com.google.cloud.workstations.v1.GetWorkstationConfigRequest.class, - responseType = com.google.cloud.workstations.v1.WorkstationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { - io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.WorkstationConfig.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) - .build(); - } - } - } - return getGetWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", - requestType = com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) - .build(); - } - } - } - return getListWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", - requestType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) - .build(); - } - } - } - return getListUsableWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", - requestType = com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) - .build(); - } - } - } - return getCreateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) - .build(); - } - } - } - return getUpdateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) - .build(); - } - } - } - return getDeleteWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", - requestType = com.google.cloud.workstations.v1.GetWorkstationRequest.class, - responseType = com.google.cloud.workstations.v1.Workstation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationMethod() { - io.grpc.MethodDescriptor getGetWorkstationMethod; - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GetWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.Workstation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) - .build(); - } - } - } - return getGetWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", - requestType = com.google.cloud.workstations.v1.ListWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1.ListWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationsMethod() { - io.grpc.MethodDescriptor getListWorkstationsMethod; - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) - .build(); - } - } - } - return getListWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", - requestType = com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) - .build(); - } - } - } - return getListUsableWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", - requestType = com.google.cloud.workstations.v1.CreateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { - io.grpc.MethodDescriptor getCreateWorkstationMethod; - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.CreateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) - .build(); - } - } - } - return getCreateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", - requestType = com.google.cloud.workstations.v1.UpdateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationMethod; - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.UpdateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) - .build(); - } - } - } - return getUpdateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", - requestType = com.google.cloud.workstations.v1.DeleteWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationMethod; - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.DeleteWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) - .build(); - } - } - } - return getDeleteWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", - requestType = com.google.cloud.workstations.v1.StartWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartWorkstationMethod() { - io.grpc.MethodDescriptor getStartWorkstationMethod; - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.StartWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) - .build(); - } - } - } - return getStartWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", - requestType = com.google.cloud.workstations.v1.StopWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopWorkstationMethod() { - io.grpc.MethodDescriptor getStopWorkstationMethod; - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.StopWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) - .build(); - } - } - } - return getStopWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", - requestType = com.google.cloud.workstations.v1.GenerateAccessTokenRequest.class, - responseType = com.google.cloud.workstations.v1.GenerateAccessTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { - io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1.GenerateAccessTokenResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) - .build(); - } - } - } - return getGenerateAccessTokenMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WorkstationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - }; - return WorkstationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkstationsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - }; - return WorkstationsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WorkstationsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - }; - return WorkstationsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - default void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - default void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - default void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - default void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - default void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - default void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - default void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - default void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - default void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - default void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - default void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - default void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - default void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - default void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - default void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - default void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - default void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - default void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - default void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static abstract class WorkstationsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return WorkstationsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkstationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public void getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public void listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public void createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public void updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public void deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public void getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public void listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public void createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public void updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public void deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public void getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public void listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public void listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public void createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public void updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public void deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public void startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public void stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public void generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkstationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.cloud.workstations.v1.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.cloud.workstations.v1.Workstation getWorkstation(com.google.cloud.workstations.v1.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.cloud.workstations.v1.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.cloud.workstations.v1.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkstationsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( - com.google.cloud.workstations.v1.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( - com.google.cloud.workstations.v1.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( - com.google.cloud.workstations.v1.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstation( - com.google.cloud.workstations.v1.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstations( - com.google.cloud.workstations.v1.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstation( - com.google.cloud.workstations.v1.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstation( - com.google.cloud.workstations.v1.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( - com.google.cloud.workstations.v1.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startWorkstation( - com.google.cloud.workstations.v1.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopWorkstation( - com.google.cloud.workstations.v1.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateAccessToken( - com.google.cloud.workstations.v1.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; - private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; - private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; - private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; - private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; - private static final int METHODID_GET_WORKSTATION_CONFIG = 5; - private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; - private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; - private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; - private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; - private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; - private static final int METHODID_GET_WORKSTATION = 11; - private static final int METHODID_LIST_WORKSTATIONS = 12; - private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; - private static final int METHODID_CREATE_WORKSTATION = 14; - private static final int METHODID_UPDATE_WORKSTATION = 15; - private static final int METHODID_DELETE_WORKSTATION = 16; - private static final int METHODID_START_WORKSTATION = 17; - private static final int METHODID_STOP_WORKSTATION = 18; - private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: - serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1.GetWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CLUSTERS: - serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1.ListWorkstationClustersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CLUSTER: - serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1.CreateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CLUSTER: - serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CLUSTER: - serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION_CONFIG: - serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1.GetWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CONFIGS: - serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1.ListWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: - serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CONFIG: - serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1.CreateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CONFIG: - serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CONFIG: - serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION: - serviceImpl.getWorkstation((com.google.cloud.workstations.v1.GetWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATIONS: - serviceImpl.listWorkstations((com.google.cloud.workstations.v1.ListWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATIONS: - serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1.ListUsableWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION: - serviceImpl.createWorkstation((com.google.cloud.workstations.v1.CreateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION: - serviceImpl.updateWorkstation((com.google.cloud.workstations.v1.UpdateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION: - serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1.DeleteWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_WORKSTATION: - serviceImpl.startWorkstation((com.google.cloud.workstations.v1.StartWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_WORKSTATION: - serviceImpl.stopWorkstation((com.google.cloud.workstations.v1.StopWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_ACCESS_TOKEN: - serviceImpl.generateAccessToken((com.google.cloud.workstations.v1.GenerateAccessTokenRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1.WorkstationCluster>( - service, METHODID_GET_WORKSTATION_CLUSTER))) - .addMethod( - getListWorkstationClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1.ListWorkstationClustersResponse>( - service, METHODID_LIST_WORKSTATION_CLUSTERS))) - .addMethod( - getCreateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CLUSTER))) - .addMethod( - getUpdateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CLUSTER))) - .addMethod( - getDeleteWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CLUSTER))) - .addMethod( - getGetWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1.WorkstationConfig>( - service, METHODID_GET_WORKSTATION_CONFIG))) - .addMethod( - getListWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListWorkstationConfigsResponse>( - service, METHODID_LIST_WORKSTATION_CONFIGS))) - .addMethod( - getListUsableWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse>( - service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) - .addMethod( - getCreateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CONFIG))) - .addMethod( - getUpdateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CONFIG))) - .addMethod( - getDeleteWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CONFIG))) - .addMethod( - getGetWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GetWorkstationRequest, - com.google.cloud.workstations.v1.Workstation>( - service, METHODID_GET_WORKSTATION))) - .addMethod( - getListWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListWorkstationsRequest, - com.google.cloud.workstations.v1.ListWorkstationsResponse>( - service, METHODID_LIST_WORKSTATIONS))) - .addMethod( - getListUsableWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1.ListUsableWorkstationsResponse>( - service, METHODID_LIST_USABLE_WORKSTATIONS))) - .addMethod( - getCreateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.CreateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION))) - .addMethod( - getUpdateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.UpdateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION))) - .addMethod( - getDeleteWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.DeleteWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION))) - .addMethod( - getStartWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.StartWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_START_WORKSTATION))) - .addMethod( - getStopWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.StopWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_STOP_WORKSTATION))) - .addMethod( - getGenerateAccessTokenMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1.GenerateAccessTokenResponse>( - service, METHODID_GENERATE_ACCESS_TOKEN))) - .build(); - } - - private static abstract class WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkstationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workstations.v1.WorkstationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Workstations"); - } - } - - private static final class WorkstationsFileDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier { - WorkstationsFileDescriptorSupplier() {} - } - - private static final class WorkstationsMethodDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) - .addMethod(getGetWorkstationClusterMethod()) - .addMethod(getListWorkstationClustersMethod()) - .addMethod(getCreateWorkstationClusterMethod()) - .addMethod(getUpdateWorkstationClusterMethod()) - .addMethod(getDeleteWorkstationClusterMethod()) - .addMethod(getGetWorkstationConfigMethod()) - .addMethod(getListWorkstationConfigsMethod()) - .addMethod(getListUsableWorkstationConfigsMethod()) - .addMethod(getCreateWorkstationConfigMethod()) - .addMethod(getUpdateWorkstationConfigMethod()) - .addMethod(getDeleteWorkstationConfigMethod()) - .addMethod(getGetWorkstationMethod()) - .addMethod(getListWorkstationsMethod()) - .addMethod(getListUsableWorkstationsMethod()) - .addMethod(getCreateWorkstationMethod()) - .addMethod(getUpdateWorkstationMethod()) - .addMethod(getDeleteWorkstationMethod()) - .addMethod(getStartWorkstationMethod()) - .addMethod(getStopWorkstationMethod()) - .addMethod(getGenerateAccessTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java deleted file mode 100644 index de5face476b3..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationClusterRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java deleted file mode 100644 index 82930ab5dfad..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationConfigRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java deleted file mode 100644 index 83c5b482bd3f..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/GetWorkstationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public interface GetWorkstationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1.GetWorkstationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java deleted file mode 100644 index 93990bd7ec8d..000000000000 --- a/owl-bot-staging/java-workstations/v1/proto-google-cloud-workstations-v1/src/main/java/com/google/cloud/workstations/v1/WorkstationsProto.java +++ /dev/null @@ -1,983 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1/workstations.proto - -package com.google.cloud.workstations.v1; - -public final class WorkstationsProto { - private WorkstationsProto() {} - 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_workstations_v1_WorkstationCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1_OperationMetadata_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/workstations/v1/workstati" + - "ons.proto\022\034google.cloud.workstations.v1\032" + - "\034google/api/annotations.proto\032\027google/ap" + - "i/client.proto\032\037google/api/field_behavio" + - "r.proto\032\031google/api/resource.proto\032#goog" + - "le/longrunning/operations.proto\032\036google/" + - "protobuf/duration.proto\032 google/protobuf" + - "/field_mask.proto\032\037google/protobuf/times" + - "tamp.proto\032\027google/rpc/status.proto\"\232\t\n\022" + - "WorkstationCluster\022\014\n\004name\030\001 \001(\t\022\032\n\014disp" + - "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022" + - "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022\\\n\013annotation" + - "s\030\005 \003(\0132A.google.cloud.workstations.v1.W" + - "orkstationCluster.AnnotationsEntryB\004\342A\001\001" + - "\022R\n\006labels\030\017 \003(\0132<.google.cloud.workstat" + - "ions.v1.WorkstationCluster.LabelsEntryB\004" + - "\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google.proto" + - "buf.TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\013" + - "2\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013de" + - "lete_time\030\010 \001(\0132\032.google.protobuf.Timest" + - "ampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022\025\n\007network" + - "\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwork\030\013 \001(\tB\004\342A\001\005\022\036" + - "\n\020control_plane_ip\030\020 \001(\tB\004\342A\001\003\022k\n\026privat" + - "e_cluster_config\030\014 \001(\0132E.google.cloud.wo" + - "rkstations.v1.WorkstationCluster.Private" + - "ClusterConfigB\004\342A\001\001\022\026\n\010degraded\030\r \001(\010B\004\342" + - "A\001\003\022,\n\nconditions\030\016 \003(\0132\022.google.rpc.Sta" + - "tusB\004\342A\001\003\032\243\001\n\024PrivateClusterConfig\022%\n\027en" + - "able_private_endpoint\030\001 \001(\010B\004\342A\001\005\022\036\n\020clu" + - "ster_hostname\030\002 \001(\tB\004\342A\001\003\022$\n\026service_att" + - "achment_uri\030\003 \001(\tB\004\342A\001\003\022\036\n\020allowed_proje" + - "cts\030\004 \003(\tB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\263\001\352A\257" + - "\001\n.workstations.googleapis.com/Workstati" + - "onCluster\022Qprojects/{project}/locations/" + - "{location}/workstationClusters/{workstat" + - "ion_cluster}*\023workstationClusters2\022works" + - "tationClusterR\001\001\"\342\031\n\021WorkstationConfig\022\014" + - "\n\004name\030\001 \001(\t\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001" + - "\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010" + - "B\004\342A\001\003\022[\n\013annotations\030\005 \003(\0132@.google.clo" + - "ud.workstations.v1.WorkstationConfig.Ann" + - "otationsEntryB\004\342A\001\001\022Q\n\006labels\030\022 \003(\0132;.go" + - "ogle.cloud.workstations.v1.WorkstationCo" + - "nfig.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 " + - "\001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + - "\013update_time\030\007 \001(\0132\032.google.protobuf.Tim" + - "estampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.goog" + - "le.protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(" + - "\tB\004\342A\001\001\0225\n\014idle_timeout\030\n \001(\0132\031.google.p" + - "rotobuf.DurationB\004\342A\001\001\0228\n\017running_timeou" + - "t\030\013 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001" + - "\022H\n\004host\030\014 \001(\01324.google.cloud.workstatio" + - "ns.v1.WorkstationConfig.HostB\004\342A\001\001\022i\n\026pe" + - "rsistent_directories\030\r \003(\0132C.google.clou" + - "d.workstations.v1.WorkstationConfig.Pers" + - "istentDirectoryB\004\342A\001\001\022R\n\tcontainer\030\016 \001(\013" + - "29.google.cloud.workstations.v1.Workstat" + - "ionConfig.ContainerB\004\342A\001\001\022c\n\016encryption_" + - "key\030\021 \001(\0132E.google.cloud.workstations.v1" + - ".WorkstationConfig.CustomerEncryptionKey" + - "B\004\342A\001\005\022^\n\020readiness_checks\030\023 \003(\0132>.googl" + - "e.cloud.workstations.v1.WorkstationConfi" + - "g.ReadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030" + - "\027 \003(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\n" + - "conditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A" + - "\001\003\032\204\007\n\004Host\022X\n\014gce_instance\030\001 \001(\0132@.goog" + - "le.cloud.workstations.v1.WorkstationConf" + - "ig.Host.GceInstanceH\000\032\227\006\n\013GceInstance\022\032\n" + - "\014machine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_acc" + - "ount\030\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scop" + - "es\030\003 \003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpo" + - "ol_size\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030" + - "\014 \001(\005B\004\342A\001\003\022)\n\033disable_public_ip_address" + - "es\030\006 \001(\010B\004\342A\001\001\022*\n\034enable_nested_virtuali" + - "zation\030\007 \001(\010B\004\342A\001\001\022\202\001\n\030shielded_instance" + - "_config\030\010 \001(\0132Z.google.cloud.workstation" + - "s.v1.WorkstationConfig.Host.GceInstance." + - "GceShieldedInstanceConfigB\004\342A\001\001\022\212\001\n\034conf" + - "idential_instance_config\030\n \001(\0132^.google." + - "cloud.workstations.v1.WorkstationConfig." + - "Host.GceInstance.GceConfidentialInstance" + - "ConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001(\005B" + - "\004\342A\001\001\032\203\001\n\031GceShieldedInstanceConfig\022 \n\022e" + - "nable_secure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_" + - "vtpm\030\002 \001(\010B\004\342A\001\001\022)\n\033enable_integrity_mon" + - "itoring\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialIn" + - "stanceConfig\022)\n\033enable_confidential_comp" + - "ute\030\001 \001(\010B\004\342A\001\001B\010\n\006config\032\213\004\n\023Persistent" + - "Directory\022o\n\006gce_pd\030\002 \001(\0132].google.cloud" + - ".workstations.v1.WorkstationConfig.Persi" + - "stentDirectory.GceRegionalPersistentDisk" + - "H\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001\001\032\326\002\n\031GceRegi" + - "onalPersistentDisk\022\025\n\007size_gb\030\001 \001(\005B\004\342A\001" + - "\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n\tdisk_type\030\003 " + - "\001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\005 \001(\tB\004\342A\001\001" + - "\022\211\001\n\016reclaim_policy\030\004 \001(\0162k.google.cloud" + - ".workstations.v1.WorkstationConfig.Persi" + - "stentDirectory.GceRegionalPersistentDisk" + - ".ReclaimPolicyB\004\342A\001\001\"G\n\rReclaimPolicy\022\036\n" + - "\032RECLAIM_POLICY_UNSPECIFIED\020\000\022\n\n\006DELETE\020" + - "\001\022\n\n\006RETAIN\020\002B\020\n\016directory_type\032\204\002\n\tCont" + - "ainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command\030\002 " + - "\003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022U\n\003env\030\004 \003" + - "(\0132B.google.cloud.workstations.v1.Workst" + - "ationConfig.Container.EnvEntryB\004\342A\001\001\022\031\n\013" + - "working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as_user\030\006" + - " \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\032U\n\025CustomerEncryptionKey\022" + - "\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key_servic" + - "e_account\030\002 \001(\tB\004\342A\001\005\0328\n\016ReadinessCheck\022" + - "\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005B\004\342A\001\001\032" + - "2\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workstations." + - "googleapis.com/WorkstationConfig\022yprojec" + - "ts/{project}/locations/{location}/workst" + - "ationClusters/{workstation_cluster}/work" + - "stationConfigs/{workstation_config}*\022wor" + - "kstationConfigs2\021workstationConfigR\001\001\"\210\010" + - "\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014display_n" + - "ame\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013re" + - "conciling\030\004 \001(\010B\004\342A\001\003\022U\n\013annotations\030\005 \003" + - "(\0132:.google.cloud.workstations.v1.Workst" + - "ation.AnnotationsEntryB\004\342A\001\001\022K\n\006labels\030\r" + - " \003(\01325.google.cloud.workstations.v1.Work" + - "station.LabelsEntryB\004\342A\001\001\0225\n\013create_time" + - "\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + - "\0225\n\013update_time\030\007 \001(\0132\032.google.protobuf." + - "TimestampB\004\342A\001\003\0224\n\nstart_time\030\016 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\004\342A\001\003\0225\n\013delete_" + - "time\030\010 \001(\0132\032.google.protobuf.TimestampB\004" + - "\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022D\n\005state\030\n \001(\0162" + - "/.google.cloud.workstations.v1.Workstati" + - "on.StateB\004\342A\001\003\022\022\n\004host\030\013 \001(\tB\004\342A\001\003\0322\n\020An" + - "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"l\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\022\n\016STATE_STARTING\020\001\022\021\n\rSTATE_RUNNI" + - "NG\020\002\022\022\n\016STATE_STOPPING\020\003\022\021\n\rSTATE_STOPPE" + - "D\020\004:\342\001\352A\336\001\n\'workstations.googleapis.com/" + - "Workstation\022\224\001projects/{project}/locatio" + - "ns/{location}/workstationClusters/{works" + - "tation_cluster}/workstationConfigs/{work" + - "station_config}/workstations/{workstatio" + - "n}*\014workstations2\013workstationR\001\001\"e\n\034GetW" + - "orkstationClusterRequest\022E\n\004name\030\001 \001(\tB7" + - "\342A\001\002\372A0\n.workstations.googleapis.com/Wor" + - "kstationCluster\"\234\001\n\036ListWorkstationClust" + - "ersRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.wor" + - "kstations.googleapis.com/WorkstationClus" + - "ter\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_tok" + - "en\030\003 \001(\tB\004\342A\001\001\"\237\001\n\037ListWorkstationCluste" + - "rsResponse\022N\n\024workstation_clusters\030\001 \003(\013" + - "20.google.cloud.workstations.v1.Workstat" + - "ionCluster\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + - "nreachable\030\003 \003(\t\"\202\002\n\037CreateWorkstationCl" + - "usterRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\022.w" + - "orkstations.googleapis.com/WorkstationCl" + - "uster\022$\n\026workstation_cluster_id\030\002 \001(\tB\004\342" + - "A\001\002\022S\n\023workstation_cluster\030\003 \001(\01320.googl" + - "e.cloud.workstations.v1.WorkstationClust" + - "erB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001\001\"\347\001" + - "\n\037UpdateWorkstationClusterRequest\022S\n\023wor" + - "kstation_cluster\030\001 \001(\01320.google.cloud.wo" + - "rkstations.v1.WorkstationClusterB\004\342A\001\002\0225" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A" + - "\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037Dele" + - "teWorkstationClusterRequest\022E\n\004name\030\001 \001(" + - "\tB7\342A\001\002\372A0\n.workstations.googleapis.com/" + - "WorkstationCluster\022\033\n\rvalidate_only\030\002 \001(" + - "\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001" + - "(\010B\004\342A\001\001\"c\n\033GetWorkstationConfigRequest\022" + - "D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goo" + - "gleapis.com/WorkstationConfig\"\233\001\n\035ListWo" + - "rkstationConfigsRequest\022G\n\006parent\030\001 \001(\tB" + - "7\342A\001\002\372A0\n.workstations.googleapis.com/Wo" + - "rkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001" + - "\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\234\001\n\036ListWork" + - "stationConfigsResponse\022L\n\023workstation_co" + - "nfigs\030\001 \003(\0132/.google.cloud.workstations." + - "v1.WorkstationConfig\022\027\n\017next_page_token\030" + - "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsabl" + - "eWorkstationConfigsRequest\022G\n\006parent\030\001 \001" + - "(\tB7\342A\001\002\372A0\n.workstations.googleapis.com" + - "/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005B\004" + - "\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\242\001\n$ListU" + - "sableWorkstationConfigsResponse\022L\n\023works" + - "tation_configs\030\001 \003(\0132/.google.cloud.work" + - "stations.v1.WorkstationConfig\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\376\001\n\036" + - "CreateWorkstationConfigRequest\022G\n\006parent" + - "\030\001 \001(\tB7\342A\001\002\372A0\n.workstations.googleapis" + - ".com/WorkstationCluster\022#\n\025workstation_c" + - "onfig_id\030\002 \001(\tB\004\342A\001\002\022Q\n\022workstation_conf" + - "ig\030\003 \001(\0132/.google.cloud.workstations.v1." + - "WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_only" + - "\030\004 \001(\010B\004\342A\001\001\"\344\001\n\036UpdateWorkstationConfig" + - "Request\022Q\n\022workstation_config\030\001 \001(\0132/.go" + - "ogle.cloud.workstations.v1.WorkstationCo" + - "nfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google" + - ".protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_on" + - "ly\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342" + - "A\001\001\"\254\001\n\036DeleteWorkstationConfigRequest\022D" + - "\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog" + - "leapis.com/WorkstationConfig\022\033\n\rvalidate" + - "_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n" + - "\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstationRequ" + - "est\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstations" + - ".googleapis.com/Workstation\"\224\001\n\027ListWork" + - "stationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/" + - "\n-workstations.googleapis.com/Workstatio" + - "nConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + - "_token\030\003 \001(\tB\004\342A\001\001\"\225\001\n\030ListWorkstationsR" + - "esponse\022?\n\014workstations\030\001 \003(\0132).google.c" + - "loud.workstations.v1.Workstation\022\035\n\017next" + - "_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unreachable\030\003" + - " \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorkstationsReq" + - "uest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstati" + - "ons.googleapis.com/WorkstationConfig\022\027\n\t" + - "page_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(" + - "\tB\004\342A\001\001\"\217\001\n\036ListUsableWorkstationsRespon" + - "se\022?\n\014workstations\030\001 \003(\0132).google.cloud." + - "workstations.v1.Workstation\022\027\n\017next_page" + - "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\343\001\n\030Cr" + - "eateWorkstationRequest\022F\n\006parent\030\001 \001(\tB6" + - "\342A\001\002\372A/\n-workstations.googleapis.com/Wor" + - "kstationConfig\022\034\n\016workstation_id\030\002 \001(\tB\004" + - "\342A\001\002\022D\n\013workstation\030\003 \001(\0132).google.cloud" + - ".workstations.v1.WorkstationB\004\342A\001\002\022\033\n\rva" + - "lidate_only\030\004 \001(\010B\004\342A\001\001\"\321\001\n\030UpdateWorkst" + - "ationRequest\022D\n\013workstation\030\001 \001(\0132).goog" + - "le.cloud.workstations.v1.WorkstationB\004\342A" + - "\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + - "f.FieldMaskB\004\342A\001\002\022\033\n\rvalidate_only\030\003 \001(\010" + - "B\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030" + - "DeleteWorkstationRequest\022>\n\004name\030\001 \001(\tB0" + - "\342A\001\002\372A)\n\'workstations.googleapis.com/Wor" + - "kstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n" + - "\004etag\030\003 \001(\tB\004\342A\001\001\"\212\001\n\027StartWorkstationRe" + - "quest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstatio" + - "ns.googleapis.com/Workstation\022\033\n\rvalidat" + - "e_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211" + - "\001\n\026StopWorkstationRequest\022>\n\004name\030\001 \001(\tB" + - "0\342A\001\002\372A)\n\'workstations.googleapis.com/Wo" + - "rkstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022" + - "\n\004etag\030\003 \001(\tB\004\342A\001\001\"\316\001\n\032GenerateAccessTok" + - "enRequest\0221\n\013expire_time\030\002 \001(\0132\032.google." + - "protobuf.TimestampH\000\022(\n\003ttl\030\003 \001(\0132\031.goog" + - "le.protobuf.DurationH\000\022E\n\013workstation\030\001 " + - "\001(\tB0\342A\001\002\372A)\n\'workstations.googleapis.co" + - "m/WorkstationB\014\n\nexpiration\"d\n\033GenerateA" + - "ccessTokenResponse\022\024\n\014access_token\030\001 \001(\t" + - "\022/\n\013expire_time\030\002 \001(\0132\032.google.protobuf." + - "Timestamp\"\207\002\n\021OperationMetadata\0225\n\013creat" + - "e_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + - "B\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.protob" + - "uf.TimestampB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB\004\342A\001\003" + - "\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016status_message\030\005" + - " \001(\tB\004\342A\001\003\022$\n\026requested_cancellation\030\006 \001" + - "(\010B\004\342A\001\003\022\031\n\013api_version\030\007 \001(\tB\004\342A\001\0032\233*\n\014" + - "Workstations\022\315\001\n\025GetWorkstationCluster\022:" + - ".google.cloud.workstations.v1.GetWorksta" + - "tionClusterRequest\0320.google.cloud.workst" + - "ations.v1.WorkstationCluster\"F\332A\004name\202\323\344" + - "\223\0029\0227/v1/{name=projects/*/locations/*/wo" + - "rkstationClusters/*}\022\340\001\n\027ListWorkstation" + - "Clusters\022<.google.cloud.workstations.v1." + - "ListWorkstationClustersRequest\032=.google." + - "cloud.workstations.v1.ListWorkstationClu" + - "stersResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{par" + - "ent=projects/*/locations/*}/workstationC" + - "lusters\022\255\002\n\030CreateWorkstationCluster\022=.g" + - "oogle.cloud.workstations.v1.CreateWorkst" + - "ationClusterRequest\032\035.google.longrunning" + - ".Operation\"\262\001\312A\'\n\022WorkstationCluster\022\021Op" + - "erationMetadata\332A1parent,workstation_clu" + - "ster,workstation_cluster_id\202\323\344\223\002N\"7/v1/{" + - "parent=projects/*/locations/*}/workstati" + - "onClusters:\023workstation_cluster\022\257\002\n\030Upda" + - "teWorkstationCluster\022=.google.cloud.work" + - "stations.v1.UpdateWorkstationClusterRequ" + - "est\032\035.google.longrunning.Operation\"\264\001\312A\'" + - "\n\022WorkstationCluster\022\021OperationMetadata\332" + - "A\037workstation_cluster,update_mask\202\323\344\223\002b2" + - "K/v1/{workstation_cluster.name=projects/" + - "*/locations/*/workstationClusters/*}:\023wo" + - "rkstation_cluster\022\352\001\n\030DeleteWorkstationC" + - "luster\022=.google.cloud.workstations.v1.De" + - "leteWorkstationClusterRequest\032\035.google.l" + - "ongrunning.Operation\"p\312A\'\n\022WorkstationCl" + - "uster\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7/" + - "v1/{name=projects/*/locations/*/workstat" + - "ionClusters/*}\022\337\001\n\024GetWorkstationConfig\022" + - "9.google.cloud.workstations.v1.GetWorkst" + - "ationConfigRequest\032/.google.cloud.workst" + - "ations.v1.WorkstationConfig\"[\332A\004name\202\323\344\223" + - "\002N\022L/v1/{name=projects/*/locations/*/wor" + - "kstationClusters/*/workstationConfigs/*}" + - "\022\362\001\n\026ListWorkstationConfigs\022;.google.clo" + - "ud.workstations.v1.ListWorkstationConfig" + - "sRequest\032<.google.cloud.workstations.v1." + - "ListWorkstationConfigsResponse\"]\332A\006paren" + - "t\202\323\344\223\002N\022L/v1/{parent=projects/*/location" + - "s/*/workstationClusters/*}/workstationCo" + - "nfigs\022\217\002\n\034ListUsableWorkstationConfigs\022A" + - ".google.cloud.workstations.v1.ListUsable" + - "WorkstationConfigsRequest\032B.google.cloud" + - ".workstations.v1.ListUsableWorkstationCo" + - "nfigsResponse\"h\332A\006parent\202\323\344\223\002Y\022W/v1/{par" + - "ent=projects/*/locations/*/workstationCl" + - "usters/*}/workstationConfigs:listUsable\022" + - "\274\002\n\027CreateWorkstationConfig\022<.google.clo" + - "ud.workstations.v1.CreateWorkstationConf" + - "igRequest\032\035.google.longrunning.Operation" + - "\"\303\001\312A&\n\021WorkstationConfig\022\021OperationMeta" + - "data\332A/parent,workstation_config,worksta" + - "tion_config_id\202\323\344\223\002b\"L/v1/{parent=projec" + - "ts/*/locations/*/workstationClusters/*}/" + - "workstationConfigs:\022workstation_config\022\276" + - "\002\n\027UpdateWorkstationConfig\022<.google.clou" + - "d.workstations.v1.UpdateWorkstationConfi" + - "gRequest\032\035.google.longrunning.Operation\"" + - "\305\001\312A&\n\021WorkstationConfig\022\021OperationMetad" + - "ata\332A\036workstation_config,update_mask\202\323\344\223" + - "\002u2_/v1/{workstation_config.name=project" + - "s/*/locations/*/workstationClusters/*/wo" + - "rkstationConfigs/*}:\022workstation_config\022" + - "\375\001\n\027DeleteWorkstationConfig\022<.google.clo" + - "ud.workstations.v1.DeleteWorkstationConf" + - "igRequest\032\035.google.longrunning.Operation" + - "\"\204\001\312A&\n\021WorkstationConfig\022\021OperationMeta" + - "data\332A\004name\202\323\344\223\002N*L/v1/{name=projects/*/" + - "locations/*/workstationClusters/*/workst" + - "ationConfigs/*}\022\334\001\n\016GetWorkstation\0223.goo" + - "gle.cloud.workstations.v1.GetWorkstation" + - "Request\032).google.cloud.workstations.v1.W" + - "orkstation\"j\332A\004name\202\323\344\223\002]\022[/v1/{name=pro" + - "jects/*/locations/*/workstationClusters/" + - "*/workstationConfigs/*/workstations/*}\022\357" + - "\001\n\020ListWorkstations\0225.google.cloud.works" + - "tations.v1.ListWorkstationsRequest\0326.goo" + - "gle.cloud.workstations.v1.ListWorkstatio" + - "nsResponse\"l\332A\006parent\202\323\344\223\002]\022[/v1/{parent" + - "=projects/*/locations/*/workstationClust" + - "ers/*/workstationConfigs/*}/workstations" + - "\022\214\002\n\026ListUsableWorkstations\022;.google.clo" + - "ud.workstations.v1.ListUsableWorkstation" + - "sRequest\032<.google.cloud.workstations.v1." + - "ListUsableWorkstationsResponse\"w\332A\006paren" + - "t\202\323\344\223\002h\022f/v1/{parent=projects/*/location" + - "s/*/workstationClusters/*/workstationCon" + - "figs/*}/workstations:listUsable\022\244\002\n\021Crea" + - "teWorkstation\0226.google.cloud.workstation" + - "s.v1.CreateWorkstationRequest\032\035.google.l" + - "ongrunning.Operation\"\267\001\312A \n\013Workstation\022" + - "\021OperationMetadata\332A!parent,workstation," + - "workstation_id\202\323\344\223\002j\"[/v1/{parent=projec" + - "ts/*/locations/*/workstationClusters/*/w" + - "orkstationConfigs/*}/workstations:\013works" + - "tation\022\246\002\n\021UpdateWorkstation\0226.google.cl" + - "oud.workstations.v1.UpdateWorkstationReq" + - "uest\032\035.google.longrunning.Operation\"\271\001\312A" + - " \n\013Workstation\022\021OperationMetadata\332A\027work" + - "station,update_mask\202\323\344\223\002v2g/v1/{workstat" + - "ion.name=projects/*/locations/*/workstat" + - "ionClusters/*/workstationConfigs/*/works" + - "tations/*}:\013workstation\022\372\001\n\021DeleteWorkst" + - "ation\0226.google.cloud.workstations.v1.Del" + - "eteWorkstationRequest\032\035.google.longrunni" + - "ng.Operation\"\215\001\312A \n\013Workstation\022\021Operati" + - "onMetadata\332A\004name\202\323\344\223\002]*[/v1/{name=proje" + - "cts/*/locations/*/workstationClusters/*/" + - "workstationConfigs/*/workstations/*}\022\201\002\n" + - "\020StartWorkstation\0225.google.cloud.worksta" + - "tions.v1.StartWorkstationRequest\032\035.googl" + - "e.longrunning.Operation\"\226\001\312A \n\013Workstati" + - "on\022\021OperationMetadata\332A\004name\202\323\344\223\002f\"a/v1/" + - "{name=projects/*/locations/*/workstation" + - "Clusters/*/workstationConfigs/*/workstat" + - "ions/*}:start:\001*\022\376\001\n\017StopWorkstation\0224.g" + - "oogle.cloud.workstations.v1.StopWorkstat" + - "ionRequest\032\035.google.longrunning.Operatio" + - "n\"\225\001\312A \n\013Workstation\022\021OperationMetadata\332" + - "A\004name\202\323\344\223\002e\"`/v1/{name=projects/*/locat" + - "ions/*/workstationClusters/*/workstation" + - "Configs/*/workstations/*}:stop:\001*\022\234\002\n\023Ge" + - "nerateAccessToken\0228.google.cloud.worksta" + - "tions.v1.GenerateAccessTokenRequest\0329.go" + - "ogle.cloud.workstations.v1.GenerateAcces" + - "sTokenResponse\"\217\001\332A\013workstation\202\323\344\223\002{\"v/" + - "v1/{workstation=projects/*/locations/*/w" + - "orkstationClusters/*/workstationConfigs/" + - "*/workstations/*}:generateAccessToken:\001*" + - "\032O\312A\033workstations.googleapis.com\322A.https" + - "://www.googleapis.com/auth/cloud-platfor" + - "mB}\n com.google.cloud.workstations.v1B\021W" + - "orkstationsProtoP\001ZDcloud.google.com/go/", - "workstations/apiv1/workstationspb;workst" + - "ationspbb\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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "ControlPlaneIp", "PrivateClusterConfig", "Degraded", "Conditions", }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_PrivateClusterConfig_descriptor, - new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationCluster_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationCluster_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "Container", "EncryptionKey", "ReadinessChecks", "ReplicaZones", "Degraded", "Conditions", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor, - new java.lang.String[] { "GceInstance", "Config", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor, - new java.lang.String[] { "MachineType", "ServiceAccount", "ServiceAccountScopes", "Tags", "PoolSize", "PooledInstances", "DisablePublicIpAddresses", "EnableNestedVirtualization", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, - new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, - new java.lang.String[] { "EnableConfidentialCompute", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor, - new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, - new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor, - new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_Container_EnvEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_CustomerEncryptionKey_descriptor, - new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_ReadinessCheck_descriptor, - new java.lang.String[] { "Path", "Port", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_WorkstationConfig_descriptor.getNestedTypes().get(6); - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_WorkstationConfig_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_Workstation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workstations_v1_Workstation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "StartTime", "DeleteTime", "Etag", "State", "Host", }); - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1_Workstation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_Workstation_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationClustersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationClustersResponse_descriptor, - new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GetWorkstationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_ListUsableWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_CreateWorkstationRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_UpdateWorkstationRequest_descriptor, - new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_DeleteWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_StartWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_StopWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GenerateAccessTokenRequest_descriptor, - new java.lang.String[] { "ExpireTime", "Ttl", "Workstation", "Expiration", }); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_GenerateAccessTokenResponse_descriptor, - new java.lang.String[] { "AccessToken", "ExpireTime", }); - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_workstations_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - 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.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java b/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java deleted file mode 100644 index 05902c3cd0dc..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/grpc-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsGrpc.java +++ /dev/null @@ -1,1969 +0,0 @@ -package com.google.cloud.workstations.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service for interacting with Cloud Workstations.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/workstations/v1beta/workstations.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class WorkstationsGrpc { - - private WorkstationsGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.workstations.v1beta.Workstations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationCluster.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationClusterMethod() { - io.grpc.MethodDescriptor getGetWorkstationClusterMethod; - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationClusterMethod = WorkstationsGrpc.getGetWorkstationClusterMethod) == null) { - WorkstationsGrpc.getGetWorkstationClusterMethod = getGetWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationCluster.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationCluster")) - .build(); - } - } - } - return getGetWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationClustersMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationClusters", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationClustersMethod() { - io.grpc.MethodDescriptor getListWorkstationClustersMethod; - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationClustersMethod = WorkstationsGrpc.getListWorkstationClustersMethod) == null) { - WorkstationsGrpc.getListWorkstationClustersMethod = getListWorkstationClustersMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationClusters")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationClusters")) - .build(); - } - } - } - return getListWorkstationClustersMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getCreateWorkstationClusterMethod; - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationClusterMethod = WorkstationsGrpc.getCreateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getCreateWorkstationClusterMethod = getCreateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationCluster")) - .build(); - } - } - } - return getCreateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationClusterMethod; - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationClusterMethod = WorkstationsGrpc.getUpdateWorkstationClusterMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationClusterMethod = getUpdateWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationCluster")) - .build(); - } - } - } - return getUpdateWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationCluster", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationClusterMethod; - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationClusterMethod = WorkstationsGrpc.getDeleteWorkstationClusterMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationClusterMethod = getDeleteWorkstationClusterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationCluster")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationCluster")) - .build(); - } - } - } - return getDeleteWorkstationClusterMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.class, - responseType = com.google.cloud.workstations.v1beta.WorkstationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationConfigMethod() { - io.grpc.MethodDescriptor getGetWorkstationConfigMethod; - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationConfigMethod = WorkstationsGrpc.getGetWorkstationConfigMethod) == null) { - WorkstationsGrpc.getGetWorkstationConfigMethod = getGetWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.WorkstationConfig.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstationConfig")) - .build(); - } - } - } - return getGetWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListWorkstationConfigsMethod; - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationConfigsMethod = WorkstationsGrpc.getListWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListWorkstationConfigsMethod = getListWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstationConfigs")) - .build(); - } - } - } - return getListWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstationConfigs", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationConfigsMethod; - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationConfigsMethod = WorkstationsGrpc.getListUsableWorkstationConfigsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationConfigsMethod = getListUsableWorkstationConfigsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstationConfigs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstationConfigs")) - .build(); - } - } - } - return getListUsableWorkstationConfigsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getCreateWorkstationConfigMethod; - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationConfigMethod = WorkstationsGrpc.getCreateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getCreateWorkstationConfigMethod = getCreateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstationConfig")) - .build(); - } - } - } - return getCreateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationConfigMethod; - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationConfigMethod = WorkstationsGrpc.getUpdateWorkstationConfigMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationConfigMethod = getUpdateWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstationConfig")) - .build(); - } - } - } - return getUpdateWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstationConfig", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationConfigMethod; - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationConfigMethod = WorkstationsGrpc.getDeleteWorkstationConfigMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationConfigMethod = getDeleteWorkstationConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstationConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstationConfig")) - .build(); - } - } - } - return getDeleteWorkstationConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWorkstation", - requestType = com.google.cloud.workstations.v1beta.GetWorkstationRequest.class, - responseType = com.google.cloud.workstations.v1beta.Workstation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWorkstationMethod() { - io.grpc.MethodDescriptor getGetWorkstationMethod; - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGetWorkstationMethod = WorkstationsGrpc.getGetWorkstationMethod) == null) { - WorkstationsGrpc.getGetWorkstationMethod = getGetWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GetWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.Workstation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GetWorkstation")) - .build(); - } - } - } - return getGetWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getListWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListWorkstationsMethod() { - io.grpc.MethodDescriptor getListWorkstationsMethod; - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListWorkstationsMethod = WorkstationsGrpc.getListWorkstationsMethod) == null) { - WorkstationsGrpc.getListWorkstationsMethod = getListWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListWorkstations")) - .build(); - } - } - } - return getListWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListUsableWorkstations", - requestType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.class, - responseType = com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListUsableWorkstationsMethod() { - io.grpc.MethodDescriptor getListUsableWorkstationsMethod; - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getListUsableWorkstationsMethod = WorkstationsGrpc.getListUsableWorkstationsMethod) == null) { - WorkstationsGrpc.getListUsableWorkstationsMethod = getListUsableWorkstationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUsableWorkstations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("ListUsableWorkstations")) - .build(); - } - } - } - return getListUsableWorkstationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWorkstation", - requestType = com.google.cloud.workstations.v1beta.CreateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWorkstationMethod() { - io.grpc.MethodDescriptor getCreateWorkstationMethod; - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getCreateWorkstationMethod = WorkstationsGrpc.getCreateWorkstationMethod) == null) { - WorkstationsGrpc.getCreateWorkstationMethod = getCreateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("CreateWorkstation")) - .build(); - } - } - } - return getCreateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateWorkstation", - requestType = com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateWorkstationMethod() { - io.grpc.MethodDescriptor getUpdateWorkstationMethod; - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getUpdateWorkstationMethod = WorkstationsGrpc.getUpdateWorkstationMethod) == null) { - WorkstationsGrpc.getUpdateWorkstationMethod = getUpdateWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("UpdateWorkstation")) - .build(); - } - } - } - return getUpdateWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteWorkstation", - requestType = com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteWorkstationMethod() { - io.grpc.MethodDescriptor getDeleteWorkstationMethod; - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getDeleteWorkstationMethod = WorkstationsGrpc.getDeleteWorkstationMethod) == null) { - WorkstationsGrpc.getDeleteWorkstationMethod = getDeleteWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("DeleteWorkstation")) - .build(); - } - } - } - return getDeleteWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartWorkstation", - requestType = com.google.cloud.workstations.v1beta.StartWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartWorkstationMethod() { - io.grpc.MethodDescriptor getStartWorkstationMethod; - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStartWorkstationMethod = WorkstationsGrpc.getStartWorkstationMethod) == null) { - WorkstationsGrpc.getStartWorkstationMethod = getStartWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StartWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StartWorkstation")) - .build(); - } - } - } - return getStartWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopWorkstationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopWorkstation", - requestType = com.google.cloud.workstations.v1beta.StopWorkstationRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopWorkstationMethod() { - io.grpc.MethodDescriptor getStopWorkstationMethod; - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getStopWorkstationMethod = WorkstationsGrpc.getStopWorkstationMethod) == null) { - WorkstationsGrpc.getStopWorkstationMethod = getStopWorkstationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopWorkstation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.StopWorkstationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("StopWorkstation")) - .build(); - } - } - } - return getStopWorkstationMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateAccessToken", - requestType = com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.class, - responseType = com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateAccessTokenMethod() { - io.grpc.MethodDescriptor getGenerateAccessTokenMethod; - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - synchronized (WorkstationsGrpc.class) { - if ((getGenerateAccessTokenMethod = WorkstationsGrpc.getGenerateAccessTokenMethod) == null) { - WorkstationsGrpc.getGenerateAccessTokenMethod = getGenerateAccessTokenMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateAccessToken")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse.getDefaultInstance())) - .setSchemaDescriptor(new WorkstationsMethodDescriptorSupplier("GenerateAccessToken")) - .build(); - } - } - } - return getGenerateAccessTokenMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static WorkstationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - }; - return WorkstationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static WorkstationsBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - }; - return WorkstationsBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static WorkstationsFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public WorkstationsFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - }; - return WorkstationsFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - default void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - default void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationClustersMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - default void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - default void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - default void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationClusterMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - default void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - default void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - default void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationConfigsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - default void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - default void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - default void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationConfigMethod(), responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - default void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - default void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - default void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUsableWorkstationsMethod(), responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - default void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - default void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkstationMethod(), responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - default void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkstationMethod(), responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - default void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartWorkstationMethod(), responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - default void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopWorkstationMethod(), responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - default void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateAccessTokenMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static abstract class WorkstationsImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return WorkstationsGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsStub - extends io.grpc.stub.AbstractAsyncStub { - private WorkstationsStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public void getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public void listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public void createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public void updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public void deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public void getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public void listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public void listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public void createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public void updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public void deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public void getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public void listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public void listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public void createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public void updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public void deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public void startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public void stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public void generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private WorkstationsBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsBlockingStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationCluster getWorkstationCluster(com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse listWorkstationClusters(com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationClustersMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationCluster(com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationCluster(com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationCluster(com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationClusterMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1beta.WorkstationConfig getWorkstationConfig(com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse listWorkstationConfigs(com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse listUsableWorkstationConfigs(com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationConfigsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation createWorkstationConfig(com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstationConfig(com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstationConfig(com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.Workstation getWorkstation(com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListWorkstationsResponse listWorkstations(com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse listUsableWorkstations(com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUsableWorkstationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.longrunning.Operation createWorkstation(com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.longrunning.Operation updateWorkstation(com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.longrunning.Operation deleteWorkstation(com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.longrunning.Operation startWorkstation(com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.longrunning.Operation stopWorkstation(com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopWorkstationMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse generateAccessToken(com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateAccessTokenMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Workstations. - *
-   * Service for interacting with Cloud Workstations.
-   * 
- */ - public static final class WorkstationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private WorkstationsFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected WorkstationsFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new WorkstationsFutureStub(channel, callOptions); - } - - /** - *
-     * Returns the requested workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationCluster( - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation clusters in the specified location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationClusters( - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationClustersMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationCluster( - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationCluster( - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationCluster( - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationClusterMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstationConfig( - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstation configurations in the specified cluster on which
-     * the caller has the "workstations.workstation.create" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstationConfigs( - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationConfigsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstationConfig( - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstationConfig( - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstationConfig( - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the requested workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWorkstation( - com.google.cloud.workstations.v1beta.GetWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all Workstations using the specified workstation configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listWorkstations( - com.google.cloud.workstations.v1beta.ListWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all workstations using the specified workstation configuration
-     * on which the caller has the "workstations.workstations.use" permission.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listUsableWorkstations( - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUsableWorkstationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWorkstation( - com.google.cloud.workstations.v1beta.CreateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateWorkstation( - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes the specified workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteWorkstation( - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts running a workstation so that users can connect to it.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startWorkstation( - com.google.cloud.workstations.v1beta.StartWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops running a workstation, reducing costs.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopWorkstation( - com.google.cloud.workstations.v1beta.StopWorkstationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopWorkstationMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a short-lived credential that can be used to send authenticated and
-     * authorized traffic to a workstation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateAccessToken( - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateAccessTokenMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_WORKSTATION_CLUSTER = 0; - private static final int METHODID_LIST_WORKSTATION_CLUSTERS = 1; - private static final int METHODID_CREATE_WORKSTATION_CLUSTER = 2; - private static final int METHODID_UPDATE_WORKSTATION_CLUSTER = 3; - private static final int METHODID_DELETE_WORKSTATION_CLUSTER = 4; - private static final int METHODID_GET_WORKSTATION_CONFIG = 5; - private static final int METHODID_LIST_WORKSTATION_CONFIGS = 6; - private static final int METHODID_LIST_USABLE_WORKSTATION_CONFIGS = 7; - private static final int METHODID_CREATE_WORKSTATION_CONFIG = 8; - private static final int METHODID_UPDATE_WORKSTATION_CONFIG = 9; - private static final int METHODID_DELETE_WORKSTATION_CONFIG = 10; - private static final int METHODID_GET_WORKSTATION = 11; - private static final int METHODID_LIST_WORKSTATIONS = 12; - private static final int METHODID_LIST_USABLE_WORKSTATIONS = 13; - private static final int METHODID_CREATE_WORKSTATION = 14; - private static final int METHODID_UPDATE_WORKSTATION = 15; - private static final int METHODID_DELETE_WORKSTATION = 16; - private static final int METHODID_START_WORKSTATION = 17; - private static final int METHODID_STOP_WORKSTATION = 18; - private static final int METHODID_GENERATE_ACCESS_TOKEN = 19; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_GET_WORKSTATION_CLUSTER: - serviceImpl.getWorkstationCluster((com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CLUSTERS: - serviceImpl.listWorkstationClusters((com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CLUSTER: - serviceImpl.createWorkstationCluster((com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CLUSTER: - serviceImpl.updateWorkstationCluster((com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CLUSTER: - serviceImpl.deleteWorkstationCluster((com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION_CONFIG: - serviceImpl.getWorkstationConfig((com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATION_CONFIGS: - serviceImpl.listWorkstationConfigs((com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATION_CONFIGS: - serviceImpl.listUsableWorkstationConfigs((com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION_CONFIG: - serviceImpl.createWorkstationConfig((com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION_CONFIG: - serviceImpl.updateWorkstationConfig((com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION_CONFIG: - serviceImpl.deleteWorkstationConfig((com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WORKSTATION: - serviceImpl.getWorkstation((com.google.cloud.workstations.v1beta.GetWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_WORKSTATIONS: - serviceImpl.listWorkstations((com.google.cloud.workstations.v1beta.ListWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_USABLE_WORKSTATIONS: - serviceImpl.listUsableWorkstations((com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_WORKSTATION: - serviceImpl.createWorkstation((com.google.cloud.workstations.v1beta.CreateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_WORKSTATION: - serviceImpl.updateWorkstation((com.google.cloud.workstations.v1beta.UpdateWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_WORKSTATION: - serviceImpl.deleteWorkstation((com.google.cloud.workstations.v1beta.DeleteWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_WORKSTATION: - serviceImpl.startWorkstation((com.google.cloud.workstations.v1beta.StartWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_WORKSTATION: - serviceImpl.stopWorkstation((com.google.cloud.workstations.v1beta.StopWorkstationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_ACCESS_TOKEN: - serviceImpl.generateAccessToken((com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationClusterRequest, - com.google.cloud.workstations.v1beta.WorkstationCluster>( - service, METHODID_GET_WORKSTATION_CLUSTER))) - .addMethod( - getListWorkstationClustersMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationClustersRequest, - com.google.cloud.workstations.v1beta.ListWorkstationClustersResponse>( - service, METHODID_LIST_WORKSTATION_CLUSTERS))) - .addMethod( - getCreateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CLUSTER))) - .addMethod( - getUpdateWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CLUSTER))) - .addMethod( - getDeleteWorkstationClusterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationClusterRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CLUSTER))) - .addMethod( - getGetWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationConfigRequest, - com.google.cloud.workstations.v1beta.WorkstationConfig>( - service, METHODID_GET_WORKSTATION_CONFIG))) - .addMethod( - getListWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationConfigsResponse>( - service, METHODID_LIST_WORKSTATION_CONFIGS))) - .addMethod( - getListUsableWorkstationConfigsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse>( - service, METHODID_LIST_USABLE_WORKSTATION_CONFIGS))) - .addMethod( - getCreateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION_CONFIG))) - .addMethod( - getUpdateWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION_CONFIG))) - .addMethod( - getDeleteWorkstationConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationConfigRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION_CONFIG))) - .addMethod( - getGetWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GetWorkstationRequest, - com.google.cloud.workstations.v1beta.Workstation>( - service, METHODID_GET_WORKSTATION))) - .addMethod( - getListWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListWorkstationsResponse>( - service, METHODID_LIST_WORKSTATIONS))) - .addMethod( - getListUsableWorkstationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.ListUsableWorkstationsRequest, - com.google.cloud.workstations.v1beta.ListUsableWorkstationsResponse>( - service, METHODID_LIST_USABLE_WORKSTATIONS))) - .addMethod( - getCreateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.CreateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_WORKSTATION))) - .addMethod( - getUpdateWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.UpdateWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_WORKSTATION))) - .addMethod( - getDeleteWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.DeleteWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_WORKSTATION))) - .addMethod( - getStartWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StartWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_START_WORKSTATION))) - .addMethod( - getStopWorkstationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.StopWorkstationRequest, - com.google.longrunning.Operation>( - service, METHODID_STOP_WORKSTATION))) - .addMethod( - getGenerateAccessTokenMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.workstations.v1beta.GenerateAccessTokenRequest, - com.google.cloud.workstations.v1beta.GenerateAccessTokenResponse>( - service, METHODID_GENERATE_ACCESS_TOKEN))) - .build(); - } - - private static abstract class WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - WorkstationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.workstations.v1beta.WorkstationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Workstations"); - } - } - - private static final class WorkstationsFileDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier { - WorkstationsFileDescriptorSupplier() {} - } - - private static final class WorkstationsMethodDescriptorSupplier - extends WorkstationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - WorkstationsMethodDescriptorSupplier(java.lang.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 (WorkstationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new WorkstationsFileDescriptorSupplier()) - .addMethod(getGetWorkstationClusterMethod()) - .addMethod(getListWorkstationClustersMethod()) - .addMethod(getCreateWorkstationClusterMethod()) - .addMethod(getUpdateWorkstationClusterMethod()) - .addMethod(getDeleteWorkstationClusterMethod()) - .addMethod(getGetWorkstationConfigMethod()) - .addMethod(getListWorkstationConfigsMethod()) - .addMethod(getListUsableWorkstationConfigsMethod()) - .addMethod(getCreateWorkstationConfigMethod()) - .addMethod(getUpdateWorkstationConfigMethod()) - .addMethod(getDeleteWorkstationConfigMethod()) - .addMethod(getGetWorkstationMethod()) - .addMethod(getListWorkstationsMethod()) - .addMethod(getListUsableWorkstationsMethod()) - .addMethod(getCreateWorkstationMethod()) - .addMethod(getUpdateWorkstationMethod()) - .addMethod(getDeleteWorkstationMethod()) - .addMethod(getStartWorkstationMethod()) - .addMethod(getStopWorkstationMethod()) - .addMethod(getGenerateAccessTokenMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java deleted file mode 100644 index 6b550f876a1e..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationClusterRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationClusterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationClusterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java deleted file mode 100644 index 4243e50977ce..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationConfigRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java deleted file mode 100644 index a8371e1e9e04..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/GetWorkstationRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public interface GetWorkstationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.workstations.v1beta.GetWorkstationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the requested resource.
-   * 
- * - * 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/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java b/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java deleted file mode 100644 index 0c09805a03d1..000000000000 --- a/owl-bot-staging/java-workstations/v1beta/proto-google-cloud-workstations-v1beta/src/main/java/com/google/cloud/workstations/v1beta/WorkstationsProto.java +++ /dev/null @@ -1,1054 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/workstations/v1beta/workstations.proto - -package com.google.cloud.workstations.v1beta; - -public final class WorkstationsProto { - private WorkstationsProto() {} - 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_workstations_v1beta_WorkstationCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/workstations/v1beta/works" + - "tations.proto\022 google.cloud.workstations" + - ".v1beta\032\034google/api/annotations.proto\032\027g" + - "oogle/api/client.proto\032\037google/api/field" + - "_behavior.proto\032\031google/api/resource.pro" + - "to\032#google/longrunning/operations.proto\032" + - "\036google/protobuf/duration.proto\032 google/" + - "protobuf/field_mask.proto\032\037google/protob" + - "uf/timestamp.proto\032\027google/rpc/status.pr" + - "oto\"\246\t\n\022WorkstationCluster\022\014\n\004name\030\001 \001(\t" + - "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(" + - "\tB\004\342A\001\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022`\n\013an" + - "notations\030\005 \003(\0132E.google.cloud.workstati" + - "ons.v1beta.WorkstationCluster.Annotation" + - "sEntryB\004\342A\001\001\022V\n\006labels\030\017 \003(\0132@.google.cl" + - "oud.workstations.v1beta.WorkstationClust" + - "er.LabelsEntryB\004\342A\001\001\0225\n\013create_time\030\006 \001(" + - "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013u" + - "pdate_time\030\007 \001(\0132\032.google.protobuf.Times" + - "tampB\004\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB" + - "\004\342A\001\001\022\025\n\007network\030\n \001(\tB\004\342A\001\005\022\030\n\nsubnetwo" + - "rk\030\013 \001(\tB\004\342A\001\005\022\036\n\020control_plane_ip\030\020 \001(\t" + - "B\004\342A\001\003\022o\n\026private_cluster_config\030\014 \001(\0132I" + - ".google.cloud.workstations.v1beta.Workst" + - "ationCluster.PrivateClusterConfigB\004\342A\001\001\022" + - "\026\n\010degraded\030\r \001(\010B\004\342A\001\003\022,\n\nconditions\030\016 " + - "\003(\0132\022.google.rpc.StatusB\004\342A\001\003\032\243\001\n\024Privat" + - "eClusterConfig\022%\n\027enable_private_endpoin" + - "t\030\001 \001(\010B\004\342A\001\005\022\036\n\020cluster_hostname\030\002 \001(\tB" + - "\004\342A\001\003\022$\n\026service_attachment_uri\030\003 \001(\tB\004\342" + - "A\001\003\022\036\n\020allowed_projects\030\004 \003(\tB\004\342A\001\001\0322\n\020A" + - "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001:\263\001\352A\257\001\n.workstations.goog" + - "leapis.com/WorkstationCluster\022Qprojects/" + - "{project}/locations/{location}/workstati" + - "onClusters/{workstation_cluster}*\023workst" + - "ationClusters2\022workstationClusterR\001\001\"\375\036\n" + - "\021WorkstationConfig\022\014\n\004name\030\001 \001(\t\022\032\n\014disp" + - "lay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022" + - "\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022_\n\013annotation" + - "s\030\005 \003(\0132D.google.cloud.workstations.v1be" + - "ta.WorkstationConfig.AnnotationsEntryB\004\342" + - "A\001\001\022U\n\006labels\030\022 \003(\0132?.google.cloud.works" + - "tations.v1beta.WorkstationConfig.LabelsE" + - "ntryB\004\342A\001\001\0225\n\013create_time\030\006 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\003\0225\n\013update_time" + - "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + - "\0225\n\013delete_time\030\010 \001(\0132\032.google.protobuf." + - "TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\0225\n\014i" + - "dle_timeout\030\n \001(\0132\031.google.protobuf.Dura" + - "tionB\004\342A\001\001\0228\n\017running_timeout\030\013 \001(\0132\031.go" + - "ogle.protobuf.DurationB\004\342A\001\001\022L\n\004host\030\014 \001" + - "(\01328.google.cloud.workstations.v1beta.Wo" + - "rkstationConfig.HostB\004\342A\001\001\022m\n\026persistent" + - "_directories\030\r \003(\0132G.google.cloud.workst" + - "ations.v1beta.WorkstationConfig.Persiste" + - "ntDirectoryB\004\342A\001\001\022k\n\025ephemeral_directori" + - "es\030\026 \003(\0132F.google.cloud.workstations.v1b" + - "eta.WorkstationConfig.EphemeralDirectory" + - "B\004\342A\001\001\022V\n\tcontainer\030\016 \001(\0132=.google.cloud" + - ".workstations.v1beta.WorkstationConfig.C" + - "ontainerB\004\342A\001\001\022g\n\016encryption_key\030\021 \001(\0132I" + - ".google.cloud.workstations.v1beta.Workst" + - "ationConfig.CustomerEncryptionKeyB\004\342A\001\005\022" + - "b\n\020readiness_checks\030\023 \003(\0132B.google.cloud" + - ".workstations.v1beta.WorkstationConfig.R" + - "eadinessCheckB\004\342A\001\001\022\034\n\rreplica_zones\030\027 \003" + - "(\tB\005\342A\002\001\005\022\026\n\010degraded\030\017 \001(\010B\004\342A\001\003\022,\n\ncon" + - "ditions\030\020 \003(\0132\022.google.rpc.StatusB\004\342A\001\003\022" + - " \n\022enable_audit_agent\030\024 \001(\010B\004\342A\001\001\032\266\010\n\004Ho" + - "st\022\\\n\014gce_instance\030\001 \001(\0132D.google.cloud." + - "workstations.v1beta.WorkstationConfig.Ho" + - "st.GceInstanceH\000\032\305\007\n\013GceInstance\022\032\n\014mach" + - "ine_type\030\001 \001(\tB\004\342A\001\001\022\035\n\017service_account\030" + - "\002 \001(\tB\004\342A\001\001\022$\n\026service_account_scopes\030\003 " + - "\003(\tB\004\342A\001\001\022\022\n\004tags\030\004 \003(\tB\004\342A\001\001\022\027\n\tpool_si" + - "ze\030\005 \001(\005B\004\342A\001\001\022\036\n\020pooled_instances\030\014 \001(\005" + - "B\004\342A\001\003\022)\n\033disable_public_ip_addresses\030\006 " + - "\001(\010B\004\342A\001\001\022*\n\034enable_nested_virtualizatio" + - "n\030\007 \001(\010B\004\342A\001\001\022\206\001\n\030shielded_instance_conf" + - "ig\030\010 \001(\0132^.google.cloud.workstations.v1b" + - "eta.WorkstationConfig.Host.GceInstance.G" + - "ceShieldedInstanceConfigB\004\342A\001\001\022\216\001\n\034confi" + - "dential_instance_config\030\n \001(\0132b.google.c" + - "loud.workstations.v1beta.WorkstationConf" + - "ig.Host.GceInstance.GceConfidentialInsta" + - "nceConfigB\004\342A\001\001\022\037\n\021boot_disk_size_gb\030\t \001" + - "(\005B\004\342A\001\001\022l\n\014accelerators\030\013 \003(\0132P.google." + - "cloud.workstations.v1beta.WorkstationCon" + - "fig.Host.GceInstance.AcceleratorB\004\342A\001\001\032\203" + - "\001\n\031GceShieldedInstanceConfig\022 \n\022enable_s" + - "ecure_boot\030\001 \001(\010B\004\342A\001\001\022\031\n\013enable_vtpm\030\002 " + - "\001(\010B\004\342A\001\001\022)\n\033enable_integrity_monitoring" + - "\030\003 \001(\010B\004\342A\001\001\032J\n\035GceConfidentialInstanceC" + - "onfig\022)\n\033enable_confidential_compute\030\001 \001" + - "(\010B\004\342A\001\001\0326\n\013Accelerator\022\022\n\004type\030\001 \001(\tB\004\342" + - "A\001\001\022\023\n\005count\030\002 \001(\005B\004\342A\001\001B\010\n\006config\032\223\004\n\023P" + - "ersistentDirectory\022s\n\006gce_pd\030\002 \001(\0132a.goo" + - "gle.cloud.workstations.v1beta.Workstatio" + - "nConfig.PersistentDirectory.GceRegionalP" + - "ersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB\004\342A\001" + - "\001\032\332\002\n\031GceRegionalPersistentDisk\022\025\n\007size_" + - "gb\030\001 \001(\005B\004\342A\001\001\022\025\n\007fs_type\030\002 \001(\tB\004\342A\001\001\022\027\n" + - "\tdisk_type\030\003 \001(\tB\004\342A\001\001\022\035\n\017source_snapsho" + - "t\030\005 \001(\tB\004\342A\001\001\022\215\001\n\016reclaim_policy\030\004 \001(\0162o" + - ".google.cloud.workstations.v1beta.Workst" + - "ationConfig.PersistentDirectory.GceRegio" + - "nalPersistentDisk.ReclaimPolicyB\004\342A\001\001\"G\n" + - "\rReclaimPolicy\022\036\n\032RECLAIM_POLICY_UNSPECI" + - "FIED\020\000\022\n\n\006DELETE\020\001\022\n\n\006RETAIN\020\002B\020\n\016direct" + - "ory_type\032\257\002\n\022EphemeralDirectory\022j\n\006gce_p" + - "d\030\003 \001(\0132X.google.cloud.workstations.v1be" + - "ta.WorkstationConfig.EphemeralDirectory." + - "GcePersistentDiskH\000\022\030\n\nmount_path\030\001 \001(\tB" + - "\004\342A\001\002\032\200\001\n\021GcePersistentDisk\022\027\n\tdisk_type" + - "\030\001 \001(\tB\004\342A\001\001\022\035\n\017source_snapshot\030\002 \001(\tB\004\342" + - "A\001\001\022\032\n\014source_image\030\003 \001(\tB\004\342A\001\001\022\027\n\tread_" + - "only\030\004 \001(\010B\004\342A\001\001B\020\n\016directory_type\032\210\002\n\tC" + - "ontainer\022\023\n\005image\030\001 \001(\tB\004\342A\001\001\022\025\n\007command" + - "\030\002 \003(\tB\004\342A\001\001\022\022\n\004args\030\003 \003(\tB\004\342A\001\001\022Y\n\003env\030" + - "\004 \003(\0132F.google.cloud.workstations.v1beta" + - ".WorkstationConfig.Container.EnvEntryB\004\342" + - "A\001\001\022\031\n\013working_dir\030\005 \001(\tB\004\342A\001\001\022\031\n\013run_as" + - "_user\030\006 \001(\005B\004\342A\001\001\032*\n\010EnvEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032U\n\025CustomerEncrypt" + - "ionKey\022\025\n\007kms_key\030\001 \001(\tB\004\342A\001\005\022%\n\027kms_key" + - "_service_account\030\002 \001(\tB\004\342A\001\005\0328\n\016Readines" + - "sCheck\022\022\n\004path\030\001 \001(\tB\004\342A\001\001\022\022\n\004port\030\002 \001(\005" + - "B\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\330\001\352A\324\001\n-workst" + - "ations.googleapis.com/WorkstationConfig\022" + - "yprojects/{project}/locations/{location}" + - "/workstationClusters/{workstation_cluste" + - "r}/workstationConfigs/{workstation_confi" + - "g}*\022workstationConfigs2\021workstationConfi" + - "gR\001\001\"\213\t\n\013Workstation\022\014\n\004name\030\001 \001(\t\022\032\n\014di" + - "splay_name\030\002 \001(\tB\004\342A\001\001\022\021\n\003uid\030\003 \001(\tB\004\342A\001" + - "\003\022\031\n\013reconciling\030\004 \001(\010B\004\342A\001\003\022Y\n\013annotati" + - "ons\030\005 \003(\0132>.google.cloud.workstations.v1" + - "beta.Workstation.AnnotationsEntryB\004\342A\001\001\022" + - "O\n\006labels\030\r \003(\01329.google.cloud.workstati" + - "ons.v1beta.Workstation.LabelsEntryB\004\342A\001\001" + - "\0225\n\013create_time\030\006 \001(\0132\032.google.protobuf." + - "TimestampB\004\342A\001\003\0225\n\013update_time\030\007 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\004\342A\001\003\0224\n\nstart_" + - "time\030\016 \001(\0132\032.google.protobuf.TimestampB\004" + - "\342A\001\003\0225\n\013delete_time\030\010 \001(\0132\032.google.proto" + - "buf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t \001(\tB\004\342A\001\001\022" + - "H\n\005state\030\n \001(\01623.google.cloud.workstatio" + - "ns.v1beta.Workstation.StateB\004\342A\001\003\022\022\n\004hos" + - "t\030\013 \001(\tB\004\342A\001\003\022I\n\003env\030\014 \003(\01326.google.clou" + - "d.workstations.v1beta.Workstation.EnvEnt" + - "ryB\004\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032*\n\010EnvEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"l\n\005State" + - "\022\025\n\021STATE_UNSPECIFIED\020\000\022\022\n\016STATE_STARTIN" + - "G\020\001\022\021\n\rSTATE_RUNNING\020\002\022\022\n\016STATE_STOPPING" + - "\020\003\022\021\n\rSTATE_STOPPED\020\004:\342\001\352A\336\001\n\'workstatio" + - "ns.googleapis.com/Workstation\022\224\001projects" + - "/{project}/locations/{location}/workstat" + - "ionClusters/{workstation_cluster}/workst" + - "ationConfigs/{workstation_config}/workst" + - "ations/{workstation}*\014workstations2\013work" + - "stationR\001\001\"e\n\034GetWorkstationClusterReque" + - "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.workstations." + - "googleapis.com/WorkstationCluster\"\234\001\n\036Li" + - "stWorkstationClustersRequest\022G\n\006parent\030\001" + - " \001(\tB7\342A\001\002\372A0\022.workstations.googleapis.c" + - "om/WorkstationCluster\022\027\n\tpage_size\030\002 \001(\005" + - "B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\243\001\n\037Lis" + - "tWorkstationClustersResponse\022R\n\024workstat" + - "ion_clusters\030\001 \003(\01324.google.cloud.workst" + - "ations.v1beta.WorkstationCluster\022\027\n\017next" + - "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\206" + - "\002\n\037CreateWorkstationClusterRequest\022G\n\006pa" + - "rent\030\001 \001(\tB7\342A\001\002\372A0\022.workstations.google" + - "apis.com/WorkstationCluster\022$\n\026workstati" + - "on_cluster_id\030\002 \001(\tB\004\342A\001\002\022W\n\023workstation" + - "_cluster\030\003 \001(\01324.google.cloud.workstatio" + - "ns.v1beta.WorkstationClusterB\004\342A\001\002\022\033\n\rva" + - "lidate_only\030\004 \001(\010B\004\342A\001\001\"\353\001\n\037UpdateWorkst" + - "ationClusterRequest\022W\n\023workstation_clust" + - "er\030\001 \001(\01324.google.cloud.workstations.v1b" + - "eta.WorkstationClusterB\004\342A\001\002\0225\n\013update_m" + - "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342" + - "A\001\002\022\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallo" + - "w_missing\030\004 \001(\010B\004\342A\001\001\"\256\001\n\037DeleteWorkstat" + - "ionClusterRequest\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0" + - "\n.workstations.googleapis.com/Workstatio" + - "nCluster\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n" + - "\004etag\030\003 \001(\tB\004\342A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"c" + - "\n\033GetWorkstationConfigRequest\022D\n\004name\030\001 " + - "\001(\tB6\342A\001\002\372A/\n-workstations.googleapis.co" + - "m/WorkstationConfig\"\233\001\n\035ListWorkstationC" + - "onfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A\001\002\372A0\n." + - "workstations.googleapis.com/WorkstationC" + - "luster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" + - "token\030\003 \001(\tB\004\342A\001\001\"\240\001\n\036ListWorkstationCon" + - "figsResponse\022P\n\023workstation_configs\030\001 \003(" + - "\01323.google.cloud.workstations.v1beta.Wor" + - "kstationConfig\022\027\n\017next_page_token\030\002 \001(\t\022" + - "\023\n\013unreachable\030\003 \003(\t\"\241\001\n#ListUsableWorks" + - "tationConfigsRequest\022G\n\006parent\030\001 \001(\tB7\342A" + - "\001\002\372A0\n.workstations.googleapis.com/Works" + - "tationCluster\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030" + - "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\246\001\n$ListUsableW" + - "orkstationConfigsResponse\022P\n\023workstation" + - "_configs\030\001 \003(\01323.google.cloud.workstatio" + - "ns.v1beta.WorkstationConfig\022\027\n\017next_page" + - "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\202\002\n\036Cr" + - "eateWorkstationConfigRequest\022G\n\006parent\030\001" + - " \001(\tB7\342A\001\002\372A0\n.workstations.googleapis.c" + - "om/WorkstationCluster\022#\n\025workstation_con" + - "fig_id\030\002 \001(\tB\004\342A\001\002\022U\n\022workstation_config" + - "\030\003 \001(\01323.google.cloud.workstations.v1bet" + - "a.WorkstationConfigB\004\342A\001\002\022\033\n\rvalidate_on" + - "ly\030\004 \001(\010B\004\342A\001\001\"\350\001\n\036UpdateWorkstationConf" + - "igRequest\022U\n\022workstation_config\030\001 \001(\01323." + - "google.cloud.workstations.v1beta.Worksta" + - "tionConfigB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032." + - "google.protobuf.FieldMaskB\004\342A\001\002\022\033\n\rvalid" + - "ate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_missing\030\004 " + - "\001(\010B\004\342A\001\001\"\254\001\n\036DeleteWorkstationConfigReq" + - "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-workstation" + - "s.googleapis.com/WorkstationConfig\022\033\n\rva" + - "lidate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342" + - "A\001\001\022\023\n\005force\030\004 \001(\010B\004\342A\001\001\"W\n\025GetWorkstati" + - "onRequest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workst" + - "ations.googleapis.com/Workstation\"\224\001\n\027Li" + - "stWorkstationsRequest\022F\n\006parent\030\001 \001(\tB6\342" + - "A\001\002\372A/\n-workstations.googleapis.com/Work" + - "stationConfig\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030" + - "\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\231\001\n\030ListWorksta" + - "tionsResponse\022C\n\014workstations\030\001 \003(\0132-.go" + - "ogle.cloud.workstations.v1beta.Workstati" + - "on\022\035\n\017next_page_token\030\002 \001(\tB\004\342A\001\001\022\031\n\013unr" + - "eachable\030\003 \003(\tB\004\342A\001\001\"\232\001\n\035ListUsableWorks" + - "tationsRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\n" + - "-workstations.googleapis.com/Workstation" + - "Config\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" + - "token\030\003 \001(\tB\004\342A\001\001\"\223\001\n\036ListUsableWorkstat" + - "ionsResponse\022C\n\014workstations\030\001 \003(\0132-.goo" + - "gle.cloud.workstations.v1beta.Workstatio" + - "n\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + - "e\030\003 \003(\t\"\347\001\n\030CreateWorkstationRequest\022F\n\006" + - "parent\030\001 \001(\tB6\342A\001\002\372A/\n-workstations.goog" + - "leapis.com/WorkstationConfig\022\034\n\016workstat" + - "ion_id\030\002 \001(\tB\004\342A\001\002\022H\n\013workstation\030\003 \001(\0132" + - "-.google.cloud.workstations.v1beta.Works" + - "tationB\004\342A\001\002\022\033\n\rvalidate_only\030\004 \001(\010B\004\342A\001" + - "\001\"\325\001\n\030UpdateWorkstationRequest\022H\n\013workst" + - "ation\030\001 \001(\0132-.google.cloud.workstations." + - "v1beta.WorkstationB\004\342A\001\002\0225\n\013update_mask\030" + - "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022" + - "\033\n\rvalidate_only\030\003 \001(\010B\004\342A\001\001\022\033\n\rallow_mi" + - "ssing\030\004 \001(\010B\004\342A\001\001\"\213\001\n\030DeleteWorkstationR" + - "equest\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstati" + - "ons.googleapis.com/Workstation\022\033\n\rvalida" + - "te_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"" + - "\212\001\n\027StartWorkstationRequest\022>\n\004name\030\001 \001(" + - "\tB0\342A\001\002\372A)\n\'workstations.googleapis.com/" + - "Workstation\022\033\n\rvalidate_only\030\002 \001(\010B\004\342A\001\001" + - "\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001\"\211\001\n\026StopWorkstation" + - "Request\022>\n\004name\030\001 \001(\tB0\342A\001\002\372A)\n\'workstat" + - "ions.googleapis.com/Workstation\022\033\n\rvalid" + - "ate_only\030\002 \001(\010B\004\342A\001\001\022\022\n\004etag\030\003 \001(\tB\004\342A\001\001" + - "\"\316\001\n\032GenerateAccessTokenRequest\0221\n\013expir" + - "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + - "H\000\022(\n\003ttl\030\003 \001(\0132\031.google.protobuf.Durati" + - "onH\000\022E\n\013workstation\030\001 \001(\tB0\342A\001\002\372A)\n\'work" + - "stations.googleapis.com/WorkstationB\014\n\ne" + - "xpiration\"d\n\033GenerateAccessTokenResponse" + - "\022\024\n\014access_token\030\001 \001(\t\022/\n\013expire_time\030\002 " + - "\001(\0132\032.google.protobuf.Timestamp\"\207\002\n\021Oper" + - "ationMetadata\0225\n\013create_time\030\001 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time" + - "\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + - "\022\024\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A" + - "\001\003\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n\026requ" + - "ested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_ve" + - "rsion\030\007 \001(\tB\004\342A\001\0032\337+\n\014Workstations\022\331\001\n\025G" + - "etWorkstationCluster\022>.google.cloud.work" + - "stations.v1beta.GetWorkstationClusterReq" + - "uest\0324.google.cloud.workstations.v1beta." + - "WorkstationCluster\"J\332A\004name\202\323\344\223\002=\022;/v1be" + - "ta/{name=projects/*/locations/*/workstat" + - "ionClusters/*}\022\354\001\n\027ListWorkstationCluste" + - "rs\022@.google.cloud.workstations.v1beta.Li" + - "stWorkstationClustersRequest\032A.google.cl" + - "oud.workstations.v1beta.ListWorkstationC" + - "lustersResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1bet" + - "a/{parent=projects/*/locations/*}/workst" + - "ationClusters\022\265\002\n\030CreateWorkstationClust" + - "er\022A.google.cloud.workstations.v1beta.Cr" + - "eateWorkstationClusterRequest\032\035.google.l" + - "ongrunning.Operation\"\266\001\312A\'\n\022WorkstationC" + - "luster\022\021OperationMetadata\332A1parent,works" + - "tation_cluster,workstation_cluster_id\202\323\344" + - "\223\002R\";/v1beta/{parent=projects/*/location" + - "s/*}/workstationClusters:\023workstation_cl" + - "uster\022\267\002\n\030UpdateWorkstationCluster\022A.goo" + - "gle.cloud.workstations.v1beta.UpdateWork" + - "stationClusterRequest\032\035.google.longrunni" + - "ng.Operation\"\270\001\312A\'\n\022WorkstationCluster\022\021" + - "OperationMetadata\332A\037workstation_cluster," + - "update_mask\202\323\344\223\002f2O/v1beta/{workstation_" + - "cluster.name=projects/*/locations/*/work" + - "stationClusters/*}:\023workstation_cluster\022" + - "\362\001\n\030DeleteWorkstationCluster\022A.google.cl" + - "oud.workstations.v1beta.DeleteWorkstatio" + - "nClusterRequest\032\035.google.longrunning.Ope" + - "ration\"t\312A\'\n\022WorkstationCluster\022\021Operati" + - "onMetadata\332A\004name\202\323\344\223\002=*;/v1beta/{name=p" + - "rojects/*/locations/*/workstationCluster" + - "s/*}\022\353\001\n\024GetWorkstationConfig\022=.google.c" + - "loud.workstations.v1beta.GetWorkstationC" + - "onfigRequest\0323.google.cloud.workstations" + - ".v1beta.WorkstationConfig\"_\332A\004name\202\323\344\223\002R" + - "\022P/v1beta/{name=projects/*/locations/*/w" + - "orkstationClusters/*/workstationConfigs/" + - "*}\022\376\001\n\026ListWorkstationConfigs\022?.google.c" + - "loud.workstations.v1beta.ListWorkstation" + - "ConfigsRequest\032@.google.cloud.workstatio" + - "ns.v1beta.ListWorkstationConfigsResponse" + - "\"a\332A\006parent\202\323\344\223\002R\022P/v1beta/{parent=proje" + - "cts/*/locations/*/workstationClusters/*}" + - "/workstationConfigs\022\233\002\n\034ListUsableWorkst" + - "ationConfigs\022E.google.cloud.workstations" + - ".v1beta.ListUsableWorkstationConfigsRequ" + - "est\032F.google.cloud.workstations.v1beta.L" + - "istUsableWorkstationConfigsResponse\"l\332A\006" + - "parent\202\323\344\223\002]\022[/v1beta/{parent=projects/*" + - "/locations/*/workstationClusters/*}/work" + - "stationConfigs:listUsable\022\304\002\n\027CreateWork" + - "stationConfig\022@.google.cloud.workstation" + - "s.v1beta.CreateWorkstationConfigRequest\032" + - "\035.google.longrunning.Operation\"\307\001\312A&\n\021Wo" + - "rkstationConfig\022\021OperationMetadata\332A/par" + - "ent,workstation_config,workstation_confi" + - "g_id\202\323\344\223\002f\"P/v1beta/{parent=projects/*/l" + - "ocations/*/workstationClusters/*}/workst" + - "ationConfigs:\022workstation_config\022\306\002\n\027Upd" + - "ateWorkstationConfig\022@.google.cloud.work" + - "stations.v1beta.UpdateWorkstationConfigR" + - "equest\032\035.google.longrunning.Operation\"\311\001" + - "\312A&\n\021WorkstationConfig\022\021OperationMetadat" + - "a\332A\036workstation_config,update_mask\202\323\344\223\002y" + - "2c/v1beta/{workstation_config.name=proje" + - "cts/*/locations/*/workstationClusters/*/" + - "workstationConfigs/*}:\022workstation_confi" + - "g\022\205\002\n\027DeleteWorkstationConfig\022@.google.c" + - "loud.workstations.v1beta.DeleteWorkstati" + - "onConfigRequest\032\035.google.longrunning.Ope" + - "ration\"\210\001\312A&\n\021WorkstationConfig\022\021Operati" + - "onMetadata\332A\004name\202\323\344\223\002R*P/v1beta/{name=p" + - "rojects/*/locations/*/workstationCluster" + - "s/*/workstationConfigs/*}\022\350\001\n\016GetWorksta" + - "tion\0227.google.cloud.workstations.v1beta." + - "GetWorkstationRequest\032-.google.cloud.wor" + - "kstations.v1beta.Workstation\"n\332A\004name\202\323\344" + - "\223\002a\022_/v1beta/{name=projects/*/locations/" + - "*/workstationClusters/*/workstationConfi" + - "gs/*/workstations/*}\022\373\001\n\020ListWorkstation" + - "s\0229.google.cloud.workstations.v1beta.Lis" + - "tWorkstationsRequest\032:.google.cloud.work" + - "stations.v1beta.ListWorkstationsResponse" + - "\"p\332A\006parent\202\323\344\223\002a\022_/v1beta/{parent=proje" + - "cts/*/locations/*/workstationClusters/*/" + - "workstationConfigs/*}/workstations\022\230\002\n\026L" + - "istUsableWorkstations\022?.google.cloud.wor" + - "kstations.v1beta.ListUsableWorkstationsR" + - "equest\032@.google.cloud.workstations.v1bet" + - "a.ListUsableWorkstationsResponse\"{\332A\006par" + - "ent\202\323\344\223\002l\022j/v1beta/{parent=projects/*/lo" + - "cations/*/workstationClusters/*/workstat" + - "ionConfigs/*}/workstations:listUsable\022\254\002" + - "\n\021CreateWorkstation\022:.google.cloud.works" + - "tations.v1beta.CreateWorkstationRequest\032" + - "\035.google.longrunning.Operation\"\273\001\312A \n\013Wo" + - "rkstation\022\021OperationMetadata\332A!parent,wo" + - "rkstation,workstation_id\202\323\344\223\002n\"_/v1beta/" + - "{parent=projects/*/locations/*/workstati" + - "onClusters/*/workstationConfigs/*}/works" + - "tations:\013workstation\022\256\002\n\021UpdateWorkstati" + - "on\022:.google.cloud.workstations.v1beta.Up" + - "dateWorkstationRequest\032\035.google.longrunn" + - "ing.Operation\"\275\001\312A \n\013Workstation\022\021Operat" + - "ionMetadata\332A\027workstation,update_mask\202\323\344" + - "\223\002z2k/v1beta/{workstation.name=projects/" + - "*/locations/*/workstationClusters/*/work" + - "stationConfigs/*/workstations/*}:\013workst" + - "ation\022\202\002\n\021DeleteWorkstation\022:.google.clo" + - "ud.workstations.v1beta.DeleteWorkstation" + - "Request\032\035.google.longrunning.Operation\"\221" + - "\001\312A \n\013Workstation\022\021OperationMetadata\332A\004n" + - "ame\202\323\344\223\002a*_/v1beta/{name=projects/*/loca", - "tions/*/workstationClusters/*/workstatio" + - "nConfigs/*/workstations/*}\022\211\002\n\020StartWork" + - "station\0229.google.cloud.workstations.v1be" + - "ta.StartWorkstationRequest\032\035.google.long" + - "running.Operation\"\232\001\312A \n\013Workstation\022\021Op" + - "erationMetadata\332A\004name\202\323\344\223\002j\"e/v1beta/{n" + - "ame=projects/*/locations/*/workstationCl" + - "usters/*/workstationConfigs/*/workstatio" + - "ns/*}:start:\001*\022\206\002\n\017StopWorkstation\0228.goo" + - "gle.cloud.workstations.v1beta.StopWorkst" + - "ationRequest\032\035.google.longrunning.Operat" + - "ion\"\231\001\312A \n\013Workstation\022\021OperationMetadat" + - "a\332A\004name\202\323\344\223\002i\"d/v1beta/{name=projects/*" + - "/locations/*/workstationClusters/*/works" + - "tationConfigs/*/workstations/*}:stop:\001*\022" + - "\250\002\n\023GenerateAccessToken\022<.google.cloud.w" + - "orkstations.v1beta.GenerateAccessTokenRe" + - "quest\032=.google.cloud.workstations.v1beta" + - ".GenerateAccessTokenResponse\"\223\001\332A\013workst" + - "ation\202\323\344\223\002\177\"z/v1beta/{workstation=projec" + - "ts/*/locations/*/workstationClusters/*/w" + - "orkstationConfigs/*/workstations/*}:gene" + - "rateAccessToken:\001*\032O\312A\033workstations.goog" + - "leapis.com\322A.https://www.googleapis.com/" + - "auth/cloud-platformB\205\001\n$com.google.cloud" + - ".workstations.v1betaB\021WorkstationsProtoP" + - "\001ZHcloud.google.com/go/workstations/apiv" + - "1beta/workstationspb;workstationspbb\006pro" + - "to3" - }; - 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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "Network", "Subnetwork", "ControlPlaneIp", "PrivateClusterConfig", "Degraded", "Conditions", }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_PrivateClusterConfig_descriptor, - new java.lang.String[] { "EnablePrivateEndpoint", "ClusterHostname", "ServiceAttachmentUri", "AllowedProjects", }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationCluster_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "DeleteTime", "Etag", "IdleTimeout", "RunningTimeout", "Host", "PersistentDirectories", "EphemeralDirectories", "Container", "EncryptionKey", "ReadinessChecks", "ReplicaZones", "Degraded", "Conditions", "EnableAuditAgent", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor, - new java.lang.String[] { "GceInstance", "Config", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor, - new java.lang.String[] { "MachineType", "ServiceAccount", "ServiceAccountScopes", "Tags", "PoolSize", "PooledInstances", "DisablePublicIpAddresses", "EnableNestedVirtualization", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", "BootDiskSizeGb", "Accelerators", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig_descriptor, - new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig_descriptor, - new java.lang.String[] { "EnableConfidentialCompute", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Host_GceInstance_Accelerator_descriptor, - new java.lang.String[] { "Type", "Count", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor, - new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk_descriptor, - new java.lang.String[] { "SizeGb", "FsType", "DiskType", "SourceSnapshot", "ReclaimPolicy", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor, - new java.lang.String[] { "GcePd", "MountPath", "DirectoryType", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_EphemeralDirectory_GcePersistentDisk_descriptor, - new java.lang.String[] { "DiskType", "SourceSnapshot", "SourceImage", "ReadOnly", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor, - new java.lang.String[] { "Image", "Command", "Args", "Env", "WorkingDir", "RunAsUser", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_Container_EnvEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_CustomerEncryptionKey_descriptor, - new java.lang.String[] { "KmsKey", "KmsKeyServiceAccount", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_ReadinessCheck_descriptor, - new java.lang.String[] { "Path", "Port", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(6); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_descriptor.getNestedTypes().get(7); - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_WorkstationConfig_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_workstations_v1beta_Workstation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Uid", "Reconciling", "Annotations", "Labels", "CreateTime", "UpdateTime", "StartTime", "DeleteTime", "Etag", "State", "Host", "Env", }); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor = - internal_static_google_cloud_workstations_v1beta_Workstation_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_Workstation_EnvEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationClustersResponse_descriptor, - new java.lang.String[] { "WorkstationClusters", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationClusterId", "WorkstationCluster", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationClusterRequest_descriptor, - new java.lang.String[] { "WorkstationCluster", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationClusterRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationConfigsResponse_descriptor, - new java.lang.String[] { "WorkstationConfigs", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationConfigId", "WorkstationConfig", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationConfigRequest_descriptor, - new java.lang.String[] { "WorkstationConfig", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationConfigRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", "Force", }); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GetWorkstationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_ListUsableWorkstationsResponse_descriptor, - new java.lang.String[] { "Workstations", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_CreateWorkstationRequest_descriptor, - new java.lang.String[] { "Parent", "WorkstationId", "Workstation", "ValidateOnly", }); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_UpdateWorkstationRequest_descriptor, - new java.lang.String[] { "Workstation", "UpdateMask", "ValidateOnly", "AllowMissing", }); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_DeleteWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StartWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_StopWorkstationRequest_descriptor, - new java.lang.String[] { "Name", "ValidateOnly", "Etag", }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenRequest_descriptor, - new java.lang.String[] { "ExpireTime", "Ttl", "Workstation", "Expiration", }); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_GenerateAccessTokenResponse_descriptor, - new java.lang.String[] { "AccessToken", "ExpireTime", }); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_workstations_v1beta_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_workstations_v1beta_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - 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.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/versions.txt b/versions.txt index a56fc1dda0a1..a9d99c13b1b9 100644 --- a/versions.txt +++ b/versions.txt @@ -712,4 +712,4 @@ proto-google-cloud-edgenetwork-v1:0.0.0:0.0.1-SNAPSHOT grpc-google-cloud-edgenetwork-v1:0.0.0:0.0.1-SNAPSHOT google-cloud-cloudquotas:0.0.0:0.0.1-SNAPSHOT proto-google-cloud-cloudquotas-v1:0.0.0:0.0.1-SNAPSHOT -grpc-google-cloud-cloudquotas-v1:0.0.0:0.0.1-SNAPSHOT \ No newline at end of file +grpc-google-cloud-cloudquotas-v1:0.0.0:0.0.1-SNAPSHOT